/* Self-hosted fonts (latin + latin-ext subsets, variable weight) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../assets/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* =========================================================
   Stackvixo — light, professional theme (Indigo & Violet)
   ========================================================= */
:root {
  --brand: #4f46e5; --brand-mid: #6366f1; --brand-2: #8b5cf6; --brand-3: #22d3ee;
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe;
  --ink: #0f0d24; --ink-2: #17142f; --ink-3: #221e42;
  --on-brand: #ffffff;
}
:root {
  --text: #1e293b;
  --muted: #5b6474;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --line: #e7e9f0;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 18px;
  --max: 1200px;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 45%, var(--brand-2) 100%);
  --grad-text: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 8px rgba(15,23,42,.04);
  --shadow: 0 24px 48px -18px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.04);
  --shadow-brand: 0 14px 30px -12px color-mix(in srgb, var(--brand) 60%, transparent);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-mid); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .55em; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--brand-100); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.big { font-size: 1.08rem; }

/* ---------- Logo (inline SVG follows the theme) ---------- */
.logo { width: 38px; height: 38px; flex: 0 0 auto; }
.logo .l-a { stop-color: var(--brand); } .logo .l-b { stop-color: var(--brand-mid); } .logo .l-c { stop-color: var(--brand-2); }
.logo .l-dot { fill: var(--brand-3); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(15,23,42,.12); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wordmark { font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; font-size: 1.42rem; color: var(--ink); line-height: 1; }
.wordmark span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: #334155; font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav-links .btn { margin-left: 10px; padding: 11px 20px; color: var(--on-brand) !important; background: var(--grad) !important; }
.chev { width: 15px; height: 15px; transition: transform .2s; }
.has-menu { position: relative; }
.has-menu:hover .chev, .has-menu:focus-within .chev { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 10px); left: 50%; width: 580px; transform: translate(-50%, 8px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--text); transition: background .15s; }
.menu a:hover { background: var(--bg-soft); }
.menu .mi { flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.menu .mi svg { width: 19px; height: 19px; }
.menu strong { display: block; color: var(--ink); font-size: .92rem; font-weight: 600; }
.menu small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.menu .menu-all { grid-column: span 2; justify-content: space-between; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 6px; padding-top: 14px; font-weight: 600; color: var(--brand); font-size: .92rem; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: var(--on-brand); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { color: var(--brand); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0,0,0,.3); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Light hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%); }
.hero { padding: 90px 0 100px; }
.page-hero { padding: 70px 0 76px; border-bottom: 1px solid var(--line); }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(color-mix(in srgb, var(--brand) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--brand) 9%, transparent) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 0%, #000 20%, transparent 70%); }
.hero::after, .page-hero::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-2) 28%, transparent), transparent 65%); }
.hero-grid, .hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 6px 14px 6px 6px; border-radius: 999px; margin-bottom: 24px; }
.pill b { background: var(--grad); color: var(--on-brand); font-size: .72rem; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-trust strong { display: block; font-family: var(--font-head); font-size: 1.65rem; color: var(--ink); line-height: 1.1; }
.hero-trust span { font-size: .88rem; color: var(--muted); }

.tk-k { color: #c4b5fd; } .tk-f { color: var(--brand-3); } .tk-s { color: #86efac; } .tk-c { color: #6b7389; font-style: italic; } .tk-n { color: #fbbf24; }
.hero-visual { position: relative; padding: 0; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.breadcrumb { font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b6bccb; }
.hero-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; background: var(--brand-50); }
.hero-media img, .hero-media > svg { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 104px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #b9bfcd; overflow: hidden; isolation: isolate; }
.section-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 320px at 92% 0%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 70%), radial-gradient(520px 320px at 0% 100%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .gradient-text { background: linear-gradient(90deg, #fff, var(--brand-3)); -webkit-background-clip: text; background-clip: text; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: #b9bfcd; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* Cards */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; box-shadow: var(--shadow-sm); }
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.card:hover::after { transform: scaleX(1); }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); padding: 0; margin: 16px 0 0; list-style: none; display: grid; gap: 8px; }
.card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.card ul li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; text-decoration: none; position: relative; z-index: 2; }
.card .link::after { content: "→"; transition: transform .2s; }
.card:hover .link::after { transform: translateX(4px); }
.card-glass { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); box-shadow: none; }
.card-glass p, .card-glass ul { color: #b9bfcd; }
.card-glass ul li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.card-glass:hover { border-color: color-mix(in srgb, var(--brand-3) 45%, transparent); background: rgba(255,255,255,.07); box-shadow: 0 20px 40px -15px rgba(0,0,0,.5); }
.icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); margin-bottom: 20px; box-shadow: var(--shadow-brand); }
.icon svg { width: 24px; height: 24px; }
.card-feature { padding: 38px; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: 4px 11px; border-radius: 999px; background: var(--brand-50); color: var(--brand); margin: 0 6px 12px 0; }
.tag-green { background: #dcfce7; color: #15803d; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.fact small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fact strong { font-family: var(--font-head); color: var(--ink); font-size: 1.02rem; }

/* Steps */
.steps { counter-reset: step; }
.steps .card { padding-top: 70px; }
.steps .card::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 24px; left: 30px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.check-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.check-list .icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.check-list .icon svg { width: 21px; height: 21px; }
.check-list strong { display: block; color: var(--ink); font-size: 1.04rem; margin-bottom: 2px; }
.check-list p { margin: 0; color: var(--muted); }

/* Modules (course pages) */
.modules { counter-reset: mod; display: grid; gap: 14px; }
.module { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.module::before { counter-increment: mod; content: counter(mod, decimal-leading-zero); width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.module h3 { margin: 4px 0 4px; font-size: 1.06rem; }
.module p { margin: 0; color: var(--muted); }

/* Dark panel */
.visual-panel { position: relative; border-radius: 24px; background: var(--ink); padding: 32px; overflow: hidden; isolation: isolate; box-shadow: var(--shadow); color: #b9bfcd; }
.visual-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px 200px at 85% 0%, color-mix(in srgb, var(--brand-2) 35%, transparent), transparent 70%), radial-gradient(300px 220px at 0% 100%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%); }
.visual-panel h3 { color: #fff; }
.metric { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #d4d8e2; margin-bottom: 12px; font-size: .95rem; }
.metric b { color: #fff; font-family: var(--font-head); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--grad); color: var(--on-brand); border-radius: 28px; padding: 60px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; box-shadow: var(--shadow-brand); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.08rem; max-width: 52ch; }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose li { margin-bottom: .4em; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; background: #fff; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 38px; box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 600; font-size: .9rem; color: var(--ink); display: block; margin-bottom: 7px; }
input, select, textarea { width: 100%; font: inherit; font-size: .98rem; padding: 13px 15px; border: 1px solid #d5d9e3; border-radius: 12px; background: #fcfcfe; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
input:hover, select:hover, textarea:hover { border-color: #b9bfcc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute !important; left: -5000px !important; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; margin: 0; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.ok { color: #166534; background: #dcfce7; padding: 12px 16px; }
.form-status.err { color: #991b1b; background: #fee2e2; padding: 12px 16px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.contact-list .icon { width: 48px; height: 48px; margin: 0; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list span, .contact-list a { color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark span { background: linear-gradient(90deg, var(--brand-3), #fff); -webkit-background-clip: text; background-clip: text; }

.site-footer input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.site-footer input::placeholder { color: #7d8496; }
.site-footer .btn { padding: 12px 18px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.socials a:hover { background: var(--brand); border-color: var(--brand); }
.socials svg { width: 17px; height: 17px; }

.error-code { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; margin: 0; }

/* ---------- Photos & media ---------- */
.card-media { padding: 0; display: flex; flex-direction: column; }
.card-media .thumb { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--brand-50); }
.card-media .thumb > img, .card-media .thumb > svg, .card-media .thumb > picture > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card-media:hover .thumb > img, .card-media:hover .thumb > svg, .card-media:hover .thumb > picture > img { transform: scale(1.05); }
.card-media .thumb .icon { position: absolute; left: 18px; bottom: 16px; z-index: 2; margin: 0; width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.9); }
.card-media .thumb .icon svg { width: 22px; height: 22px; }
.card-media .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card-media .body .link { margin-top: auto; padding-top: 18px; }
.card-media h3 a { color: inherit; text-decoration: none; }
.card-media h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--brand-50); }
.media > img, .media > svg, .media > picture > img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; }
.media-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); border: 1px solid rgba(255,255,255,.6); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: .9rem; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-sm); }
.media-badge b { color: var(--brand); font-family: var(--font-head); font-size: 1.15rem; }
.media-stack { position: relative; padding: 0 0 40px 40px; }
.media-stack .media + .media { position: absolute; width: 48%; left: 0; bottom: 0; border: 6px solid #fff; border-radius: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: .82rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.industry { display: flex; gap: 16px; align-items: flex-start; }
.industry .icon { flex: 0 0 50px; margin: 0; }
.industry h3 { margin-bottom: 4px; }

/* Blog */
.post-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.page-hero .post-meta { font-size: .95rem; margin-top: 18px; }
.article { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.article > p:first-of-type { font-size: 1.2rem; color: var(--ink); }
.article h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: .5em; }
.article .media { margin: 0 0 40px; }
.callout { border-left: 4px solid var(--brand); background: var(--brand-50); padding: 18px 22px; border-radius: 0 14px 14px 0; margin: 28px 0; }
.callout p:last-child { margin: 0; }
.article-cta { margin-top: 48px; padding: 32px; border-radius: 20px; background: var(--ink); color: #b9bfcd; }
.article-cta h2 { color: #fff; margin-top: 0; font-size: 1.4rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }
/* Grid children must be allowed to shrink */
.grid > *, .hero-grid > *, .hero-split > *, .split > *, .form-row > *, .facts > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .hero-split, .split { grid-template-columns: 1fr; gap: 44px; }
.grid-3, .grid-4, .facts { grid-template-columns: repeat(2, 1fr); }

  .hero-visual, .hero-media { max-width: 600px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 74px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > li > a { padding: 12px 14px; width: 100%; }
  .nav-links .btn { margin: 8px 0 0; width: 100%; }
  .menu, .chev { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
.grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
.facts { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .page-hero { padding: 48px 0 56px; }
  .cta-band { padding: 38px 24px; border-radius: 22px; }
  .form-card { padding: 26px 20px; }
  .inline-form { flex-direction: column; }

  .hero-actions .btn { flex: 1 1 100%; }

  .media-stack { padding: 0; }
  .media-stack .media + .media { display: none; }
  .module { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .module::before { width: 44px; height: 44px; font-size: 1rem; }

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

/* FAQ two-column layout */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 104px; }
.faq-help { margin-top: 28px; padding: 28px; background: linear-gradient(160deg, var(--brand-50), #fff 70%); }
.faq-help h3 { margin-bottom: 6px; }
.faq-wrap > * { min-width: 0; }
@media (max-width: 1024px) { .faq-wrap { grid-template-columns: 1fr; gap: 36px; } .faq-side { position: static; } }

/* =========================================================
   Review fixes (symmetry, contrast, consistency)
   ========================================================= */
/* Contrast: buttons/CTA stay on the darker brand tones; gradient text ends on a deepened accent */
:root {
  --grad: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand-mid) 60%, var(--brand)) 100%);
  --grad-text: linear-gradient(90deg, var(--brand) 0%, color-mix(in srgb, var(--brand-2) 70%, var(--ink)) 100%);
  --grad-vivid: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.card::after { background: var(--grad-vivid); }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-2) 55%, transparent), transparent 65%); }

/* Typography balance */
h1, h2, h3 { text-wrap: balance; }
.page-hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.05rem); }
.subhead { font-size: 1rem; margin-top: 26px; }
.h-card { font-size: 1.5rem; }
.section-actions { display: flex; justify-content: center; margin-top: 44px; }

/* Hero media: taller, consistent ratio */
.hero-media img, .hero-media > svg { aspect-ratio: 4 / 3; }
.split > .media > img, .split > .media > svg, .split > .media > picture > img { aspect-ratio: 4 / 3; }
.container.narrow { max-width: 780px; }
.article { max-width: 780px; }

/* Media stack: badge top-right, images fill the column height */
.media-stack .media-badge { left: auto; right: 18px; top: 18px; bottom: auto; }
.split-stretch { align-items: stretch; }
.split-stretch .media-stack { display: flex; flex-direction: column; }
.split-stretch .media-stack .media:first-child { flex: 1; min-height: 420px; }
.split-stretch .media-stack .media:first-child > img, .split-stretch .media-stack .media:first-child > picture > img { height: 100%; aspect-ratio: auto; }

/* Cards: icon top-left, uniform tint, even text blocks */
.card-media .thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--ink) 45%, transparent)); }
.card-media .thumb .icon { top: 16px; left: 16px; bottom: auto; }
.grid-2 .card-media .thumb { aspect-ratio: 16 / 9; }
.card-media h3 { min-height: 2.4em; }
.card-media .body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid > .card { display: flex; flex-direction: column; }
.card-stat { text-align: center; }
.card-stat h3 { font-size: 2.4rem; margin: 0 0 4px; }

