:root {
  --bg: #000000;
  --card: #0D0D0D;
  --card-hover: #141414;
  --input: #141414;
  --text: #FFFFFF;
  --subtext: #8E8E93;
  --muted: #555559;
  --accent: #3390EC;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.04);
  --leaf-1: #0B1F14;
  --leaf-2: #173A24;
  --leaf-3: #4A9463;
  --ember: #FFD98A;
  --font-display: "Unbounded", "SF Pro Rounded", ui-sans-serif, sans-serif;
  --font-body: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------- */
/* Ambient taiga background — slow, low-opacity drifting glows.            */
/* Deliberately subtle: long durations, small travel distance, low blur    */
/* opacity, so it reads as "alive" without competing for attention.        */
/* ---------------------------------------------------------------------- */
.taiga-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.taiga-ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  will-change: transform;
}

.taiga-ambient .blob-1 {
  width: 620px;
  height: 620px;
  top: -260px;
  left: -200px;
  background: radial-gradient(circle, var(--leaf-3) 0%, var(--leaf-2) 55%, transparent 75%);
  animation: driftA 26s ease-in-out infinite;
}

.taiga-ambient .blob-2 {
  width: 560px;
  height: 560px;
  top: 10%;
  right: -220px;
  background: radial-gradient(circle, var(--accent) 0%, var(--leaf-2) 60%, transparent 75%);
  animation: driftB 32s ease-in-out infinite;
  opacity: 0.14;
}

.taiga-ambient .blob-3 {
  width: 640px;
  height: 640px;
  bottom: -300px;
  left: 20%;
  background: radial-gradient(circle, var(--leaf-2) 0%, var(--leaf-1) 60%, transparent 75%);
  animation: driftC 30s ease-in-out infinite;
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, 24px) scale(1.06); }
}

@keyframes driftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

@keyframes driftC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -26px) scale(1.05); }
}

/* ---------------------------------------------------------------------- */
/* Taiga forest silhouette — a literal treeline + river fixed at the      */
/* bottom of the viewport. Three tree layers drift horizontally at        */
/* different speeds/directions for parallax depth; the river has a       */
/* slow shimmer of light running along it; fireflies drift and fade.      */
/* ---------------------------------------------------------------------- */
.taiga-forest {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38vh;
  min-height: 260px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 32%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 32%);
}

.taiga-forest svg {
  width: 100%;
  height: 100%;
  display: block;
}

.forest-layer {
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.forest-far {
  animation-name: forestDriftFar;
  animation-duration: 90s;
}

.forest-mid {
  animation-name: forestDriftMid;
  animation-duration: 60s;
}

.forest-near {
  animation-name: forestDriftNear;
  animation-duration: 34s;
}

@keyframes forestDriftFar {
  from { transform: translateX(0); }
  to { transform: translateX(-140px); }
}

@keyframes forestDriftMid {
  from { transform: translateX(0); }
  to { transform: translateX(180px); }
}

@keyframes forestDriftNear {
  from { transform: translateX(0); }
  to { transform: translateX(-110px); }
}

.river-glow {
  animation: riverFlow 7s linear infinite;
}

@keyframes riverFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -400px; }
}

.firefly {
  position: absolute;
  bottom: 8%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px 2px rgba(255, 217, 138, 0.75);
  opacity: 0;
  animation: fireflyFloat ease-in-out infinite;
}

@keyframes fireflyFloat {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.85; }
  50% { transform: translate(16px, -70px); opacity: 0.45; }
  88% { opacity: 0.7; }
  100% { transform: translate(-12px, -140px); opacity: 0; }
}

.firefly.f1 { left: 8%;  animation-duration: 13s; animation-delay: 0s; }
.firefly.f2 { left: 18%; animation-duration: 16s; animation-delay: 2.5s; }
.firefly.f3 { left: 29%; animation-duration: 12s; animation-delay: 5s; }
.firefly.f4 { left: 41%; animation-duration: 18s; animation-delay: 1s; }
.firefly.f5 { left: 55%; animation-duration: 14s; animation-delay: 7s; }
.firefly.f6 { left: 67%; animation-duration: 17s; animation-delay: 3.5s; }
.firefly.f7 { left: 79%; animation-duration: 13s; animation-delay: 6s; }
.firefly.f8 { left: 91%; animation-duration: 15s; animation-delay: 4.5s; }

/* Section wrapper needs to sit above the fixed ambient layer */
.site-header, .hero, .features, .cta, .site-footer, .legal-page {
  position: relative;
  z-index: 1;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-1 { transition-delay: 0.05s; }
.reveal-2 { transition-delay: 0.15s; }
.reveal-3 { transition-delay: 0.25s; }
.reveal-4 { transition-delay: 0.35s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
}

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

.nav-links a {
  position: relative;
  color: var(--subtext);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 130%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2f7fd6);
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(51, 144, 236, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(51, 144, 236, 0.7);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 14px;
}

/* Hero */
.hero {
  padding: 108px 0 100px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--subtext);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf-3);
  box-shadow: 0 0 0 3px rgba(74, 148, 99, 0.25);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--leaf-3), var(--accent), var(--leaf-3));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 7s ease-in-out infinite;
}

@keyframes shimmerText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  font-size: 18px;
  color: var(--subtext);
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero-visual .glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 148, 99, 0.4) 0%, rgba(51, 144, 236, 0.18) 45%, transparent 72%);
  filter: blur(40px);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-visual img {
  position: relative;
  width: min(340px, 70%);
  animation: floatMark 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(51, 144, 236, 0.22));
}

@keyframes floatMark {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Features */
.features {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  margin: 0 0 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--subtext);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.feature-card:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--leaf-2), var(--leaf-3));
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--subtext);
  margin: 0;
}

/* CTA banner */
.cta {
  padding: 72px 0 96px;
  border-top: 1px solid var(--border);
}

.cta-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(600px circle at 50% 0%, rgba(74, 148, 99, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 14px;
}

.cta-box p {
  color: var(--subtext);
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--subtext);
  font-size: 13px;
}

.footer-brand img {
  width: 20px;
  height: 20px;
}

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

.footer-links a {
  color: var(--subtext);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* Legal pages (terms.html / privacy.html) */
.legal-page {
  padding: 56px 0 100px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--subtext);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0 0 40px;
}

.legal-body {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.8;
  color: var(--subtext);
  max-width: 760px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 32px;
  transition: gap 0.2s ease;
}

.back-link:hover {
  gap: 10px;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 260px;
    order: -1;
  }

  .hero-visual img {
    width: min(240px, 60%);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .taiga-ambient span,
  .eyebrow .dot,
  .hero-visual .glow,
  .hero-visual img,
  .forest-layer,
  .river-glow,
  .firefly,
  .hero h1 span {
    animation: none !important;
  }

  .btn::before {
    transition: none !important;
  }

  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
