/* ==========================================================================
   Genva — marketing site styles
   Design tokens mirrored from the Flutter app (lib/app.dart, glass_pill.dart):
   - Dark glassmorphism, Inter typeface
   - Brand gradient magenta #FE0299 -> yellow #F7F062 (splash_screen.dart)
   - Scaffold backgrounds #060910 / #030508 / #090D18
   - Glass surfaces: white @16% fill with a diagonal hairline rim
   ========================================================================== */

:root {
  --bg: #060910;
  --bg-deep: #030508;
  --bg-elev: #090d18;

  --text: #ffffff;
  --text-secondary: #c8cdd8;
  --text-muted: #7c8088;
  --text-soft: #a0a8b8;

  --brand-pink: #fe0299;
  --brand-yellow: #f7f062;
  --brand-gradient: linear-gradient(120deg, #fe0299 0%, #f7f062 100%);

  --glass-fill: rgba(255, 255, 255, 0.06);
  --glass-fill-strong: rgba(255, 255, 255, 0.1);
  --rim: rgba(255, 255, 255, 0.14);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;

  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient magenta glow rising from the bottom, echoing splash.webp */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(254, 2, 153, 0.28) 0%, rgba(254, 2, 153, 0) 55%),
    radial-gradient(90% 60% at 85% -10%, rgba(247, 240, 98, 0.08) 0%, rgba(247, 240, 98, 0) 50%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Glass surface — the CSS equivalent of GlassPill's fill + hairline rim
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  overflow: hidden;
}
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.44) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.28) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 16, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img {
  height: 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  color: #090d18;
  background: var(--brand-gradient);
  box-shadow: 0 8px 30px rgba(254, 2, 153, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(254, 2, 153, 0.5);
}
.btn-glass {
  color: var(--text);
  background: var(--glass-fill-strong);
  border: 1px solid var(--rim);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.btn-sm {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-fill);
  border: 1px solid var(--rim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gradient);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 24px;
  max-width: 14ch;
}
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero app-icon showpiece */
.hero-art {
  margin: 56px auto 0;
  width: min(220px, 46vw);
  aspect-ratio: 1;
  border-radius: 48px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(254, 2, 153, 0.35);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section {
  padding: 88px 0;
}
.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature-card {
  padding: 36px;
}
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
}
.feature-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
}
.feature-card p {
  color: var(--text-soft);
  margin: 0 0 18px;
  font-size: 15.5px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  padding: 32px;
  text-align: left;
}
.step-num {
  font-size: 15px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #090d18;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 600;
}
.step p {
  color: var(--text-soft);
  margin: 0;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  text-align: center;
  padding: 64px 40px;
  margin: 0 auto;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.cta-band p {
  color: var(--text-soft);
  margin: 0 0 30px;
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand img {
  height: 26px;
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 34ch;
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Legal (terms / privacy) pages
   -------------------------------------------------------------------------- */
.legal {
  padding: 72px 0 32px;
}
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 44px 0 14px;
  scroll-margin-top: 90px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 10px;
  color: var(--text-secondary);
}
.legal p,
.legal li {
  color: var(--text-soft);
  font-size: 16px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 8px;
}
.legal a {
  color: var(--brand-pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal strong {
  color: var(--text-secondary);
}
.callout {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(254, 2, 153, 0.08);
  border: 1px solid rgba(254, 2, 153, 0.25);
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 24px 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .nav-links .nav-only-desktop {
    display: none;
  }
  .section {
    padding: 64px 0;
  }
  .hero {
    padding: 64px 0 48px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 14px;
  }
  .btn {
    height: 48px;
    padding: 0 20px;
  }
}
