/* ============================================================
   Sevenals — Shared Stylesheet
   Light + dark theme · brand palette
   navy #121B4F · purple #6C09E5 · blue #1D37FC · cyan #00BBFE
   ============================================================ */

:root {
  /* Brand (constant across themes) */
  --brand:         #1D37FC;
  --brand-2:       #6C09E5;
  --brand-3:       #1D37FC;
  --brand-cyan:    #00BBFE;
  --navy:          #121B4F;
  --accent-grad:   linear-gradient(120deg, #1D37FC 0%, #6C09E5 100%);
  --accent-vivid:  linear-gradient(120deg, #00BBFE 0%, #1D37FC 50%, #6C09E5 100%);
  --good:          #18a06a;
  --danger:        #e0473f;

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;

  /* Layout */
  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 11px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* ---- Light theme (default) ---- */
  --bg:            #ffffff;
  --bg-2:          #f4f7fc;
  --surface:       #ffffff;
  --surface-2:     #f3f6fd;
  --border:        rgba(18, 27, 79, 0.12);
  --border-strong: rgba(18, 27, 79, 0.20);

  --text:          #121B4F;
  --text-muted:    #515f86;
  --text-dim:      #8b96b5;
  --heading:       #121B4F;

  --header-bg:     rgba(255, 255, 255, 0.78);
  --mobile-nav-bg: rgba(255, 255, 255, 0.97);
  --eyebrow-bg:    rgba(29, 55, 252, 0.06);
  --eyebrow-bd:    rgba(29, 55, 252, 0.22);
  --ico-bg:        rgba(29, 55, 252, 0.08);
  --ico-bd:        rgba(29, 55, 252, 0.20);

  --shadow:        0 18px 44px -26px rgba(18, 27, 79, 0.30);
  --shadow-card:   0 1px 2px rgba(18,27,79,.04), 0 14px 34px -22px rgba(18,27,79,.20);
  --shadow-glow:   0 0 0 1px rgba(29, 55, 252, 0.12), 0 16px 44px -20px rgba(29, 55, 252, 0.40);
  --shadow-hover:  0 28px 60px -30px rgba(18,27,79,.40);

  --aurora-1: rgba(108, 9, 229, 0.16);
  --aurora-2: rgba(0, 187, 254, 0.18);
  --aurora-3: rgba(29, 55, 252, 0.14);
  --grid-line: rgba(18, 27, 79, 0.045);
}

[data-theme="dark"] {
  --bg:            #070b1c;
  --bg-2:          #0b1124;
  --surface:       #101934;
  --surface-2:     #131e3e;
  --border:        rgba(160, 180, 255, 0.12);
  --border-strong: rgba(160, 180, 255, 0.22);

  --text:          #eef1fb;
  --text-muted:    #aab5d6;
  --text-dim:      #76829f;
  --heading:       #f4f6ff;

  --header-bg:     rgba(8, 12, 28, 0.72);
  --mobile-nav-bg: rgba(8, 12, 28, 0.97);
  --eyebrow-bg:    rgba(0, 187, 254, 0.10);
  --eyebrow-bd:    rgba(0, 187, 254, 0.30);
  --ico-bg:        rgba(0, 187, 254, 0.12);
  --ico-bd:        rgba(0, 187, 254, 0.26);

  --shadow:        0 18px 44px -22px rgba(0, 0, 0, 0.7);
  --shadow-card:   0 1px 2px rgba(0,0,0,.3), 0 18px 40px -24px rgba(0,0,0,.6);
  --shadow-glow:   0 0 0 1px rgba(0, 187, 254, 0.22), 0 20px 50px -20px rgba(29, 55, 252, 0.55);
  --shadow-hover:  0 30px 64px -28px rgba(0,0,0,.75);

  --aurora-1: rgba(108, 9, 229, 0.30);
  --aurora-2: rgba(0, 187, 254, 0.24);
  --aurora-3: rgba(29, 55, 252, 0.28);
  --grid-line: rgba(160, 180, 255, 0.05);

  --accent-grad: linear-gradient(120deg, #3a6bff 0%, #8b3cf5 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

/* Ambient brand tint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, var(--aurora-1), transparent 60%),
    radial-gradient(820px 520px at 96% -2%, var(--aurora-2), transparent 58%),
    radial-gradient(760px 760px at 50% 116%, var(--aurora-3), transparent 62%);
  transition: opacity .4s ease;
}

/* Matrix-style "S" rain (behind page bg tint, beneath content) */
#matrix { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.38; }
[data-theme="dark"] #matrix { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { #matrix { display: none; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--heading);
}

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

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

/* Theme logo swap (high specificity so it beats .brand-logo) */
.brand-logo.logo-dark { display: none; }
[data-theme="dark"] .brand-logo.logo-light { display: none; }
[data-theme="dark"] .brand-logo.logo-dark { display: block; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand);
  padding: 7px 14px;
  border: 1px solid var(--eyebrow-bd);
  border-radius: 999px;
  background: var(--eyebrow-bg);
}
[data-theme="dark"] .eyebrow { color: var(--brand-cyan); }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0,187,254,.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,187,254,.18); }
  50% { box-shadow: 0 0 0 6px rgba(0,187,254,.05); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.96rem;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .6s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(29,55,252,.30), 0 22px 50px -18px rgba(29,55,252,.55); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--eyebrow-bg); color: var(--brand); }
