/* ────────────────────────────────────────────────────────────
   NextGen Automation Labs — dark luxury system
   ──────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0a0c;
  --bg-2: #0d1220;
  --surface: #13141a;
  --surface-2: #181922;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f5f5f7;
  --fg-2: #b4b6bf;
  --muted: #8b8d98;
  --muted-2: #5a5c66;
  --accent: #ff6a00;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 106, 0, 0.14);
  --accent-glow: 0 0 60px rgba(255, 106, 0, 0.45);

  --f-display: "Space Grotesk", "Inter Tight", system-ui, sans-serif;
  --f-body: "Inter Tight", "Space Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 96px);
  --section-pad-y: clamp(80px, 12vw, 160px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(20, 28, 56, 0.7), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(255, 106, 0, 0.06), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #0a0a0c; }

/* Subtle grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

/* ────────────────────────────────────────────────────────────
   Typography primitives
   ──────────────────────────────────────────────────────────── */
.hero-title,
.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(38px, 5.2vw, 68px);
  margin: 16px 0 22px;
}
.section-title.small {
  font-size: clamp(32px, 3.6vw, 46px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.section-lede {
  max-width: 56ch;
  color: var(--fg-2);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}

em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ────────────────────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .35s ease, color .25s ease;
  position: relative;
  isolation: isolate;
}
.btn-sm { padding: 10px 16px; font-size: 13px; }

.btn-primary {
  background: var(--accent);
  color: #0a0a0c;
  box-shadow: 0 0 0 0 rgba(255,106,0,0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px -10px rgba(255,106,0,0.6), 0 0 0 1px rgba(255,138,61,0.5);
  background: var(--accent-2);
}

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--line-2);
  color: var(--fg);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.play-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ────────────────────────────────────────────────────────────
   Nav
   ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 16px;
  background: rgba(13, 14, 18, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(140%);
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.85);
  border-color: var(--line-2);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8);
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #0a0a0c;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo.big { width: 48px; height: 48px; border-radius: 12px; }
.nav-logo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,106,0,0.32), transparent 65%);
  pointer-events: none;
}
.nav-logo-inner {
  width: 26px; height: 26px;
  background-image: url("assets/nextgen-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 6px rgba(255,106,0,0.45));
}
.nav-logo.big .nav-logo-inner { width: 34px; height: 34px; }

.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.nav-brand-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--fg-2);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--fg); background: rgba(255,255,255,0.06); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  display: inline-block;
  animation: pulseDot 2.5s infinite ease-in-out;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-text {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .status-text { display: none; }
}

/* ────────────────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--pad-x) 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(255, 106, 0, 0.08), transparent 70%),
    radial-gradient(80% 80% at 50% 0%, rgba(13, 18, 32, 0.6), transparent 60%),
    linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,0.6) 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.12em;
  margin-bottom: 36px;
}
.eyebrow-tick {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.hero-title {
  font-size: clamp(48px, 8.6vw, 132px);
  margin: 0 0 32px;
}
.hero-line { display: block; }
.hero-line:nth-child(2) { color: var(--fg); }

.hero-sub {
  max-width: 62ch;
  color: var(--fg-2);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  margin: 0 0 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 920px;
}
.meta-cell {
  background: var(--bg);
  padding: 22px 24px 22px 0;
}
.meta-cell:first-child { padding-left: 0; }
.meta-cell:not(:first-child) { padding-left: 24px; }
.meta-num {
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.meta-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .meta-cell:nth-child(3) { padding-left: 0; }
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(to right, var(--muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: var(--accent);
  animation: scrollSweep 2.6s infinite ease-in-out;
}
@keyframes scrollSweep {
  0% { left: -30%; } 100% { left: 130%; }
}

.hero-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  z-index: 2;
}
.hero-corner.tl { top: 110px; left: var(--pad-x); }
.hero-corner.tr { top: 110px; right: var(--pad-x); text-align: right; }
.hero-corner.bl { bottom: 36px; left: calc(var(--pad-x) + 200px); }
.hero-corner.br { bottom: 36px; right: var(--pad-x); text-align: right; }
@media (max-width: 880px) {
  .hero-corner.tl, .hero-corner.tr, .hero-corner.bl, .hero-corner.br { display: none; }
}

.live { color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
.live-dot {
  width: 5px; height: 5px; background: #ff3a3a; border-radius: 50%;
  box-shadow: 0 0 8px #ff3a3a;
  animation: pulseDot 1.4s infinite;
}

/* ────────────────────────────────────────────────────────────
   Ticker
   ──────────────────────────────────────────────────────────── */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.01);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 100px;
  pointer-events: none;
  z-index: 1;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: tickerMove 50s linear infinite;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--fg-2);
  letter-spacing: 0.18em;
}
.ticker-track .dot { color: var(--accent); font-size: 10px; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ────────────────────────────────────────────────────────────
   Sections (shared)
   ──────────────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad-y) var(--pad-x);
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
}
.section-head { max-width: 880px; margin-bottom: 64px; }

