:root {
  --green: #4cbb4c;
  --green-dim: #3a9440;
  --black: #060706;
  --black-2: #0d0f0d;
  --white: #ffffff;
  --gray: #9a9a9a;
  --gray-dim: #6b6b6b;
  --border: #1e211e;
  --max-w: 1120px;
  --radius: 12px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #06120a;
}

.btn-primary:hover {
  background: #5fd25f;
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 6, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img {
  height: 26px;
  width: auto;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--gray-dim);
  cursor: pointer;
  padding: 6px 8px;
  font: inherit;
  font-weight: 700;
}

.lang-toggle button.active {
  color: var(--green);
}

.lang-toggle .sep {
  color: var(--gray-dim);
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

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

.hero-copy {
  padding-top: 6px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 18px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0 0 20px;
}

.hero-line1 {
  display: block;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-line2 {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.25;
  font-weight: 700;
  color: #cfcfcf;
  margin-top: 16px;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
  color: var(--green);
}

.hero h1 .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 6px;
  background: var(--green);
  border-radius: 3px;
  opacity: 0.85;
}

.hero .sub {
  font-size: 1.1rem;
  color: #d8d8d8;
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero .cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero .cta-note {
  color: var(--gray);
  font-size: 0.9rem;
  max-width: 40ch;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--black-2), var(--black));
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.terminal-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}

.terminal-bar .dot.dot-green {
  background: var(--green);
}

.terminal-label {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--gray-dim);
  letter-spacing: 0.04em;
}

.terminal-mark {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--green);
  opacity: 0.7;
}

.terminal-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ticker-row {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  flex: 0 0 auto;
}

.ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  width: max-content;
  padding-left: 18px;
  animation: tickerScroll 24s linear infinite;
}

.ticker-track span {
  font-size: 0.8rem;
  color: #cfcfcf;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.ticker-track b {
  color: var(--white);
  font-weight: 700;
}

.ticker-track em {
  font-style: normal;
  font-weight: 700;
}

.ticker-track em.up {
  color: var(--green);
}

.ticker-track em.down {
  color: #8a8a8a;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.chart-area {
  position: relative;
  flex: 1;
  padding: 22px 22px 22px;
  display: flex;
  align-items: flex-end;
}

.hero-chart {
  width: 100%;
  height: auto;
}

.chart-line {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: drawLine 1.8s ease-out 0.2s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.chart-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(76, 187, 76, 0.14);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  animation: badgePulse 2.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .chart-badge {
    animation: none !important;
  }
  .chart-line {
    stroke-dashoffset: 0;
    animation: none !important;
  }
}

/* Section shell */
section {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

/* Ambient background motif (trading icons drifting slowly).
   Only added to sections that opt in via .has-motif, kept out of the
   countdown and signup sections on purpose. */
.bg-motif {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.motif-icon {
  position: absolute;
  color: rgba(76, 187, 76, 0.14);
}

.motif-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.motif-icon.glyph,
.hero-icon.glyph {
  font-weight: 800;
  line-height: 1;
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(16px, -12px) rotate(3deg); }
}

@keyframes driftB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-14px, 10px) rotate(-2deg); }
}

@keyframes driftC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, 14px); }
}

.motif-a { animation: driftA 32s ease-in-out infinite; }
.motif-b { animation: driftB 36s ease-in-out infinite; }
.motif-c { animation: driftC 40s ease-in-out infinite; }
.motif-d { animation: driftB 34s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
  .motif-icon {
    animation: none !important;
  }
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 10px;
}

.section-head {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--gray);
  max-width: 60ch;
  margin: 0 0 40px;
}

/* Countdown */
.countdown-section {
  background: var(--black-2);
  text-align: center;
}

.countdown-section .section-label {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 5.5vw, 53px);
  margin: 24px 0 28px;
  flex-wrap: wrap;
}

.countdown-unit {
  min-width: 110px;
}

.countdown-unit .num {
  font-size: clamp(2.9rem, 7.9vw, 4.73rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  line-height: 1;
}

.countdown-unit.days .num {
  color: var(--green);
}

.countdown-unit .unit-label {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-dim);
}

.countdown-date {
  font-weight: 800;
  font-size: 1.5rem;
  margin: 8px 0 20px;
}

.countdown-note {
  color: var(--gray);
  max-width: 56ch;
  margin: 0 auto;
}

/* Value prop columns */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--black-2);
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(76, 187, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green);
}

.value-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.value-card p {
  color: #cfcfcf;
  margin: 0;
  font-size: 0.96rem;
}

/* Founders */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.founder-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.founder-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-dim);
}

.founder-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--black-2);
  border: 1.5px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--green);
}

.founder-card .name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

.founder-card .role {
  color: var(--green);
  font-size: 0.88rem;
  margin: 3px 0 12px;
  font-weight: 600;
}

.founder-card .credibility {
  color: var(--gray);
  font-size: 0.85rem;
  margin: 0;
}

.founders-note {
  color: #cfcfcf;
  max-width: 74ch;
  margin: 36px auto 0;
}

/* Differentiators */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.diff-item {
  display: flex;
  gap: 16px;
}

.diff-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1.5px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.diff-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.diff-item p {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.95rem;
}

.diff-extra {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: #d8d8d8;
}

.diff-extra p {
  margin: 0 0 10px;
}

.diff-extra strong {
  color: var(--white);
}

/* Signup */
.signup-section {
  background: var(--black-2);
}

.signup-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.signup-form {
  margin-top: 32px;
  text-align: left;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  min-height: 44px;
}