[data-theme="dark"] .btn-ghost:hover { color: var(--brand-cyan); border-color: var(--brand-cyan); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-primary:hover svg, .btn-ghost:hover svg { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -24px rgba(18,27,79,.5);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 36px; width: auto; display: block; transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
/* Header logo: larger, vertically centered in the banner */
.site-header .brand { position: relative; z-index: 2; }
.site-header .brand-logo { height: 56px; transform-origin: left center; }
.site-header .brand:hover .brand-logo { transform: scale(1.04); }
.site-footer .brand-logo { height: 40px; }

.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  font-size: 0.95rem; color: var(--text-muted); font-weight: 500;
  padding: 9px 15px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 2px; background: var(--accent-grad);
  transition: width .28s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 60%; }
.nav-links a.active { color: var(--heading); }
.nav-links a.active::after { width: 60%; }
.nav-links a.nav-cta { margin-left: 8px; color: #fff; }
.nav-cta::after { display: none; }
.nav-cta:hover { color: #fff; }

.theme-toggle {
  position: relative; width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; cursor: pointer; color: var(--text);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--brand); transform: translateY(-2px); }
[data-theme="dark"] .theme-toggle:hover { border-color: var(--brand-cyan); }
.theme-toggle svg { width: 20px; height: 20px; position: absolute; transition: transform .4s var(--ease), opacity .3s ease; }
.theme-toggle .ico-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-toggle .ico-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .ico-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .ico-moon { opacity: 1; transform: rotate(0) scale(1); }

.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px; cursor: pointer; width: 42px; height: 42px; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--heading); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 18px 0 16px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 96px; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 620px; z-index: -1;
  background:
    radial-gradient(520px 360px at 22% 30%, var(--aurora-3), transparent 60%),
    radial-gradient(560px 380px at 82% 12%, var(--aurora-2), transparent 62%),
    radial-gradient(480px 420px at 60% 80%, var(--aurora-1), transparent 64%);
  filter: blur(28px);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  -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%);
}
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-24px, 18px, 0) scale(1.06); }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.5rem); margin: 22px 0 22px; }
.hero .gradient-text {
  background: var(--accent-vivid); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--text-dim); font-size: 0.9rem; }
.hero-trust .pipe { width: 1px; height: 28px; background: var(--border-strong); }

/* Overflow safety: let grid/flex children shrink, cap wide blocks */
.hero-grid > *, .split > *, .svc-layout > * { min-width: 0; }
.hero h1, .hero p.lead { overflow-wrap: break-word; }
.code-card, .code-card pre, .terminal, .terminal pre { max-width: 100%; }