/* No doubled white gap before CTA bands */
section:not(.section-soft):not(.section-dark):not(.hero):not(.page-hero) + .cta-section { padding-top: 0; }

/* FAQ: compact help card */
.faq-help { margin-top: 20px; padding: 22px; }
.faq-help .hero-actions { margin-top: 16px !important; }

/* Course pages */
.facts-band { padding: 0; margin-top: -40px; position: relative; z-index: 2; }
.facts { margin-top: 0; }
.modules { grid-auto-rows: 1fr; }
.module { align-items: center; }
.metric-feature { align-items: flex-start; justify-content: flex-start; gap: 14px; }
.metric-feature .icon { width: 40px; height: 40px; margin: 0; flex: 0 0 40px; border-radius: 10px; }
.metric-feature .icon svg { width: 20px; height: 20px; }
.metric-feature b { display: block; margin-bottom: 2px; }
.metric-check { justify-content: flex-start; gap: 12px; }
.metric-check::before { content: "✓"; color: var(--brand-3); font-weight: 700; }

/* Header nav */
.nav-links { gap: 4px; }
.nav-links .btn { margin-left: 16px; }
.nav-links > li > a[aria-current="page"]:not(.btn) { background: none; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

.site-footer .inline-form { flex-direction: column; }

.topbar-links a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-links svg { width: 16px; height: 16px; }

/* Top bar */
.topbar { background: var(--ink); color: #c9cedb; font-size: .84rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a { color: #e6e9f0; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar a[data-wa] svg { color: #25d366; }

/* WhatsApp buttons and widget (WhatsApp green, per their brand guidance) */
.btn-wa svg { width: 19px; height: 19px; color: #25d366; }
.btn-wa:hover svg { transform: none; }
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; border: 0; background: #111b21; color: #fff; font: 700 .95rem var(--font); box-shadow: 0 16px 34px -10px rgba(0,0,0,.45); cursor: pointer; transition: transform .2s; }
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #25d366; display: grid; place-items: center; }
.wa-fab-icon svg { width: 26px; height: 26px; color: #fff; }
.wa-dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #4ade80; border: 2px solid #111b21; }
.wa-panel { position: fixed; right: 20px; bottom: 88px; z-index: 95; width: 380px; max-width: calc(100vw - 32px); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -20px rgba(0,0,0,.4); border: 1px solid var(--line); display: none; }
.wa-panel.open { display: block; animation: waIn .2s ease-out; }
@keyframes waIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #111b21; color: #fff; }
.wa-head strong { display: block; font-size: 1rem; }
.wa-head small { display: block; color: #aebac1; font-size: .8rem; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: #25d366; display: grid; place-items: center; flex: 0 0 auto; }
.wa-avatar svg { width: 24px; height: 24px; color: #fff; }
.wa-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.wa-close:hover { background: rgba(255,255,255,.1); }
.wa-body { background: #efeae2; padding: 16px; max-height: 340px; overflow-y: auto; }
.wa-bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: .92rem; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 92%; }
.wa-hint { font-size: .8rem; color: #54656f; margin: 14px 0 8px; }
.wa-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wa-chip { background: #fff; color: #008069; border: 1px solid #d1d7db; border-radius: 999px; padding: 8px 14px; font: 600 .86rem var(--font); cursor: pointer; text-align: right; transition: background .15s; }
.wa-chip:hover { background: #e7fce3; border-color: #25d366; }
.wa-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.wa-form input { flex: 1; min-width: 0; border-radius: 999px; padding: 11px 16px; }
.wa-send { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; }
.wa-send svg { width: 20px; height: 20px; }
.wa-note { font-size: .76rem; color: var(--muted); padding: 0 14px 12px; margin: 0; }

@media (max-width: 1024px) {

  .split-stretch .media-stack .media:first-child { min-height: 0; }
}
@media (max-width: 760px) { .topbar-note { display: none; } .topbar-inner { justify-content: center; } }
@media (max-width: 640px) {

  .facts-band { margin-top: -24px; }
  .wa-fab { padding: 8px; } .wa-fab-label { display: none; }
  .wa-panel { right: 16px; bottom: 80px; }

  .topbar-links { gap: 16px; }
}
/* No scrolling panels: picker fits, chat grows { width: 520px; max-width: calc(100vw - 40px); }

.wa-body { max-height: none; overflow: visible; }

/* ---------- Footer (redesign) ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #a3aaba; padding: 72px 0 0; font-size: .95rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%), radial-gradient(500px 300px at 0% 100%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%); }
.site-footer a { color: #d3d8e3; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }

.f-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 36px 40px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); }
.f-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 6px; }
.f-cta p { margin: 0; color: #b9bfcd; }
.f-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer .f-cta .btn { padding: 14px 22px; }

.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; align-items: start; padding: 64px 0 48px; }
.f-brand .brand { height: 38px; }
.f-brand p { margin: 18px 0 24px; max-width: 36ch; line-height: 1.65; }
.f-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.f-contact li { display: flex; align-items: center; gap: 12px; color: #c4cad6; }
.f-contact svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--brand-3); }
.f-col h3 { height: 38px; display: flex; align-items: center; margin: 0 0 18px; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font); font-weight: 700; }
.f-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.f-col li, .f-contact li { line-height: 1.5; font-size: .95rem; }
.f-col a { display: inline-flex; align-items: center; gap: 0; color: #b9bfcd; }
.f-col a::before { content: ""; width: 0; height: 2px; background: var(--brand-3); border-radius: 2px; transition: width .2s, margin .2s; }
.f-col a:hover::before { width: 10px; margin-right: 8px; }

.f-news { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.f-news > form { grid-column: 2 / -1; }
.f-news h3 { color: #fff; font-size: 1.1rem; margin: 0 0 4px; }
.f-news p { margin: 0; }
.site-footer .f-news .inline-form { flex-direction: row; }
.f-news input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.f-news input::placeholder { color: #8890a2; }

.f-bottom { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; align-items: center; gap: 48px; padding: 22px 0 26px; font-size: .86rem; }
.f-bottom .socials { margin: 0; grid-column: 2; }
.f-legal { display: flex; gap: 20px; justify-content: flex-end; grid-column: 3 / -1; }

@media (max-width: 1024px) {
  .f-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .f-brand { grid-column: 1 / -1; }
  .f-news { grid-template-columns: 1fr; gap: 20px; }
  .f-news > form { grid-column: auto; }
  .f-bottom { grid-template-columns: 1fr; gap: 14px; justify-items: center; text-align: center; }
  .f-bottom .socials, .f-legal { grid-column: auto; }
  .f-legal { justify-content: center; }
}
@media (max-width: 640px) {
  .f-cta { padding: 28px 22px; }
  .f-cta-actions, .f-cta-actions .btn { width: 100%; }
  .f-grid { grid-template-columns: 1fr; padding: 48px 0 36px; }
  .site-footer .f-news .inline-form { flex-direction: column; }
}

.card .link { color: var(--brand); }

/* ---------- Developer feel ---------- */
.pill b { font-family: var(--mono); letter-spacing: .02em; }

/* Typewriter headline */
.typed { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.typed::after { content: ""; display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -0.06em; background: var(--brand); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Hero code editor */
.editor { background: var(--ink); border: 1px solid var(--ink-3); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -28px color-mix(in srgb, var(--ink) 60%, transparent); }
.editor-bar { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.editor-bar i { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.editor-bar i:nth-child(1) { background: #ff5f57; } .editor-bar i:nth-child(2) { background: #febc2e; } .editor-bar i:nth-child(3) { background: #28c840; margin-right: 10px; }
.editor-bar .tab { font-family: var(--mono); font-size: .76rem; color: #7f879a; padding: 13px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.editor-bar .tab.active { color: #e6e9f0; border-bottom-color: var(--brand-3); background: rgba(255,255,255,.04); }
.editor-code { margin: 0; padding: 18px 20px 64px 0; font-family: var(--mono); font-size: .84rem; line-height: 1.85; color: #d4d8e2; counter-reset: ln; overflow-x: auto; }
.editor-code .ln { display: block; padding-left: 52px; position: relative; white-space: pre; min-height: 1.85em; }
.editor-code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 36px; text-align: right; color: #4b5266; }

/* CI terminal — overlaps only the editor's empty bottom padding */
.terminal { position: relative; margin: -48px 0 0 48px; background: #0b0d12; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.terminal-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; font-family: var(--mono); font-size: .72rem; color: #7f879a; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
.term-ok { color: #4ade80; }
.terminal pre { margin: 0; padding: 12px 16px 14px; font-family: var(--mono); font-size: .8rem; line-height: 1.8; color: #d4d8e2; white-space: pre; overflow-x: auto; }
.t-prompt { color: var(--brand-3); } .t-ok { color: #4ade80; } .t-dim { color: #7f879a; }
.t-cursor { display: inline-block; width: 8px; height: 15px; margin-left: 6px; vertical-align: -2px; background: #4ade80; animation: caret 1s steps(1) infinite; }

/* Code-flavoured chips elsewhere */
.chip { font-family: var(--mono); font-weight: 500; font-size: .78rem; }

@media (max-width: 640px) {
  .editor-code { font-size: .72rem; padding-bottom: 56px; }
  .editor-code .ln { padding-left: 40px; }
  .editor-code .ln::before { width: 26px; }
  .editor-bar .tab:not(.active) { display: none; }
  .terminal { margin: -40px 0 0 16px; }
  .terminal pre { font-size: .7rem; }
  .typed { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .typed::after, .t-cursor { animation: none; } }
/* Floating buttons: pill style, hidden while the footer is on screen */
.wa-fab { transition: opacity .25s, transform .25s, visibility .25s; }
body.footer-in-view .wa-fab { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
body.footer-in-view .wa-panel:not(.open) { display: none; }

/* Engineering stack cards */
.stack-card { padding: 26px; position: relative; }
.stack-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-3) 70%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--brand-2) 60%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.stack-card:hover::before { opacity: 1; }
.stack-card::after { display: none; }
.stack-card h3 { margin-bottom: 14px; }
.stack-head { display: flex; justify-content: flex-start; align-items: center; gap: 14px; margin: 0 0 20px; padding: 0; border: 0; text-align: left; }
.stack-head svg { width: 20px; height: 20px; color: #9aa1b2; }
.stack-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.stack-icon svg { width: 22px; height: 22px; color: #fff; }
.stack-head h3 { margin: 0 0 2px; font-size: 1.12rem; }
.stack-file { display: inline-block; font-family: var(--mono); font-size: .72rem; color: var(--brand-3); opacity: .9; }
.stack-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stack-chips span { display: flex; align-items: center; gap: 7px; min-width: 0; font-family: var(--mono); font-size: .8rem; color: #dfe3ec; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); padding: 9px 12px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, border-color .2s; }
.stack-chips span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; background: var(--brand-3); }
.stack-chips span:nth-child(3n+2)::before { background: var(--brand-2); }
.stack-chips span:nth-child(3n)::before { background: #4ade80; }
.stack-card:hover .stack-chips span { border-color: rgba(255,255,255,.14); }

/* Section labels: pill badge */
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px 6px 12px; border-radius: 999px; font-family: var(--font); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-vivid); color: inherit; font-weight: 700; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.section-dark .kicker { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.section-dark .kicker::before { color: var(--brand-3); background: var(--brand-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-3) 25%, transparent); }

/* Office hours in visitor's time zone */
.local-hours { display: block; font-size: .82rem; font-weight: 600; color: var(--brand); margin-top: 2px; }
.f-hours small { display: block; font-size: .8rem; color: #8f97a8; margin-top: 2px; }
.f-hours .local-hours { color: var(--brand-3); }
.f-hours { align-items: flex-start !important; }
.f-hours svg { margin-top: 3px; }
.hours-note { display: block; font-size: .85rem; margin-top: 4px; }
.contact-list li { align-items: start; }

/* Inline form validation */
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--err); background: #fffafa; }
input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.15); border-color: var(--err); }
input.is-valid, select.is-valid, textarea.is-valid { border-color: #22c55e; }
.field-error { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .84rem; font-weight: 500; color: var(--err); }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; background: var(--err); color: #fff; font-size: .7rem; font-weight: 800; }
.site-footer .field-error { color: #fca5a5; }
.site-footer .field-error::before { background: #f87171; }
.site-footer input.is-invalid { background: rgba(248,113,113,.08); }

.in-practice { margin: 22px 0 0 !important; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-3) !important; }
.card-feature .in-practice + ul { margin-top: 10px; }
.card-feature .in-practice { margin-top: auto !important; padding-top: 22px; }

/* ---------- Review fixes ---------- */
/* Industry cards: icon beside the text (beats the generic .grid > .card column layout) */
.grid > .card.industry { flex-direction: row; }
/* Visible keyboard focus on every interactive element */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.site-footer a:focus-visible { outline-color: #fff; }
/* Input focus ring strong enough to see (brand-100 alone is ~1.2:1 on white) */
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
/* Mobile menu: scroll inside the panel on short screens (e.g. phone in landscape) */
@media (max-width: 900px) { .nav-links { max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior: contain; } }
/* <picture> wrappers (WebP + JPEG fallback) must not add a box of their own */
picture { display: contents; }
