/* ============================================================
   Leinix Group — Global Stylesheet
   Sections: 1. Tokens  2. Reset  3. Layout  4. Typography
             5. Buttons  6. Header  7. Hero  8. Components
             9. Forms   10. Footer 11. Utilities 12. Responsive
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg:            #05070d;
  --bg-alt:        #080c15;
  --surface:       #0e1421;
  --surface-2:     #131b2c;
  --surface-3:     #182236;
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .18);

  --txt:           #e9eff9;
  --txt-soft:      #b9c6da;
  --txt-muted:     #8496b0;

  --brand:         #00cfff;
  --brand-deep:    #0a6ef0;
  --brand-soft:    rgba(0, 207, 255, .12);
  --accent:        #ff6a1a;
  --accent-soft:   rgba(255, 106, 26, .13);
  --ok:            #23d283;
  --warn:          #ffc93c;

  --grad-brand:    linear-gradient(115deg, #00cfff 0%, #0a6ef0 100%);
  --grad-accent:   linear-gradient(115deg, #ff8a3d 0%, #ff4d1a 100%);
  --grad-surface:  linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  --glow:          0 0 60px rgba(0, 207, 255, .18);

  --shadow-sm:     0 2px 10px rgba(0, 0, 0, .35);
  --shadow:        0 18px 44px -18px rgba(0, 0, 0, .75);
  --shadow-lg:     0 36px 80px -28px rgba(0, 0, 0, .85);

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  --maxw: 1200px;
  --gutter: 22px;
  --header-h: 74px;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --grid-line: rgba(255, 255, 255, .035);
}

/* Light theme overrides */
[data-theme="light"] {
  --bg:            #f5f7fb;
  --bg-alt:        #ffffff;
  --surface:       #ffffff;
  --surface-2:     #f1f4fa;
  --surface-3:     #e7ecf6;
  --line:          rgba(9, 20, 42, .10);
  --line-strong:   rgba(9, 20, 42, .20);

  --txt:           #0c1526;
  --txt-soft:      #3b4a63;
  --txt-muted:     #5d6e8a;

  --brand:         #0069d9;
  --brand-deep:    #003fa3;
  --brand-soft:    rgba(0, 105, 217, .10);
  --accent:        #e2551a;
  --accent-soft:   rgba(226, 85, 26, .10);

  --grad-brand:    linear-gradient(115deg, #0083e0 0%, #0a3fd0 100%);
  --grad-surface:  linear-gradient(160deg, rgba(9,20,42,.035), rgba(9,20,42,0));
  --glow:          0 0 60px rgba(0, 105, 217, .14);

  --shadow-sm:     0 2px 10px rgba(15, 30, 60, .08);
  --shadow:        0 18px 40px -20px rgba(15, 30, 60, .28);
  --shadow-lg:     0 36px 70px -30px rgba(15, 30, 60, .32);

  --grid-line: rgba(9, 20, 42, .05);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--txt); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

::selection { background: var(--brand); color: #04121c; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 820px; }

.section { padding: clamp(64px, 8vw, 118px) 0; position: relative; }
.section-tight { padding: clamp(48px, 5vw, 74px) 0; }
.section-alt { background: var(--bg-alt); }
.section-surface { background: var(--surface); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--txt-soft); font-size: 1.05rem; margin: 14px 0 0; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.g-auto-sm { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 66px);
  align-items: center;
}
.split.reverse > *:first-child { order: 2; }
.split.split-wide { grid-template-columns: 1.25fr .75fr; align-items: start; }
.split.split-top { align-items: start; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #04121c; padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--txt);
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.05rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.44rem); }
h4 { font-size: 1.06rem; }
p  { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.04rem, 1.5vw, 1.2rem); color: var(--txt-soft); line-height: 1.75; }
.muted { color: var(--txt-muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 30px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}
.eyebrow.center-mark { justify-content: center; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.accent-text { color: var(--accent); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--grad-brand); color: #041320;
  box-shadow: 0 10px 30px -10px rgba(0, 160, 255, .65);
}
.btn-primary:hover { color: #041320; box-shadow: 0 16px 40px -12px rgba(0, 160, 255, .8); }

.btn-accent {
  background: var(--grad-accent); color: #1a0a00;
  box-shadow: 0 10px 30px -10px rgba(255, 106, 26, .6);
}
.btn-accent:hover { color: #1a0a00; }

.btn-ghost {
  background: transparent; color: var(--txt);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn-solid { background: var(--surface-2); color: var(--txt); border-color: var(--line); }
.btn-solid:hover { background: var(--surface-3); color: var(--txt); }

.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem; color: var(--brand);
  font-family: var(--font-head);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--txt); }
.brand:hover { color: var(--txt); }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  filter: drop-shadow(0 0 12px rgba(0, 207, 255, .45));
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--font-head);
}
.brand-text strong { font-size: 1.16rem; font-weight: 700; letter-spacing: .1em; }
.brand-text span {
  font-size: .6rem; letter-spacing: .42em;
  color: var(--txt-muted); font-weight: 600; margin-top: 4px;
}

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; position: relative;
  padding: 9px 14px; border-radius: var(--radius-pill);
  color: var(--txt-soft); font-size: .92rem; font-weight: 500;
}
.nav a:hover { color: var(--txt); background: var(--surface-2); }
.nav a.active { color: var(--brand); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--grad-brand); border-radius: 2px;
}
.nav .nav-cta {
  margin-left: 8px; padding: 9px 20px;
  background: var(--grad-brand); color: #041320; font-weight: 600;
}
.nav .nav-cta:hover { color: #041320; filter: brightness(1.08); }
.nav .nav-cta.active::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--txt-soft);
  transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="light"] .icon-sun,  .icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.icon-sun { display: block; }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 19px; height: 2px;
  background: var(--txt); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { content: ""; left: 0; transform: translateY(-6px); }
