/* ==========================================================================
   Axonforge — Robot Hardware Industrialization Platform
   Shared stylesheet · bright + minimal
   ========================================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f8fc;
  --bg-tint:   #eef3ff;
  --ink:       #0d1b2a;
  --ink-soft:  #47566b;
  --ink-faint: #7c8aa0;
  --line:      #e6ebf3;
  --line-soft: #eef1f7;
  --brand:     #2f6bff;
  --brand-dk:  #1d4ed8;
  --brand-tint:#dbe6ff;
  --accent:    #14c8a0;   /* fresh mint, used sparingly */
  --amber:     #ffb020;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(13,27,42,.04), 0 8px 30px rgba(13,27,42,.06);
  --shadow-lg: 0 20px 60px rgba(29,78,216,.14);
  --maxw:      1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: none; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--brand-dk); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(47,107,255,.28); }
.btn-primary:hover { background: var(--brand-dk); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dk); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Section scaffolding ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--bg-tint); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(47,107,255,.14) 0%, rgba(47,107,255,0) 60%),
    radial-gradient(50% 50% at 8% 90%, rgba(20,200,160,.10) 0%, rgba(20,200,160,0) 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.25rem; max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--ink-faint); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-size: .85rem;
  font-weight: 600; color: var(--ink-soft); margin-bottom: 24px; box-shadow: var(--shadow);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Hero visual — the control tower diagram */
.tower {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-lg);
}
.tower-row { display: flex; gap: 12px; }
.tower-node {
  flex: 1; background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 12px 10px; text-align: center;
  font-size: .78rem; font-weight: 600; color: var(--ink-soft);
}
.tower-core {
  margin: 12px 0; background: linear-gradient(135deg, var(--brand) 0%, #5b87ff 100%);
  color: #fff; border-radius: var(--radius-sm); padding: 18px; text-align: center;
  box-shadow: 0 10px 24px rgba(47,107,255,.3);
}
.tower-core .t { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.tower-core .b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.tower-arrow { text-align: center; color: var(--brand); font-weight: 700; line-height: 1; margin: 2px 0; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-tint); }
.card h3 { color: var(--ink); }
.card p { margin-bottom: 0; font-size: .96rem; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--bg-tint); color: var(--brand-dk);
  font-size: 1.25rem; font-weight: 800;
}
.card.accent-top { border-top: 3px solid var(--brand); }

.stat { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat + .stat-label { color: var(--ink-faint); font-size: .92rem; margin-top: 8px; }

/* ---------- Contrast / vs list ---------- */
.vs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.vs > div { padding: 12px 22px; border-bottom: 1px solid var(--line-soft); font-size: .96rem; }
.vs .vs-head { font-weight: 700; background: var(--bg-soft); color: var(--ink); }
.vs .is-not { color: var(--ink-faint); }
.vs .is-not::before { content: "✕ "; color: #d15b5b; font-weight: 700; }
.vs .becomes { color: var(--ink); font-weight: 500; }
.vs .becomes::before { content: "→ "; color: var(--accent); font-weight: 800; }
.vs > div:nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .94rem; min-width: 520px; }
thead th {
  background: var(--bg-soft); text-align: left; padding: 14px 18px;
  font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfe; }
td .price { font-weight: 700; color: var(--brand-dk); white-space: nowrap; }
.col-strong td:first-child { font-weight: 600; color: var(--ink); }
.agg { font-weight: 800; color: var(--brand-dk); }

/* ---------- Flywheel ---------- */
.flywheel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.flywheel .card { border-left: 3px solid var(--accent); }
.flywheel .card.blue { border-left-color: var(--brand); }
.cycle { list-style: none; margin: 14px 0 0; padding: 0; }
.cycle li { position: relative; padding: 6px 0 6px 26px; font-size: .94rem; color: var(--ink-soft); }
.cycle li::before { content: "↻"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.step .num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- Timeline / roadmap ---------- */
.timeline { display: grid; gap: 0; }
.phase {
  display: grid; grid-template-columns: 160px 1fr; gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.phase:first-child { border-top: 0; }
.phase .when { font-weight: 800; color: var(--brand-dk); }
.phase .when small { display: block; color: var(--ink-faint); font-weight: 500; font-size: .82rem; margin-top: 2px; }
.phase h3 { margin-bottom: 6px; }
.phase ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .94rem; }
.phase ul li { margin-bottom: 4px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #16264a 0%, #1d4ed8 100%); color: #fff; border-radius: 24px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dk); }
.cta-band .btn-primary:hover { background: #eaf0ff; color: var(--brand-dk); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Callout ---------- */
.callout {
  background: var(--bg-tint); border: 1px solid var(--brand-tint);
  border-left: 4px solid var(--brand); border-radius: var(--radius);
  padding: 24px 28px;
}
.callout h3 { color: var(--brand-dk); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,107,255,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .82rem; color: var(--ink-faint); margin-top: 4px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-tint); color: var(--brand-dk); font-weight: 600; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1b2a; color: #b9c4d6; padding: 56px 0 30px; }
.site-footer a { color: #cdd7e8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #8a99b3; font-size: .92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .93rem; margin-bottom: 9px; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8a99b3; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-faint); }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--brand-dk); letter-spacing: .02em; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flywheel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 24px; }
  .menu-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .vs .vs-head:nth-child(2) { display: none; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .form-card { padding: 24px; }
}
