/* ==========================================================================
   Gainserver — Design System
   ========================================================================== */

:root {
  /* Brand core — see assets/img/04-brand-colors/colors.css */
  --gs-navy: #0B1220;
  --gs-navy-raised: #111A2E;
  --gs-offwhite: #F8FAFC;
  --gs-slate: #475569;
  --gs-slate-light: #94A3B8;
  --gs-emerald: #10B981;
  --gs-cyan: #06B6D4;
  --gs-amber: #F59E0B;

  /* Service colors */
  --svc-infra: #10B981;   /* trading */
  --svc-saas: #06B6D4;    /* POS */
  --svc-ecom: #8B5CF6;    /* e-commerce */
  --svc-sports: #F59E0B;  /* ticketing */
  --svc-blue: #3B82F6;    /* SaaS */

  /* Light theme */
  --bg: var(--gs-offwhite);
  --bg-muted: #EEF2F7;
  --surface: #ffffff;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: var(--gs-navy);
  --text-2: var(--gs-slate);
  --text-3: #64748B;
  --accent-text: #059669; /* emerald darkened for contrast on light */
  --header-bg: rgba(248, 250, 252, 0.78);
  --grid-line: rgba(11, 18, 32, 0.06);
  --glow-1: rgba(16, 185, 129, 0.16);
  --glow-2: rgba(6, 182, 212, 0.12);
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 10px 28px -10px rgba(11, 18, 32, 0.16);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 32, 0.25);

  /* Type */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: var(--gs-navy);
  --bg-muted: #0E1626;
  --surface: var(--gs-navy-raised);
  --surface-2: #17223A;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: var(--gs-offwhite);
  --text-2: var(--gs-slate-light);
  --text-3: #64748B;
  --accent-text: var(--gs-emerald);
  --header-bg: rgba(11, 18, 32, 0.72);
  --grid-line: rgba(148, 163, 184, 0.07);
  --glow-1: rgba(16, 185, 129, 0.16);
  --glow-2: rgba(6, 182, 212, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- 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(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(16, 185, 129, 0.3); }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gs-amber); color: var(--gs-navy); padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.text-accent { color: var(--accent-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }

.btn-primary {
  color: var(--gs-navy);
  background: var(--gs-amber);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 8px 24px -10px rgba(245,158,11,.75);
}
.btn-primary:hover { background: #FBB233; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 14px 30px -12px rgba(245,158,11,.9); }

.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--text-3); transform: translateY(-1px); }

.btn-light { color: var(--gs-navy); background: var(--gs-amber); }
.btn-light:hover { background: #FBB233; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
.btn-light:hover svg { transform: none; }

.btn-ghost-inverse { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.btn-ghost-inverse:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); transform: translateY(-1px); }
.btn-ghost-inverse:hover svg { transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; margin-left: -6px; }
.brand-logo { height: 46px; width: auto; }
.brand-symbol { margin-left: -8px; }
.brand-symbol img { width: 44px; height: 44px; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
:root[data-theme="dark"] .logo-on-light { display: none; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.main-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--gs-emerald);
}

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

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; height: 30px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-3);
  transition: color .2s, background-color .2s;
}
.lang-switch button.is-active { background: var(--text); color: var(--bg); }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 72px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero-glow-1 { width: 620px; height: 620px; top: -220px; right: -120px; background: var(--glow-1); animation: drift 16s ease-in-out infinite alternate; }
.hero-glow-2 { width: 480px; height: 480px; top: 160px; left: -200px; background: var(--glow-2); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-40px, 40px) scale(1.08); } }

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

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gs-emerald); box-shadow: 0 0 0 4px rgba(16,185,129,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } }

