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

:root {
  --bg: #08080f;
  --surface: #12121e;
  --surface2: #1a1a2e;
  --border: #2a2a40;
  --text: #f0f0ff;
  --muted: #888899;
  --pink: #e1306c;
  --purple: #833ab4;
  --orange: #f77737;
  --radius: 14px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,15,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(131,58,180,.22) 0%, rgba(225,48,108,.1) 50%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  font-weight: 300;
}

/* ── SEARCH CARD ── */
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 600px;
  margin: 0 auto;
}
.input-row {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.input-row:focus-within { border-color: var(--pink); }
.at-sign { padding: 0 12px; color: var(--muted); font-size: 18px; }
.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 0;
}
.input-row input::placeholder { color: var(--muted); }
.input-row button {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  transition: opacity .2s;
  white-space: nowrap;
}
.input-row button:hover { opacity: .85; }
.input-row button:disabled { opacity: .5; cursor: not-allowed; }
.search-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ── ERROR ── */
.error-box {
  background: rgba(225,48,108,.1);
  border: 1px solid rgba(225,48,108,.35);
  color: #ff8aae;
  text-align: center;
  padding: 16px 24px;
  margin: 24px auto;
  max-width: 600px;
  border-radius: 10px;
  font-size: 14px;
}

/* ── RESULTS ── */
.results-section { padding: 60px 0; }
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  object-fit: cover;
}
.profile-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.profile-meta { font-size: 13px; color: var(--muted); }

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.tab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  margin-bottom: -1px;
}
.tab.active { color: var(--text); border-bottom-color: var(--pink); }
.tab:hover { color: var(--text); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  background: var(--surface2);
}
.card-footer {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.media-type {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.download-btn {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s;
  white-space: nowrap;
}
.download-btn:hover { opacity: .8; }

.no-content { text-align: center; padding: 60px 0; color: var(--muted); }

/* ── HOW IT WORKS ── */
.how-section { padding: 80px 0; background: var(--surface); }
.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ── FAQ ── */
.faq-section { padding: 80px 0; }
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-q:hover { background: var(--surface2); }
.faq-icon { font-size: 20px; color: var(--pink); flex-shrink: 0; }
.faq-a {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.footer-logo { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.footer-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.footer-copy { font-size: 12px; color: var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .navbar { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .hero { padding: 70px 0 50px; }
  .search-card { padding: 20px 16px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps { grid-template-columns: 1fr; }
}