.nav-toggle span::after  { content: ""; left: 0; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(58px, 9vw, 118px)) 0 clamp(60px, 8vw, 108px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 460px at 78% 10%, rgba(0, 207, 255, .16), transparent 62%),
    radial-gradient(620px 420px at 12% 88%, rgba(255, 106, 26, .10), transparent 64%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 60% 30%, #000 5%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 60% 30%, #000 5%, transparent 76%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; }
.hero .btn-row { margin-top: 32px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--txt-muted); }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* Hero visual — radar */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.radar {
  position: relative; width: min(100%, 400px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle, var(--brand-soft) 0%, transparent 68%),
    conic-gradient(from 0deg, transparent 0deg 300deg, rgba(0, 207, 255, .16) 355deg, transparent 360deg);
  display: grid; place-items: center;
  box-shadow: var(--glow), inset 0 0 60px rgba(0, 207, 255, .07);
  animation: radar-spin 7s linear infinite;
}
.radar::before, .radar::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line);
}
.radar::before { inset: 16%; }
.radar::after  { inset: 34%; }
@keyframes radar-spin { to { transform: rotate(360deg); } }

.radar-core {
  position: absolute; inset: 0; display: grid; place-items: center;
  animation: radar-spin 7s linear infinite reverse;
}
.radar-core img { width: 48%; filter: drop-shadow(0 12px 30px rgba(0,0,0,.6)); }

.orbit-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  font-size: .8rem; font-weight: 600; font-family: var(--font-head);
  color: var(--txt); box-shadow: var(--shadow);
  animation: float 5.5s ease-in-out infinite;
}
.orbit-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.orbit-chip.a { top: 6%;  left: -4%; }
.orbit-chip.b { top: 44%; right: -6%; animation-delay: -1.8s; }
.orbit-chip.b i { background: var(--accent); }
.orbit-chip.c { bottom: 7%; left: 6%; animation-delay: -3.4s; }
.orbit-chip.c i { background: var(--ok); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(52px, 6vw, 82px)) 0 clamp(44px, 5vw, 66px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-hero .hero-bg {
  background:
    radial-gradient(680px 340px at 82% 0%, rgba(0, 207, 255, .15), transparent 64%),
    radial-gradient(520px 320px at 4% 100%, rgba(255, 106, 26, .09), transparent 66%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 700px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--txt-muted); margin-bottom: 20px;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.breadcrumb a { color: var(--txt-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { opacity: .5; }
.breadcrumb strong { color: var(--brand); font-weight: 600; }

/* ---------- 8. Components ---------- */

/* Card */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-surface); opacity: 0; transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--txt-soft); font-size: .95rem; margin-bottom: 0; }
.card.pad-sm { padding: 24px; }

.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }
.card-link .link-arrow { margin-top: 18px; }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(0, 207, 255, .22);
}
.card-icon svg { width: 25px; height: 25px; }
.card-icon.accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(255,106,26,.24); }

.card-num {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .2em;
  color: var(--brand); margin-bottom: 14px; display: block;
}

.card-top-line::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card-top-line:hover::after { transform: scaleX(1); }

/* Feature list */
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  color: var(--txt-soft); font-size: .95rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid rgba(0, 207, 255, .4);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 13px;
  width: 5px; height: 8px; border: solid var(--brand);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list.accent li::before { background: var(--accent-soft); border-color: rgba(255,106,26,.4); }
.check-list.accent li::after { border-color: var(--accent); }

/* Chip / badge */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 500; color: var(--txt-soft);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.badge {
  display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(0, 207, 255, .25);
}
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(255,106,26,.28); }
.badge.ok { background: rgba(35,210,131,.12); color: var(--ok); border-color: rgba(35,210,131,.28); }

