/* ==========================================================
   Traider Software Solutions — stylesheet
   Brand colours live in :root below. Change them there.
   ========================================================== */

:root {
  /* Surfaces */
  --bg: #060d18;
  --bg-2: #081427;
  --surface: #0c1a2e;
  --surface-2: #10223b;
  --line: rgba(150, 180, 215, .12);
  --line-strong: rgba(150, 180, 215, .22);

  /* Text */
  --text: #eef4fb;
  --muted: #9aaec4;
  --dim: #6a7f97;

  /* Brand (from the logo) */
  --brand: #1e9bf0;
  --brand-hi: #5cbaf7;
  --brand-deep: #1769d2;
  --brand-glow: rgba(30, 155, 240, .35);
  --up: #34d399;
  --ink: #0b1a33;

  /* Type */
  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1200px;
  --radius: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--brand); color: #031220; }

:focus-visible {
  outline: 2px solid var(--brand-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #031220; font-weight: 700;
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }

section { padding: 120px 0; position: relative; }
section.tight { padding: 80px 0; }
section.flush-top { padding-top: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }

h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.03em; margin-bottom: 18px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -.01em; }

p { color: var(--muted); }
.lead { font-size: 1.15rem; max-width: 620px; }

.grad {
  background: linear-gradient(100deg, var(--brand-hi) 0%, var(--brand) 45%, #7fd0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand-hi);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7;
}

.heading { max-width: 680px; margin-bottom: 56px; }
.heading.center { margin-inline: auto; text-align: center; }
.heading.center .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.heading-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  margin-bottom: 56px; flex-wrap: wrap;
}
.heading-row .heading { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 22px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad);
  border-radius: 10px;
  font-weight: 650; font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  color: #031220;
  background: linear-gradient(180deg, #3aabf5, var(--brand));
  box-shadow: 0 8px 30px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(30,155,240,.55), inset 0 1px 0 rgba(255,255,255,.35); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-hi); }
.btn-sm { --pad: 10px 16px; font-size: .88rem; border-radius: 9px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-hi); font-weight: 650;
}
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 13, 24, .78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
  position: relative;
  color: var(--muted); font-size: .93rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--brand);
}
.nav-links .btn { margin-left: 12px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  color: var(--text); cursor: pointer;
  place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), background .2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Backgrounds ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
.glow {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
  filter: blur(80px);
}
.glow.a { width: 520px; height: 520px; right: -120px; top: 60px; background: rgba(30,155,240,.22); }
.glow.b { width: 420px; height: 420px; left: -180px; top: 320px; background: rgba(23,105,210,.18); }

/* ---------- Home hero ---------- */
.hero {
  padding: calc(var(--header-h) + 90px) 0 110px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-strong); border-radius: 99px;
  background: rgba(16, 34, 59, .6);
  font-size: .84rem; color: var(--muted);
  margin-bottom: 28px;
}
.pill b {
  font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .08em;
  color: #031220; background: var(--brand); padding: 3px 8px; border-radius: 99px;
}

.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.assurances {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.assurances li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 17px; height: 17px; color: var(--up); flex: none; }

