/* ==========================================================================
   HiveCode LLC - Global styles (Enterprise theme)
   Brand colors: bright blue, light indigo, purple, maroon.
   Light theme is the default (:root); dark theme is [data-theme="dark"].
   ========================================================================== */

:root {
  /* Brand */
  --blue: #1f5eff;
  --indigo: #6366f1;
  --indigo-light: #a5b4fc;
  --purple: #7b3fe4;
  --maroon: #8c1d40;

  --grad: linear-gradient(115deg, #1f5eff 0%, #6366f1 34%, #7b3fe4 64%, #8c1d40 100%);
  --grad-text: linear-gradient(105deg, #1f5eff 0%, #6d4bea 48%, #8c1d40 100%);
  --grad-soft: linear-gradient(135deg, rgba(31,94,255,.10), rgba(123,63,228,.10) 55%, rgba(140,29,64,.08));

  /* Surfaces (light) */
  --bg: #ffffff;
  --bg-2: #f6f7ff;
  --surface: #ffffff;
  --surface-2: #f4f5ff;
  --border: rgba(30, 27, 95, 0.09);
  --border-strong: rgba(30, 27, 95, 0.17);
  --text: #0e1033;
  --muted: #565b7d;
  --accent: #1f5eff;
  --accent-2: #7b3fe4;
  --accent-soft: rgba(99, 102, 241, 0.10);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 64, .05), 0 10px 30px rgba(16, 24, 64, .07);
  --shadow-lg: 0 2px 6px rgba(16, 24, 64, .05), 0 40px 90px rgba(40, 30, 120, .18);
  --glow: 0 0 0 1px rgba(99, 102, 241, .35), 0 18px 44px rgba(79, 70, 229, .16);
  --grid-line: rgba(30, 27, 95, 0.05);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1240px;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --grad-text: linear-gradient(105deg, #7ea6ff 0%, #a5b4fc 35%, #b794f6 65%, #e26a8d 100%);
  --grad-soft: linear-gradient(135deg, rgba(31,94,255,.16), rgba(123,63,228,.16) 55%, rgba(140,29,64,.14));
  --bg: #080a1d;
  --bg-2: #0c0e27;
  --surface: #111335;
  --surface-2: #161940;
  --border: rgba(165, 180, 252, 0.11);
  --border-strong: rgba(165, 180, 252, 0.22);
  --text: #eef0ff;
  --muted: #a3a8cf;
  --accent: #8ea2ff;
  --accent-2: #b794f6;
  --accent-soft: rgba(129, 140, 248, 0.15);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 34px rgba(0,0,0,.35);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, .55);
  --glow: 0 0 0 1px rgba(142, 162, 255, .4), 0 18px 50px rgba(99, 102, 241, .25);
  --grid-line: rgba(165, 180, 252, 0.05);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -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; overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
::selection { background: var(--indigo); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 18px;
}
[data-theme="dark"] .eyebrow { color: var(--indigo-light); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
i[data-icon] { display: inline-flex; font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .97rem; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, background-position .4s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary {
  color: #fff; background-image: linear-gradient(115deg, #1f5eff 0%, #6366f1 40%, #7b3fe4 75%, #8c1d40 120%);
  background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 26px rgba(31, 94, 255, .28);
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 36px rgba(99, 70, 229, .34); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(16,24,64,.05); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--blue); }
[data-theme="dark"] .btn-ghost { background: transparent; }
[data-theme="dark"] .btn-ghost:hover { color: var(--indigo-light); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-dark { background: #fff; color: #1b1464; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.site-header.scrolled, .site-header.menu-open {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(16, 24, 64, .05);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover svg { transform: rotate(60deg); }
.brand b { font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { white-space: nowrap; position: relative; padding: 8px 14px; border-radius: 8px; font-size: .94rem; font-weight: 500; color: var(--muted); transition: color .2s ease, background-color .2s ease; }
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav .nav-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; padding: 0; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.icon-btn:hover { border-color: var(--indigo); color: var(--blue); background: var(--accent-soft); }
[data-theme="dark"] .icon-btn:hover { color: var(--indigo-light); }
.icon-btn .icon { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: inline-flex; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-close { display: inline-flex; }
.menu-open .menu-toggle .i-menu { display: none; }

@media (max-width: 1000px) {
  .menu-toggle { display: inline-grid; }
  .nav-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s; box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { background: var(--accent-soft); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-cta { display: flex; margin-top: 8px; color: #fff; }
  .nav .nav-cta:hover { color: #fff; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(76px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-tight { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head.split > div { max-width: 680px; }
.section-head.split > .lead { max-width: 440px; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Dark brand band, same in both themes */
.section-dark {
  color: #eef0ff; background-color: #0b0a24;
  background-image:
    radial-gradient(800px 420px at 8% 0%, rgba(31, 94, 255, .30), transparent 60%),
    radial-gradient(700px 420px at 92% 10%, rgba(123, 63, 228, .32), transparent 60%),
    radial-gradient(900px 500px at 70% 110%, rgba(140, 29, 64, .45), transparent 60%);
  overflow: hidden;
}
.section-dark .lead, .section-dark .muted { color: #b8bce0; }
.section-dark .eyebrow { color: #c7d0ff; }
.section-dark .text-grad { background-image: linear-gradient(105deg, #8fb0ff, #c4a5ff 55%, #ff9ab8); }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(165,180,252,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(165,180,252,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.section-dark > .container { position: relative; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(96px, 11vw, 150px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero-bg::after {
  content: ""; 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: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 80%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; left: -140px; top: -160px; background: #1f5eff; opacity: .22; }
.blob.b2 { width: 560px; height: 560px; right: -120px; top: -120px; background: #7b3fe4; opacity: .24; animation-delay: -6s; }
.blob.b3 { width: 480px; height: 480px; right: 18%; bottom: -260px; background: #8c1d40; opacity: .2; animation-delay: -12s; }
[data-theme="dark"] .blob { opacity: .38; }
[data-theme="dark"] .blob.b3 { opacity: .42; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .icon { width: 18px; height: 18px; color: var(--blue); }
[data-theme="dark"] .hero-badges .icon { color: var(--indigo-light); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; margin-bottom: 26px;
  border: 1px solid var(--border-strong); border-radius: 999px; font-size: .86rem; color: var(--muted); font-weight: 500;
  background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: var(--shadow);
}
.pill b { white-space: nowrap; background: var(--grad); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .72rem; letter-spacing: .06em; font-weight: 700; }
@media (max-width: 1060px) { .hero-grid { grid-template-columns: 1fr; gap: 64px; } }

/* Hero visual: console mock-up + code window */
.hero-visual { position: relative; padding: 0 0 206px 0; }
.console {
  position: relative; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.console::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: .78rem; color: var(--muted); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.console-bar .title { margin-left: 8px; font-weight: 600; color: var(--text); }
.console-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #16a34a; }
.console-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,.05); } }
.console-body { display: grid; grid-template-columns: 52px 1fr; min-height: 340px; }
.console-side { border-right: 1px solid var(--border); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--surface-2); }
.console-side span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.console-side span .icon { width: 16px; height: 16px; }
.console-side span.on { background: var(--grad); color: #fff; }
.console-main { padding: 16px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.kpi small { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; }
.kpi strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: .68rem; font-weight: 700; color: #16a34a; margin-left: 4px; }
.chart-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 12px 6px; }
.chart-card header { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.chart-card header b { color: var(--text); }
.chart-card svg { width: 100%; height: 110px; }
.chart-card .line { fill: none; stroke: url(#hc-line); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s ease forwards .4s; }
.chart-card .area { fill: url(#hc-area); opacity: 0; animation: fadein 1s ease forwards 1.6s; }
.chart-card .bar { fill: var(--indigo); opacity: .16; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.agents { display: grid; gap: 8px; }
.agent { display: flex; align-items: center; gap: 10px; font-size: .78rem; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.agent .av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.agent .av .icon { width: 14px; height: 14px; }
.agent b { font-weight: 600; }
.agent .st { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.st.ok { background: rgba(34,197,94,.12); color: #15803d; }
.st.run { background: rgba(31,94,255,.12); color: #1f5eff; }
.st.rev { background: rgba(140,29,64,.12); color: #8c1d40; }
[data-theme="dark"] .st.ok { color: #4ade80; } [data-theme="dark"] .st.run { color: #8ea2ff; } [data-theme="dark"] .st.rev { color: #f48fb1; }
.progress { height: 4px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; width: 70px; }
.progress i { display: block; height: 100%; width: 64%; background: var(--grad); border-radius: 4px; animation: load 3s ease-in-out infinite; }
@keyframes load { 0% { width: 12%; } 70%, 100% { width: 96%; } }

.code-window {
  position: absolute; left: -36px; bottom: 0; width: 64%; z-index: 2;
  border-radius: 12px; background: #0c0d2a; border: 1px solid rgba(165,180,252,.2); box-shadow: 0 30px 70px rgba(12, 10, 50, .45); overflow: hidden; color: #e6e8ff;
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid rgba(165,180,252,.14); }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(165,180,252,.3); }
.code-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: .7rem; color: #a3a8cf; }
.code-body { margin: 0; padding: 14px 16px 16px; font-family: var(--font-mono); font-size: .72rem; line-height: 1.8; min-height: 150px; white-space: pre-wrap; word-break: break-word; }
.c-k { color: #c4a5ff; } .c-s { color: #ff9ab8; } .c-f { color: #8fb3ff; } .c-m { color: #7d82ad; } .c-ok { color: #4ade80; }
.cursor { display: inline-block; width: 7px; height: 1.1em; vertical-align: -3px; background: #8ea2ff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: .82rem;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .9rem; font-family: var(--font-head); }
.float-card small { color: var(--muted); }
.float-card .hex { width: 36px; height: 40px; }
.float-card .hex .icon { width: 17px; height: 17px; }
.float-b { right: -22px; top: -26px; }
.float-a { right: 24px; bottom: 40px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 1060px) { .code-window { left: 0; } .float-b { right: 0; } }
@media (max-width: 640px) {
  .hero-visual { padding-bottom: 0; }
  .code-window { position: relative; width: 100%; margin-top: 14px; }
  .kpis { grid-template-columns: repeat(2, 1fr); } .kpis .kpi:nth-child(3) { display: none; }
  .console-body { grid-template-columns: 1fr; } .console-side { display: none; }
  .float-a, .float-b { display: none; }
}

/* ---------- Hex icon tile (brand motif) ---------- */
.hex {
  width: 52px; height: 58px; display: grid; place-items: center; flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent-soft); color: var(--blue);
  transition: background .3s ease, color .3s ease, transform .4s ease;
}
[data-theme="dark"] .hex { color: var(--indigo-light); }
.hex .icon { width: 23px; height: 23px; }
.hex.solid { background: var(--grad); color: #fff; }

/* ---------- Capability strip ---------- */
.strip { border-block: 1px solid var(--border); padding: 20px 0; overflow: hidden; background: var(--bg-2); position: relative; }
.strip::before, .strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.strip::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee span { display: inline-flex; align-items: center; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--muted); white-space: nowrap; letter-spacing: -0.01em; }
.marquee span::after { content: ""; width: 8px; height: 9px; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); margin: 0 38px; }
.strip:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,64,.04);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, .10), transparent 45%);
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, .35); box-shadow: var(--glow); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card:hover .hex { background: var(--grad); color: #fff; transform: rotate(-8deg); }
.card > * { position: relative; }
.card .hex { margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--blue); font-weight: 600; font-size: .93rem; }
[data-theme="dark"] .card .link { color: var(--indigo-light); }
.card .link .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .link .icon { transform: translateX(4px); }
.card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.card li { display: flex; gap: 10px; color: var(--muted); font-size: .93rem; }
.card li .icon { width: 18px; height: 18px; color: var(--purple); margin-top: 3px; }
[data-theme="dark"] .card li .icon { color: var(--accent-2); }
a.card { display: block; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento .span-2 { grid-column: span 2; }
.bento .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: var(--grad-soft), var(--surface); }
.bento .feature svg { width: 100%; height: auto; max-height: 230px; }
.bento .card-cta { background: var(--grad); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: space-between; }
.bento .card-cta h3 { color: #fff; }
.bento .card-cta p { color: rgba(255,255,255,.86); }
.bento .card-cta .link { color: #fff !important; }
.bento .card-cta .hex { background: rgba(255,255,255,.18); color: #fff; }
.bento .card-cta::after { display: none; }
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .span-2 { grid-column: span 2; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .bento .span-2 { grid-column: auto; } .bento .feature { grid-template-columns: 1fr; } }
.net .n { fill: var(--surface); stroke: var(--indigo); stroke-width: 2; }
.net .n.hot { fill: url(#hc-node); stroke: none; }
.net .e { stroke: var(--indigo); stroke-opacity: .35; stroke-width: 1.4; }
.net .e.flow { stroke: url(#hc-edge); stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 5 7; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.checklist li { display: flex; gap: 14px; }
.checklist .tick { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-top: 2px; }
.checklist .tick .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.checklist strong { display: block; font-family: var(--font-head); font-size: 1.04rem; }
.checklist span.muted { font-size: .95rem; }

/* Honeycomb */
.honeycomb { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin: 0 auto; }
.honeycomb::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: var(--grad); filter: blur(70px); opacity: .25; }
.honeycomb .cell {
  position: absolute; width: 31%; aspect-ratio: 0.866; display: grid; place-content: center; text-align: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--surface); color: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: clamp(.7rem, 1.4vw, .88rem);
  transition: transform .4s ease, background .4s ease, color .4s ease; padding: 10px; line-height: 1.25;
  transform: translate(-50%, -50%);
}
.honeycomb .cell .icon { width: 26px; height: 26px; margin: 0 auto 6px; color: var(--purple); }
[data-theme="dark"] .honeycomb .cell .icon { color: var(--indigo-light); }
.honeycomb .cell.core { background: var(--grad); color: #fff; font-size: clamp(.9rem, 2vw, 1.12rem); }
.honeycomb .cell.core .icon { color: #fff; width: 34px; height: 34px; }
.honeycomb .cell:not(.core):hover { color: var(--text); transform: translate(-50%, -50%) scale(1.07); }
.honeycomb .cell.lit { background: color-mix(in srgb, var(--indigo) 16%, var(--surface)); color: var(--text); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(165,180,252,.16); border: 1px solid rgba(165,180,252,.16); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(11, 10, 36, .6); padding: 30px 26px; backdrop-filter: blur(6px); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; margin-bottom: 8px; letter-spacing: -0.03em; background: linear-gradient(105deg, #9db8ff, #c4a5ff 60%, #ff9ab8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #b8bce0; font-size: .92rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Enterprise features on dark band */
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ent { padding: 24px; border-radius: 14px; border: 1px solid rgba(165,180,252,.16); background: rgba(255,255,255,.03); transition: border-color .3s ease, background .3s ease, transform .3s ease; }
.ent:hover { border-color: rgba(165,180,252,.4); background: rgba(255,255,255,.06); transform: translateY(-3px); }
.ent .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(31,94,255,.45), rgba(123,63,228,.45)); color: #e6e9ff; margin-bottom: 16px; }
.ent .ic .icon { width: 19px; height: 19px; }
.ent h3 { font-size: 1.04rem; margin-bottom: 6px; color: #fff; }
.ent p { color: #b8bce0; font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .ent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ent-grid { grid-template-columns: 1fr; } }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.industry:hover { border-color: rgba(99,102,241,.35); box-shadow: var(--glow); transform: translateY(-3px); }
.industry .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.industry .ic .icon { width: 20px; height: 20px; }
.industry h3 { font-size: 1.02rem; margin-bottom: 4px; }
.industry p { font-size: .9rem; color: var(--muted); margin: 0; }
.ic.c1 { background: linear-gradient(135deg, #1f5eff, #6366f1); }
.ic.c2 { background: linear-gradient(135deg, #6366f1, #7b3fe4); }
.ic.c3 { background: linear-gradient(135deg, #7b3fe4, #8c1d40); }
.ic.c4 { background: linear-gradient(135deg, #8c1d40, #b0285a); }
@media (max-width: 960px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.product { display: flex; flex-direction: column; }
.product .tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--purple); margin-bottom: 16px; }
[data-theme="dark"] .product .tag { color: var(--indigo-light); }
.product-preview {
  height: 172px; margin: -30px -30px 26px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 0%, rgba(123,63,228,.20), transparent 55%), radial-gradient(circle at 0% 100%, rgba(31,94,255,.16), transparent 55%), var(--surface-2);
}
.product-preview svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-preview .pv-line { stroke: var(--indigo); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.product-preview .pv-fill { fill: var(--purple); opacity: .14; }
.product-preview .pv-box { fill: var(--surface); stroke: var(--border-strong); }
.product-preview .pv-bar { fill: var(--blue); }
.product-preview .pv-soft { fill: var(--muted); opacity: .28; }
.product-preview .pv-dot { fill: var(--purple); }
.product .actions { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 26px; right: 4%; top: 29px; height: 2px; background: linear-gradient(90deg, #1f5eff, #7b3fe4 50%, rgba(140,29,64,0)); opacity: .45; }
.step { position: relative; padding-top: 86px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; width: 52px; height: 58px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--grad); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: .92rem;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 15px; border-radius: 8px; border: 1px solid var(--border-strong); font-size: .88rem; font-weight: 500; color: var(--muted); background: var(--surface); transition: border-color .2s ease, color .2s ease; }
.chip:hover { border-color: var(--indigo); color: var(--text); }
.tech-group + .tech-group { margin-top: 28px; }
.tech-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 100px) 0 clamp(52px, 7vw, 84px); overflow: hidden; border-bottom: 1px solid var(--border); isolation: isolate; background: var(--bg-2); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -140px; top: -300px; border-radius: 50%; background: #7b3fe4; filter: blur(90px); opacity: .18; }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; bottom: -340px; border-radius: 50%; background: #1f5eff; filter: blur(90px); opacity: .14; }
[data-theme="dark"] .page-hero::before { opacity: .3; } [data-theme="dark"] .page-hero::after { opacity: .25; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 900px; }
.breadcrumb { font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--blue); }
.hex-pattern {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%236366f1' stroke-opacity='0.16' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 85% 20%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 85% 20%, #000 0%, transparent 60%);
}

/* ---------- Service rows ---------- */
.service-row { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 52px 0; border-top: 1px solid var(--border); scroll-margin-top: 96px; }
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row .hex { margin-bottom: 18px; }
.service-row h3 { font-size: 1.6rem; }
.service-row .sub { color: var(--muted); }
.service-row .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; list-style: none; padding: 0; margin: 22px 0 0; }
.service-row .cols li { display: flex; gap: 10px; color: var(--muted); }
.service-row .cols .icon { width: 18px; height: 18px; color: var(--purple); margin-top: 4px; }
[data-theme="dark"] .service-row .cols .icon { color: var(--accent-2); }
.service-row .outcome { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--grad-soft); border-left: 3px solid var(--purple); font-size: .95rem; }
.service-row .outcome b { color: var(--maroon); }
[data-theme="dark"] .service-row .outcome b { color: #f48fb1; }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 520px) { .service-row .cols { grid-template-columns: 1fr; } }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- Values ---------- */
.value { padding: 28px; border: 1px solid var(--border); border-left: 3px solid var(--indigo); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.value:nth-child(4n+2) { border-left-color: var(--purple); }
.value:nth-child(4n+3) { border-left-color: var(--maroon); }
.value:nth-child(4n+4) { border-left-color: var(--blue); }
.value h3 { margin-bottom: 6px; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Mission ---------- */
.mission { font-family: var(--font-head); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; max-width: 1000px; }
.mission em { font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(40px, 7vw, 76px);
  color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  background: #12082e;
  background-image: radial-gradient(600px 300px at 0% 0%, rgba(31,94,255,.75), transparent 60%), radial-gradient(600px 340px at 100% 100%, rgba(140,29,64,.85), transparent 60%), linear-gradient(115deg, #1f3fd8, #5b3fd6 50%, #6a1f55);
  box-shadow: 0 30px 80px rgba(60, 40, 160, .28);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 10px; color: #fff; }
.cta-band p { margin: 0; font-size: 1.08rem; color: rgba(255,255,255,.85); max-width: 560px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 24px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: rgba(99,102,241,.4); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--purple); transition: transform .25s ease; line-height: 1; }
[data-theme="dark"] .faq summary::after { color: var(--indigo-light); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 14px; margin-top: 28px; }
.info-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.info-item .hex { width: 42px; height: 48px; }
.info-item .hex .icon { width: 19px; height: 19px; }
.info-item strong { display: block; font-family: var(--font-head); }
.info-item span, .info-item a { color: var(--muted); }
.info-item a:hover { color: var(--blue); }

.form { position: relative; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.form h2 { font-size: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label, .field > .label { font-size: .87rem; font-weight: 600; }
.req { color: var(--maroon); }
[data-theme="dark"] .req { color: #f48fb1; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 12px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.16); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field .error { display: none; font-size: .82rem; color: #dc2626; }
.field.invalid .error { display: block; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice-group label { cursor: pointer; position: relative; }
.choice-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-group span { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-strong); font-size: .87rem; font-weight: 500; color: var(--muted); transition: all .2s ease; }
.choice-group input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.choice-group input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-size: .95rem; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(34, 197, 94, .1); color: #15803d; border: 1px solid rgba(34,197,94,.35); }
.form-status.err { background: rgba(220, 38, 38, .08); color: #dc2626; border: 1px solid rgba(220,38,38,.3); }
[data-theme="dark"] .form-status.ok { color: #4ade80; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer (always dark) ---------- */
.site-footer {
  --text: #eef0ff; --muted: #a3a8cf;
  color: var(--text); padding: 76px 0 32px; position: relative; overflow: hidden;
  background: #080a1d radial-gradient(900px 400px at 100% 0%, rgba(123,63,228,.22), transparent 60%);
}
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.site-footer .brand b { background-image: linear-gradient(105deg, #7ea6ff, #b794f6 60%, #e26a8d); }
.site-footer .icon-btn { border-color: rgba(165,180,252,.22); color: #dfe4ff; }
.site-footer .icon-btn:hover { border-color: #8ea2ff; color: #fff; background: rgba(142,162,255,.12); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #8a90c0; margin-bottom: 18px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: #dfe2ff; opacity: .85; font-size: .94rem; }
.footer-grid ul a:hover { color: #fff; opacity: 1; }
.footer-about p { color: var(--muted); max-width: 340px; margin-top: 16px; font-size: .94rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(165,180,252,.14); color: var(--muted); font-size: .86rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s !important; } .d2 { transition-delay: .16s !important; } .d3 { transition-delay: .24s !important; }

/* ---------- 404 ---------- */
.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-family: var(--font-head); font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -0.05em; }
.notfound .hero-ctas { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chart-card .line { stroke-dashoffset: 0; } .chart-card .area { opacity: 1; }
}

/* Spacing for the call-to-action band after a tinted or dark section */
.section-alt + .section-tight, .section-dark + .section-tight { padding-top: clamp(76px, 10vw, 128px); }
@media (max-width: 640px) { .agent .progress { display: none; } }

/* ==========================================================================
   Products section: overview, cards, filters and product pages
   ========================================================================== */

/* Status and edition badges: the words carry the meaning, colour only supports it */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; border: 1px solid transparent; white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ready { background: #dcfce7; color: #14532d; border-color: #86efac; }
.badge-soon { background: #ede9fe; color: #4c1d95; border-color: #c4b5fd; }
.badge-dev { background: transparent; color: #7a1a39; border-color: rgba(140, 29, 64, .45); }
.badge-plain { background: var(--surface-2); color: var(--muted); border-color: var(--border); font-weight: 600; }
[data-theme="dark"] .badge-ready { background: rgba(34, 197, 94, .16); color: #86efac; border-color: rgba(134, 239, 172, .35); }
[data-theme="dark"] .badge-soon { background: rgba(139, 92, 246, .18); color: #d8ccff; border-color: rgba(196, 181, 253, .35); }
[data-theme="dark"] .badge-dev { color: #f6a5c0; border-color: rgba(246, 165, 192, .45); }

/* Product cards */
.pcard { display: flex; flex-direction: column; }
.pcard[hidden], .usecase[hidden] { display: none !important; }
.pcard .pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pcard .pcard-top .hex { margin: 0; width: 46px; height: 52px; }
.pcard .pcard-top .hex .icon { width: 21px; height: 21px; }
.pcard .pcard-top .badges { justify-content: flex-end; }
.pcard h3 { position: static; margin-bottom: 4px; font-size: 1.18rem; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard h3 a:focus-visible { outline: none; }
.pcard:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.pcard .pcard-area { font-size: .8rem; font-weight: 600; color: var(--purple); margin-bottom: 10px; }
[data-theme="dark"] .pcard .pcard-area { color: var(--indigo-light); }
.pcard .link { margin-top: auto; padding-top: 18px; }
.card-more { display: flex; flex-direction: column; background: var(--grad-soft), var(--surface); }
.card-more .link { margin-top: auto; padding-top: 18px; }

/* Overview counts and filters */
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; max-width: 760px; }
.pstat { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pstat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.03em; }
.pstat span { font-size: .84rem; color: var(--muted); }
@media (max-width: 640px) { .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

html:not(.js) .filters, html:not(.js) .results { display: none; }
.filters { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 16px; align-items: end; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background-color .2s ease, color .2s ease; }
.seg button .n { font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: var(--border); color: var(--text); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.seg button[aria-pressed="true"] .n { background: rgba(255,255,255,.22); color: #fff; }
.fl { display: grid; gap: 6px; min-width: 0; }
.fl > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.fl select, .fl input { width: 100%; min-width: 0; font: inherit; font-size: .94rem; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; }
.fl select:focus, .fl input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.16); }
@media (max-width: 1060px) { .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .seg { grid-column: 1 / -1; justify-self: start; } .fl-search { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters { grid-template-columns: minmax(0, 1fr); padding: 14px; } .seg { width: 100%; } .seg button { flex: 1 1 auto; justify-content: center; padding: 8px 10px; } }
.results { margin: 20px 0 18px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.empty { text-align: center; padding: 48px 16px; border: 1px dashed var(--border-strong); border-radius: 14px; }
.empty[hidden] { display: none; }

/* Breadcrumb list */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "\203A"; margin: 0 10px; color: var(--muted); opacity: .7; }
.breadcrumb li[aria-current] { color: var(--text); font-weight: 600; }

/* Product page hero */
.product-hero h1 { margin-top: 14px; }
.product-hero .lead { max-width: 760px; }
.product-hero .lead-long { font-size: 1.04rem; line-height: 1.7; max-width: 820px; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.ph-art { position: relative; width: 190px; height: 210px; display: grid; place-items: center; }
.ph-art::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: var(--grad); filter: blur(46px); opacity: .35; }
.ph-art .hex { position: relative; width: 150px; height: 170px; }
.ph-art .hex .icon { width: 58px; height: 58px; stroke-width: 1.5; }
@media (max-width: 860px) { .ph-grid { grid-template-columns: minmax(0, 1fr); } .ph-art { display: none; } }

/* Product page body */
.product-body { padding-top: clamp(48px, 7vw, 80px); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.pmain { min-width: 0; overflow-wrap: break-word; }
.psec { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }
.psec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.psec > h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 20px; }
.problem { font-size: 1.08rem; color: var(--text); margin: 0; }
.feat-list, .trust-list, .dot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.feat-list li, .trust-list li, .dot-list li { display: flex; gap: 12px; align-items: flex-start; }
.feat-list li > span, .trust-list li > span, .dot-list li > span { min-width: 0; }
.feat-list .icon { width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: var(--grad); color: #fff; stroke-width: 3; margin-top: 2px; }
.trust-list .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
[data-theme="dark"] .trust-list .icon { color: var(--indigo-light); }
.dot-list { gap: 8px; }
.dot-list .icon { width: 16px; height: 16px; color: var(--purple); margin-top: 4px; }
[data-theme="dark"] .dot-list .icon { color: var(--accent-2); }
.dot-list li { font-size: .95rem; color: var(--muted); }
@media (max-width: 720px) { .feat-list { grid-template-columns: minmax(0, 1fr); } }

.how-grid { display: grid; gap: 16px; }
.how-block { padding: 22px 24px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.how-block h3 { font-size: 1.05rem; margin-bottom: 12px; }

.usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.usecase { padding: 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); border-top: 3px solid var(--indigo); }
.usecase:nth-child(3n+2) { border-top-color: var(--purple); }
.usecase:nth-child(3n+3) { border-top-color: var(--maroon); }
.usecase .who { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.usecase .who .icon { width: 15px; height: 15px; }
.usecase h3 { font-size: 1.05rem; margin-bottom: 8px; }
.usecase p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; counter-reset: ben; }
.benefits li { counter-increment: ben; position: relative; padding: 22px 22px 22px 22px; border-radius: 14px; background: var(--grad-soft), var(--surface); border: 1px solid var(--border); font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.benefits li::before { content: "0" counter(ben); display: block; font-family: var(--font-mono); font-size: .78rem; color: var(--purple); margin-bottom: 10px; }
[data-theme="dark"] .benefits li::before { color: var(--indigo-light); }

.gtk { display: flex; gap: 16px; padding: 22px 24px; border-radius: 14px; background: color-mix(in srgb, var(--maroon) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--maroon) 30%, transparent); }
.gtk > .icon, .gtk > i .icon { color: var(--maroon); margin-top: 2px; }
[data-theme="dark"] .gtk { background: color-mix(in srgb, var(--maroon) 18%, var(--surface)); }
[data-theme="dark"] .gtk > i .icon { color: #f6a5c0; }
.gtk p { margin: 0 0 10px; color: var(--text); }
.gtk p:last-child { margin: 0; }

.hood { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.hood summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hood summary::-webkit-details-marker { display: none; }
.hood summary h2 { font-size: 1.2rem; margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.hood summary h2::before { content: "+"; font-family: var(--font-mono); color: var(--purple); transition: transform .2s ease; display: inline-block; }
.hood[open] summary h2::before { transform: rotate(45deg); }
.hood summary .muted { font-size: .85rem; }
.tech-list { list-style: none; margin: 0; padding: 4px 22px 22px; display: grid; gap: 8px; }
.tech-list li { font-family: var(--font-mono); font-size: .84rem; line-height: 1.6; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); overflow-wrap: anywhere; word-break: break-word; }

/* Fact panel */
.pfacts { position: sticky; top: 96px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow-wrap: break-word; }
.pfacts::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 16px 16px 0 0; background: var(--grad); }
.pfacts h2 { font-size: 1.1rem; margin-bottom: 14px; }
.pfacts dl { margin: 0; display: grid; gap: 0; }
.pfacts dl > div { padding: 12px 0; border-top: 1px solid var(--border); }
.pfacts dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.pfacts dd { margin: 0; font-size: .94rem; font-weight: 500; }
.chips-sm { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips-sm li { font-size: .8rem; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.pfacts-cta { margin-top: 16px; }
.pfacts-cta .btn { width: 100%; }
@media (max-width: 980px) { .product-layout { grid-template-columns: minmax(0, 1fr); } .pfacts { position: static; } }

/* Notify me */
.notify-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 22px; background: var(--grad-soft), var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.notify-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.notify-card p { color: var(--muted); }
.notify-alt { font-size: .92rem; }
.notify-alt a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .notify-alt a { color: var(--indigo-light); }
.notify-form { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; cursor: pointer; }
.field.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); padding: 0; }
.form-status.info { background: var(--accent-soft); color: var(--text); border: 1px solid rgba(99,102,241,.35); }
.form-status a { color: var(--blue); font-weight: 600; text-decoration: underline; }
[data-theme="dark"] .form-status a { color: var(--indigo-light); }
@media (max-width: 860px) { .notify-card { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Previous and next product */
.pn { display: flex; justify-content: space-between; gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); padding-top: 8px; }
.pn-link { display: grid; gap: 4px; max-width: 48%; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.pn-link:hover { border-color: rgba(99,102,241,.4); box-shadow: var(--glow); }
.pn-link .muted { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.pn-link strong { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); }
.pn-link:not(.pn-next) strong .icon { transform: rotate(180deg); }
.pn-next { text-align: right; justify-items: end; margin-left: auto; }
@media (max-width: 560px) { .pn { flex-direction: column; } .pn-link { max-width: none; } .pn-next { text-align: left; justify-items: start; margin-left: 0; } }

/* Long technical words and paths wrap instead of widening the page */
.pmain, .pfacts, .pcard, .notify-card { overflow-wrap: anywhere; }
.how-grid > *, .usecases > *, .benefits > * { min-width: 0; }
.seg button[aria-pressed="true"] .n { background: #fff; color: #1b3fd1; }

/* ==========================================================================
   AI Hands-on Trainings
   ========================================================================== */
.trainings-hero { padding-bottom: clamp(72px, 9vw, 120px); }
.lab-card { position: relative; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 520px; margin-left: auto; }
.lab-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.lab-body { padding: 22px; display: grid; gap: 16px; }
.lab-head { display: flex; align-items: center; gap: 14px; }
.lab-head .hex { width: 46px; height: 52px; }
.lab-head .hex .icon { width: 21px; height: 21px; }
.lab-head strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.lab-head small { color: var(--muted); }
.lab-progress { height: 8px; border-radius: 8px; background: var(--accent-soft); overflow: hidden; }
.lab-progress i { display: block; height: 100%; width: 52%; border-radius: 8px; background: var(--grad); animation: labfill 2.4s cubic-bezier(.2,.8,.2,1) both .3s; }
@keyframes labfill { from { width: 0; } }
.lab-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lab-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.lab-steps .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--border-strong); }
.lab-steps .tick .icon { width: 13px; height: 13px; stroke-width: 3; }
.lab-steps li.done { color: var(--text); }
.lab-steps li.done .tick { background: #16a34a; border-color: #16a34a; color: #fff; }
.lab-steps li.active { color: var(--text); font-weight: 600; border-color: rgba(99,102,241,.45); background: var(--accent-soft); }
.lab-steps li.active .tick { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,94,255,.15); animation: pulse-ring 2s ease-in-out infinite; }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 7px rgba(31,94,255,.05); } }
.lab-foot { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--border); padding-top: 14px; }
.lab-foot .icon { width: 17px; height: 17px; color: var(--purple); }
[data-theme="dark"] .lab-foot .icon { color: var(--indigo-light); }
@media (max-width: 1060px) { .lab-card { margin: 0 auto; } }

.course { display: flex; flex-direction: column; padding: 26px; }
.course-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.course .hex { margin: 0; width: 46px; height: 52px; }
.course .hex .icon { width: 21px; height: 21px; }
.course h3 { font-size: 1.12rem; margin-bottom: 8px; }
.course-who { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; font-weight: 600; color: var(--purple) !important; margin-bottom: 10px !important; }
[data-theme="dark"] .course-who { color: var(--indigo-light) !important; }
.course-who .icon { width: 16px; height: 16px; margin-top: 2px; }
.course-build { margin-top: 16px !important; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text) !important; }
.course ul { margin-top: 10px; }
.course li { font-size: .9rem; }
.lvl { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.lvl-1 { background: #dbe6ff; color: #1236a8; border-color: #a9c1ff; }
.lvl-2 { background: #ede9fe; color: #4c1d95; border-color: #c4b5fd; }
.lvl-3 { background: #fbe3ea; color: #7a1a39; border-color: #f2a9be; }
.lvl-4 { background: #e0e7ff; color: #312e81; border-color: #a5b4fc; }
[data-theme="dark"] .lvl-1 { background: rgba(31,94,255,.2); color: #b9cdff; border-color: rgba(185,205,255,.35); }
[data-theme="dark"] .lvl-2 { background: rgba(139,92,246,.2); color: #d8ccff; border-color: rgba(216,204,255,.35); }
[data-theme="dark"] .lvl-3 { background: rgba(140,29,64,.3); color: #f8b4c9; border-color: rgba(248,180,201,.35); }
[data-theme="dark"] .lvl-4 { background: rgba(99,102,241,.22); color: #c7d0ff; border-color: rgba(199,208,255,.35); }
@media (max-width: 1240px) and (min-width: 1025px) { .courses { grid-template-columns: repeat(3, 1fr); } }

/* The longer menu: tighter spacing on mid-size screens */
@media (max-width: 1240px) and (min-width: 1001px) { .nav a { padding: 8px 10px; font-size: .9rem; } .nav-actions .btn-sm { padding: 10px 14px; } }

/* On small screens the hero glows sit right behind the text: keep them faint enough for readable contrast */
@media (max-width: 760px) {
  .blob.b1, .blob.b2, .blob.b3 { opacity: .11; }
  [data-theme="dark"] .blob, [data-theme="dark"] .blob.b3 { opacity: .2; }
}
.hero-bg { overflow: hidden; contain: paint; }

/* ==========================================================================
   PRISM DESIGN LAYER (chosen concept 02)
   Light, premium look: floating glass navigation, silk-ribbon heroes,
   shimmering gradient type, 3D prism, stacked colour cards, tilt.
   This layer sits on top of the base styles above and overrides them.
   ========================================================================== */
html { scroll-padding-top: 110px; }
:root { --radius: 20px; }
.btn { border-radius: 12px; }
.btn-sm { border-radius: 10px; }

/* Shimmering gradient text */
.text-grad, .brand b { background-size: 200% 100%; animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer { 50% { background-position: 100% 0; } }

/* Hexagon marker on eyebrows */
.eyebrow::before, .section-head.center .eyebrow::after { width: 9px; height: 10px; border-radius: 0; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.section-head.center .eyebrow::after { display: none; }

/* ---------- Floating glass navigation ---------- */
.site-header { position: fixed; left: 0; right: 0; top: 14px; padding: 0 16px; background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.site-header .nav-wrap { max-width: 1180px; height: 68px; padding: 0 10px 0 20px; border-radius: 18px; background: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 40px rgba(30, 27, 95, .10); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled .nav-wrap, .site-header.menu-open .nav-wrap { background: rgba(255, 255, 255, .9); box-shadow: 0 14px 44px rgba(30, 27, 95, .14); }
[data-theme="dark"] .site-header .nav-wrap { background: rgba(17, 19, 53, .72); border-color: rgba(165, 180, 252, .16); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
[data-theme="dark"] .site-header.scrolled .nav-wrap { background: rgba(17, 19, 53, .9); }
@media (max-width: 1000px) {
  .nav { inset: 80px 0 auto 0; border-radius: 18px; border: 1px solid var(--border); }
}
@media (max-width: 600px) { .site-header { padding: 0 10px; } .site-header .nav-wrap { padding: 0 8px 0 14px; } }

/* Room for the floating navigation above every first section */
.hero { padding-top: calc(clamp(40px, 6vw, 72px) + 96px); }
.page-hero { padding-top: calc(clamp(48px, 7vw, 88px) + 92px); }
.notfound { padding-top: 170px; }

/* ---------- Silk-ribbon heroes (canvas added by main.js) ---------- */
.silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero .hero-bg .blob { display: none; }
.hero { background: radial-gradient(1000px 600px at 85% 10%, rgba(123, 63, 228, .08), transparent 60%), radial-gradient(800px 500px at 0% 0%, rgba(31, 94, 255, .07), transparent 60%), var(--bg); }
.page-hero { background: radial-gradient(900px 500px at 90% 0%, rgba(123, 63, 228, .09), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(31, 94, 255, .07), transparent 60%), var(--bg-2); }
.page-hero::before, .page-hero::after, .page-hero .hex-pattern { display: none; }
[data-theme="dark"] .hero { background: radial-gradient(1000px 600px at 85% 10%, rgba(123, 63, 228, .18), transparent 60%), radial-gradient(800px 500px at 0% 0%, rgba(31, 94, 255, .14), transparent 60%), var(--bg); }
[data-theme="dark"] .page-hero { background: radial-gradient(900px 500px at 90% 0%, rgba(123, 63, 228, .2), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(31, 94, 255, .14), transparent 60%), var(--bg-2); }

/* Headline letters (split by main.js) */
h1 .ch { display: inline-block; will-change: transform, filter, opacity; }
h1 .wd { display: inline-block; white-space: nowrap; }

/* ---------- Home: 3D prism ---------- */
.hero-prism { min-height: min(100vh, 980px); }
.hero-prism h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); letter-spacing: -.05em; }
.prism-stage { position: relative; height: 540px; perspective: 1300px; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; }
.prism-stage:active { cursor: grabbing; }
.prism { position: relative; width: 180px; height: 300px; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-20deg); }
.prism .face { position: absolute; inset: 0; border-radius: 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 22px 18px; color: #fff; backface-visibility: hidden; border: 1px solid rgba(255, 255, 255, .35); box-shadow: inset 0 0 40px rgba(255, 255, 255, .12); }
.prism .face:nth-child(1) { transform: rotateY(0deg) translateZ(156px); }
.prism .face:nth-child(2) { transform: rotateY(60deg) translateZ(156px); }
.prism .face:nth-child(3) { transform: rotateY(120deg) translateZ(156px); }
.prism .face:nth-child(4) { transform: rotateY(180deg) translateZ(156px); }
.prism .face:nth-child(5) { transform: rotateY(240deg) translateZ(156px); }
.prism .face:nth-child(6) { transform: rotateY(300deg) translateZ(156px); }
.prism .face .icon { width: 34px; height: 34px; stroke-width: 1.6; }
.prism .face strong { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.15; letter-spacing: -.02em; }
.prism .face small { font-size: .74rem; opacity: .9; line-height: 1.35; }
.prism .face::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 40%); pointer-events: none; }
.prism .cap { position: absolute; left: 50%; top: 50%; width: 360px; height: 312px; margin: -156px 0 0 -180px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: linear-gradient(135deg, #eef0ff, #c7d0ff 50%, #d9c8ff); }
.prism .cap.top { transform: rotateX(90deg) translateZ(150px); }
.prism .cap.bottom { transform: rotateX(-90deg) translateZ(150px); background: linear-gradient(135deg, #1f5eff, #8c1d40); }
.prism .cap.top::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M19.5 17.5 13 24l6.5 6.5M28.5 17.5 35 24l-6.5 6.5' fill='none' stroke='%237b3fe4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/110px no-repeat; }
.prism-shadow { position: absolute; bottom: 38px; left: 50%; width: 300px; height: 44px; margin-left: -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 40, 160, .28), transparent); filter: blur(6px); }
.prism-hint { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--muted); }
@media (max-width: 1060px) { .prism-stage { height: 480px; } }
@media (max-width: 520px) { .prism-stage { height: 400px; transform: scale(.7); margin: -50px 0 -20px; } .prism-hint { display: none; } }

/* ---------- Home: counters ---------- */
.stat-strip-wrap { position: relative; z-index: 2; margin-top: -40px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.stat-strip > div { padding: 32px 30px; border-right: 1px solid var(--border); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.stat-strip span { color: var(--muted); font-size: .95rem; font-weight: 500; }
@media (max-width: 860px) { .stat-strip { grid-template-columns: 1fr 1fr; } .stat-strip > div:nth-child(2) { border-right: 0; } .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

/* ---------- Home: stacked discipline cards ---------- */
.stack { display: grid; gap: 28px; }
.scard { position: sticky; top: 110px; border-radius: 30px; padding: clamp(30px, 5vw, 60px); color: #fff; min-height: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; overflow: hidden; transform-origin: 50% 0; box-shadow: 0 30px 80px rgba(30, 27, 95, .25); }
.scard:nth-child(2) { top: 134px; } .scard:nth-child(3) { top: 158px; } .scard:nth-child(4) { top: 182px; }
.scard.c1 { background: radial-gradient(600px 400px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #1f5eff, #2d46d8); }
.scard.c2 { background: radial-gradient(600px 400px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #6366f1, #4f46e5); }
.scard.c3 { background: radial-gradient(600px 400px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, #7b3fe4, #5b21b6); }
.scard.c4 { background: radial-gradient(600px 400px at 100% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(135deg, #8c1d40, #5e1029); }
.scard .k { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.scard h3 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 14px 0 16px; color: #fff; letter-spacing: -.035em; }
.scard p { opacity: .9; font-size: 1.05rem; margin: 0 0 24px; max-width: 460px; }
.scard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.scard li a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-weight: 600; transition: background-color .25s, transform .25s; }
.scard li a:hover { background: rgba(255, 255, 255, .22); transform: translateX(4px); }
.scard li a .icon { width: 20px; height: 20px; }
.scard li a .icon:last-child { margin-left: auto; width: 16px; height: 16px; opacity: .8; }
.scard .art { position: relative; height: 100%; min-height: 260px; }
.scard .hx { position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgba(255, 255, 255, .14); }
@media (max-width: 860px) { .scard { grid-template-columns: 1fr; position: relative; top: auto !important; min-height: 0; } .scard .art { display: none; } }

/* ---------- Tabs with sliding pill (home products) ---------- */
.ptabs { position: relative; display: inline-flex; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 30px; box-shadow: var(--shadow); }
.ptabs button { position: relative; z-index: 1; font: inherit; font-weight: 600; font-size: .94rem; padding: 10px 20px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; transition: color .3s; }
.ptabs button[aria-selected="true"] { color: #fff; }
.ptabs .n { font-size: .74rem; margin-left: 6px; opacity: .85; }
.ptabs .pill-bg { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 10px; background: var(--grad); box-shadow: 0 8px 20px rgba(99, 102, 241, .35); transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1); }
html:not(.js) .ptabs { display: none; }
html:not(.js) .ppanel[hidden] { display: block; margin-top: 20px; }
.ppanel[hidden] { display: none; }

/* ---------- Learning path that draws itself ---------- */
.tl { position: relative; max-width: 1000px; margin: 0 auto; }
.tl-path { position: absolute; left: 50%; top: 0; height: 100%; width: 120px; margin-left: -60px; overflow: visible; }
.tl-path .track { fill: none; stroke: var(--border); stroke-width: 3; }
.tl-path .draw { fill: none; stroke: url(#tlg); stroke-width: 4; stroke-linecap: round; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; min-height: 210px; }
.tl-item .tl-card { grid-column: 1; padding: 28px; box-shadow: var(--shadow); }
.tl-item .dot + .tl-card { grid-column: 3; }
.tl-item .dot { grid-column: 2; grid-row: 1; justify-self: center; width: 58px; height: 64px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-head); }
.tl-card .lv { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
[data-theme="dark"] .tl-card .lv { filter: brightness(1.7); }
.tl-card h3 { font-size: 1.3rem; margin: 8px 0 12px; }
.tl-card ul { margin-top: 0; }
.center-cta { text-align: center; margin: 40px 0 0; }
@media (max-width: 760px) {
  .tl-path { left: 30px; }
  .tl-item { grid-template-columns: 60px minmax(0, 1fr); min-height: 0; margin-bottom: 24px; }
  .tl-item .tl-card, .tl-item .dot + .tl-card { grid-column: 2; grid-row: 1; }
  .tl-item .dot { grid-column: 1; width: 46px; height: 52px; }
}

/* ---------- Product pages: small rotating prism ---------- */
.ph-art { perspective: 900px; width: 220px; height: 230px; }
.ph-art::before { inset: 15%; opacity: .3; }
.mini-prism { position: relative; width: 84px; height: 140px; transform-style: preserve-3d; animation: mprism 14s linear infinite; }
.mini-prism .mf { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .35); backface-visibility: hidden; }
.mini-prism .mf .icon { width: 34px; height: 34px; stroke-width: 1.6; }
.mini-prism .mf:nth-child(1) { transform: rotateY(0deg) translateZ(73px); background: linear-gradient(165deg, #3b74ff, #1f5eff); }
.mini-prism .mf:nth-child(2) { transform: rotateY(60deg) translateZ(73px); background: linear-gradient(165deg, #7f82ff, #6366f1); }
.mini-prism .mf:nth-child(3) { transform: rotateY(120deg) translateZ(73px); background: linear-gradient(165deg, #9563ff, #7b3fe4); }
.mini-prism .mf:nth-child(4) { transform: rotateY(180deg) translateZ(73px); background: linear-gradient(165deg, #a8306a, #8c1d40); }
.mini-prism .mf:nth-child(5) { transform: rotateY(240deg) translateZ(73px); background: linear-gradient(165deg, #4c6bff, #3b4fe0); }
.mini-prism .mf:nth-child(6) { transform: rotateY(300deg) translateZ(73px); background: linear-gradient(165deg, #8a4fe8, #6a1f55); }
.mini-prism .mcap { position: absolute; left: 50%; top: 50%; width: 168px; height: 146px; margin: -73px 0 0 -84px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: linear-gradient(135deg, #eef0ff, #c7d0ff 50%, #d9c8ff); transform: rotateX(90deg) translateZ(70px); }
@keyframes mprism { from { transform: rotateX(-16deg) rotateY(0deg); } to { transform: rotateX(-16deg) rotateY(360deg); } }

/* ---------- Cards: 3D tilt ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.card.tilt:hover { transform: none; }
.card { border-radius: var(--radius); }

/* ---------- Closing call to action ---------- */
.cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; border-radius: 34px; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); background: linear-gradient(120deg, #1f3fd8, #5b3fd6 45%, #6a1f55); }
.cta-band::before { display: none; }
.cta-band h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 900px; }
.cta-band p { margin: 18px auto 34px; font-size: 1.12rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-band .fh { position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgba(255, 255, 255, .1); pointer-events: none; }
.cta-band > .fh { position: absolute; }

/* ---------- Light footer ---------- */
.site-footer { --text: #0e1033; --muted: #565b7d; background: var(--bg-2); color: var(--text); border-top: 1px solid var(--border); }
.site-footer::before { opacity: .9; }
.site-footer .footer-grid h4 { color: var(--muted); }
.site-footer .footer-grid ul a { color: var(--text); opacity: .85; }
.site-footer .footer-grid ul a:hover { color: var(--blue); opacity: 1; }
.site-footer .icon-btn { border-color: var(--border-strong); color: var(--text); }
.site-footer .icon-btn:hover { border-color: var(--indigo); color: var(--blue); background: var(--accent-soft); }
.site-footer .footer-bottom { border-top-color: var(--border); }
.site-footer .brand b { background-image: var(--grad-text); }
[data-theme="dark"] .site-footer { --text: #eef0ff; --muted: #a3a8cf; background: #080a1d; }
[data-theme="dark"] .site-footer .footer-grid ul a:hover { color: var(--indigo-light); }

@media (prefers-reduced-motion: reduce) {
  .mini-prism { animation: none; transform: rotateX(-16deg) rotateY(-24deg); }
  .text-grad, .brand b { animation: none; }
}

/* ==========================================================================
   RESPONSIVE FIXES (audit across 20 screen sizes, 320px to 2560px)
   ========================================================================== */
/* Tap targets of at least 24px for links that sit in lists */
.footer-grid ul { gap: 4px; }
.footer-grid ul a, .footer-grid ul li > span, .breadcrumb a, .info-item a { display: inline-block; padding: 4px 0; }
.field.check input { width: 24px; height: 24px; margin-top: 0; }

/* Spam trap: hidden without being placed off screen */
.hp { position: absolute !important; left: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Smallest text stays at 12px or more */
.badge, .ptabs .n, .tl-card .lv, .pfacts dt, .course-build, .prism .face small { font-size: .76rem; }
.pill b, .lvl { font-size: .75rem; }

/* Phone menu can scroll when the screen is short (landscape phones) */
@media (max-width: 1000px) {
  .nav { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Learning path line stays inside the screen on phones */
@media (max-width: 760px) { .tl-path { left: 30px; width: 60px; margin-left: -30px; } }

/* Stacked cards only stick when the screen is tall enough to show a whole card */
@media (max-height: 659px) { .scard { position: relative; top: auto !important; } }

/* Narrow phones: a little less padding inside boxes so text gets more room */
@media (max-width: 480px) {
  .card, .course { padding: 24px 20px; }
  .how-block, .usecase, .gtk, .pfacts, .notify-form, .tl-item .tl-card, .value, .industry, .ent { padding: 18px; }
  .gtk { gap: 12px; }
}

/* Large monitors: wider layout and slightly larger type so pages do not look small */
@media (min-width: 1800px) {
  :root { --maxw: 1400px; }
  html { font-size: 17px; }
  body { font-size: 1rem; }
  .site-header .nav-wrap { max-width: 1360px; }
}
@media (min-width: 2400px) {
  :root { --maxw: 1520px; }
  html { font-size: 18px; }
  body { font-size: 1rem; }
  .site-header .nav-wrap { max-width: 1480px; }
}