/* ────────────────────────────────────────────────────────────
   Services
   ──────────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-card {
  grid-column: span 3;
  position: relative;
  padding: 28px 28px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.service-card.big {
  grid-column: span 6;
  min-height: 360px;
  background: linear-gradient(140deg, rgba(255,106,0,0.06) 0%, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.005) 100%);
  border-color: rgba(255,106,0,0.18);
}

.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(255,106,0,0.16), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.svc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.svc-num { color: var(--fg); }
.svc-tag {
  padding: 4px 8px;
  border: 1px solid rgba(255,106,0,0.5);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 10px;
}

.svc-illo {
  height: 160px;
  margin: 0 -28px 20px;
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 1;
}
.svc-illo svg { width: 100%; height: 100%; }
.svc-illo-flow {
  stroke-dasharray: 6 4;
  animation: dash 4s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -100; }
}

/* ─── Live AI console (flagship card) ─── */
.svc-illo-console {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,106,0,0.03) 0%, transparent 70%),
    rgba(255,255,255,0.01);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.svc-illo-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
  pointer-events: none;
}
.console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(0,0,0,0.25);
  position: relative; z-index: 1;
}
.console-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 1.6s infinite ease-in-out;
}
.console-title { color: var(--fg-2); }
.console-id { margin-left: auto; color: var(--accent-2); }
.console-body {
  flex: 1;
  padding: 10px 22px 14px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--fg-2);
  position: relative; z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
}
.console-line {
  opacity: 0;
  transform: translateY(4px);
  animation: lineIn .35s ease forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}
.console-line.fade-out {
  animation: lineOut .25s ease forwards;
}
@keyframes lineOut {
  to { opacity: 0; transform: translateY(-4px); }
}
.console-line .c-arrow { color: var(--accent); margin-right: 8px; }
.console-line .c-key   { color: var(--fg); }
.console-line .c-val   { color: var(--fg-2); }
.console-line .c-meta  { color: var(--muted-2); }
.console-line .c-num   { color: var(--accent-2); }
.console-line .c-ok    { color: #4ade80; }
.console-line.dim      { color: var(--muted); }
.console-cursor {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: var(--accent);
  vertical-align: -1px;
  margin-left: 2px;
  animation: blinkCursor 1s steps(2) infinite;
}
@keyframes blinkCursor { 50% { opacity: 0; } }

.service-card h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  position: relative; z-index: 1;
}
.service-card p {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 18px;
  position: relative; z-index: 1;
  flex-grow: 1;
}
.svc-meta {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative; z-index: 1;
}
.svc-meta li {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 5px 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-column: span 1; }
  .service-card.big { grid-column: span 2; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card.big { grid-column: span 1; }
}

/* ────────────────────────────────────────────────────────────
   Technology
   ──────────────────────────────────────────────────────────── */
.tech-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13,18,32,0.5), rgba(10,10,12,0.5));
  padding: 24px;
  overflow: hidden;
}
.tech-diagram {
  width: 100%;
  height: auto;
  display: block;
}
.tech-node circle:first-child {
  transition: stroke .3s ease, fill .3s ease;
}
.tech-node:hover circle:first-child {
  stroke: var(--accent);
  fill: rgba(255,106,0,0.08);
}

.pulse {
  stroke-dasharray: 60 400;
  animation: pulseFlow 4.5s linear infinite;
  opacity: .85;
}
.pulse.p2 { animation-delay: .6s; }
.pulse.p3 { animation-delay: 1.2s; }
.pulse.p4 { animation-delay: 1.8s; }
.pulse.p5 { animation-delay: 2.4s; }
.pulse.p6 { animation-delay: 3.0s; }
@keyframes pulseFlow {
  0% { stroke-dashoffset: 460; }
  100% { stroke-dashoffset: 0; }
}

.tech-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.legend-row {
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--fg-2);
}
.legend-key {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent-2);
  padding: 4px 8px;
  border: 1px solid rgba(255,106,0,0.4);
  border-radius: 6px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  min-width: 46px;
  text-align: center;
}
@media (max-width: 880px) { .tech-legend { grid-template-columns: 1fr; } }

/* ────────────────────────────────────────────────────────────
   Process
   ──────────────────────────────────────────────────────────── */
