/* ── Variables & Reset ─────────────────────────────────────────── */
:root {
  --navy:      #072d54;
  --navy-dark: #041e3a;
  --navy-mid:  #0d3f70;
  --orange:    #ff9000;
  --orange-dim:#cc7300;
  --white:     #ffffff;
  --grey:      #a8b8cc;
  --grey-dim:  #4a6080;
  --card-bg:   #0a2444;
  --border:    rgba(255,144,0,.18);
  --font:      'Inter', sans-serif;
  --mono:      'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy-dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility ────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.accent    { color: var(--orange); }
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}

/* ── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,30,58,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.logo { font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
  font-size: .88rem; font-weight: 500; color: var(--grey);
}
.nav-links a:hover { color: var(--white); }
.btn-outline {
  padding: 8px 20px; border: 1.5px solid var(--orange);
  border-radius: 6px; color: var(--orange); font-size: .85rem;
  font-weight: 600; transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--orange); color: var(--navy-dark); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--navy-dark);
  font-weight: 700; border-radius: 8px;
  padding: 12px 24px; font-size: .95rem;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #ffaa33; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--grey-dim); color: var(--grey);
  border-radius: 8px; padding: 12px 24px; font-size: .95rem;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,144,0,.08), transparent);
  text-align: center;
}
.tag {
  display: inline-block; background: rgba(255,144,0,.12);
  color: var(--orange); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.15; max-width: 760px;
  margin: 0 auto 20px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--grey); max-width: 540px;
  margin: 0 auto 40px;
}
.hero-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-proof {
  margin-top: 40px; font-size: .82rem; color: var(--grey-dim);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }

/* ── Story ──────────────────────────────────────────────────────── */
.story { padding: 80px 0; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.story-bg-icon {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: 380px; opacity: 0.07; pointer-events: none; user-select: none;
  border-radius: 50%;
}
.story > .container > h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; margin-bottom: 40px; }
.story-grid {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 700;
}
.story-word { color: var(--white); }
.word-big   { font-size: 1.4em; color: var(--orange); }
.word-dim   { color: var(--grey-dim); }
.story-op   { color: var(--grey-dim); font-weight: 400; font-size: .8em; }
.story-result { color: var(--orange); }

/* ── Systems ────────────────────────────────────────────────────── */
.systems { padding: 80px 0; border-top: 1px solid var(--border); }
.systems > .container > h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; margin-bottom: 48px; }
.systems-row {
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; padding-bottom: 8px;
}
.sys-card {
  flex: 1; min-width: 160px; padding: 28px 20px;
  border: 1px solid var(--border); border-right: none;
  background: var(--card-bg); transition: background .2s;
}
.sys-card:last-child { border-right: 1px solid var(--border); }
.sys-card:hover { background: var(--navy-mid); }
.sys-icon  { font-size: 1.8rem; margin-bottom: 12px; }
.sys-name  { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.sys-line  { font-size: .78rem; color: var(--grey); margin-bottom: 10px; }
.sys-arrow { font-size: .75rem; color: var(--orange); font-weight: 700; }
.sys-highlight { background: rgba(255,144,0,.08); border-color: rgba(255,144,0,.4); }

/* ── How it works ───────────────────────────────────────────────── */
.how { padding: 80px 0; border-top: 1px solid var(--border); }
.how > .container > h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; margin-bottom: 48px; }
.pipeline { display: flex; flex-direction: column; gap: 0; }
.pipe-step {
  display: flex; gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.pipe-step:last-child { border-bottom: none; }
.pipe-num {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,144,0,.15);
  border: 1.5px solid var(--orange); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
}
.pipe-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.pipe-desc  { font-size: .88rem; color: var(--grey); }

/* ── What it returns ────────────────────────────────────────────── */
.returns { padding: 80px 0; border-top: 1px solid var(--border); }
.returns > .container > h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; margin-bottom: 48px; }
.returns-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.ret-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px;
  transition: border-color .2s, transform .15s;
}
.ret-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.ret-icon { font-size: 1.5rem; margin-bottom: 12px; }
.ret-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.ret-card p  { font-size: .82rem; color: var(--grey); }

