/* ===== Reset & variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0810;
  --surface: #16121f;
  --surface-hi: #2a2238;
  --primary: #e58ebc;
  --primary-dark: #5c2248;
  --text: #fae4f2;
  --text-secondary: #7060a0;
  --border: #2a2238;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 8, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  text-decoration: none;
  background: linear-gradient(135deg, #e58ebc, #5c2248);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-hi);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}

.main-nav a:hover { opacity: 1; color: var(--primary); }

.nav-cta {
  background: var(--primary-dark);
  color: var(--primary) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.nav-cta:hover { background: #71295a; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(229, 142, 188, 0.28);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(229, 142, 188, 0.38); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 24px 100px;
  text-align: center;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 15%, rgba(92, 34, 72, 0.55), transparent 55%),
    radial-gradient(circle at 85% 60%, rgba(112, 96, 160, 0.25), transparent 50%),
    radial-gradient(circle at 10% 70%, rgba(229, 142, 188, 0.12), transparent 45%);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(229, 142, 188, 0.12);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(229, 142, 188, 0.25);
}

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

.hero-subtitle {
  color: rgba(250, 228, 242, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.app-store-badge {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Waveform decoration */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
  margin-top: 28px;
}

.waveform span {
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--violet, #7060a0));
  animation: wave 1.3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.25); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .waveform span { animation: none; transform: scaleY(0.6); opacity: 0.8; }
  html { scroll-behavior: auto; }
}

/* ===== Features ===== */
.features { padding: 100px 24px; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-header h2,
.waitlist h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.section-subtitle { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover { transform: translateY(-4px); border-color: rgba(229, 142, 188, 0.35); }

.feature-icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(229, 142, 188, 0.12);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.65; }

/* ===== Waitlist ===== */
.waitlist {
  padding: 100px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.waitlist-inner { max-width: 560px; margin: 0 auto; text-align: center; }

.waitlist p { color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }

.waitlist-form .form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-form input[type="email"]:focus { border-color: var(--primary); }
.waitlist-form input[type="email"]::placeholder { color: var(--text-secondary); }

.form-note { margin-top: 14px; font-size: 12px; color: var(--text-secondary); }

.hidden-field { position: absolute; left: -9999px; top: -9999px; }

.form-success {
  background: rgba(229, 142, 188, 0.08);
  border: 1px solid rgba(229, 142, 188, 0.25);
  border-radius: 16px;
  padding: 28px;
  color: var(--text);
}

/* ===== Footer ===== */
.site-footer { padding: 56px 24px 32px; border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand { max-width: 280px; }

.footer-logo {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  background: linear-gradient(135deg, #e58ebc, #5c2248);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}

.footer-col a:hover { opacity: 1; color: var(--primary); }

.footer-bottom {
  max-width: 1120px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===== Legal pages ===== */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.legal-main h1 {
  font-family: 'Merriweather', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 40px; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: opacity 0.15s;
}

.toc a:hover { opacity: 0.75; }

.legal-main section { margin-bottom: 40px; }

.legal-main h2 {
  font-family: 'Merriweather', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-main h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
}

.legal-main p { margin-bottom: 12px; color: var(--text); }

.legal-main ul, .legal-main ol { padding-left: 20px; margin-bottom: 12px; }

.legal-main li { margin-bottom: 6px; color: var(--text); }

.highlight {
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }

.data-table th {
  background: var(--surface-hi);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }

.sensitive-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(229, 142, 188, 0.15);
  color: var(--primary);
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .hero { padding: 100px 20px 72px; }

  .features, .waitlist { padding: 72px 20px; }

  .footer-links { gap: 32px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .waitlist-form .form-row { flex-direction: column; }
  .waitlist-form input[type="email"] { flex: 0 1 auto; width: 100%; }
  .waitlist-form button { width: 100%; }
}