.hero h1 { margin-top: 24px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.hero-lead { margin-top: 22px; max-width: 560px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Hero visual: brand node network */
.hero-visual { position: relative; }
.network { position: relative; width: 100%; max-width: 560px; margin-left: auto; aspect-ratio: 1 / 0.92; }
.network-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.network-lines line { stroke: var(--border-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.network-lines line.pulse {
  stroke: var(--c); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 6 60; stroke-dashoffset: 66;
  animation: flow 3.6s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: 0; } }

.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed var(--border-strong); transform: translate(-50%, -50%); }
.orbit-1 { width: 42%; aspect-ratio: 1; }
.orbit-2 { width: 64%; aspect-ratio: 1; border-style: solid; border-color: var(--border); }

.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 0 10px color-mix(in srgb, var(--gs-emerald) 7%, transparent);
}
.hub img { width: 62%; height: auto; }

.node {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
.node::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border-top: 2px solid var(--accent); pointer-events: none; }
.node-tl { left: 0; top: 2%; }
.node-tr { right: 0; top: 2%; animation-delay: -1.5s; }
.node-br { right: 0; bottom: 2%; animation-delay: -3s; }
.node-bl { left: 0; bottom: 2%; animation-delay: -4.5s; }
.node-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.node-ico svg { width: 20px; height: 20px; }
.node-txt { display: flex; flex-direction: column; line-height: 1.3; }
.node-txt b { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; }
.node-txt small { font-size: 12px; color: var(--text-3); white-space: nowrap; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 80px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
}
.stats > div { padding: 28px 28px; position: relative; }
.stats > div + div { border-left: 1px solid var(--border); }
.stats dt { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stats dd { margin-top: 10px; font-size: 14px; color: var(--text-2); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex-shrink: 0; }
.marquee li {
  display: flex; align-items: center; gap: 48px; padding-right: 48px;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-3); white-space: nowrap;
}
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-muted { background: var(--bg-muted); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-top: 14px; font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; letter-spacing: -0.03em; }
.section-lead { margin-top: 18px; font-size: 17.5px; color: var(--text-2); line-height: 1.7; }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.section-head-split .section-lead { margin-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.eyebrow-inverse { color: var(--gs-emerald); }

/* Shared card bits */
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  color: var(--accent, var(--gs-emerald));
  background: color-mix(in srgb, var(--accent, var(--gs-emerald)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--gs-emerald)) 22%, transparent);
}
.card-icon svg { width: 24px; height: 24px; }

