/* ==========================================================================
   GRI Consulting — styles
   Brand colors come from the logo: blue #2B57A0, red #CC0000.
   On the dark background we use lighter tints of each so text stays readable.
   ========================================================================== */

:root {
  --bg: #070b16;
  --bg-alt: #0b1122;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8ecf5;
  --muted: #9aa5bd;
  --dim: #6b7690;

  --brand-blue: #2b57a0;
  --brand-red: #cc0000;
  --blue: #5b8def;      /* blue tint for use on dark backgrounds */
  --blue-soft: #8fb3ff;
  --red: #ff3b3b;       /* red tint for use on dark backgrounds */

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --nav-h: 72px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Orbitron", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--brand-blue); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 4px; }

/* Logo mark colors */
.mark-red { fill: var(--brand-red); }
.mark-blue { fill: var(--brand-blue); }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: linear-gradient(135deg, #3d6fd0, var(--brand-blue));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--bg-btn);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px -8px rgba(61, 111, 208, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(61, 111, 208, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand-text b { font-weight: 700; color: var(--blue-soft); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  font-size: 15px; color: var(--muted); font-weight: 500;
  position: relative; transition: color .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 64px) 0 96px;
  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-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 78% 30%, rgba(43, 87, 160, 0.35), transparent 70%),
    radial-gradient(500px 360px at 12% 85%, rgba(204, 0, 0, 0.14), transparent 70%),
    linear-gradient(to bottom, transparent 60%, var(--bg));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.02em;
}
.dot {
  width: 8px; height: 8px; border-radius: 2px; background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(100deg, var(--blue-soft) 0%, #ffffff 45%, #ff8a8a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}
.lead strong { color: var(--text); font-weight: 600; }

.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visual: big logo mark + code card */
.hero-visual { position: relative; min-height: 460px; }
.hero-mark {
  position: absolute; top: 0; right: 2%; width: min(320px, 68%); aspect-ratio: 1;
  opacity: 0.9;
  filter: drop-shadow(0 30px 80px rgba(43, 87, 160, 0.55));
  animation: float 9s ease-in-out infinite;
}
.hero-mark .mark-inner { animation: inner-shift 9s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(0, -16px) rotate(-2deg); }
}
@keyframes inner-shift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, 6px); }
}

