:root {
  --bg: #F4F7F7;
  --surface: #FFFFFF;
  --sunken: #EAF0F0;
  --ink: #10201F;
  --slate: #5B6B6A;
  --slate-soft: #8A9C9A;
  --line: #DCE6E5;
  --accent: #0E7C86;        /* teal — wordmark drop, CTA */
  --accent-ink: #0A6068;    /* readable teal for links / accent text */
  --seafoam: #2FA894;       /* glow / divider */
  --shadow: 0 1px 2px rgba(16, 32, 31, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1113;
    --surface: #151D1F;
    --sunken: #0E1618;
    --ink: #EAF2F1;
    --slate: #9BB0AE;
    --slate-soft: #6B807E;
    --line: #24302E;
    --accent: #35B5BE;
    --accent-ink: #62D2C0;
    --seafoam: #62D2C0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Brand lockup — water drop + Nitrify */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.logo svg { width: 22px; height: 30px; flex: none; }

.hero { margin-bottom: 6rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
}

.hero-shot { display: flex; justify-content: center; position: relative; }

/* Soft seafoam glow behind the phone shot (CSS only) */
.hero-shot::before {
  content: '';
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(circle at center, var(--seafoam) 0%, transparent 62%);
  filter: blur(46px);
  opacity: 0.38;
  z-index: 0;
  pointer-events: none;
}

.hero-shot img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(16, 32, 31, 0.4);
  position: relative;
  z-index: 1;
}

@media (min-width: 760px) { .hero-shot img { max-width: 100%; } }

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

h1 {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 540px;
  margin-bottom: 2rem;
}

.tagline strong { color: var(--ink); font-weight: 600; }

/* Instrument-readout flourish under the tagline */
.readout {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 2.5rem;
}
.readout b { color: var(--accent-ink); font-weight: 500; }

.cta { margin-top: 1.5rem; }

/* Coming-soon badge — a status pill, deliberately not a link */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: default;
  user-select: none;
}

.coming-soon .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Waveform divider — echoes the Insights glyph */
.section-divider {
  display: flex;
  justify-content: center;
  margin: 0 auto 5rem;
  opacity: 0.5;
}
.section-divider svg { width: 54px; height: 20px; color: var(--seafoam); }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; gap: 3.5rem 2.5rem; }
  .pricing-feature {
    grid-column: 1 / -1;
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
  }
}

.feature h2 {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.feature p { color: var(--slate); font-size: 1rem; }
.feature .pro {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
  font-weight: 500;
}

.pricing-feature h2 { font-size: 2rem; }
.pricing-feature p { font-size: 1.15rem; max-width: 500px; margin: 0 auto; }
.pricing-feature strong { color: var(--accent-ink); }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.gallery img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -20px rgba(16, 32, 31, 0.32);
}

.gallery figcaption {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  text-align: center;
  color: var(--slate);
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

footer a { color: var(--slate); text-decoration: none; font-size: 0.95rem; transition: color 0.15s ease; }
footer a:hover { color: var(--accent-ink); }
.copyright { font-size: 0.85rem; color: var(--slate-soft); }

/* Legal pages */
.legal-page { max-width: 680px; margin: 0 auto; padding: 3rem 1.5rem; }

.legal-page h1 {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.5rem;
}

.legal-page .updated { color: var(--slate-soft); margin-bottom: 2.5rem; font-size: 0.95rem; }

.legal-page h2 {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.015em;
  color: var(--ink); margin-top: 2.5rem; margin-bottom: 0.75rem;
}

.legal-page p, .legal-page ul { color: var(--ink); margin-bottom: 1rem; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page li { margin-bottom: 0.5rem; }
.legal-page a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-page .back { display: inline-block; color: var(--slate); text-decoration: none; margin-bottom: 2rem; font-size: 0.95rem; }
.legal-page .back:hover { color: var(--accent-ink); }

/* Entrance — subtle staggered fade-up */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.fade-up.delay-1 { animation-delay: 0.08s; }
.fade-up.delay-2 { animation-delay: 0.16s; }
.fade-up.delay-3 { animation-delay: 0.24s; }
.fade-up.delay-4 { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .coming-soon .dot {
    animation: none;
    transform: none;
  }
}
