/* ============================================================
   softsparx — styles
   Brand: spark yellow #ffd75b on slate navy #3e4c65
   Edit the variables below to retheme the whole site.
   ============================================================ */
:root {
  --bg: #0b111c;
  --bg-alt: #0f1726;
  --surface: #141d2e;
  --surface-2: #1a2538;
  --brand: #3e4c65;          /* logo navy */
  --line: #25324a;
  --text: #e8edf6;
  --muted: #9aa8c0;
  --accent: #ffd75b;         /* logo yellow */
  --accent-ink: #1a1405;
  --ok: #4ade80;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  padding: 13px 24px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255, 215, 91, .55); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--brand); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--sm { padding: 8px 16px; font-size: 15px; }
.btn--lg { padding: 16px 30px; font-size: 18px; font-family: var(--mono); font-weight: 500; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 17, 28, .72); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.is-scrolled { border-color: var(--line); background: rgba(11, 17, 28, .9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; color: var(--accent); }
.brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero::before {            /* blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero::after {             /* soft glow */
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(255, 215, 91, .13), transparent 62%); pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 215, 91, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 215, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 215, 91, 0); } }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; }
.hl { color: var(--accent); }
.lead { margin-top: 24px; font-size: 19px; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__facts { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero__facts strong { display: block; font-size: 15px; }
.hero__facts span { font-size: 14px; color: var(--muted); }

/* ---------- Parity visual ---------- */
.parity { background: linear-gradient(180deg, var(--surface), #101828); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; }
.parity__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.parity__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.parity__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.parity__heads { display: grid; grid-template-columns: 1fr 40px 1fr; padding: 18px 20px 8px; font-size: 12px; letter-spacing: .12em; color: var(--text); }
.parity__heads small { display: block; font-size: 11px; letter-spacing: .04em; color: var(--muted); text-transform: none; margin-top: 2px; }
.parity__heads span:last-child { text-align: right; }
.parity__mid { text-align: center; color: var(--brand); align-self: center; }
.checks { list-style: none; margin: 0; padding: 4px 20px 12px; font-size: 13px; }
.checks li { position: relative; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; padding: 13px 0; border-top: 1px dashed var(--line); }
.checks li:first-child { border-top: 0; }
.checks em { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--muted); background: #131c2c; padding: 0 8px; letter-spacing: .04em; white-space: nowrap; }
.checks li:first-child em { top: -2px; }
.checks .v { color: var(--text); opacity: .35; transition: opacity .4s, color .4s; }
.checks .v:last-child { text-align: right; }
.checks .m { text-align: center; color: var(--muted); opacity: .4; transition: all .3s; }
.checks li.run .v { opacity: .7; }
.checks li.run .m::before { content: "…"; }
.checks li.ok .v { opacity: 1; }
.checks li.ok .m { color: var(--ok); opacity: 1; font-weight: 600; }
.checks li.ok .m::before { content: "✓"; }
.parity__foot { display: flex; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .02); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status.done { color: var(--ok); }
.status.done::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; }
.sub { margin-top: 18px; color: var(--muted); font-size: 18px; }
.note { color: var(--muted); font-size: 15px; margin-top: 18px; }
.note a { color: var(--accent); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, border-color .25s, background .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--brand); background: var(--surface-2); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 215, 91, .1); border: 1px solid rgba(255, 215, 91, .25); margin-bottom: 22px; }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps li { position: relative; padding: 0 22px 0 0; }
.steps li::before { content: ""; position: absolute; top: 15px; left: 46px; right: 8px; height: 1px; background: linear-gradient(90deg, var(--brand), transparent); }
.steps li:last-child::before { display: none; }
.steps__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; margin-bottom: 22px; position: relative; z-index: 1; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Platforms */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags span { font-family: var(--mono); font-size: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); transition: border-color .2s, color .2s, transform .2s; }
.tags span:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.route { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 14px; }
.route__node { padding: 10px 16px; border: 1px solid var(--brand); border-radius: 10px; background: var(--surface); }
.route__node--accent { border-color: var(--accent); color: var(--accent); }
.route__line { position: relative; flex: 0 0 90px; height: 2px; background: var(--brand); overflow: hidden; border-radius: 2px; }
.route__line i { position: absolute; top: 0; bottom: 0; width: 30px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: flow 1.8s linear infinite; }
@keyframes flow { from { left: -30px; } to { left: 100%; } }

/* Links */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.link { position: relative; display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, border-color .25s; }
.link:hover { transform: translateY(-4px); border-color: var(--accent); }
.link__type { font-size: 11px; letter-spacing: .12em; color: var(--accent); }
.link h3 { font-size: 19px; margin: 14px 0 8px; }
.link p { color: var(--muted); font-size: 15px; padding-bottom: 28px; }
.link__go { position: absolute; right: 22px; bottom: 18px; font-size: 22px; color: var(--muted); transition: transform .2s, color .2s; }
.link:hover .link__go { color: var(--accent); transform: translate(3px, -3px); }

/* CTA */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 56px; border-radius: 20px; border: 1px solid var(--brand);
  background: radial-gradient(circle at 100% 0%, rgba(255, 215, 91, .12), transparent 55%), linear-gradient(135deg, #18233a, #121b2d); }
.cta .sub { max-width: 520px; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex-shrink: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 18px; }
.footer .brand img { height: 24px; }
.footer p { color: var(--muted); font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps li { padding-right: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .steps li::before { display: none; }
  .steps__n { grid-row: span 2; margin: 0; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px; background: rgba(11, 17, 28, .98); border-bottom: 1px solid var(--line); display: none; }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; padding: 13px; }
  .hero { padding: 56px 0 64px; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 68px 0; }
  .cards, .links { grid-template-columns: 1fr; }
  .route__line { flex-basis: 50px; }
  .checks { font-size: 11.5px; }
  .btn--lg { font-size: 15px; padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
