/* ─── TOKENS ─── */
:root {
  --bg-deep: #061a1e;
  --bg-mid: #0a2a2f;
  --text: #c4dde2;
  --text-secondary: #8aabb4;
  --green-light: #34d399;
  --green-mid: #0d9466;
  --green-glow: rgba(52, 211, 153, 0.35);
  --blue-light: #38bdf8;
  --blue-mid: #0284c7;
  --blue-glow: rgba(56, 189, 248, 0.3);
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.4);
  --foam: #ecfdf5;
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.4);
}

/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  font-size: 1rem;
}

/* ─── ANIMATED BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(13, 148, 102, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 70% 30%, rgba(2, 132, 199, 0.11) 0%, transparent 70%),
    radial-gradient(ellipse 45% 30% at 50% 50%, rgba(45, 212, 191, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 25% at 15% 30%, rgba(52, 211, 153, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 85% 65%, rgba(56, 189, 248, 0.09) 0%, transparent 60%);
  animation: stream-bg 24s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes stream-bg {
  0%   { transform: translate(0%, 0%) rotate(0deg); }
  25%  { transform: translate(-3%, 2%) rotate(0.5deg); }
  50%  { transform: translate(-1%, 4%) rotate(-0.3deg); }
  75%  { transform: translate(2%, 1%) rotate(0.2deg); }
  100% { transform: translate(0%, 0%) rotate(0deg); }
}

body::after {
  content: '';
  position: fixed;
  inset: -100px;
  background-image:
    repeating-linear-gradient(168deg, transparent, transparent 90px, rgba(45, 212, 191, 0.05) 90px, rgba(45, 212, 191, 0.05) 91px),
    repeating-linear-gradient(172deg, transparent, transparent 130px, rgba(52, 211, 153, 0.04) 130px, rgba(52, 211, 153, 0.04) 131px);
  animation: drift 16s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0%   { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-80px) translateY(50px); }
}

/* ─── FLOW ORBS ─── */
.flow {
  position: fixed;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.flow-1 {
  width: 600px; height: 280px;
  background: linear-gradient(135deg, var(--green-mid), var(--blue-mid));
  top: -80px; right: -200px;
  border-radius: 60% 40% 55% 45%;
  animation: meander-1 14s ease-in-out infinite;
}

.flow-2 {
  width: 500px; height: 240px;
  background: linear-gradient(200deg, var(--teal), var(--green-light));
  bottom: -60px; left: -180px;
  border-radius: 45% 55% 50% 50%;
  animation: meander-2 18s ease-in-out infinite;
}

.flow-3 {
  width: 350px; height: 350px;
  background: var(--blue-light);
  top: 35%; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  animation: pulse-slow 12s ease-in-out infinite;
  opacity: 0.06;
}

.flow-4 {
  width: 400px; height: 200px;
  background: linear-gradient(160deg, var(--green-light), var(--teal));
  top: 15%; left: -100px;
  border-radius: 50% 60% 40% 50%;
  animation: meander-3 20s ease-in-out infinite;
  opacity: 0.12;
}

@keyframes meander-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(40px, 25px) rotate(2deg); }
  50%      { transform: translate(15px, 45px) rotate(-1deg); }
  75%      { transform: translate(-25px, 15px) rotate(1deg); }
}

@keyframes meander-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%      { transform: translate(30px, -20px) rotate(-1.5deg); }
  60%      { transform: translate(-15px, -35px) rotate(1deg); }
  80%      { transform: translate(20px, -10px) rotate(-0.5deg); }
}

@keyframes meander-3 {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(50px, 15px); }
  50%      { transform: translate(30px, 40px); }
  70%      { transform: translate(-10px, 25px); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.04; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.09; transform: translateX(-50%) scale(1.15); }
}

/* ─── RIVER SVG ─── */
.river-svg {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.river-path   { fill: none; stroke: url(#riverGrad);  stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 10 14; animation: flow-line 5s linear infinite; }
.river-path-2 { fill: none; stroke: url(#riverGrad2); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 6 18;  animation: flow-line 7s linear infinite; opacity: 0.85; }
.river-path-3 { fill: none; stroke: url(#riverGrad);  stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 8 20;  animation: flow-line 9s linear infinite; opacity: 0.6; }

@keyframes flow-line {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

/* ─── HEADER / NAV ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 64px;
  background: rgba(6, 26, 30, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--foam);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.main-nav a {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--foam);
  background: rgba(45, 212, 191, 0.08);
}

.main-nav a.active {
  color: var(--teal);
}

/* ─── DROPDOWN ─── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.05rem);
  right: 0;
  min-width: 160px;
  background: rgba(6, 26, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(45, 212, 191, 0.1);
  border-radius: 8px;
  padding: 0.35rem 0;
  flex-direction: column;
  z-index: 110;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
  border-radius: 0 !important;
  white-space: nowrap;
}

.nav-dropdown-menu a:first-child { border-radius: 6px 6px 0 0 !important; }
.nav-dropdown-menu a:last-child  { border-radius: 0 0 6px 6px !important; }

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

/* ─── MOBILE TOGGLE ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ─── MAIN CONTENT ─── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  padding: 5.5rem 2rem 4rem;
  width: 100%;
}

.section {
  width: 100%;
  max-width: 760px;
  padding: 3rem 0;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section:nth-child(2) { animation-delay: 0.15s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.45s; }

@keyframes rise {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Hero ── */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.hero-headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foam);
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.hero-lede a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 212, 191, 0.3);
  transition: border-color 0.2s;
}

.hero-lede a:hover {
  border-color: var(--teal);
}

/* ── Section headings ── */
.section-heading {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.75rem;
}

/* ── Proof cards ── */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.proof-card {
  background: rgba(10, 42, 47, 0.5);
  border: 1px solid rgba(45, 212, 191, 0.08);
  border-radius: 10px;
  padding: 1.75rem;
}

.proof-stat {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-light);
  margin-bottom: 0.5rem;
}

.proof-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foam);
  margin-bottom: 0.75rem;
}

.proof-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.proof-body strong {
  color: var(--text);
}

.proof-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

.proof-link:hover {
  color: var(--green-light);
}

.proof-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Pricing cards ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pricing-card {
  background: rgba(10, 42, 47, 0.5);
  border: 1px solid rgba(45, 212, 191, 0.08);
  border-radius: 10px;
  padding: 1.75rem;
}

.pricing-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.pricing-amount {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foam);
  margin-bottom: 1rem;
}

.pricing-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── Audience ── */
.audience-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.audience-body code {
  font-size: 0.9em;
  background: rgba(45, 212, 191, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--teal);
}

.audience-body em {
  color: var(--text-secondary);
}

.audience-closer {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 1.5rem;
}

/* ─── FOOTER ─── */
.site-footer {
  z-index: 1;
  text-align: center;
  padding: 0.75rem 2rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(45, 212, 191, 0.06);
}

.site-footer a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--green-light);
  text-decoration: underline;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(6, 26, 30, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.15rem;
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.65rem 0.9rem; font-size: 0.9rem; text-align: right; }

  .nav-dropdown { width: auto; text-align: right; }
  .nav-dropdown-menu {
    position: static;
    border: none;
    background: rgba(45, 212, 191, 0.04);
    border-radius: 6px !important;
    margin-top: 0.15rem;
    padding: 0.2rem 0;
    align-items: flex-end;
  }
  .nav-dropdown-menu a { text-align: right; }

  .hero-section { padding-top: 3rem; }
  .proof-grid,
  .pricing-grid { grid-template-columns: 1fr; }
}