/* ── API Demo ───────────────────────────────────────────────────── */
.api-demo { padding: 80px 0; border-top: 1px solid var(--border); }
.api-demo > .container > h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; margin-bottom: 48px; }
.code-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.code-block {
  background: #020f1e; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.code-label {
  padding: 10px 16px; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey-dim); border-bottom: 1px solid var(--border);
}
.code-block pre {
  padding: 20px; font-family: var(--mono); font-size: .78rem;
  line-height: 1.7; overflow-x: auto; color: var(--grey);
}
.c-method { color: #7dd3fc; }
.c-key    { color: #a5f3fc; }
.c-str    { color: #86efac; }
.c-num    { color: var(--orange); }

/* ── Stats ──────────────────────────────────────────────────────── */
.stats {
  padding: 80px 0; border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--navy-dark), var(--navy));
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.stat { text-align: center; }
.stat-num {
  font-size: 3rem; font-weight: 900; color: var(--orange); line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: .88rem; color: var(--grey); }

/* ── For Who ────────────────────────────────────────────────────── */
.forwho { padding: 80px 0; border-top: 1px solid var(--border); }
.forwho > .container > h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; margin-bottom: 48px; }
.forwho-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.fw-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px 24px;
}
.fw-icon { font-size: 2rem; margin-bottom: 14px; }
.fw-card h3 { font-weight: 700; margin-bottom: 6px; }
.fw-card p  { font-size: .85rem; color: var(--grey); }

/* ── Movements ──────────────────────────────────────────────────── */
.movements {
  padding: 80px 0; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.movements > .container > h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; margin-bottom: 16px; }
.movements-sub {
  font-size: 1rem; color: var(--grey); max-width: 620px;
  margin-bottom: 48px; line-height: 1.7;
}
.movements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.mv-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  transition: border-color .2s, transform .15s;
}
.mv-card:hover { border-color: rgba(255,144,0,.5); transform: translateY(-2px); }
.mv-featured {
  border-color: rgba(255,144,0,.35);
  background: linear-gradient(135deg, rgba(255,144,0,.07), var(--card-bg));
}
.mv-icon { font-size: 1.8rem; margin-bottom: 12px; }
.mv-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; color: var(--white); }
.mv-card > p { font-size: .84rem; color: var(--grey); line-height: 1.65; margin-bottom: 16px; }
.mv-list {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.mv-list li {
  font-size: .78rem; color: var(--grey-dim);
  padding-left: 14px; position: relative;
}
.mv-list li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--orange); font-weight: 700;
}
.movements-cta {
  text-align: center; padding: 40px;
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,144,0,.04);
}
.movements-cta p {
  font-size: 1rem; color: var(--grey); margin-bottom: 24px;
}
@media (max-width: 900px) {
  .movements-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .movements-grid { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--navy-dark);
  padding: 64px 0 40px;
}
.footer-cta { text-align: center; margin-bottom: 48px; }
.footer-cta h2 { font-size: clamp(1.4rem,3vw,2rem); font-weight: 800; margin-bottom: 16px; }
.footer-cta p  { color: var(--grey); margin-bottom: 32px; }
.access-form { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.access-form input {
  padding: 12px 20px; border-radius: 8px;
  border: 1.5px solid var(--grey-dim); background: var(--card-bg);
  color: var(--white); font-size: .95rem; min-width: 260px;
  font-family: var(--font);
  outline: none; transition: border-color .2s;
}
.access-form input:focus { border-color: var(--orange); }
.access-form input::placeholder { color: var(--grey-dim); }
.form-note { font-size: .78rem; color: var(--grey-dim); margin-top: 12px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--grey-dim);
}
.footer-logo { font-weight: 800; color: var(--white); }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .code-cols  { grid-template-columns: 1fr; }
  .systems-row { gap: 12px; }
  .sys-card { min-width: 140px; border-right: 1px solid var(--border); }
  .hero { padding: 64px 0 48px; }
}