/* Terminal visual */
.terminal-wrap { position: relative; }
.terminal {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 37, 64, .92), rgba(10, 22, 40, .95));
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(30,155,240,.06), 0 0 80px -20px rgba(30,155,240,.35);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
.terminal-wrap:hover .terminal { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .74rem; color: var(--dim);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3c55; }
.term-bar i:nth-child(1) { background: #ff5f57; opacity: .8; }
.term-bar i:nth-child(2) { background: #febc2e; opacity: .8; }
.term-bar i:nth-child(3) { background: #28c840; opacity: .8; }
.term-bar span { margin-left: 10px; }
.term-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--up); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }

.term-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 18px 20px 6px;
}
.term-head small { display: block; font-family: var(--font-mono); font-size: .7rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.term-head strong { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.02em; }
.delta {
  font-family: var(--font-mono); font-size: .8rem; color: var(--up);
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25);
  padding: 4px 9px; border-radius: 6px;
}
.chart { padding: 4px 8px 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: rgba(150,180,215,.08); stroke-width: 1; }
.chart .line { fill: none; stroke: url(#lineGrad); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(30,155,240,.6)); }
.chart .area { fill: url(#areaGrad); }
.chart .head { fill: #fff; stroke: var(--brand); stroke-width: 3; }
.chart .head-ring { fill: none; stroke: var(--brand); stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: ring 2s infinite var(--ease); }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.pipeline { padding: 10px 14px 16px; display: grid; gap: 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.pipe {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem;
  padding: 8px 8px; border-radius: 8px;
  color: var(--muted);
}
.pipe:nth-child(odd) { background: rgba(255,255,255,.02); }
.pipe svg { width: 16px; height: 16px; }
.pipe .ok { color: var(--up); }
.pipe .run { color: var(--brand-hi); }
.pipe em { font-style: normal; color: var(--dim); }
.pipe .bar { grid-column: 2 / 4; height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.pipe .bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--brand-deep), var(--brand-hi)); border-radius: 3px; animation: load 3.2s var(--ease) infinite; }
@keyframes load { 0% { width: 8%; } 70% { width: 100%; } 100% { width: 100%; opacity: 0; } }

.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 26, 46, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.6);
  font-size: .82rem; color: var(--muted);
  animation: bob 6s ease-in-out infinite;
}
.float-chip strong { display: block; color: var(--text); font-size: .9rem; }
.float-chip .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(30,155,240,.14); color: var(--brand-hi); }
.float-chip .ic svg { width: 18px; height: 18px; }
.float-chip.one { left: -38px; bottom: 58px; }
.float-chip.two { right: -22px; top: -22px; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(8, 20, 39, .6);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee-label {
  text-align: center; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px;
}
.marquee-track {
  display: flex; gap: 32px; width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee-viewport { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: #6f86a1; white-space: nowrap; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 32px;
}
.marquee-track span::after { content: "◆"; font-size: .5rem; color: var(--brand); opacity: .6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

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

.card {
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(30,155,240,.14), transparent 45%);
  transition: opacity .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(30,155,240,.45); box-shadow: 0 24px 60px -24px rgba(0,0,0,.7); }
.card:hover::before { opacity: 1; }
.card p { font-size: .95rem; }
.card .text-link { margin-top: auto; padding-top: 22px; font-size: .9rem; }

.icon {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  color: var(--brand-hi);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(30,155,240,.2), rgba(30,155,240,.05));
  border: 1px solid rgba(30,155,240,.3);
  margin-bottom: 22px;
}
.icon svg { width: 24px; height: 24px; }

.ticks { list-style: none; display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.ticks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  background: rgba(30,155,240,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235cbaf7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.card-num {
  position: absolute; top: 26px; right: 28px;
  font-family: var(--font-mono); font-size: .75rem; color: var(--dim);
}

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.top { align-items: start; }
.split p + p { margin-top: 16px; }

.checks { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: center; color: var(--text); }
.checks svg { width: 22px; height: 22px; color: var(--brand-hi); flex: none; padding: 4px; border-radius: 6px; background: rgba(30,155,240,.14); }

/* Trading-grade band */
.band {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(30,155,240,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.pillars { display: grid; gap: 14px; }
.pillar {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(12, 26, 46, .6);
  transition: border-color .3s, background .3s;
}
.pillar:hover { border-color: rgba(30,155,240,.4); background: rgba(16, 34, 59, .8); }
.pillar .icon { margin: 0; }
.pillar h3 { margin-bottom: 4px; }
.pillar p { font-size: .94rem; }

/* ---------- Stats ---------- */
.stats { padding: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}
.stat { padding: 40px 28px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1;
  margin-bottom: 10px;
}
.stat strong em { font-style: normal; color: var(--brand); }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.industry-grid .card { grid-column: span 2; min-height: 230px; }
.industry-grid .card:nth-child(4), .industry-grid .card:nth-child(5) { grid-column: span 3; }
.industry-grid .card h3 { font-size: 1.3rem; }

.industry-detail {
  display: grid; grid-template-columns: 90px 1fr 1.25fr; gap: 40px;
  padding: 56px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.industry-detail:first-child { border-top: 0; padding-top: 0; }
.industry-detail .num { font-family: var(--font-mono); color: var(--dim); font-size: .85rem; padding-top: 14px; }
.industry-detail h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.02em; margin-top: 4px; }
.industry-detail .icon { width: 56px; height: 56px; }
.industry-detail p { font-size: 1.06rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-size: .82rem; padding: 7px 13px;
  border: 1px solid var(--line-strong); border-radius: 99px;
  color: var(--text); background: rgba(255,255,255,.02);
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--brand); color: var(--brand-hi); }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px;
  background: var(--line-strong);
}
.process::after {
  content: ""; position: absolute; left: 0; top: 23px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-hi));
  box-shadow: 0 0 12px var(--brand);
  transition: width 1.8s var(--ease);
}
.process.in::after { width: 100%; }
.step { position: relative; }
.step-dot {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500;
  color: var(--brand-hi);
  background: var(--bg);
  border: 1px solid rgba(30,155,240,.5);
  box-shadow: 0 0 0 6px var(--bg);
  margin-bottom: 24px;
}
.step p { font-size: .93rem; }

/* ---------- Engagement ---------- */
.plan { padding: 34px; }
.plan .eyebrow { margin-bottom: 12px; }
.plan h3 { font-size: 1.45rem; }
.plan.featured { border-color: rgba(30,155,240,.5); background: linear-gradient(160deg, #123055, var(--surface) 70%); }
.plan.featured::after {
  content: "Most common"; position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: #031220; background: var(--brand); padding: 4px 9px; border-radius: 99px;
}

/* ---------- Light band (dark logo) ---------- */
.light-band { background: #f3f6fb; color: var(--ink); }
.light-band p { color: #4a5a70; }
.light-band h2, .light-band h3 { color: var(--ink); }
.light-band .eyebrow { color: var(--brand-deep); }
.light-band .brand-logo { width: min(300px, 80%); margin: 0 auto 36px; }
.value {
  background: #fff; border: 1px solid #dfe6ef; border-radius: var(--radius);
  padding: 30px; transition: transform .3s var(--ease), box-shadow .3s;
}
.value:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(11,26,51,.25); }
.value .icon { color: var(--brand-deep); background: rgba(23,105,210,.08); border-color: rgba(23,105,210,.2); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
  padding: 110px 28px;
  border: 1px solid rgba(30,155,240,.3);
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(30,155,240,.28), transparent 70%),
    linear-gradient(180deg, #0e2340, var(--bg-2));
}
.cta .bg-grid { mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 80%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta p { max-width: 560px; margin: 0 auto 34px; font-size: 1.08rem; }
.cta .hero-actions { justify-content: center; }

/* ---------- Inner page hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + 90px) 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 900px; }
.page-hero .lead { margin-top: 24px; }
.crumbs { display: flex; gap: 8px; font-family: var(--font-mono); font-size: .78rem; color: var(--dim); margin-bottom: 26px; }
.crumbs a:hover { color: var(--brand-hi); }

/* Sub-nav chips */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(6, 13, 24, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav .container { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; font-size: .86rem; color: var(--muted);
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line);
  transition: all .2s;
}
.subnav a:hover, .subnav a.active { color: var(--text); border-color: var(--brand); background: rgba(30,155,240,.1); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s, background .25s;
}
.faq details[open] { border-color: rgba(30,155,240,.4); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none; width: 28px; height: 28px; border-radius: 8px; position: relative;
  border: 1px solid var(--line-strong);
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; border-radius: 2px;
  background: var(--brand-hi); transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { padding: 0 26px 24px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.info-list { display: grid; gap: 12px; margin-top: 32px; }
.info {
  display: flex; gap: 16px; align-items: center;
  padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .25s;
}
a.info:hover { border-color: rgba(30,155,240,.45); }
.info .icon { margin: 0; width: 44px; height: 44px; }
.info .icon svg { width: 20px; height: 20px; }
.info small { display: block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.info strong { font-weight: 600; }

.next-steps { list-style: none; counter-reset: s; display: grid; gap: 18px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.next-steps li::before {
  content: counter(s); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .8rem; color: var(--brand-hi);
  border: 1px solid rgba(30,155,240,.45);
}
.next-steps strong { display: block; }
.next-steps span { color: var(--muted); font-size: .93rem; }

.form-panel {
  padding: 38px; border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}
.form-panel h2 { font-size: 1.7rem; margin-bottom: 6px; }
.form-panel > p { margin-bottom: 28px; }
form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field label .opt { color: var(--dim); font-weight: 400; }

input, textarea, select {
  width: 100%;
  color: var(--text);
  background: rgba(6, 13, 24, .6);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 15px;
  font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #5b6f87; }
select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aaec4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
select option { background: var(--surface); color: var(--text); }
textarea { min-height: 150px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: rgba(150,180,215,.35); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30,155,240,.15); background: rgba(6,13,24,.85); }
.field.invalid input, .field.invalid textarea { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
.field .err { display: none; color: #fca5a5; font-size: .82rem; }
.field.invalid .err { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chips span {
  display: inline-block; font-size: .85rem; font-weight: 500;
  padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: all .2s;
}
.chips label:hover span { border-color: rgba(30,155,240,.5); color: var(--text); }
.chips input:checked + span { background: rgba(30,155,240,.16); border-color: var(--brand); color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--brand-hi); outline-offset: 2px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--dim); font-size: .82rem; }
#formMessage { min-height: 22px; font-size: .92rem; color: var(--brand-hi); }
#formMessage.error { color: #fca5a5; }

.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success .icon { margin: 0 auto 20px; width: 64px; height: 64px; color: var(--up); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.35); }
.form-success .icon svg { width: 30px; height: 30px; }
.form-panel.sent form, .form-panel.sent > h2, .form-panel.sent > p { display: none; }
.form-panel.sent .form-success { display: block; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; }
.big-404 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 22vw, 15rem); line-height: .9; letter-spacing: -.06em;
  background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,.08));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.console {
  margin: 30px 0 36px; max-width: 520px;
  font-family: var(--font-mono); font-size: .85rem;
  padding: 18px 20px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted);
}
.console .r { color: #fca5a5; }
.console .g { color: var(--up); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 32px; background: #040a13; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
.footer-grid img { height: 44px; width: auto; margin-bottom: 20px; }
.footer-grid > div:first-child p { max-width: 320px; font-size: .94rem; }
.footer-grid h4 { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid li, .footer-grid li a { color: var(--muted); font-size: .94rem; }
.footer-grid li a { transition: color .2s; }
.footer-grid li a:hover { color: var(--brand-hi); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  color: var(--dim); font-size: .86rem;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.status { display: inline-flex; align-items: center; gap: 8px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(12,26,46,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), border-color .2s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--brand); color: var(--brand-hi); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .terminal-wrap { max-width: 620px; margin-inline: auto; width: 100%; }
  .terminal { transform: none; }
  .terminal-wrap:hover .terminal { transform: none; }
  .split { gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .industry-detail { grid-template-columns: 70px 1fr; }
  .industry-detail > :last-child { grid-column: 2; }
}

@media (max-width: 900px) {
  section { padding: 90px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid .card, .industry-grid .card:nth-child(4), .industry-grid .card:nth-child(5) { grid-column: span 1; }
  .industry-grid .card:last-child { grid-column: span 2; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before, .process::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process::after { height: 0; bottom: auto; transition: height 1.8s var(--ease); }
  .process.in::after { width: 2px; height: 100%; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 22px; padding-bottom: 32px; }
  .step:last-child { padding-bottom: 0; }
  .step-dot { grid-row: span 2; margin: 0; }
}

@media (max-width: 820px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 18px 20px 26px;
    background: rgba(6, 13, 24, .97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"]::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .nav-links .btn { margin: 14px 0 0; }
  body.menu-open { overflow: hidden; }
  .site-header:has(.nav-links.open) { background: rgba(6, 13, 24, .97); border-color: var(--line); }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .container { width: min(100% - 32px, var(--max)); }
  .hero { padding-top: calc(var(--header-h) + 50px); padding-bottom: 80px; }
  .page-hero { padding: calc(var(--header-h) + 50px) 0 60px; }
  .brand img { height: 34px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-grid .card:last-child { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .form-panel { padding: 26px 20px; }
  .float-chip.one { left: -6px; bottom: -22px; }
  .float-chip.two { right: -6px; top: -26px; }
  .float-chip { font-size: .75rem; padding: 8px 11px; }
  .float-chip .ic { width: 28px; height: 28px; }
  .stat { padding: 28px 18px; }
  .card, .plan { padding: 26px; }
  .industry-detail { grid-template-columns: 1fr; gap: 16px; padding: 44px 0; }
  .industry-detail > :last-child { grid-column: auto; }
  .industry-detail .num { padding: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
  .cta { padding: 80px 22px; border-radius: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .term-head strong { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 76px); }

/* ---------- Refinements ---------- */
.page-hero .glow.a { top: -260px; right: -160px; }
.float-chip.one { bottom: -46px; left: -44px; }
@media (max-width: 900px) {
  .contact .form-panel { order: -1; }
}
@media (max-width: 640px) {
  .float-chip { display: none; }
}
