
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf9ff;
  --surface: #ffffff;
  --text: #191629;
  --muted: #858197;
  --purple: #7654f6;
  --purple-dark: #5b39df;
  --border: #ece9f5;
  --shadow: 0 12px 36px rgba(65, 43, 130, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 0%, #eee8ff 0%, transparent 48%),
    var(--bg);
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header {
  width: 100%;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
}

.logo::first-letter {
  color: var(--purple);
}

.subtitle {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--purple);
  border: 1px solid #e5ddff;
  border-radius: 50px;
  padding: 9px 12px;
  background: #f7f4ff;
  white-space: nowrap;
}

.container {
  width: min(100% - 32px, 510px);
  margin: 38px auto 0;
  padding-bottom: 30px;
}

.pill {
  width: fit-content;
  margin: 0 auto 22px;
  padding: 9px 15px;
  border: 1px solid #e6ddff;
  background: rgba(255, 255, 255, 0.8);
  color: var(--purple-dark);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  box-shadow: 0 5px 18px rgba(99, 70, 190, 0.06);
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 8vw, 43px);
  line-height: 1.13;
  letter-spacing: -1.8px;
  text-align: center;
  font-weight: 700;
  max-width: 430px;
  margin: 0 auto;
}

.description {
  margin: 13px auto 27px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: #eeebf7;
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 22px;
}

.tab {
  border: 0;
  background: transparent;
  color: #79748b;
  border-radius: 12px;
  padding: 13px 5px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.tab.active {
  background: white;
  color: var(--purple-dark);
  box-shadow: 0 3px 12px rgba(44, 29, 94, 0.09);
}

#downloadForm {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.urlBox {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1.5px solid #e5e0f0;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.urlBox:focus-within {
  border-color: #a995ff;
  box-shadow: 0 0 0 4px rgba(118, 84, 246, 0.09);
}

#urlInput {
  width: 0;
  min-width: 0;
  flex: 1;
  padding: 11px 8px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

#urlInput::placeholder {
  color: #aaa5b8;
}

#pasteBtn {
  border: 0;
  border-radius: 11px;
  padding: 0 17px;
  background: linear-gradient(135deg, #9478ff, #6845ee);
  color: white;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 5px 12px rgba(118, 84, 246, 0.2);
}

#pasteBtn:active,
.fetchBtn:active {
  transform: scale(0.98);
}

.fetchBtn {
  width: 100%;
  min-height: 53px;
  margin-top: 17px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(115deg, #8b6bff, #6842ed);
  color: white;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(111, 73, 238, 0.23);
  transition: transform 0.2s, opacity 0.2s;
}

.fetchBtn:disabled {
  opacity: 0.65;
  cursor: wait;
}

#status {
  min-height: 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.features {
  margin-top: 32px;
}

.features h2 {
  margin-bottom: 15px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  letter-spacing: -0.5px;
}

.feature {
  position: relative;
  padding: 17px 18px 17px 48px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 5px 18px rgba(65, 43, 130, 0.035);
}

.feature::before {
  content: "✦";
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: #f0ebff;
  border-radius: 8px;
  font-size: 13px;
}

.footer {
  margin-top: 30px;
  color: #a19bad;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.5px;
}

@media (max-width: 360px) {
  .header {
    padding: 18px 13px;
  }

  .logo {
    font-size: 20px;
  }

  .subtitle {
    font-size: 9px;
    padding: 8px 9px;
    letter-spacing: 1px;
  }

  #downloadForm {
    padding: 16px;
  }

  #pasteBtn {
    padding: 0 12px;
  }
}