.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  padding-top: 32px;
}
.rail-line {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 62%;
  background: linear-gradient(to right, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px var(--accent);
}

.step {
  position: relative;
  padding: 28px 4px 0;
}
.step-dot {
  position: absolute;
  top: -32px;
  left: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  transform: translateY(30px);
}
.step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.step-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step-num {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--fg);
  font-weight: 500;
}
.step h3 {
  font-family: var(--f-display);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.step p {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.step-bullets {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-bullets li {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}
.step-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 1px;
  background: var(--accent);
}

@media (max-width: 980px) {
  .process-rail { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .rail-line { display: none; }
  .step-dot { top: -8px; }
}
@media (max-width: 560px) {
  .process-rail { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────
   Case studies
   ──────────────────────────────────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.case-card {
  grid-column: span 3;
  position: relative;
  padding: 28px 30px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.case-card.highlight {
  grid-column: span 6;
  background: linear-gradient(140deg, rgba(255,106,0,0.08) 0%, rgba(13,18,32,0.6) 60%);
  border-color: rgba(255,106,0,0.25);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding: 36px 36px 36px;
}
.case-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}

.case-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.case-sector { color: var(--accent-2); }

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0 4px;
}
.metric-big {
  font-family: var(--f-display);
  font-size: clamp(48px, 5vw, 84px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
  background: linear-gradient(180deg, #fff 0%, #d4d4dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-card.highlight .metric-big {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}
.metric-pct {
  font-size: 0.45em;
  color: var(--muted);
  margin-left: 2px;
  -webkit-text-fill-color: var(--muted);
}
.metric-lbl {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-2);
  letter-spacing: 0.05em;
  max-width: 16ch;
  line-height: 1.4;
}

.case-card h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.case-card p {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.case-tags span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 5px 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card { grid-column: span 1; }
  .case-card.highlight { grid-column: span 2; grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-card.highlight { grid-column: span 1; }
}

/* ────────────────────────────────────────────────────────────
   About
   ──────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-body {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 56ch;
}
.about-pillars {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar {
  display: grid;
  grid-template-columns: 50px 1fr 2fr;
  gap: 24px;
  background: var(--bg);
  padding: 22px 0;
  align-items: baseline;
}
.pillar-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.pillar-h {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
}
.pillar-b {
  color: var(--fg-2);
  font-size: 14.5px;
}

.card-glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line-2);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(140%);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
}
.card-glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 20px;
  pointer-events: none;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(255,106,0,0.1), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 30%);
}
.card-credentials { position: sticky; top: 100px; }
.about-right { position: relative; }
.about-mark {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 320px;
  height: 320px;
  background-image: url("assets/nextgen-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  filter: blur(0.3px);
  z-index: 0;
  animation: floatMark 12s ease-in-out infinite;
}
@keyframes floatMark {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.cred-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cred-tag { color: var(--accent-2); }
.cred-list {
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px 24px;
}
.cred-list > div { display: contents; }
.cred-list dt {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  align-self: center;
}
.cred-list dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg);
}
.cred-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .card-credentials { position: relative; top: 0; }
  .pillar { grid-template-columns: 40px 1fr; }
  .pillar-b { grid-column: 2 / -1; }
}

/* ────────────────────────────────────────────────────────────
   Contact
   ──────────────────────────────────────────────────────────── */
.contact { background: linear-gradient(180deg, var(--bg) 0%, #07070a 100%); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-body {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
  margin: 18px 0 32px;
  max-width: 50ch;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cmeta-row {
  background: var(--bg);
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 16px 0;
}
.cmeta-k {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.cmeta-v {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-card {
  padding: 36px 36px 32px;
  border-radius: 24px;
}
.cc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.cc-tag { color: var(--accent-2); }

.cc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field-lbl {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  padding: 8px 0 12px;
  outline: none;
  resize: vertical;
  transition: border-color .3s ease;
}
.field textarea { min-height: 80px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus { border-color: transparent; }
.field-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s ease;
  box-shadow: 0 0 8px var(--accent);
}
.field input:focus ~ .field-line,
.field textarea:focus ~ .field-line { width: 100%; }
.field.invalid input,
.field.invalid textarea { border-bottom-color: #ff5454; }
.field-wide { margin-bottom: 28px; }

.cc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
  user-select: none;
}
.check input { display: none; }
.check-box {
  width: 16px; height: 16px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  position: relative;
  transition: border-color .25s ease, background .25s ease;
}
.check input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked + .check-box::after {
  content: "";
  position: absolute;
  top: 1px; left: 5px;
  width: 4px; height: 8px;
  border: solid #0a0a0c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.btn-submit { padding: 12px 18px; }

.cc-success {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,106,0,0.35);
  background: linear-gradient(90deg, rgba(255,106,0,0.10), rgba(255,106,0,0.02));
  border-radius: 12px;
}
.cc-success strong { display: block; color: var(--fg); font-family: var(--f-display); font-weight: 500; margin-bottom: 4px; }
.cc-success span { font-family: var(--f-mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.04em; }
.cc-success em { background: none; -webkit-background-clip: initial; color: var(--accent-2); font-style: normal; }
.cc-success-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,106,0,0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cc-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ────────────────────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: #07070a;
  padding: 80px var(--pad-x) 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 64px;
  max-width: 1480px;
  margin: 0 auto 80px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand-text > span:first-child {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
}
.footer-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.fcol h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.fcol a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  color: var(--fg-2);
  font-size: 14px;
  transition: color .2s ease;
}
.fcol a:hover { color: var(--fg); }
.sicon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  font-family: var(--f-mono);
  font-size: 9px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.footer-band {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.12);
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 calc(var(--pad-x) * -1);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  justify-content: center;
  user-select: none;
}
.band-dot { color: var(--accent); -webkit-text-stroke: 0; font-size: 0.4em; }

.footer-bottom {
  max-width: 1480px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-links { display: flex; gap: 10px; }
.footer-links a { color: var(--fg-2); }
.footer-links a:hover { color: var(--accent-2); }
.footer-build { color: var(--accent-2); }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ────────────────────────────────────────────────────────────
   Reveal animations
   ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
