/* ============================================================
   GROWNOVA — Shared Design System
   Organic marketing funnels in 30 days
   ============================================================ */

@import url("https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@300,400,500,700&display=swap");

:root {
  /* Core palette */
  --navy:        #0D0F1E;
  --navy-700:    #11142A;
  --navy-600:    #161A33;
  --navy-500:    #1C2140;
  --navy-line:   rgba(245, 243, 239, 0.10);
  --navy-line-2: rgba(245, 243, 239, 0.06);

  --violet:      #7C3AED;
  --violet-300:  #A471F5;
  --violet-soft: rgba(124, 58, 237, 0.16);
  --violet-glow: rgba(124, 58, 237, 0.45);

  --gold:        #E8C547;
  --gold-200:    #F2D873;
  --gold-soft:   rgba(232, 197, 71, 0.14);

  --offwhite:    #F5F3EF;
  --ink:         #0D0F1E;

  /* Text tones on dark */
  --text:        #F5F3EF;
  --text-dim:    rgba(245, 243, 239, 0.66);
  --text-faint:  rgba(245, 243, 239, 0.40);

  /* Light surface tones (member area) */
  --paper:       #F5F3EF;
  --paper-2:     #ECE9E2;
  --paper-line:  rgba(13, 15, 30, 0.10);
  --ink-dim:     rgba(13, 15, 30, 0.60);
  --ink-faint:   rgba(13, 15, 30, 0.42);

  /* Type */
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body:    "Satoshi", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.30), 0 24px 60px -24px rgba(124, 58, 237, 0.45);

  /* Layout */
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }

/* Typography ------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--text-dim); line-height: 1.55; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.eyebrow.no-rule::before { display: none; }

.text-violet { color: var(--violet-300); }
.text-gold   { color: var(--gold); }
.text-dim    { color: var(--text-dim); }
.serif-accent { font-style: italic; }

/* Layout helpers -------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 860px; }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(48px, 7vw, 90px) 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }
.stack-md > * + * { margin-top: 22px; }
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }

/* Buttons --------------------------------------------------- */
.btn {
  --b-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  background: var(--b-bg);
  color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  position: relative;
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 30px -12px var(--gold), inset 0 0 0 1px rgba(255,255,255,0.2);
}
.btn-gold:hover { background: var(--gold-200); box-shadow: 0 18px 44px -14px var(--gold); }

.btn-violet {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 34px -12px var(--violet-glow);
}
.btn-violet:hover { background: #8B4DF2; box-shadow: 0 18px 48px -14px var(--violet-glow); }

.btn-ghost {
  background: rgba(245,243,239,0.04);
  border-color: var(--navy-line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(245,243,239,0.08); border-color: rgba(245,243,239,0.22); }

.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-arrow svg { transition: transform .35s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* Pills / chips --------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 500;
  background: rgba(245,243,239,0.05);
  border: 1px solid var(--navy-line);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip-violet { background: var(--violet-soft); border-color: rgba(124,58,237,0.4); color: var(--violet-300); }
.chip-gold   { background: var(--gold-soft); border-color: rgba(232,197,71,0.4); color: var(--gold-200); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.dot-live { background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Cards (dark) ---------------------------------------------- */
.card {
  background: linear-gradient(180deg, var(--navy-600), var(--navy-700));
  border: 1px solid var(--navy-line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.45);
  box-shadow: var(--shadow-glow);
}
.card-glow::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, var(--violet-soft), transparent 60%);
  pointer-events: none;
}

/* Brand logo ------------------------------------------------ */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.02em; color: var(--text); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark .ring { transform-origin: center; animation: spin 14s linear infinite; }
.logo-mark .orbit-dot { transform-origin: 15px 15px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Navbar (marketing) ---------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13,15,30,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--navy-line);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.95rem; color: var(--text-dim); font-weight: 500; transition: color .2s; position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* Footer ----------------------------------------------------- */
.footer { border-top: 1px solid var(--navy-line); padding: 64px 0 40px; background: var(--navy-700); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-faint); font-weight: 600; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-dim); font-size: 0.95rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-line-2); display: flex; justify-content: space-between; align-items: center; color: var(--text-faint); font-size: 0.85rem; }

/* Background ornaments --------------------------------------- */
.bg-orbit { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-orbit .ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--navy-line-2);
}
.glow-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5; pointer-events: none; z-index: 0;
}
.grain::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll reveal --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* Marquee ---------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Counters / stats ------------------------------------------ */
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; color: var(--offwhite); }
.stat-label { color: var(--text-dim); font-size: 0.92rem; margin-top: 8px; }

/* Divider ---------------------------------------------------- */
.hr { height: 1px; background: var(--navy-line); border: 0; margin: 0; }

/* Utility ---------------------------------------------------- */
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem; letter-spacing: 0; }
.muted-card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-soft); border: 1px solid rgba(124,58,237,0.35); color: var(--violet-300); }

/* Responsive ------------------------------------------------- */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