/* Stats */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.stat {
  background: var(--surface); padding: 32px 26px; text-align: center;
  transition: background .3s var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat b {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.stat span { font-size: .84rem; color: var(--txt-muted); letter-spacing: .04em; }

/* Product card */
.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; height: 100%;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.product:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.product-media {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, var(--brand-soft), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.product-media img { width: 62%; max-height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.product:hover .product-media img { transform: scale(1.08) rotate(-2deg); }
.product-media .badge { position: absolute; top: 14px; left: 14px; }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-body p { color: var(--txt-soft); font-size: .9rem; flex: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.product-tags span {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 6px;
  background: var(--surface-3); color: var(--txt-muted); border: 1px solid var(--line);
}

/* Filter bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 38px; padding-bottom: 4px;
}
.filter-btn {
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--txt-soft); font-size: .88rem; font-weight: 500;
  transition: all .22s var(--ease);
}
.filter-btn:hover { border-color: var(--line-strong); color: var(--txt); }
.filter-btn.active {
  background: var(--grad-brand); color: #041320;
  border-color: transparent; font-weight: 600;
}
.filter-empty { text-align: center; padding: 60px 0; color: var(--txt-muted); }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  color: var(--txt); transition: background .2s var(--ease), color .2s var(--ease);
}
.acc-head:hover { background: var(--surface-2); color: var(--brand); }
.acc-head i {
  position: relative; width: 15px; height: 15px; flex: none;
}
.acc-head i::before, .acc-head i::after {
  content: ""; position: absolute; background: var(--brand); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.acc-head i::before { top: 6.5px; left: 0; width: 15px; height: 2px; }
.acc-head i::after  { left: 6.5px; top: 0; width: 2px; height: 15px; }
.acc-item.open .acc-head i::after { transform: rotate(90deg); opacity: 0; }
.acc-item.open .acc-head { color: var(--brand); }
.acc-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .38s var(--ease);
}
.acc-panel-inner { padding: 0 26px 24px; color: var(--txt-soft); font-size: .95rem; }

/* Timeline / process */
.steps { position: relative; display: grid; gap: 30px; }
.steps::before {
  content: ""; position: absolute; left: 25px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--brand), transparent);
  opacity: .45;
}
.step { display: grid; grid-template-columns: 52px 1fr; gap: 22px; align-items: start; position: relative; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-family: var(--font-head); font-weight: 700; color: var(--brand);
  box-shadow: 0 0 0 6px var(--bg);
  position: relative; z-index: 1;
}
.step-body h3 { margin-bottom: 8px; font-size: 1.14rem; }
.step-body p { color: var(--txt-soft); font-size: .95rem; }

/* Marquee */
.marquee {
  position: relative; overflow: hidden;
  padding: 20px 0; border-block: 1px solid var(--line);
  background: var(--bg-alt);
  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 { display: flex; gap: 44px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--txt-muted); white-space: nowrap; letter-spacing: .03em;
}
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  padding: clamp(38px, 5vw, 62px);
  background:
    radial-gradient(700px 320px at 88% 6%, rgba(0, 207, 255, .18), transparent 62%),
    radial-gradient(520px 300px at 4% 100%, rgba(255, 106, 26, .13), transparent 64%),
    var(--surface);
  text-align: center;
}
.cta-band h2 { max-width: 700px; margin-inline: auto; }
.cta-band p { max-width: 620px; margin-inline: auto; color: var(--txt-soft); }
.cta-band .btn-row { margin-top: 30px; }

/* Info tiles / contact cards */
.info-tile {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.info-tile:hover { border-color: var(--brand); transform: translateY(-3px); }
.info-tile .card-icon { margin-bottom: 0; width: 44px; height: 44px; border-radius: 12px; }
.info-tile .card-icon svg { width: 20px; height: 20px; }
.info-tile h4 { margin-bottom: 4px; font-size: .96rem; }
.info-tile p, .info-tile a { font-size: .9rem; color: var(--txt-soft); margin: 0; }
.info-tile a:hover { color: var(--brand); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
thead th {
  text-align: left; padding: 16px 22px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--txt-muted);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--txt-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s var(--ease); }
tbody tr:hover { background: var(--surface-2); }
tbody td:first-child { color: var(--txt); font-weight: 600; }

/* Quote */
.quote {
  position: relative; padding: 34px 34px 34px 66px;
  border-left: 3px solid var(--brand);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}
.quote::before {
  content: "\201C"; position: absolute; left: 20px; top: 10px;
  font-family: var(--font-head); font-size: 4.2rem; line-height: 1;
  color: var(--brand); opacity: .35;
}
.quote p { font-size: 1.08rem; color: var(--txt); font-style: italic; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: .86rem; color: var(--txt-muted); }

/* Media frame */
.media-frame {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
  padding: 34px; display: grid; place-items: center;
  box-shadow: var(--shadow);
  background-image:
    radial-gradient(circle at 50% 40%, var(--brand-soft), transparent 68%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.media-frame img { width: min(100%, 340px); }

/* Photographic variants — full-bleed instead of centred line art */
.product-media.photo { padding: 0; background: var(--surface-2); }
.product-media.photo img { width: 100%; height: 100%; object-fit: cover; }
.product:hover .product-media.photo img { transform: scale(1.06); }
.product-media.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,7,13,.30) 0%, transparent 42%, rgba(5,7,13,.20) 100%);
}
.product-media.photo .badge { z-index: 1; }

.media-frame.photo {
  padding: 0; overflow: hidden; background-image: none; background: var(--surface-2);
}
.media-frame.photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--radius-lg) - 1px);
}
.media-frame.photo.tall img { aspect-ratio: 3 / 4; }