.field input:focus {
  outline: none;
  border-color: var(--green);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #dcdcdc;
}

.radio-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.field-error {
  color: #ff8a8a;
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}

.field.has-error input {
  border-color: #ff8a8a;
}

.field.has-error .field-error {
  display: block;
}

.form-error {
  display: none;
  color: #ff8a8a;
  font-size: 0.85rem;
  margin-top: 14px;
  text-align: center;
}

.form-error.show {
  display: block;
}

.btn.is-loading {
  opacity: 0.7;
  cursor: default;
}

.form-disclaimer {
  color: var(--gray-dim);
  font-size: 0.8rem;
  margin-top: 16px;
  text-align: center;
}

.form-disclaimer a {
  color: var(--gray);
  text-decoration: underline;
}

.confirmation {
  display: none;
  border: 1px solid var(--green-dim);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
  background: rgba(76, 187, 76, 0.08);
}

.confirmation.show {
  display: block;
}

.confirmation p {
  margin: 0;
  color: #e8ffe8;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 48px 0 28px;
  border-bottom: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-logo img {
  height: 22px;
  margin-bottom: 14px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-dim);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: #b7b7b7;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--green);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

.social-icons a:hover {
  border-color: var(--green);
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--gray-dim);
  font-size: 0.8rem;
}

.footer-bottom .legal-name {
  margin: 0 0 10px;
}

.risk-disclosure {
  margin: 0;
  line-height: 1.6;
  max-width: 90ch;
}

.draft-flag {
  color: #d8b25a;
}

/* Mobile */
@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .hero .cta-row {
    width: 100%;
  }

  .hero .btn-primary {
    width: 100%;
  }

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

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

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  section {
    padding: 44px 0;
  }

  .countdown-grid {
    gap: 14px;
  }

  .countdown-unit {
    min-width: 68px;
  }
}

/* Scroll reveal animations (progressive enhancement, gated by html.js) */
html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.18s cubic-bezier(0.16, 0.8, 0.24, 1),
    transform 1.18s cubic-bezier(0.16, 0.8, 0.24, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal .value-card,
html.js .reveal .founder-card,
html.js .reveal .diff-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.94s ease, transform 0.94s ease;
}

html.js .reveal.is-visible .value-card,
html.js .reveal.is-visible .founder-card,
html.js .reveal.is-visible .diff-item {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal.is-visible .value-card:nth-child(1),
html.js .reveal.is-visible .founder-card:nth-child(1),
html.js .reveal.is-visible .diff-item:nth-child(1) {
  transition-delay: 0.085s;
}

html.js .reveal.is-visible .value-card:nth-child(2),
html.js .reveal.is-visible .founder-card:nth-child(2),
html.js .reveal.is-visible .diff-item:nth-child(2) {
  transition-delay: 0.25s;
}

html.js .reveal.is-visible .value-card:nth-child(3),
html.js .reveal.is-visible .founder-card:nth-child(3),
html.js .reveal.is-visible .diff-item:nth-child(3) {
  transition-delay: 0.42s;
}

html.js .reveal.is-visible .founder-card:nth-child(4),
html.js .reveal.is-visible .diff-item:nth-child(4) {
  transition-delay: 0.59s;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal .value-card,
  html.js .reveal .founder-card,
  html.js .reveal .diff-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Hero: staged entrance on load */
html.js .hero-eyebrow {
  animation: heroFadeUp 0.91s cubic-bezier(0.16, 0.8, 0.24, 1) 0.065s both;
}

html.js .hero h1 {
  animation: heroFadeUp 0.91s cubic-bezier(0.16, 0.8, 0.24, 1) 0.21s both;
}

html.js .hero .sub {
  animation: heroFadeUp 0.91s cubic-bezier(0.16, 0.8, 0.24, 1) 0.36s both;
}

html.js .hero .cta-row {
  animation: heroFadeUp 0.91s cubic-bezier(0.16, 0.8, 0.24, 1) 0.52s both;
}

html.js .hero-visual {
  animation: heroVisualIn 1.17s cubic-bezier(0.16, 0.8, 0.24, 1) 0.26s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisualIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero: fades/lifts as you scroll past it (JS sets opacity + transform
   inline on .hero-copy / .hero-visual once past the load-in animation) */
.hero-copy,
.hero-visual {
  will-change: transform, opacity;
}

/* Section headlines: word-by-word clip reveal, staggered via inline
   transition-delay set in js/reveal.js */
.section-head .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.section-head .word-inner {
  display: inline-block;
}

html.js .reveal .section-head .word-inner {
  transform: translateY(115%);
  transition: transform 1.1s cubic-bezier(0.16, 0.8, 0.24, 1);
}

html.js .reveal.is-visible .section-head .word-inner {
  transform: translateY(0);
}

/* Hero eyebrow: rotating micro-phrase next to "PRE-LAUNCH" */
.eyebrow-sep {
  color: var(--gray-dim);
  font-weight: 400;
}

.eyebrow-rotator {
  display: inline-block;
  color: var(--gray);
  transition: opacity 0.35s ease;
}

/* Hero terminal card: subtle cursor tilt. The perspective() is included
   directly in the JS-generated transform string (js/reveal.js) since it
   self-tilts rather than tilting via a parent's perspective context. */

@media (prefers-reduced-motion: reduce) {
  html.js .hero-eyebrow,
  html.js .hero h1,
  html.js .hero .sub,
  html.js .hero .cta-row,
  html.js .hero-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html.js .reveal .section-head .word-inner {
    transform: none !important;
    transition: none !important;
  }
  .eyebrow-rotator {
    transition: none !important;
  }
}