/* ---------- About bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); gap: 20px; }
.bento-card {
  position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%);
}
.bento-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-md); }
.bento-card:hover::before { opacity: 1; }
.bento-card h3 { font-size: 22px; font-weight: 700; margin-top: 8px; }
.bento-card p { color: var(--text-2); max-width: 420px; }
.bento-num { position: absolute; top: 28px; right: 30px; color: var(--text-3); }
.bento-lg { grid-row: span 2; background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--svc-infra) 7%, var(--surface)) 100%); }
.bento-wide { grid-column: span 2; }

.server-rack { margin-top: auto; display: grid; gap: 10px; padding-top: 24px; }
.server-rack span {
  position: relative; height: 40px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
}
.server-rack span::before, .server-rack span::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); }
.server-rack span::before { left: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--gs-emerald); box-shadow: 0 0 10px var(--gs-emerald); animation: blink 2s ease-in-out infinite; }
.server-rack span:nth-child(2)::before { animation-delay: .5s; }
.server-rack span:nth-child(3)::before { animation-delay: 1s; }
.server-rack span::after { left: 32px; right: 14px; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 18px, transparent 18px 24px); }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Products ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background-color .2s, border-color .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-3); }
.filter-btn.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease), opacity .3s;
}
.product-card::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-md); }
.product-card:hover::after { opacity: 1; }
.product-card.is-hidden { display: none; }
.product-cta {
  justify-content: space-between; gap: 24px; border-style: dashed; border-color: var(--border-strong);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gs-amber) 8%, var(--surface)), var(--surface));
}
.product-cta h3 { font-size: 22px; }
.product-cta p { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.product-cta .btn { align-self: flex-start; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.tag {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: color-mix(in srgb, var(--accent) 72%, var(--text)); background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.product-card h3 { font-size: 20px; font-weight: 700; }
.product-brand { margin-top: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.product-card > p:last-of-type { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: color-mix(in srgb, var(--accent) 72%, var(--text));
}
.card-link svg { transition: transform .25s var(--ease); }
.card-link:hover svg { transform: translate(2px, -2px); }

.product-featured {
  grid-row: span 2;
  background:
    radial-gradient(500px circle at 100% 0%, color-mix(in srgb, var(--svc-infra) 14%, transparent), transparent 60%),
    var(--surface);
}
.product-featured h3 { font-size: 26px; }

/* ---------- Features ---------- */
.features-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.features-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.features-head .btn { margin-top: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.feature-card:nth-child(even) { transform: translateY(40px); }
.feature-card:hover { border-color: color-mix(in srgb, var(--gs-emerald) 40%, var(--border)); box-shadow: var(--shadow-md); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.feature-num { color: var(--text-3); }
.feature-card h3 { font-size: 19px; font-weight: 700; }
.feature-card p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 160px; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end;
  padding: 72px; border-radius: 32px;
  background: var(--gs-navy); color: var(--gs-offwhite);
  border: 1px solid rgba(148,163,184,.16);
  box-shadow: var(--shadow-lg);
}
.cta-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(700px circle at 0% 0%, rgba(16,185,129,.22), transparent 55%),
    radial-gradient(600px circle at 100% 100%, rgba(6,182,212,.16), transparent 55%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px;
}
.cta-watermark { position: absolute; z-index: -1; right: -60px; top: -70px; width: 380px; height: auto; opacity: .05; pointer-events: none; }
.cta-card h2 { margin-top: 14px; color: var(--gs-offwhite); font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; letter-spacing: -0.03em; }
.cta-content > p { margin-top: 18px; max-width: 560px; font-size: 17.5px; color: var(--gs-slate-light); }
.cta-contacts { display: grid; gap: 12px; }
.cta-contacts li {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cta-contacts span { color: var(--gs-slate-light); text-transform: uppercase; letter-spacing: .1em; }
.cta-contacts a { font-family: var(--font-display); font-weight: 600; font-size: 17px; word-break: break-all; }
.cta-contacts a:hover { color: var(--gs-emerald); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.footer-slogan { margin-top: 18px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.footer-brand p:not(.footer-slogan) { margin-top: 18px; max-width: 320px; color: var(--text-2); font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 16px; }
.footer-cols a { display: block; padding: 5px 0; font-size: 15px; color: var(--text-2); transition: color .2s; word-break: break-word; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-copy, .back-top { font-size: 14px; color: var(--text-3); }
.back-top:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal-on .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.reveal-on .feature-card.reveal:not(.is-visible):nth-child(even) { transform: translateY(64px); }
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.hero-in { animation: heroIn .9s var(--ease) both; animation-delay: var(--d, 0s); }
.hero-copy > .hero-in:nth-child(2) { --d: .08s; }
.hero-copy > .hero-in:nth-child(3) { --d: .16s; }
.hero-copy > .hero-in:nth-child(4) { --d: .24s; }
.hero-visual.hero-in { --d: .2s; }
.stats.hero-in { --d: .3s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } }


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .network { margin: 0 auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-featured { grid-row: auto; grid-column: span 2; }
  .product-cta { grid-column: span 2; }
  .features-layout { grid-template-columns: 1fr; gap: 40px; }
  .features-head { position: static; }
  .cta-card { grid-template-columns: 1fr; padding: 56px; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 12px; justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 16px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .main-nav a.is-active::after { display: none; }
  .site-header.menu-open { background: var(--bg); border-bottom-color: var(--border); }

  .section { padding: 88px 0; }
  .section-head-split { grid-template-columns: 1fr; gap: 0; }
  .section-head-split .section-lead { margin-top: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 64px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-lg { grid-row: auto; grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .network { aspect-ratio: 1 / 1.05; }
  .node { padding: 8px 10px 8px 8px; gap: 8px; border-radius: 12px; }
  .node-ico { width: 30px; height: 30px; border-radius: 8px; }
  .node-ico svg { width: 16px; height: 16px; }
  .node-txt b { font-size: 12.5px; }
  .node-txt small { display: none; }
  .brand-logo { height: 40px; }
  .cta-watermark { width: 240px; right: -50px; top: -40px; }
  .stats > div { padding: 22px 18px; }
  .marquee li { font-size: 17px; gap: 32px; padding-right: 32px; }
  .bento, .product-grid, .feature-grid { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide, .product-featured, .product-cta { grid-column: auto; }
  .bento-card, .product-card, .feature-card { padding: 24px; }
  .feature-card:nth-child(even), .reveal-on .feature-card.reveal:not(.is-visible):nth-child(even) { transform: none; }
  .cta-section { padding-top: 88px; }
  .cta-card { padding: 36px 22px; border-radius: 24px; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lang-switch button { padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .network-lines line.pulse { display: none; }
  .reveal-on .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .hero-in { animation: none; }
}