/* Full-width photo band with copy over it */
.photo-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  min-height: 320px; display: grid; align-items: end;
}
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,13,.15) 0%, rgba(5,7,13,.82) 100%);
}
.photo-band-body { position: relative; z-index: 1; padding: clamp(24px, 4vw, 40px); }
.photo-band-body h3 { color: #fff; margin-bottom: 6px; }
.photo-band-body p { color: rgba(255,255,255,.82); font-size: .94rem; margin: 0; }

/* Notice */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid rgba(255,106,26,.25);
  font-size: .92rem; color: var(--txt-soft);
}
.notice svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.notice.info { background: var(--brand-soft); border-color: rgba(0,207,255,.25); }
.notice.info svg { color: var(--brand); }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #041320;
  box-shadow: 0 10px 26px -8px rgba(0, 160, 255, .7);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; }

/* ---------- 9. Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--txt-soft); font-family: var(--font-head); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  background: var(--bg-alt); color: var(--txt);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .94rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 138px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238496b0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
  padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--txt-muted); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field .err { font-size: .78rem; color: #ff6b6b; min-height: 1em; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b6b; }
.field.invalid .err { display: block; }

.form-consent { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--txt-muted); }
.form-consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.field.invalid .form-consent { color: #ff8a8a; }
.field.invalid .form-consent input { outline: 2px solid #ff6b6b; outline-offset: 2px; }

.form-status {
  margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: .9rem; display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(35,210,131,.12); border: 1px solid rgba(35,210,131,.3); color: var(--ok); }
.form-status.bad { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.3); color: #ff8a8a; }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: clamp(52px, 6vw, 78px) 0 0;
  position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 46px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--txt-muted); font-size: .91rem; max-width: 330px; }
.footer-col h4 {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 600;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--txt-muted); font-size: .91rem; }
.footer-col a:hover { color: var(--brand); }
.footer-col address { font-style: normal; color: var(--txt-muted); font-size: .91rem; line-height: 1.8; }

.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-muted);
  transition: all .22s var(--ease);
}
.social-row a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; }

.footer-bar {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--txt-muted);
}
.footer-bar .fari-tag { display: inline-flex; align-items: center; gap: 8px; }
.footer-bar .fari-tag strong { color: var(--txt-soft); font-weight: 600; }

/* ---------- 11. Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }  .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; } .mt-4 { margin-top: 44px; } .mt-5 { margin-top: 62px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.relative { position: relative; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; }
.reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; }
.reveal.d4 { transition-delay: .36s; }
.reveal.d5 { transition-delay: .45s; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 180;
    width: min(320px, 84vw);
    background: var(--surface);
    border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + 22px) 22px 30px;
    transform: translateX(102%);
    transition: transform .34s var(--ease);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav a.active { background: var(--brand-soft); }
  .nav a.active::after { display: none; }
  .nav .nav-cta { margin: 12px 0 0; justify-content: center; text-align: center; }

  .hero-inner, .split, .split.split-wide { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 0; }
  .hero-visual { min-height: 300px; order: -1; }
  .radar { width: min(78%, 300px); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .g-2, .g-3, .g-4, .g-auto, .g-auto-sm { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .brand-text strong { font-size: 1.04rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav .btn, .filter-bar .btn { width: auto; }
  .filter-btn { flex: 1 1 auto; }
  .steps::before { left: 21px; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step-num { width: 44px; height: 44px; font-size: .9rem; }
  .quote { padding: 26px 22px 26px 52px; }
  .orbit-chip { font-size: .72rem; padding: 6px 12px; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .card { padding: 24px 20px; }
}

@media print {
  .site-header, .site-footer, .to-top, .nav-backdrop, .hero-visual { display: none !important; }
  body { background: #fff; color: #000; }
}

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