/* ── Luma site · base: tokens, reset, type, buttons, utilities ────── */
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F4F5F7;
  --bg-2: #ECEEF1;
  --card: #FCFCFD;
  --ink: #14161A;
  --ink-soft: #3C4047;
  --muted: #6C707A;
  --border: #E4E6EA;
  --border-2: #DDDFE4;
  --accent: #0E9F6E;
  --accent-2: #13B27C;
  --accent-3: #21D68F;
  --accent-deep: #0A7048;
  --accent-ink: #0A6B45;
  --accent-soft: rgba(14, 159, 110, 0.10);
  --accent-line: rgba(14, 159, 110, 0.26);
  --shadow-lg: 0 40px 90px -40px rgba(20, 22, 26, 0.35);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--accent); color: #fff; }

/* grain + scroll progress */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; z-index: 9998; background: linear-gradient(90deg, var(--accent-2), var(--accent-deep)); animation: scroll-progress-grow linear both; animation-timeline: scroll(root); }
@keyframes scroll-progress-grow { to { transform: scaleX(1); } }

/* Idle "keep scrolling" nudge */
.scroll-nudge { position: fixed; left: 50%; bottom: 30px; z-index: 90; transform: translateX(-50%) translateY(22px); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.scroll-nudge.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.scroll-nudge.hide { opacity: 0; transform: translateX(-50%) translateY(48px); }
.scroll-nudge-inner { display: inline-flex; align-items: center; gap: 12px; padding: 11px 11px 11px 20px; border-radius: 999px; background: rgba(252, 252, 253, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--accent-line); box-shadow: 0 18px 40px -18px rgba(14, 159, 110, 0.45), 0 2px 8px rgba(20, 22, 26, 0.06); }
.scroll-nudge.show .scroll-nudge-inner { animation: nudge-attention 2s ease-in-out 0.7s infinite; }
.scroll-nudge-text { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.scroll-nudge-chev { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; animation: nudge-bounce 1.4s ease-in-out infinite; }
.scroll-nudge-chev svg { width: 17px; height: 17px; }
@keyframes nudge-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes nudge-attention {
  0%, 56% { transform: scale(1) rotate(0deg); }
  62% { transform: scale(1.1) rotate(-4deg); }
  68% { transform: scale(1.1) rotate(4deg); }
  74% { transform: scale(1.1) rotate(-3deg); }
  80% { transform: scale(1.07) rotate(2deg); }
  88%, 100% { transform: scale(1) rotate(0deg); }
}

/* nudge variant: tab that slides off the right edge (mid page) */
.snudge-tab { position: fixed; right: 0; top: 50%; z-index: 90; transform: translate(115%, -50%); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.55s var(--ease); display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 14px 0 0 14px; background: linear-gradient(150deg, var(--accent-2), var(--accent-deep)); color: #fff; box-shadow: -12px 20px 40px -18px rgba(14, 159, 110, 0.6); font-size: 14px; font-weight: 600; white-space: nowrap; }
.snudge-tab.show { opacity: 1; transform: translate(0, -50%); }
.snudge-tab.hide { opacity: 0; transform: translate(115%, -50%); }
.snudge-tab svg { width: 16px; height: 16px; animation: nudge-bounce 1.4s ease-in-out infinite; }

/* nudge variant: bottom-left pop (lower page) */
.snudge-pop { position: fixed; left: 28px; bottom: 28px; z-index: 90; transform: translateY(26px) scale(0.92); opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); display: inline-flex; align-items: center; gap: 11px; padding: 11px 18px 11px 11px; border-radius: 16px; background: rgba(252, 252, 253, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--accent-line); box-shadow: 0 18px 40px -18px rgba(14, 159, 110, 0.45); font-size: 14px; font-weight: 600; color: var(--ink); }
.snudge-pop.show { opacity: 1; transform: translateY(0) scale(1); }
.snudge-pop.hide { opacity: 0; transform: translateY(26px) scale(0.92); }
.snudge-pop-dot { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; }
.snudge-pop-dot svg { width: 17px; height: 17px; animation: nudge-bounce 1.4s ease-in-out infinite; }

/* layout helpers */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 800px; }
.section { padding: 130px 0; position: relative; }

/* type utilities */
.h2 { font-size: clamp(34px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.grad { background: linear-gradient(110deg, var(--accent-2), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 620px; line-height: 1.55; }
.section-sub strong { color: var(--accent-ink); font-weight: 600; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; border: none; border-radius: 12px; padding: 12px 22px; white-space: nowrap; transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.2s ease; }
.btn-lg { padding: 16px 30px; font-size: 15.5px; border-radius: 14px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px -12px rgba(14, 159, 110, 0.65); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(14, 159, 110, 0.75); }
.btn-gold { background: var(--accent-deep); color: #fff; }
.btn-gold:hover { transform: translateY(-2px); opacity: 0.94; }
.btn-ghost { background: rgba(255, 255, 255, 0.55); color: var(--ink); border: 1px solid var(--border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; border-color: var(--muted); transform: translateY(-2px); }
.btn-soft { background: var(--bg-2); color: var(--ink); }
.btn-soft:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--border); transform: translateY(-2px); }
.dl-ver { font-weight: 500; opacity: 0.72; font-variant-numeric: tabular-nums; }

/* Bottom-of-page note from the devs */
.dev-pop { position: fixed; right: 24px; bottom: 24px; z-index: 95; width: 330px; max-width: calc(100vw - 32px); padding: 24px 26px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--accent-line); box-shadow: 0 34px 70px -28px rgba(20, 22, 26, 0.45); cursor: pointer; transform: translateY(30px) scale(0.96); opacity: 0; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.dev-pop.show { opacity: 1; transform: translateY(0) scale(1); }
.dev-pop-x { position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; border: none; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.dev-pop-x:hover { background: var(--bg-2); color: var(--ink); }
.dev-pop-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-2), var(--accent-deep)); color: #fff; margin-bottom: 14px; box-shadow: 0 8px 18px -8px rgba(14, 159, 110, 0.6); }
.dev-pop-mark svg { width: 20px; height: 20px; }
.dev-pop h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.dev-pop p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.dev-pop-sign { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
@media (max-width: 600px) { .dev-pop { right: 16px; left: 16px; bottom: 16px; width: auto; } }

/* brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-tile { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-2), var(--accent-deep)); color: #fff; box-shadow: 0 6px 14px -6px rgba(14, 159, 110, 0.55); }
.brand-tile.sm { width: 22px; height: 22px; border-radius: 7px; }
.brand-tile svg { width: 15px; height: 15px; }
.brand-tile.sm svg { width: 12px; height: 12px; }
.brand-name { font-size: 18px; letter-spacing: -0.02em; }

/* reveal states (GSAP animates these in) */
.reveal-up { opacity: 0; transform: translateY(34px); }
.no-anim .reveal-up { opacity: 1 !important; transform: none !important; }
.no-anim .big-statement .reveal-line { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-up, .big-statement .reveal-line { opacity: 1 !important; transform: none !important; }
  .hero-title .word, .hero .eyebrow, .hero-sub, .hero-actions { animation: none !important; opacity: 1 !important; transform: none !important; }
  .marquee-track, .hero-title .grad { animation: none !important; }
  .mock { animation: none !important; opacity: 1 !important; }
  .scroll-nudge-inner, .scroll-nudge-chev, .edge-wave { animation: none !important; }
}
