/* Scales by DND — website. Dark, glowing green, glass. Fonts are self-hosted (no Google requests). */
@font-face { font-family: 'Inter'; src: url('../assets/fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../assets/fonts/SpaceGrotesk_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --bg: #070907;
  --bg-2: #0d110d;
  --panel: rgba(22, 28, 23, 0.55);
  --panel-solid: #121612;
  --line: rgba(190, 230, 140, 0.12);
  --line-strong: rgba(190, 230, 140, 0.24);
  --text: #eef0e8;
  --muted: #9aa597;
  --dim: #6c776a;
  --green: #88b727;
  --lime: #c7f25a;
  --amber: #e8a33d;
  --glow: 0 0 40px rgba(136, 183, 39, 0.35);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(136, 183, 39, 0.35); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #071006; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 14px 16px auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 10px 12px 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 13, 10, 0.55);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled { background: rgba(10, 13, 10, 0.8); border-color: var(--line-strong); }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  --mx: 50%; --my: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  color: #0a1206;
  background: radial-gradient(120px circle at var(--mx) var(--my), #e4ff9e, transparent 60%), linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 8px 30px rgba(136, 183, 39, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { box-shadow: 0 10px 40px rgba(136, 183, 39, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.04; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.grad {
  background: linear-gradient(100deg, #f4ffd8 0%, var(--lime) 35%, var(--green) 70%, #e9ffc0 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
#scales { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 50% 48%, rgba(7, 9, 7, 0.9), rgba(7, 9, 7, 0.55) 55%, rgba(7, 9, 7, 0.2) 85%),
    linear-gradient(to bottom, rgba(7, 9, 7, 0.2), transparent 30%, transparent 70%, var(--bg));
}
.hero-inner { text-align: center; padding: 120px 24px 80px; max-width: 900px; }
.hero h1 { margin: 22px 0 22px; }
.hero .lede { margin: 0 auto 34px; text-align: center; }
.ai-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 13px; color: var(--text); background: rgba(16, 21, 16, 0.7); border: 1px solid transparent;
  background-clip: padding-box;
}
.ai-chip::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), var(--green), #3d5a10, var(--lime), #3d5a10, var(--green));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 22px; height: 36px; border: 1.5px solid var(--line-strong); border-radius: 12px; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Waitlist form ---------- */
.waitlist { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.field {
  display: flex; align-items: center; gap: 6px; width: min(480px, 100%); padding: 6px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(12, 15, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field:focus-within { border-color: rgba(199, 242, 90, 0.55); box-shadow: 0 0 0 4px rgba(136, 183, 39, 0.14), 0 20px 60px rgba(0, 0, 0, 0.45); }
.field input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; outline: 0; background: transparent;
  color: var(--text); font: 400 16px var(--body);
}
.field input::placeholder { color: var(--dim); }
.form-note { font-size: 13px; color: var(--dim); margin: 0; min-height: 20px; }
.form-note.ok { color: var(--lime); }
.form-note.err { color: var(--amber); }
.ts { min-height: 0; }

/* ---------- Feature sections ---------- */
.feature { padding: clamp(90px, 14vw, 170px) 0; }
.feature-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.feature.flip .feature-grid { grid-template-columns: 0.95fr 1.05fr; }
.feature.flip .copy { order: 2; }
.copy h2 { margin: 18px 0 20px; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; color: var(--muted); }
.points li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: linear-gradient(135deg, var(--lime), var(--green)); box-shadow: 0 0 14px rgba(136, 183, 39, 0.5); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3 3 7-7' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.points strong { color: var(--text); font-weight: 600; }

/* Stage: phone + floating glass cards */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; perspective: 1400px; }
.stage::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(136, 183, 39, 0.22), transparent 65%); filter: blur(20px); }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #2a312a, #0c0f0c 40%, #1b201b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 80px rgba(136, 183, 39, 0.12);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #121512; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 30%); pointer-events: none; }
.phone .island { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.screen-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--dim); font-size: 13px; background: radial-gradient(circle at 50% 30%, #1d241d, #101310); }

.glass {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(199, 242, 90, 0.07), transparent 45%), var(--panel);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.float { position: absolute; padding: 14px 16px; max-width: 260px; font-size: 14px; z-index: 3; }
.float small { display: block; color: var(--dim); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.f-tl { top: 6%; left: -2%; } .f-br { bottom: 8%; right: -4%; } .f-bl { bottom: 14%; left: -6%; } .f-tr { top: 10%; right: -2%; }

/* AI chat bubbles */
.chat { display: grid; gap: 10px; width: 300px; padding: 16px; }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bubble.me { justify-self: end; background: rgba(136, 183, 39, 0.18); border: 1px solid rgba(136, 183, 39, 0.3); border-bottom-right-radius: 6px; }
.bubble.ai { justify-self: start; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.ai b { color: var(--lime); font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* Voice */
.wave { display: flex; align-items: center; gap: 4px; height: 40px; }
.wave span { width: 4px; border-radius: 3px; background: linear-gradient(var(--lime), var(--green)); animation: wave 1.1s var(--ease) infinite; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.said { font-family: var(--display); font-size: 17px; }
.said .caret { display: inline-block; width: 2px; height: 1em; background: var(--lime); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.logged { display: flex; align-items: center; gap: 10px; }
.logged .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(136, 183, 39, 0.2); color: var(--lime); font-size: 14px; }

/* Breeder odds */
.odds { width: 300px; padding: 18px; display: grid; gap: 12px; }
.odds h4 { margin: 0 0 4px; font: 600 14px var(--body); color: var(--muted); }
.odd { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.odd .bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.odd .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--lime)); box-shadow: 0 0 12px rgba(199, 242, 90, 0.6); transition: width 1.4s var(--ease); }
.in .odd .bar i { width: var(--w); }
.warn { font-size: 12px; color: var(--amber); }
.ring { position: relative; width: 74px; height: 74px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: rgba(255, 255, 255, 0.07); }
.ring .prog { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 201; transition: stroke-dashoffset 1.8s var(--ease); }
.in .ring .prog { stroke-dashoffset: 54; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 18px var(--display); }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.card { padding: 26px 22px; min-height: 220px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.5s var(--ease), border-color 0.4s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(136, 183, 39, 0.12); border: 1px solid rgba(136, 183, 39, 0.25); color: var(--lime); }
.icon svg { width: 22px; height: 22px; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* Trust strip */
.trust { padding: 40px 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(136, 183, 39, 0.05), transparent); }
.trust p { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.trust strong { color: var(--text); }

/* Final CTA */
.cta { padding: clamp(110px, 16vw, 200px) 0; text-align: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(136, 183, 39, 0.16), transparent 60%); pointer-events: none; }
.cta h2 { margin: 18px 0 18px; }
.cta .lede { margin: 0 auto 34px; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Legal / support pages */
.doc { padding: 140px 0 90px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin: 16px 0 10px; }
.doc .updated { color: var(--dim); font-size: 14px; margin: 0 0 40px; }
.doc section { padding: 22px 0; border-top: 1px solid var(--line); }
.doc h2 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.01em; }
.doc p { margin: 0; color: var(--muted); }
.doc p + p { margin-top: 10px; }
.doc a { color: var(--lime); }

/* Responsive */
@media (max-width: 960px) {
  .feature-grid, .feature.flip .feature-grid { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .stage { min-height: 560px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .field { flex-direction: column; border-radius: 22px; }
  .field input { width: 100%; text-align: center; }
  .field .btn { width: 100%; }
  .phone { width: 240px; }
  .float { max-width: 200px; font-size: 13px; }
  .f-tl, .f-bl { left: 0; } .f-br, .f-tr { right: 0; }
  .chat, .odds { width: 260px; }
  .stage { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