.code-card {
  position: relative;
  margin-top: 250px;
  margin-left: 0;
  width: min(440px, 100%);
  background: rgba(10, 16, 32, 0.82);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
}
.code-head i { width: 10px; height: 10px; border-radius: 50%; background: #2a3248; }
.code-head i:first-child { background: var(--red); opacity: .85; }
.code-head span { margin-left: 8px; }
.code-card pre {
  margin: 0; padding: 16px 18px 18px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  color: #c9d3ea; overflow-x: auto;
}
.code-card .k { color: #6f9cff; }
.code-card .f { color: #e5d38a; }
.code-card .s { color: #f08a7e; }
.code-card .n { color: #63d4c4; }
.code-card .v { color: #b5cea8; }
.caret {
  display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px;
  background: var(--blue-soft); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stats {
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.stats li { padding: 26px 28px; border-left: 1px solid var(--border); }
.stats li:first-child { border-left: 0; }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stats b[data-count]::after { content: "+"; color: var(--red); margin-left: 2px; }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--blue-soft);
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.kicker {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 141, 239, 0.14), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(91, 141, 239, 0.35); background: var(--surface-hover); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(43, 87, 160, 0.4), rgba(43, 87, 160, 0.12));
  border: 1px solid rgba(91, 141, 239, 0.3);
  margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* Marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; padding-right: 16px; }
.marquee li {
  white-space: nowrap;
  padding: 14px 26px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
}
.marquee li:nth-child(4n+1) { border-color: rgba(91, 141, 239, 0.45); }
.marquee li:nth-child(6n+3) { border-color: rgba(255, 59, 59, 0.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, var(--brand-red), var(--blue), transparent);
  opacity: .5;
}
.step { position: relative; padding-right: 12px; }
.step-num {
  position: relative;
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--blue-soft);
  margin-bottom: 24px;
}
.step:first-child .step-num { color: #fff; background: var(--brand-red); border-color: transparent; }
.step h3 { font-size: 21px; font-weight: 600; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.about-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(circle at 30% 30%, rgba(43, 87, 160, 0.35), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(204, 0, 0, 0.18), transparent 55%),
    var(--bg);
  display: grid; place-items: center;
  overflow: hidden;
}
.about-badge { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.about-badge svg { width: 150px; height: 150px; filter: drop-shadow(0 20px 50px rgba(43, 87, 160, 0.6)); }
.about-badge b { display: block; font-family: var(--font-display); font-size: 64px; line-height: 1; color: #fff; }
.about-badge span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p:not(.kicker) { color: var(--muted); font-size: 17.5px; margin-bottom: 18px; }
.about-copy strong { color: var(--text); }
.about-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.about-points li { position: relative; padding-left: 26px; color: var(--text); font-size: 15.5px; }
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px;
  background: var(--brand-red); border-radius: 2px;
  box-shadow: 4px 4px 0 -1px var(--brand-blue);
}

/* Contact */
.contact { padding-bottom: 140px; }
.contact-card {
  position: relative;
  padding: 80px 48px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #0f1a36 0%, #0a1020 60%);
  overflow: hidden;
  isolation: isolate;
}
.contact-glow {
  position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(91, 141, 239, 0.25), transparent 80% 100%);
  animation: spin 14s linear infinite;
}
.contact-card::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 27px;
  background: linear-gradient(160deg, #0f1a36 0%, #0a1020 60%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.contact-card h2 { font-size: clamp(32px, 4.5vw, 52px); }
.contact-card > p:not(.kicker) { margin: 18px auto 0; max-width: 520px; color: var(--muted); font-size: 18px; }
.contact-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { font-size: 14px; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 14px; color: var(--dim); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.brand-sm .brand-mark { width: 26px; height: 26px; }
.brand-sm .brand-text { font-size: 14px; }

/* Product */
.product { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.product-copy h2 { margin-bottom: 20px; }
.product-lead { color: var(--muted); font-size: 18px; }
.product-lead strong { color: var(--text); }
.badge {
  display: inline-block; vertical-align: 2px;
  margin-right: 8px; padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 59, 0.45);
  background: rgba(204, 0, 0, 0.12);
  color: #ff8a8a;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.feature-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.feature-list li { position: relative; padding-left: 18px; border-left: 2px solid rgba(91, 141, 239, 0.35); }
.feature-list h3 { font-size: 16px; font-weight: 600; }
.feature-list p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.chips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
}

.product-visual { perspective: 1400px; }
.app-window {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #0c1326;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(91, 141, 239, 0.08), 0 30px 80px -30px rgba(43, 87, 160, 0.5);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform .8s var(--ease);
}
.product-visual:hover .app-window { transform: rotateY(0) rotateX(0); }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3248; }
.app-bar i:first-child { background: var(--red); opacity: .85; }
.app-url {
  margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: rgba(255,255,255,0.05);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--dim);
}
.app-body { display: grid; grid-template-columns: 130px 1fr; min-height: 300px; }
.app-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; border-right: 1px solid var(--border); }
.app-side span { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.app-side span.on { background: rgba(91, 141, 239, 0.15); color: #fff; }
.app-main { padding: 18px; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-kpis div { padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.app-kpis b { display: block; font-family: var(--font-display); font-size: 20px; color: #fff; }
.app-kpis b.ok { color: #5fd49a; }
.app-kpis small { color: var(--dim); font-size: 11.5px; }
.app-rows { list-style: none; margin: 14px 0 0; padding: 0; }
.app-rows li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text);
}
.app-rows li:last-child { border-bottom: 0; }
.sq { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.sq.b { background: var(--blue); }
.sq.r { background: var(--red); }
.tag { margin-left: auto; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 11px; white-space: nowrap; }
.t-ok { background: rgba(95, 212, 154, 0.12); color: #7fe0b0; }
.t-warn { background: rgba(255, 59, 59, 0.14); color: #ff9a9a; }
.t-info { background: rgba(91, 141, 239, 0.16); color: var(--blue-soft); }

/* Experience */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.industry { padding: 30px 28px; background: var(--bg-alt); transition: background .3s; }
.industry:hover { background: #0e1630; }
.industry-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #fff;
}
.industry-tag::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--brand-red); box-shadow: 4px 4px 0 -1px var(--brand-blue); }
.industry p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.industry strong { color: var(--text); }

.migrations { margin-top: 40px; }
.migrations-title { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.migrations ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.migrations li {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 15px;
}
.migrations li span:first-child { color: var(--muted); }
.migrations li span:last-child { color: #fff; font-weight: 500; }
.migrations li i { font-style: normal; color: var(--red); }

/* Article cards (home teaser + /articles/ index) */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.article-card {
  display: flex; flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.article-card:hover { transform: translateY(-4px); border-color: rgba(91, 141, 239, 0.35); background: var(--surface-hover); }
.article-meta { font-family: var(--font-mono); font-size: 12px; color: var(--dim); letter-spacing: .03em; }
.article-card h3 { margin-top: 14px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.article-card p { margin-top: 12px; color: var(--muted); font-size: 15.5px; flex: 1; }
.article-more { margin-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--blue-soft); }
.article-all { margin-top: 28px; }
.article-all a { font-weight: 600; color: var(--blue-soft); }
.article-all a:hover { color: #fff; }

.copy-email.copied { border-color: rgba(95, 212, 154, 0.5); color: #7fe0b0; }

/* ---------- Article pages ---------- */
.page-head { padding: calc(var(--nav-h) + 72px) 0 48px; position: relative; overflow: hidden; isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(43, 87, 160, 0.3), transparent 70%),
    radial-gradient(400px 260px at 5% 100%, rgba(204, 0, 0, 0.1), transparent 70%);
}
.page-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; max-width: 900px; }
.page-head .lead { max-width: 720px; }
.breadcrumb { font-family: var(--font-mono); font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.breadcrumb a { color: var(--blue-soft); }
.breadcrumb a:hover { color: #fff; }
.byline { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--dim); }
.byline b { color: var(--text); font-weight: 600; }

.prose { max-width: 740px; padding-bottom: 96px; font-size: 18px; line-height: 1.75; color: #cdd5e6; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: 30px; color: #fff; letter-spacing: -0.02em; }
.prose h3 { margin-top: 1.8em; font-size: 22px; color: #fff; }
.prose a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(143, 179, 255, 0.4); }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--red); }
.prose code {
  font-family: var(--font-mono); font-size: .86em;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
}
.prose pre {
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: #0c1326; border: 1px solid var(--border-strong);
  overflow-x: auto; font-size: 14px; line-height: 1.65;
}
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.prose blockquote {
  margin-left: 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--red); color: var(--muted);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: #fff; font-weight: 600; border-bottom-color: var(--border-strong); }
.callout {
  padding: 20px 24px; border-radius: var(--radius-sm);
  border: 1px solid rgba(91, 141, 239, 0.3); background: rgba(43, 87, 160, 0.12);
}
.article-cta {
  margin-top: 3em !important; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #0f1a36 0%, #0a1020 70%);
}
.article-cta h2 { margin-top: 0; font-size: 24px; }
.article-cta p { color: var(--muted); }
.article-cta .btn { margin-top: 18px; text-decoration: none; color: #fff; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 440px; width: 100%; }
  .product { grid-template-columns: 1fr; gap: 48px; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .app-window { transform: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px;
    background: rgba(7, 11, 22, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .nav.menu-open { background: rgba(7, 11, 22, 0.96); }

  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-visual { min-height: 0; }
  .hero-mark { width: 52%; }
  .code-card { margin-top: 42%; }
  .code-card pre { font-size: 11px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stats li { padding: 20px; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .scroll-hint { display: none; }

  .section { padding: 88px 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .contact-card { padding: 56px 22px; }
  .feature-list { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .migrations ul { grid-template-columns: 1fr; }
  .migrations li { border-radius: var(--radius-sm); }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