/* Hero visual: dark "code editor" accent */
.hero-visual { position: relative; }
.code-card {
  position: relative;
  background: linear-gradient(180deg, #111a36 0%, #0b1228 100%);
  border: 1px solid rgba(140, 160, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -36px rgba(8, 12, 40, 0.7);
  overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.code-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(130deg, rgba(0,187,254,.5), transparent 40%, rgba(108,9,229,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.code-card .bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3650; display: inline-block; }
.code-card .bar i:nth-child(1){ background:#ff5f57; } .code-card .bar i:nth-child(2){ background:#febc2e; } .code-card .bar i:nth-child(3){ background:#28c840; }
.code-card .bar span { margin-left: auto; font-size: 0.78rem; color: #8893b3; font-family: var(--font-head); }
.code-card pre { padding: 22px; font-family: "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 0.86rem; line-height: 1.85; color: #c2cee4; overflow-x: auto; }
.code-card .k { color: #c792ea; } .code-card .s { color: #c3e88d; } .code-card .f { color: #82aaff; } .code-card .c { color: #6b7a9c; } .code-card .n { color: #f78c6c; }
.code-card .cursor, .terminal .cursor { display: inline-block; width: 8px; height: 1.05em; background: #82aaff; margin-left: 1px; vertical-align: -2px; border-radius: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Service terminal (services page) ---------- */
.terminal {
  align-self: center; position: relative; width: 100%;
  background: linear-gradient(180deg, #111a36 0%, #0b1228 100%);
  border: 1px solid rgba(140, 160, 255, 0.16);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 26px 54px -36px rgba(8, 12, 40, 0.65);
}
.terminal .tbar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.terminal .tbar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3650; display: inline-block; }
.terminal .tbar i:nth-child(1){ background:#ff5f57; } .terminal .tbar i:nth-child(2){ background:#febc2e; } .terminal .tbar i:nth-child(3){ background:#28c840; }
.terminal .tbar span { margin-left: auto; font-size: 0.72rem; color: #8893b3; font-family: var(--font-head); }
.terminal pre { margin: 0; padding: 18px 18px 20px; font-family: "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 0.84rem; line-height: 1.95; color: #c2cee4; white-space: pre-wrap; word-break: break-word; min-height: 150px; }
.terminal .pr { color: #6b7a9c; }
.terminal .cmd { color: #82aaff; }
.terminal .ok { color: #3ddc97; }

/* ---------- Services sticky-scroll layout ---------- */
.svc-layout { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: start; }
.svc-list { display: grid; gap: 26px; }
.svc-item { padding: 32px; }
.svc-points { list-style: none; display: grid; gap: 11px; margin-top: 18px; }
.svc-points li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: 0.95rem; }
.svc-points li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

.svc-sticky { display: none; }
.svc-hint { margin-top: 16px; font-size: 0.82rem; color: var(--text-dim); text-align: center; }
.svc-term-inline { display: none; margin-top: 20px; }

/* Enabled by JS on desktop (progressive enhancement) */
.js-sticky .svc-sticky { display: block; position: sticky; top: 120px; align-self: start; }
.js-sticky .svc-points { display: none; }
.js-sticky .svc-item { opacity: 0.45; transition: opacity .45s ease, transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.js-sticky .svc-item.is-active { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand), var(--shadow-hover); }
.js-sticky .svc-item:hover { opacity: 1; }

/* Link the active card to the terminal (sticky is already a positioning context) */
.js-sticky .svc-sticky .terminal { box-shadow: 0 0 0 1.5px var(--brand), 0 26px 54px -36px rgba(8,12,40,.65); }
.svc-link { display: none; }
.js-sticky .svc-link { display: block; position: absolute; top: 50%; right: 100%; width: 44px; height: 2px; background: var(--brand); transform: translateY(-50%); pointer-events: none; }
.js-sticky .svc-link::before { content: ""; position: absolute; left: -5px; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); transform: translateY(-50%); box-shadow: 0 0 0 4px rgba(29,55,252,.16); }
.js-sticky .svc-link::after { content: ""; position: absolute; right: -2px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); transform: translateY(-50%); }
[data-theme="dark"] .js-sticky .svc-item.is-active { border-color: var(--brand-cyan); box-shadow: 0 0 0 1.5px var(--brand-cyan), var(--shadow-hover); }
[data-theme="dark"] .js-sticky .svc-sticky .terminal { box-shadow: 0 0 0 1.5px var(--brand-cyan), 0 26px 54px -36px rgba(8,12,40,.65); }
[data-theme="dark"] .js-sticky .svc-link,
[data-theme="dark"] .js-sticky .svc-link::before,
[data-theme="dark"] .js-sticky .svc-link::after { background: var(--brand-cyan); }

@media (max-width: 940px) {
  .svc-layout { grid-template-columns: 1fr; gap: 0; }
  .svc-sticky, .js-sticky .svc-sticky { display: none !important; }
  .svc-points { display: grid !important; }            /* no-JS fallback */
  .js-mobile .svc-points { display: none !important; } /* replaced by inline terminal */
  .js-mobile .svc-term-inline { display: block; }
  .js-sticky .svc-item, .js-mobile .svc-item { opacity: 1 !important; }
  .svc-item { padding: 24px 22px; }
}

.float-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite; animation-delay: -3.5s;
}
.float-badge .ms-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.float-badge .ms-tiles i { width: 10px; height: 10px; display: block; }
.float-badge .ms-tiles i:nth-child(1){background:#f25022;} .float-badge .ms-tiles i:nth-child(2){background:#7fba00;}
.float-badge .ms-tiles i:nth-child(3){background:#00a4ef;} .float-badge .ms-tiles i:nth-child(4){background:#ffb900;}
.float-badge b { font-family: var(--font-head); font-size: 0.86rem; color: var(--heading); }
.float-badge small { display: block; color: var(--text-dim); font-size: 0.72rem; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); transition: transform .25s var(--ease), box-shadow .25s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--heading); }
.stat .label { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-vivid); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ico-bg); border: 1px solid var(--ico-bd);
  margin-bottom: 20px; transition: transform .3s var(--ease), background .3s ease;
}
.card:hover .ico { transform: translateY(-2px) scale(1.06); }
.card .ico svg { width: 25px; height: 25px; stroke: var(--brand); }
.card .ico strong { color: var(--brand) !important; }
[data-theme="dark"] .card .ico svg { stroke: var(--brand-cyan); }
[data-theme="dark"] .card .ico strong { color: var(--brand-cyan) !important; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card ul { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.card ul li { color: var(--text-muted); font-size: 0.92rem; padding-left: 24px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: rgba(24,160,106,.14); box-shadow: inset 0 0 0 2px var(--good); }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: grid; gap: 20px; margin-top: 28px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .fi-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-grad); color: #fff; transition: transform .3s var(--ease); }
.feature-item:hover .fi-ico { transform: rotate(-6deg) scale(1.08); }
.feature-item .fi-ico svg { width: 21px; height: 21px; }
.feature-item h4 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

.panel {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-card);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(180deg, rgba(29,55,252,.05), rgba(108,9,229,.04)),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cta-band::before {
  content: ""; position: absolute; inset: -50% 30% auto -10%; height: 360px;
  background: radial-gradient(circle, var(--aurora-2), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; position: relative; }
.cta-band .btn { position: relative; }

/* Microsoft partner band — two columns to use the full width */
.ms-band { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; text-align: left; position: relative; }
.ms-band-text p { color: var(--text-muted); font-size: 1.06rem; max-width: 540px; margin: 0; }
.ms-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-cap { display: flex; gap: 11px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; box-shadow: var(--shadow-card); transition: transform .25s var(--ease), border-color .25s ease; }
.ms-cap:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.ms-cap-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(24,160,106,.12); border: 1px solid rgba(24,160,106,.28); }
.ms-cap-ico svg { width: 16px; height: 16px; stroke: var(--good); }
.ms-cap b { font-family: var(--font-head); font-size: 0.9rem; color: var(--heading); display: block; line-height: 1.2; }
.ms-cap small { color: var(--text-dim); font-size: 0.76rem; }
@media (max-width: 860px) {
  .ms-band { grid-template-columns: 1fr; gap: 28px; }
  .ms-band-text p { max-width: none; }
}
@media (max-width: 480px) { .ms-caps { grid-template-columns: 1fr; } }

/* ---------- AI band ---------- */
.ai-band {
  background:
    linear-gradient(180deg, rgba(0,187,254,.06), rgba(108,9,229,.05)),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 48px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.ai-band::before {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--aurora-2), transparent 65%);
  pointer-events: none;
}
.ai-metric { padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: transform .25s var(--ease); }
.ai-metric:hover { transform: translateX(4px); }
.ai-metric-num { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.2rem); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.ai-metric-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 92px 0 40px; text-align: center; position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 420px; z-index: -1;
  background:
    radial-gradient(480px 300px at 30% 20%, var(--aurora-3), transparent 60%),
    radial-gradient(520px 320px at 78% 8%, var(--aurora-2), transparent 62%);
  filter: blur(26px); animation: drift 16s ease-in-out infinite alternate;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 18px 0 18px; }
.page-hero p { color: var(--text-muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 500; margin-bottom: 8px; color: var(--heading); font-family: var(--font-head); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 13px 15px; color: var(--text);
  font-family: var(--font-body); font-size: 0.97rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px rgba(29,55,252,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: grid; gap: 18px; }
.contact-row { display: flex; gap: 15px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); transition: transform .25s var(--ease), border-color .25s ease; }
.contact-row:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.contact-row .ci-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ico-bg); border: 1px solid var(--ico-bd); }
.contact-row .ci-ico svg { width: 22px; height: 22px; stroke: var(--brand); }
[data-theme="dark"] .contact-row .ci-ico svg { stroke: var(--brand-cyan); }
.contact-row h4 { font-size: 1.02rem; margin-bottom: 3px; }
.contact-row p { color: var(--text-muted); font-size: 0.94rem; }
.placeholder-tag { font-size: 0.72rem; color: var(--text-dim); font-style: italic; }
.form-note { margin-top: 8px; font-size: 0.85rem; color: var(--text-dim); }
.field-error { min-height: 1.15em; margin-top: 6px; font-size: 0.8rem; line-height: 1.3; color: var(--danger); font-family: var(--font-body); visibility: hidden; }
.field-error.show { visibility: visible; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(224,71,63,.14); }

/* ---------- Contact: live JSON request window ---------- */
.contact-code { position: sticky; top: 100px; }
.code-window { position: relative; background: linear-gradient(180deg, #111a36 0%, #0b1228 100%); border: 1px solid rgba(140,160,255,.16); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(8,12,40,.6); }
.code-window .bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3650; }
.code-window .bar i:nth-child(1){ background:#ff5f57; } .code-window .bar i:nth-child(2){ background:#febc2e; } .code-window .bar i:nth-child(3){ background:#28c840; }
.code-window .bar span { margin-left: auto; font-size: 0.78rem; color: #8893b3; font-family: var(--font-mono); }
.code-window pre { margin: 0; padding: 22px; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.95; color: #c2cee4; white-space: pre-wrap; word-break: break-word; min-height: 250px; }
.code-window .jkey { color: #82aaff; } .code-window .jstr { color: #c3e88d; } .code-window .jnull { color: #55617e; } .code-window .jpunc { color: #8893b3; } .code-window .jmethod { color: #c792ea; } .code-window .jok { color: #3ddc97; font-weight: 600; }
.code-window-foot { display: flex; align-items: center; gap: 16px; padding: 16px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.code-window-foot .btn { flex: none; }
.code-status { font-family: var(--font-mono); font-size: 0.8rem; color: #8893b3; }
#send-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
#send-btn[disabled]::after { display: none; }
.build-below { display: none; }
@media (max-width: 940px) { .contact-code { position: static; } .build-right { display: none; } .build-below { display: inline; } }
@media (max-width: 480px) { .code-window-foot { flex-direction: column; align-items: stretch; } .code-window-foot .btn { width: 100%; } }

/* ---------- Logos / partners ---------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; }
.logo-row .chip { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-family: var(--font-head); font-size: 0.95rem; }
.logo-row .chip .ms-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.logo-row .chip .ms-tiles i { width: 9px; height: 9px; display: block; }
.logo-row .chip .ms-tiles i:nth-child(1){background:#f25022;} .logo-row .chip .ms-tiles i:nth-child(2){background:#7fba00;}
.logo-row .chip .ms-tiles i:nth-child(3){background:#00a4ef;} .logo-row .chip .ms-tiles i:nth-child(4){background:#ffb900;}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 36px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { color: var(--text-muted); font-size: 0.94rem; margin-top: 14px; max-width: 280px; }
.footer-col h5 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; width: fit-content; color: var(--text-muted); font-size: 0.95rem; padding: 5px 0; transition: color .2s, transform .2s var(--ease); }
.footer-col a:hover { color: var(--brand); transform: translateX(3px); }
[data-theme="dark"] .footer-col a:hover { color: var(--brand-cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.88rem; }

/* ---------- Tech stack marquee ---------- */
.tech-strip { padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.tech-kicker { text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 52px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 0.98rem; color: var(--text-muted); white-space: nowrap; }
.marquee-item::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-grad); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Live status bar (injected into footer) ---------- */
.status-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); padding: 12px 22px; margin: 0 auto 34px; width: max-content; max-width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-card); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fd47a; flex: none; animation: statuspulse 2.2s ease-out infinite; }
.status-sep { width: 1px; height: 13px; background: var(--border-strong); }
@keyframes statuspulse { 0% { box-shadow: 0 0 0 0 rgba(31,212,122,.5); } 70% { box-shadow: 0 0 0 8px rgba(31,212,122,0); } 100% { box-shadow: 0 0 0 0 rgba(31,212,122,0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .status-dot { animation: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal.in:nth-child(2) { transition-delay: .08s; }
.grid .reveal.in:nth-child(3) { transition-delay: .16s; }
.grid .reveal.in:nth-child(4) { transition-delay: .08s; }
.grid .reveal.in:nth-child(5) { transition-delay: .16s; }
.grid .reveal.in:nth-child(6) { transition-delay: .24s; }
.feature-list .feature-item:nth-child(2) { transition-delay: .08s; }
.feature-list .feature-item:nth-child(3) { transition-delay: .16s; }

/* ---------- Focus visibility (a11y) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding-inline: 20px; }
  .hero { padding: 64px 0 56px; }
  .hero::after { background-size: 40px 40px; }
  .page-hero { padding: 56px 0 28px; }
  .nav { height: 66px; }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mobile-nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px; transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 16px 8px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a.active { color: var(--brand); }
  [data-theme="dark"] .nav-links a.active { color: var(--brand-cyan); }
  .nav-cta { margin: 16px 0 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand-logo { height: 32px; }
  .site-header .brand-logo { height: 44px; }
  .grid-3, .grid-2, .stats, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
  .panel { padding: 24px; }
  .ai-band { padding: 28px 22px; }
  .section-head { margin-bottom: 40px; }
  .card[style*="padding:38px"] { padding: 24px 22px !important; }
  .split[style*="gap:40px"] { gap: 22px !important; }
  .cta-band[style*="padding:48px"] { padding: 32px 22px !important; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .float-badge { animation: none; }
  .code-card pre { font-size: 0.76rem; padding: 18px; }
}
@media (max-width: 480px) {
  h1 { letter-spacing: -0.01em; }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.5rem); }
  .hero p.lead { font-size: 1.04rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 22px 14px; }
  .contact-row { padding: 16px; }
  .float-badge { left: 0; bottom: -16px; padding: 11px 14px; }
}

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