/* ============================================================
   BBST: dark, high-tech theme
   ============================================================ */
:root {
  --bg: #05070f;
  --bg-2: #0a0e1a;
  --surface: rgba(140, 160, 255, .045);
  --surface-2: rgba(140, 160, 255, .08);
  --line: rgba(140, 160, 255, .12);
  --line-2: rgba(140, 160, 255, .24);
  --text: #e8ecff;
  --text-2: #a7b0cf;
  --muted: #6f7a9e;
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --violet: #a855f7;
  --pink: #f472b6;
  --mint: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(110deg, #22d3ee 0%, #818cf8 40%, #c084fc 70%, #f472b6 100%);
  --grad-btn: linear-gradient(110deg, #06b6d4, #6366f1 55%, #a855f7);
  --glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 10px 40px -10px rgba(99, 102, 241, .6);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
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 { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.03em; color: #fff; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--text-2); }
::selection { background: rgba(129, 140, 248, .45); color: #fff; }
main:focus { outline: none; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: .5rem 1rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- ambient background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .28; mix-blend-mode: screen; animation: drift 28s ease-in-out infinite alternate; }
.a1 { background: #0891b2; top: -25vmax; left: -15vmax; }
.a2 { background: #6d28d9; top: 10vmax; right: -25vmax; animation-duration: 34s; animation-delay: -8s; }
.a3 { background: #be185d; bottom: -35vmax; left: 20vmax; opacity: .16; animation-duration: 40s; animation-delay: -16s; }
@keyframes drift { 50% { transform: translate(6vmax, 4vmax) scale(1.1); } 100% { transform: translate(-4vmax, 8vmax) scale(.95); } }
.grid-fx { position: absolute; inset: 0; background-image: linear-gradient(rgba(140, 160, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 160, 255, .06) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); }
.noise-fx { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--progress, 0)); background: var(--grad); z-index: 100; box-shadow: 0 0 12px rgba(34, 211, 238, .8); }

/* ---------- icons ---------- */
.icon { display: inline-grid; place-items: center; }
.icon svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card > .icon { position: relative; width: 50px; height: 50px; border-radius: 14px; color: #fff; margin-bottom: 1.25rem; background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(168, 85, 247, .25)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px -8px rgba(99, 102, 241, .7); }
.card > .icon svg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 12px; border: 0; background: var(--grad-btn); background-size: 160% 100%; color: #fff; font: 600 .98rem var(--font); cursor: pointer; transition: transform .25s, box-shadow .25s, background-position .5s; box-shadow: var(--glow); isolation: isolate; }
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 0 0 1px rgba(34, 211, 238, .5), 0 14px 44px -8px rgba(139, 92, 246, .8); }
.btn .icon { transition: transform .25s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-ghost { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .55), 0 0 24px -6px rgba(34, 211, 238, .5); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; margin-top: auto; }
.link { color: var(--cyan); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.link:hover { color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 15, .55); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(5, 7, 15, .8); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: .7rem; opacity: .7; }

/* bbST blueprint wordmark */
.wordmark { display: block; color: #7dd3fc; }
.wm { display: block; height: 46px; width: auto; overflow: visible; }
.brand-text:has(.wordmark) small { font: 500 .62rem var(--mono); letter-spacing: .04em; margin-top: 1px; }
.wm-guide, .wm-ext { stroke: currentColor; stroke-width: .5; opacity: .45; stroke-dasharray: 1.5 1.5; }
.wm-base { opacity: .7; stroke-dasharray: none; }
.wm-guide { transform-box: fill-box; transform-origin: left center; animation: wm-extend .5s ease-out both; }
.wm-ext { animation: wm-fade .4s 1.3s both; }
.wm-cross { fill: none; stroke: currentColor; stroke-width: .5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: wm-spin 1.2s ease-out .2s both; }
.wm-text { font: 400 29.3px "Righteous", var(--display); }
.wm-ghost { fill: none; stroke-width: .35; opacity: .5; animation: wm-fade .4s 1.6s both; }
.wm-glyph tspan { stroke-width: .6; stroke-linejoin: round; stroke-dasharray: 160; animation: wm-draw 1s ease-in-out both; animation-delay: calc(.3s + var(--i) * .22s); }
.wm-lo { stroke: #7dd3fc; fill: #7dd3fc; }
.wm-up { stroke: #ffffff; fill: #ffffff; }
.wm-ghost .wm-lo, .wm-ghost .wm-up { fill: none; }
.wm-dim { stroke-width: .6; transform-box: fill-box; transform-origin: center; animation: wm-extend .5s ease-out 1.35s both; }
.wm-dim, .wm-ext { stroke: #fbbf24; }
.brand:hover .wm-guide, .brand:focus-visible .wm-guide { animation-name: wm-extend-r; }
.brand:hover .wm-glyph tspan, .brand:focus-visible .wm-glyph tspan { animation-name: wm-draw-r; animation-delay: calc(var(--i) * .18s); }
.brand:hover .wm-dim, .brand:focus-visible .wm-dim { animation-name: wm-extend-r; animation-delay: .9s; }
.brand:hover .wm-cross, .brand:focus-visible .wm-cross { animation-name: wm-spin-r; animation-delay: 0s; }
@keyframes wm-draw { 0% { stroke-dashoffset: 160; fill-opacity: 0; } 65% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes wm-draw-r { 0% { stroke-dashoffset: 160; fill-opacity: 0; } 65% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes wm-extend { from { transform: scaleX(0); } }
@keyframes wm-extend-r { from { transform: scaleX(0); } }
@keyframes wm-spin { from { transform: rotate(-180deg) scale(0); } }
@keyframes wm-spin-r { from { transform: rotate(-180deg) scale(0); } }
@keyframes wm-fade { from { opacity: 0; } }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: .3rem; border-radius: 14px; }
.nav-links a:not(.btn) { position: relative; padding: .5rem .9rem; border-radius: 10px; font-weight: 500; font-size: .93rem; color: var(--text-2); transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: #fff; background: var(--surface); }
.nav-links a.active:not(.btn) { color: #fff; }
.nav-links a.active:not(.btn)::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 10px rgba(34, 211, 238, .8); }
.nav-links .btn { margin-left: .6rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .brand-text small { display: none; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; border-radius: 0; background: var(--bg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { display: block; padding: .85rem 1rem; }
  .nav-links a.active:not(.btn)::after { left: 1rem; right: auto; width: 24px; }
  .nav-links .btn { margin: .5rem 0 0; width: 100%; }
}

/* ---------- view transition ---------- */
.view { animation: viewIn .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- eyebrow / labels ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--cyan); margin-bottom: 1.1rem; }
.eyebrow::before { content: "//" / ""; color: var(--violet); letter-spacing: 0; }
.status-pill { display: flex; width: fit-content; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .7rem; margin: 0 0 1.5rem; border-radius: 999px; font: 500 .8rem var(--mono); color: var(--text); background: var(--surface); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem); }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(34, 211, 238, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .07) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 70%); animation: gridMove 18s linear infinite; }
@keyframes gridMove { to { background-position: 48px 48px; } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 3.9rem); margin-bottom: .5em; }
.hero .lead { font-size: 1.15rem; max-width: 36rem; }
.grad { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font: 500 .82rem var(--mono); color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--mint); }

.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: conic-gradient(from 0deg, #22d3ee, #818cf8, #c084fc, #f472b6, #22d3ee); filter: blur(50px); opacity: .45; animation: spin 12s linear infinite; }
.hero-art::after { content: ""; position: absolute; inset: 26%; border-radius: 32px; background: rgba(5, 7, 15, .55); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.hero-logo { position: relative; z-index: 1; width: 36%; filter: drop-shadow(0 0 30px rgba(34, 211, 238, .45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.orbit { position: absolute; inset: 0; border: 1px dashed rgba(140, 160, 255, .2); border-radius: 50%; animation: spin 26s linear infinite; z-index: 2; }
.orbit-2 { inset: 8%; animation-duration: 19s; animation-direction: reverse; border-style: solid; border-color: rgba(140, 160, 255, .1); }
.orbit-3 { inset: 16%; animation-duration: 14s; }
.orbit span { position: absolute; top: -15px; left: 50%; translate: -50% 0; padding: .3rem .75rem; border-radius: 8px; font: 500 .75rem var(--mono); background: rgba(10, 14, 26, .9); border: 1px solid var(--line-2); box-shadow: 0 0 20px -4px currentColor; animation: spin 26s linear infinite reverse; }
.orbit-1 span { color: var(--cyan); }
.orbit-2 span { animation-duration: 19s; animation-direction: normal; color: var(--pink); }
.orbit-3 span { animation-duration: 14s; color: var(--violet); }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- page head ---------- */
.page-head { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 85% 0%, rgba(168, 85, 247, .18), transparent 70%), radial-gradient(600px 300px at 10% 100%, rgba(34, 211, 238, .1), transparent 70%); }
.page-head .lead { font-size: 1.15rem; max-width: 46rem; margin: 0; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(140, 160, 255, .035) 20%, rgba(140, 160, 255, .035) 80%, transparent); border-block: 1px solid var(--line); }
.section-head { max-width: 700px; margin: 0 auto 3.5rem; text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.grid { display: grid; gap: 1.25rem; }
.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: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; }
}
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- glass cards with cursor spotlight ---------- */
.card { position: relative; display: flex; flex-direction: column; padding: 1.85rem; border-radius: var(--radius); background: linear-gradient(180deg, rgba(140, 160, 255, .06), rgba(140, 160, 255, .02)); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; overflow: hidden; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .14), rgba(168, 85, 247, .08) 40%, transparent 70%); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .9), rgba(168, 85, 247, .6) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(99, 102, 241, .5); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card p:last-child { margin-bottom: 0; }
.split > div > .card + .card { margin-top: 1.25rem; }
.card.featured { border-color: rgba(168, 85, 247, .5); background: linear-gradient(180deg, rgba(168, 85, 247, .14), rgba(34, 211, 238, .04)); box-shadow: 0 0 60px -20px rgba(168, 85, 247, .6); }
.card.featured > .icon { background: linear-gradient(135deg, rgba(244, 114, 182, .4), rgba(168, 85, 247, .4)); }

.tags { list-style: none; padding: 1.1rem 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font: 500 .72rem var(--mono); padding: .28rem .6rem; border-radius: 6px; color: var(--text-2); background: rgba(140, 160, 255, .06); border: 1px solid var(--line); }

.checklist { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text-2); }
.checklist li strong { color: #fff; }
.checklist .icon { flex: none; width: 22px; height: 22px; border-radius: 6px; margin-top: .15rem; color: var(--mint); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); }
.checklist .icon svg { width: 13px; height: 13px; stroke-width: 3; }
.checklist.small { font-size: .93rem; gap: .55rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { position: relative; padding: 1.7rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 1.7rem; right: 1.7rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .8), transparent); }
.stat strong { display: block; font: 700 1.9rem/1.15 var(--display); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .3rem; }
.stat span { color: var(--muted); font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- steps (connected timeline) ---------- */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), var(--pink), transparent); opacity: .5; }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.step-num { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 1.2rem; border-radius: 12px; font: 600 1rem var(--mono); color: #fff; background: var(--bg-2); border: 1px solid rgba(34, 211, 238, .5); box-shadow: 0 0 24px -4px rgba(34, 211, 238, .6); }
.step p { margin: 0; font-size: .95rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2.2rem, 5vw, 3.75rem); border-radius: 24px; overflow: hidden; isolation: isolate; background: var(--line-2); }
.cta::before { content: ""; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 55%, #22d3ee, #a855f7, #f472b6, transparent 92%); animation: spin 10s linear infinite; }
.cta::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 22.5px; background: radial-gradient(600px 300px at 100% 0%, rgba(168, 85, 247, .25), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(34, 211, 238, .18), transparent 60%), #080b16; }
.cta h2 { margin-bottom: .4rem; }
.cta p { margin: 0; max-width: 34rem; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- terminal code window ---------- */
.terminal { border-radius: var(--radius); overflow: hidden; background: #070a14; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(99, 102, 241, .6), 0 0 0 1px rgba(255, 255, 255, .02); }
.terminal-bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: rgba(140, 160, 255, .04); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.terminal-bar span:nth-child(1) { background: #f87171; }
.terminal-bar span:nth-child(2) { background: #fbbf24; }
.terminal-bar span:nth-child(3) { background: #34d399; }
.terminal-bar em { margin-left: auto; font: 500 .75rem var(--mono); font-style: normal; color: var(--muted); }
.code { margin: 0; padding: 1.5rem 1.6rem; color: #d6defa; font: .86rem/1.8 var(--mono); overflow-x: auto; }
.code .c { color: #5b6688; font-style: italic; }
.code .k { color: #c084fc; }
.code .f { color: #22d3ee; }
.code .s { color: #34d399; }
.code .n { color: #fbbf24; }
.code::after { content: "▋" / ""; color: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.75rem; }
.chip { padding: .5rem 1.1rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: 500 .85rem var(--mono); cursor: pointer; transition: all .2s; }
.chip:hover { color: #fff; border-color: rgba(34, 211, 238, .6); }
.chip.active { color: #fff; border-color: transparent; background: var(--grad-btn); box-shadow: var(--glow); }
.badge { align-self: flex-start; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: .3rem .65rem; border-radius: 6px; margin-bottom: 1.1rem; border: 1px solid currentColor; }
.badge-web { color: #67e8f9; background: rgba(34, 211, 238, .08); }
.badge-mobile { color: #f9a8d4; background: rgba(244, 114, 182, .08); }
.badge-ai { color: #c4b5fd; background: rgba(168, 85, 247, .1); }
.badge-education { color: #6ee7b7; background: rgba(52, 211, 153, .08); }

/* ---------- FAQ ---------- */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.05rem 1.3rem; margin-bottom: .75rem; transition: border-color .2s, background .2s; }
details[open] { border-color: rgba(34, 211, 238, .4); background: var(--surface-2); }
summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--cyan); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: .8rem 0 0; }
details a { color: var(--cyan); text-decoration: underline; }

/* ---------- form ---------- */
.form { gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.field input, .field select, .field textarea { font: inherit; padding: .8rem .95rem; border-radius: 10px; color: var(--text); background: rgba(5, 7, 15, .6); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15), 0 0 24px -6px rgba(34, 211, 238, .6); }
.form .btn { align-self: flex-start; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-status.error { color: #fca5a5; }
.form-status.ok { color: #6ee7b7; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 2rem; padding: 4.5rem 0 2rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 14, 26, .3), rgba(10, 14, 26, .9)); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); }
.site-footer .brand { color: #fff; margin-bottom: 1.1rem; }
.site-footer p { color: var(--muted); max-width: 26rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer ul a { color: var(--muted); transition: color .2s; }
.site-footer ul a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font: 500 .78rem var(--mono); color: var(--muted); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .24s; }
.grid > .reveal:nth-child(5) { transition-delay: .08s; }
.grid > .reveal:nth-child(6) { transition-delay: .16s; }
/* ---------- portal login (front-end mock-up) ---------- */
.nav-links a.nav-login { display: inline-flex; align-items: center; gap: .4rem; }
.nav-login svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.login-section { min-height: calc(100vh - 76px); display: flex; align-items: center; }
.login-grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.login-intro h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.login-intro .lead { font-size: 1.1rem; max-width: 30rem; }
.login-card { padding: clamp(1.75rem, 4vw, 2.5rem); gap: 1.25rem; background: linear-gradient(180deg, rgba(140, 160, 255, .09), rgba(140, 160, 255, .03)); border-color: var(--line-2); box-shadow: 0 40px 100px -40px rgba(99, 102, 241, .7); }
.login-card:hover { transform: none; }
.login-head { display: flex; align-items: center; gap: 1rem; }
.login-head h2 { font-size: 1.6rem; margin: 0 0 .15rem; }
.login-head p { margin: 0; font-size: .9rem; }
.login-lock { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--grad-btn); box-shadow: var(--glow); }
.login-lock svg { width: 22px; height: 22px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: rgba(5, 7, 15, .6); border: 1px solid var(--line); }
.segmented button { padding: .55rem; border: 0; border-radius: 9px; background: none; color: var(--text-2); font: 500 .85rem var(--mono); cursor: pointer; transition: all .2s; }
.segmented button.active { color: #fff; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45), 0 0 18px -6px rgba(34, 211, 238, .6); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.small-link { font: 500 .78rem var(--font); }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 3rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--cyan); }
.check { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--violet); }
.form .btn-block { align-self: stretch; }
.btn.loading { pointer-events: none; opacity: .85; }
.btn.loading .icon { animation: spin .8s linear infinite; }
.form-status.info { color: #a5f3fc; }
.divider { display: flex; align-items: center; gap: .9rem; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sso { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sso .btn { padding: .7rem; font-size: .9rem; }
.sso .btn:disabled, .sso .btn:disabled:hover { color: var(--muted); background: rgba(140, 160, 255, .03); box-shadow: inset 0 0 0 1px var(--line); opacity: .55; filter: grayscale(1); transform: none; cursor: not-allowed; }
.login-foot { margin: 0; text-align: center; font-size: .9rem; }
@media (max-width: 900px) { .login-grid { grid-template-columns: 1fr; } .login-section { min-height: 0; } }
@media (max-width: 1100px) and (min-width: 961px) { .nav-links a:not(.btn) { padding: .5rem .6rem; } }

[hidden] { display: none !important; }
.grid + .center { margin-top: 2.75rem; }

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