/* ═══════════════════════════════════════════════════════════════════
   GROWTH STACK — v3 Design System
   Light-first, with a full dark mode (html.dark)
   Colour tokens are RGB triplets so Tailwind can apply alpha.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: 248 249 253;
  --surface: 255 255 255;
  --surface-2: 241 243 250;
  --surface-3: 232 236 246;
  --ink: 11 15 32;
  --ink-2: 45 53 78;
  --muted: 90 99 122;
  --line: 15 23 42;
  --primary: 79 70 229;     /* indigo  */
  --primary-2: 124 58 237;  /* violet  */
  --accent: 6 182 212;      /* cyan    */
  --warm: 249 115 22;       /* orange  */
  --pink: 236 72 153;
  --success: 16 185 129;
  --line-a: .09;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-md: 0 10px 30px -12px rgba(30, 27, 75, .18), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .28), 0 8px 20px -8px rgba(15, 23, 42, .08);
  --radius: 20px;
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

html.dark {
  --bg: 6 8 17;
  --surface: 12 16 31;
  --surface-2: 17 22 41;
  --surface-3: 26 32 56;
  --ink: 236 239 250;
  --ink-2: 199 205 224;
  --muted: 146 156 182;
  --line: 255 255 255;
  --primary: 129 140 248;
  --primary-2: 167 139 250;
  --accent: 34 211 238;
  --warm: 251 146 60;
  --pink: 244 114 182;
  --success: 52 211 153;
  --line-a: .08;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
h1, h2, h3, h4, h5, .font-display, .font-heading { font-family: var(--font-display); letter-spacing: -.02em; }
.font-mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
::selection { background: rgb(var(--primary) / .18); color: rgb(var(--ink)); }
:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgb(var(--bg)); }
::-webkit-scrollbar-thumb { background: rgb(var(--ink) / .15); border-radius: 99px; border: 2px solid rgb(var(--bg)); }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--primary) / .5); }

.container-x { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container-x { padding-inline: 32px; } }

.section { padding-block: 88px; position: relative; }
@media (min-width: 1024px) { .section { padding-block: 120px; } }

/* Theme-swap transition helper */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), fill .45s, stroke .45s !important;
}

/* ── Background decor ─────────────────────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgb(var(--line) / .055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--line) / .055) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-dots {
  background-image: radial-gradient(rgb(var(--line) / .14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.mask-fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.mask-radial { -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .55; }
html.dark .orb { opacity: .35; }
.orb-primary { background: rgb(var(--primary) / .35); }
.orb-accent  { background: rgb(var(--accent) / .30); }
.orb-pink    { background: rgb(var(--pink) / .22); }
.orb-warm    { background: rgb(var(--warm) / .22); }
.noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Typography helpers ───────────────────────────────────────────── */
.eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: rgb(var(--primary));
  background: rgb(var(--primary) / .08);
  border: 1px solid rgb(var(--primary) / .16);
  font-family: var(--font-body);
  margin-bottom: 18px;
}
.eyebrow::before, .section-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
  box-shadow: 0 0 0 4px rgb(var(--primary) / .14);
}
.section-label.justify-center { display: inline-flex; }
.text-center .section-label, .text-center .eyebrow { margin-inline: auto; }

.h-display { font-size: clamp(2.5rem, 6vw, 4.9rem); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.h-section { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgb(var(--muted)); line-height: 1.7; }
.section-title { font-weight: 700; letter-spacing: -.03em; }

.text-gradient, .text-gradient-premium {
  background: linear-gradient(100deg, rgb(var(--primary)) 0%, rgb(var(--primary-2)) 45%, rgb(var(--accent)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gradient-anim {
  background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--pink)), rgb(var(--accent)), rgb(var(--primary)));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { to { background-position: 300% 0; } }
.text-muted { color: rgb(var(--muted)); }
.text-ink { color: rgb(var(--ink)); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn, .btn-primary, .btn-outline, .btn-ghost, .btn-dark {
  --pad-y: 14px; --pad-x: 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  cursor: pointer; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, rgb(var(--primary)), rgb(var(--primary-2)));
  box-shadow: 0 10px 30px -10px rgb(var(--primary) / .65), inset 0 1px 0 rgba(255,255,255,.25);
}
html.dark .btn-primary { color: #0b0f20; background: linear-gradient(120deg, rgb(var(--primary)), rgb(var(--accent))); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgb(var(--primary) / .75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-outline, .btn-ghost {
  color: rgb(var(--ink));
  background: rgb(var(--surface) / .7);
  border-color: rgb(var(--line) / .14);
  backdrop-filter: blur(10px);
}
.btn-outline:hover, .btn-ghost:hover { border-color: rgb(var(--primary) / .5); color: rgb(var(--primary)); }
.btn-dark { background: rgb(var(--ink)); color: rgb(var(--bg)); }
.btn-dark:hover { box-shadow: var(--shadow-lg); }
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: 13px; }
.btn .arrow, .btn-primary .arrow, .btn-outline .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow, .btn-primary:hover .arrow, .btn-outline:hover .arrow { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: rgb(var(--primary)); }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ── Cards ────────────────────────────────────────────────────────── */
.card, .card-premium {
  position: relative;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line) / var(--line-a));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card-hover:hover, .card-premium:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgb(var(--primary) / .25); }
.glass {
  background: rgb(var(--surface) / .7);
  border: 1px solid rgb(var(--line) / var(--line-a));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Spotlight — follows the mouse (JS sets --mx/--my) */
.spotlight { --mx: 50%; --my: 50%; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(var(--primary) / .10), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgb(var(--primary) / .7), rgb(var(--accent) / .35) 40%, transparent 70%);
  -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 .4s;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

.tilt { transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.tilt-inner { transform: translateZ(40px); }

.icon-box {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 20px;
  color: rgb(var(--primary));
  background: linear-gradient(135deg, rgb(var(--primary) / .12), rgb(var(--accent) / .10));
  border: 1px solid rgb(var(--primary) / .15);
  transition: transform .5s var(--ease);
}
.group:hover .icon-box { transform: rotate(-8deg) scale(1.08); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: rgb(var(--ink-2));
  background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line) / var(--line-a));
}
.chip-primary { color: rgb(var(--primary)); background: rgb(var(--primary) / .08); border-color: rgb(var(--primary) / .18); }

/* ── Header ───────────────────────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--pink)), rgb(var(--accent)));
}
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding-top: 14px; transition: padding .4s var(--ease), transform .45s var(--ease); }
.site-header.is-hidden { transform: translateY(-110%); }
.nav-shell {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgb(var(--surface) / .62);
  border: 1px solid rgb(var(--line) / var(--line-a));
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: box-shadow .4s, background .4s;
}
.site-header.is-scrolled .nav-shell { background: rgb(var(--surface) / .85); box-shadow: var(--shadow-md); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 10px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; z-index: 1; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: rgb(var(--ink-2)); transition: color .25s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link.active { color: rgb(var(--ink)); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%;
  transform: translateX(-50%); background: rgb(var(--primary));
}
.nav-pill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; z-index: 0; pointer-events: none;
  background: rgb(var(--ink) / .06); opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 640px; padding: 14px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  border-radius: 22px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a));
  box-shadow: var(--shadow-lg); transition: all .35s var(--ease);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.nav-dd-panel::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: 14px; transition: background .25s; }
.dd-item:hover { background: rgb(var(--surface-2)); }
.dd-item .dd-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 15px; }
.dd-item h6 { margin: 0; font-size: 14px; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
.dd-item p { margin: 2px 0 0; font-size: 12.5px; color: rgb(var(--muted)); line-height: 1.45; }

.theme-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: rgb(var(--ink)); background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line) / var(--line-a));
  transition: transform .5s var(--ease), background .3s;
}
.theme-toggle:hover { transform: rotate(20deg); }
.theme-toggle svg { width: 19px; height: 19px; position: absolute; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .i-moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
html.dark .theme-toggle .i-sun { transform: rotate(90deg) scale(.4); opacity: 0; }
html.dark .theme-toggle .i-moon { transform: none; opacity: 1; }

.burger { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--ink)); color: rgb(var(--bg)); border: 0; cursor: pointer; }
.burger > span { display: block; }
.burger > span > span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger > span > span + span { margin-top: 4px; }
.menu-open .burger > span > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger > span > span:nth-child(2) { opacity: 0; }
.menu-open .burger > span > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; padding: 100px 24px 32px; display: flex; flex-direction: column;
  background: rgb(var(--bg) / .97); backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path .7s var(--ease);
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); }
.mobile-menu a.m-link {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 4px;
  font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.02em;
  border-bottom: 1px solid rgb(var(--line) / var(--line-a));
  opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s;
}
.mobile-menu a.m-link.active, .mobile-menu a.m-link:hover { color: rgb(var(--primary)); }
.menu-open .mobile-menu a.m-link { opacity: 1; transform: none; }

/* ── Custom cursor ────────────────────────────────────────────────── */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: rgb(var(--primary)); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgb(var(--primary) / .5);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
}
.cursor-ring span { opacity: 0; transition: opacity .2s; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgb(var(--primary) / .08); border-color: rgb(var(--primary) / .3); }
body.cursor-label .cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: rgb(var(--primary)); border-color: transparent; }
body.cursor-label .cursor-ring span { opacity: 1; }
body.cursor-label .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: 150px; padding-bottom: 90px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-top: 180px; padding-bottom: 120px; min-height: 100vh; } }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-spot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--hx, 60%) var(--hy, 30%), rgb(var(--primary) / .12), transparent 60%);
  transition: background .2s;
}
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.1em; }
.rotator > span { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform .8s var(--ease), opacity .6s; white-space: nowrap; }
.rotator > span.is-active { transform: none; opacity: 1; }
.rotator > span.is-out { transform: translateY(-110%); opacity: 0; }

.badge-live {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: rgb(var(--ink-2));
  background: rgb(var(--surface) / .8); border: 1px solid rgb(var(--line) / var(--line-a)); box-shadow: var(--shadow-sm);
}
.badge-live b { padding: 3px 9px; border-radius: 999px; font-size: 11px; color: #fff; background: linear-gradient(120deg, rgb(var(--primary)), rgb(var(--pink))); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--success)); box-shadow: 0 0 0 0 rgb(var(--success) / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(var(--success) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--success) / 0); } }

/* Code window */
.code-window {
  border-radius: 20px; overflow: hidden; background: #0d1124; color: #d6dcf5;
  box-shadow: 0 40px 80px -30px rgba(30, 27, 75, .55), 0 0 0 1px rgba(255,255,255,.06);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
}
.code-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #12172e; border-bottom: 1px solid rgba(255,255,255,.06); }
.code-head i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-head .t { margin-left: 10px; font-size: 12px; color: #8590b8; font-family: var(--font-mono); }
.code-body { padding: 18px 20px 22px; min-height: 260px; white-space: pre; overflow: hidden; }
.tok-k { color: #c792ea; } .tok-f { color: #82aaff; } .tok-s { color: #c3e88d; } .tok-c { color: #5c6690; font-style: italic; } .tok-n { color: #f78c6c; } .tok-p { color: #89ddff; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: #82aaff; 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: 16px;
  background: rgb(var(--surface) / .88); border: 1px solid rgb(var(--line) / var(--line-a));
  backdrop-filter: blur(14px); box-shadow: var(--shadow-md); font-size: 13px;
}
.float-card .fc-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ── Marquee ──────────────────────────────────────────────────────── */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee var(--dur, 40s) linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* legacy class names */
.marquee-container { overflow: hidden; }
.marquee-content { display: flex; width: max-content; gap: 64px; animation: marquee 40s linear infinite; }

.client-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a));
  font-weight: 600; font-size: 15px; color: rgb(var(--ink-2)); white-space: nowrap; transition: all .3s;
}
.client-pill:hover { color: rgb(var(--ink)); border-color: rgb(var(--primary) / .35); }
.client-pill .cp-dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }

/* ── Bento / services ─────────────────────────────────────────────── */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } .bento .b-2 { grid-column: span 2; } .bento .b-3 { grid-column: span 3; } .bento .b-4 { grid-column: span 4; } }

/* ── Workflow / automation diagram ────────────────────────────────── */
.flow-svg path.flow-line { fill: none; stroke: rgb(var(--line) / .18); stroke-width: 2; }
.flow-svg path.flow-pulse { fill: none; stroke: url(#flowGrad); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 18 220; animation: flowDash 2.6s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -238; } }
.flow-node {
  position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a)); box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), border-color .3s;
}
.flow-node:hover { transform: translate(-50%, -50%) scale(1.06); border-color: rgb(var(--primary) / .45); }
.flow-node .fn-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; }
.flow-node.is-active { border-color: rgb(var(--primary) / .6); box-shadow: 0 0 0 4px rgb(var(--primary) / .12), var(--shadow-md); }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line) / var(--line-a)); }
.tab-btn {
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: rgb(var(--muted));
  border: 0; background: transparent; cursor: pointer; transition: all .3s var(--ease);
}
.tab-btn:hover { color: rgb(var(--ink)); }
.tab-btn.active { background: rgb(var(--surface)); color: rgb(var(--ink)); box-shadow: var(--shadow-sm); }

/* ── Tech tiles ───────────────────────────────────────────────────── */
.tech-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 10px; border-radius: 18px; text-align: center;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.tech-tile:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-md); border-color: var(--tc, rgb(var(--primary) / .4)); }
.tech-tile i { font-size: 34px; line-height: 1; transition: transform .5s var(--ease); }
.tech-tile:hover i { transform: scale(1.12) rotate(-6deg); }
.tech-tile span { font-size: 13px; font-weight: 600; color: rgb(var(--ink-2)); }
.tech-tile .tt-glow { position: absolute; inset: auto 20% -1px; height: 2px; border-radius: 2px; background: var(--tc, rgb(var(--primary))); opacity: 0; transition: opacity .3s; }
.tech-tile:hover .tt-glow { opacity: 1; }
.tech-initial { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; }
.tech-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a)); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tech-pill i { font-size: 20px; }

/* ── Portfolio ────────────────────────────────────────────────────── */
.browser {
  border-radius: 16px; overflow: hidden; background: rgb(var(--surface));
  border: 1px solid rgb(var(--line) / .12); box-shadow: var(--shadow-md);
}
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgb(var(--surface-2)); border-bottom: 1px solid rgb(var(--line) / var(--line-a)); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-bar .url { flex: 1; display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 8px; font-size: 12px; color: rgb(var(--muted)); background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a)); font-family: var(--font-mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-view { position: relative; aspect-ratio: 16/10; overflow: hidden; background: rgb(var(--surface-2)); }
.browser-view img, .browser-view video { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease), object-position 4s ease; }
.work-card:hover .browser-view img.scrollable { object-position: bottom; }
.work-card:hover .browser-view img:not(.scrollable), .work-card:hover .browser-view video { transform: scale(1.04); }
.work-card .work-meta { transition: transform .5s var(--ease); }
.work-card.is-hidden { display: none; }
.mock-gen { position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; gap: 10px; color: #fff; }
.mock-gen .mg-nav { display: flex; align-items: center; justify-content: space-between; }
.mock-gen .mg-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.mock-gen .mg-logo b { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 12px; }
.mock-gen .mg-links { display: flex; gap: 6px; } .mock-gen .mg-links i { width: 28px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.35); display: block; }
.mock-gen .mg-hero { margin-top: 8%; max-width: 70%; }
.mock-gen .mg-hero h5 { margin: 0 0 8px; font-size: clamp(16px, 2.2vw, 24px); line-height: 1.15; font-weight: 700; }
.mock-gen .mg-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.35); margin-bottom: 6px; }
.mock-gen .mg-grid { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-gen .mg-grid i { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.2); display: block; }

.filter-btn {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgb(var(--ink-2)); cursor: pointer;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a)); transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: rgb(var(--primary) / .4); color: rgb(var(--ink)); }
.filter-btn.active { background: rgb(var(--ink)); color: rgb(var(--bg)); border-color: transparent; }
.filter-btn .cnt { margin-left: 6px; font-size: 11px; opacity: .6; }

.phone {
  position: relative; width: 240px; aspect-ratio: 9/19; border-radius: 38px; padding: 9px; background: #0b0f1e;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone > .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; }
.phone > .screen img, .phone > .screen video { width: 100%; height: 100%; object-fit: cover; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 20px; border-radius: 20px; background: #0b0f1e; transform: translateX(-50%); z-index: 2; }

/* ── Process ──────────────────────────────────────────────────────── */
.process-line { position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: rgb(var(--line) / .1); }
.process-line > i { display: block; width: 100%; height: 100%; transform-origin: top; transform: scaleY(var(--p, 0)); background: linear-gradient(rgb(var(--primary)), rgb(var(--accent))); }
@media (min-width: 1024px) { .process-line { left: 50%; } }
.step-dot { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; color: rgb(var(--muted)); background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / .12); transition: all .5s var(--ease); }
.step.is-in .step-dot { color: #fff; background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--primary-2))); border-color: transparent; box-shadow: 0 10px 30px -10px rgb(var(--primary) / .7); }

/* ── Stats ────────────────────────────────────────────────────────── */
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1; }

/* ── Testimonials ─────────────────────────────────────────────────── */
.t-card { width: 360px; flex: none; padding: 24px; border-radius: 20px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a)); }
@media (max-width: 480px) { .t-card { width: 290px; } }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-item { border-radius: 18px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / var(--line-a)); transition: border-color .3s, box-shadow .3s; overflow: hidden; }
.faq-item.active { border-color: rgb(var(--primary) / .3); box-shadow: var(--shadow-md); }
.faq-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 16px; color: rgb(var(--ink)); }
.faq-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--surface-2)); color: rgb(var(--ink-2)); transition: transform .45s var(--ease), background .3s, color .3s; }
.faq-item.active .faq-icon { transform: rotate(135deg); background: rgb(var(--primary)); color: #fff; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer > .faq-answer-inner { overflow: hidden; padding: 0 22px; color: rgb(var(--muted)); font-size: 15px; line-height: 1.7; }
.faq-item.active .faq-answer-inner { padding-bottom: 22px; }

/* ── Forms ────────────────────────────────────────────────────────── */
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 15px; color: rgb(var(--ink));
  background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line) / .1); outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: rgb(var(--primary) / .6); background: rgb(var(--surface)); box-shadow: 0 0 0 4px rgb(var(--primary) / .12); }
.field label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: rgb(var(--ink-2)); }
.input::placeholder, .field ::placeholder { color: rgb(var(--muted) / .7); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid rgb(var(--line) / .12); background: rgb(var(--surface)); transition: all .25s var(--ease); }
.choice span:hover { border-color: rgb(var(--primary) / .4); }
.choice input:checked + span { background: rgb(var(--primary)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgb(var(--primary) / .7); }
html.dark .choice input:checked + span { color: #0b0f20; }

/* ── Reveal (scroll) ──────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { position: relative; overflow: hidden; background: rgb(var(--surface)); border-top: 1px solid rgb(var(--line) / var(--line-a)); }
.footer-giant { font-family: var(--font-display); font-weight: 800; letter-spacing: -.06em; line-height: .8; font-size: clamp(4rem, 17vw, 15rem); white-space: nowrap; background: linear-gradient(180deg, rgb(var(--ink) / .09), rgb(var(--ink) / 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.f-link { color: rgb(var(--muted)); font-size: 14.5px; transition: color .25s; display: inline-flex; align-items: center; gap: 6px; }
.f-link:hover { color: rgb(var(--primary)); }
.social-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: rgb(var(--ink-2)); background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line) / var(--line-a)); transition: all .35s var(--ease); }
.social-btn:hover { color: #fff; background: rgb(var(--primary)); transform: translateY(-3px); border-color: transparent; }

/* ── Floating widgets & chatbot ───────────────────────────────────── */
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 21px; border: 0; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .35s var(--ease); }
.fab:hover { transform: translateY(-3px) scale(1.05); }
.chat-drawer { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(380px, calc(100vw - 40px)); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / .1); box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transform-origin: bottom right; transition: all .45s var(--ease); }
.chat-drawer.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-bubble-bot { background: rgb(var(--surface-2)); color: rgb(var(--ink)); border-radius: 4px 16px 16px 16px; font-size: 14px; line-height: 1.55; }
.chat-bubble-user { background: linear-gradient(120deg, rgb(var(--primary)), rgb(var(--primary-2))); color: #fff; border-radius: 16px 4px 16px 16px; font-size: 14px; line-height: 1.55; }

/* ── Modal ────────────────────────────────────────────────────────── */
.modal-back { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(6, 8, 17, .55); backdrop-filter: blur(8px); }
.modal-back.open { display: flex; animation: fadeIn .3s var(--ease); }
.modal-card { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border-radius: 24px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / .1); box-shadow: var(--shadow-lg); animation: popIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ── Prose (blog, policies) ───────────────────────────────────────── */
.prose { color: rgb(var(--ink-2)); font-size: 17px; line-height: 1.8; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: rgb(var(--ink)); font-family: var(--font-display); line-height: 1.25; margin: 1.8em 0 .6em; }
.prose h2 { font-size: 1.6em; } .prose h3 { font-size: 1.3em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose a { color: rgb(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; } .prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 3px solid rgb(var(--primary)); background: rgb(var(--surface-2)); border-radius: 0 14px 14px 0; }
.prose img { border-radius: 16px; margin: 1.5em 0; }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: .15em .4em; border-radius: 6px; background: rgb(var(--surface-2)); }
.prose pre { padding: 1.2em; border-radius: 14px; background: #0d1124; color: #d6dcf5; overflow-x: auto; }
.prose strong { color: rgb(var(--ink)); }

/* ── Misc legacy class compat ─────────────────────────────────────── */
.glass-panel { background: rgb(var(--surface) / .75); border: 1px solid rgb(var(--line) / var(--line-a)); backdrop-filter: blur(16px); border-radius: var(--radius); }
.animate-float { animation: floaty 6s ease-in-out infinite; }
.animate-spin-slow { animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-scrollbar::-webkit-scrollbar { display: none; } .no-scrollbar { scrollbar-width: none; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.swiper-pagination-bullet { background: rgb(var(--ink) / .3); opacity: 1; }
.swiper-pagination-bullet-active { background: rgb(var(--primary)); width: 22px; border-radius: 6px; }

/* Brand-black devicons flip in dark mode when no colour is set */
.ti-ink { color: rgb(var(--ink)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
[hidden] { display: none !important; }
/* grid children may shrink below their content width (prevents mobile overflow) */
.grid > * { min-width: 0; }
body.menu-open .fab { opacity: 0; pointer-events: none; }

/* ═══ v3.1 interactions ═══════════════════════════════════════════════ */
/* Click burst & developer micro-interactions */
.click-burst { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9998; }
.click-burst .cb-p { 
  position: absolute; left: 0; top: 0; 
  font: 700 12px/1 var(--font-mono); 
  white-space: nowrap; 
  will-change: transform, opacity;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 15, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.click-burst .cb-spark {
  position: absolute; left: 0; top: 0;
  width: 4px; height: 4px; border-radius: 50%;
  pointer-events: none; will-change: transform, opacity;
}
.click-burst .cb-ring { 
  position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; 
  border-radius: 50%; border: 2px solid rgb(var(--primary) / .7); 
  box-shadow: 0 0 16px rgb(var(--primary) / .5);
  animation: cbRing .65s var(--ease) forwards; 
}
.click-burst .cb-ring-2 { 
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; 
  border-radius: 50%; border: 1.5px solid rgb(var(--accent) / .8); 
  animation: cbRing .5s var(--ease) .08s forwards; 
}
@keyframes cbRing { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* Quick Nav (Dev HUD) pill & command palette — follows light/dark tokens */
.dev-hud-pill {
  position: fixed; left: 24px; bottom: 24px; z-index: 65;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 8px 0 6px; border-radius: 999px;
  background: rgb(var(--surface) / .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgb(var(--line) / .1);
  box-shadow: var(--shadow-md);
  color: rgb(var(--ink)); font: 600 13px/1 var(--font-body); letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s, opacity .25s;
}
.dev-hud-pill .hud-ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; font-size: 13px;
  background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--primary-2)));
  box-shadow: 0 6px 16px -6px rgb(var(--primary) / .7);
}
.dev-hud-pill .hud-label { padding-right: 2px; }
.dev-hud-pill kbd {
  font: 600 11px/1 var(--font-mono); padding: 5px 7px; border-radius: 7px;
  background: rgb(var(--surface-2)); color: rgb(var(--muted));
  border: 1px solid rgb(var(--line) / .1); box-shadow: inset 0 -1px 0 rgb(var(--line) / .08);
}
.dev-hud-pill:hover { transform: translateY(-3px); border-color: rgb(var(--primary) / .45); box-shadow: var(--shadow-lg); }
.dev-hud-pill:focus-visible { outline: 2px solid rgb(var(--primary)); outline-offset: 3px; }
body.menu-open .dev-hud-pill, body.palette-open .dev-hud-pill { opacity: 0; pointer-events: none; }
@media (hover: none), (max-width: 767px) { .dev-hud-pill kbd { display: none; } }
@media (max-width: 640px) {
  .dev-hud-pill { left: 16px; bottom: 20px; width: 54px; height: 54px; padding: 0; justify-content: center; }
  .dev-hud-pill .hud-label { display: none; }
  .dev-hud-pill .hud-ic { width: 42px; height: 42px; font-size: 15px; }
}

.dev-palette-backdrop {
  position: fixed; inset: 0; z-index: 10001;
  background: rgb(var(--bg) / .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: min(14vh, 120px) 16px 16px;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s;
}
.dev-palette-backdrop.open { opacity: 1; visibility: visible; transition: opacity .22s ease; }
.dev-palette-modal {
  width: 100%; max-width: 620px; max-height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line) / .1); border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(var(--primary) / .06);
  transform: translateY(-10px) scale(.98); transition: transform .3s var(--ease);
}
.dev-palette-backdrop.open .dev-palette-modal { transform: none; }
.dev-palette-search {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 0 14px 0 20px; height: 60px;
  border-bottom: 1px solid rgb(var(--line) / .08);
  color: rgb(var(--muted));
}
.dev-palette-search input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none;
  font: 500 16px var(--font-body); color: rgb(var(--ink));
}
.dev-palette-search input::placeholder { color: rgb(var(--muted) / .8); }
.dp-close { display: inline-flex; align-items: center; border: 0; background: none; padding: 0; cursor: pointer; color: rgb(var(--muted)); }
.dp-close .fa-xmark { display: none; width: 34px; height: 34px; border-radius: 10px; place-items: center; font-size: 16px; }
.dev-palette-modal kbd {
  font: 600 11px/1 var(--font-mono); padding: 4px 6px; border-radius: 6px; min-width: 20px; text-align: center;
  background: rgb(var(--surface-2)); color: rgb(var(--muted));
  border: 1px solid rgb(var(--line) / .1); box-shadow: inset 0 -1px 0 rgb(var(--line) / .08);
}
.dev-palette-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 10px; scroll-padding: 34px 0 10px; }
.dp-group {
  padding: 14px 10px 6px; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: rgb(var(--muted));
}
.dev-palette-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 12px; cursor: pointer;
  color: rgb(var(--ink-2)); font-size: 14.5px;
  transition: background .15s ease, color .15s ease;
}
.dev-palette-item .item-icon {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line) / .06);
  color: rgb(var(--primary)); font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.dev-palette-item .fa-whatsapp { color: #25D366; }
.dev-palette-item .item-name { flex: 1; min-width: 0; font-weight: 500; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-palette-item .item-meta { font: 500 12px var(--font-mono); color: rgb(var(--muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.dev-palette-item .item-go { font-size: 12px; color: rgb(var(--primary)); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .2s var(--ease); }
.dev-palette-item.active { background: rgb(var(--primary) / .08); color: rgb(var(--ink)); }
.dev-palette-item.active .item-icon { background: rgb(var(--primary)); color: #fff; border-color: transparent; }
.dev-palette-item.active .fa-whatsapp { color: #fff; }
.dev-palette-item.active .item-go { opacity: 1; transform: none; }
.dev-palette-item.is-hot .item-name { color: rgb(var(--primary)); }
.dp-here { font: 600 10px/1 var(--font-mono); padding: 4px 6px; border-radius: 6px; background: rgb(var(--success) / .12); color: rgb(var(--success)); }
.dp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; color: rgb(var(--muted)); font-size: 14px; }
.dp-empty i { font-size: 22px; opacity: .6; }
.dev-palette-foot {
  display: flex; align-items: center; gap: 16px; flex: none;
  padding: 10px 18px; border-top: 1px solid rgb(var(--line) / .08);
  background: rgb(var(--surface-2) / .6);
  font-size: 12px; color: rgb(var(--muted));
}
.dev-palette-foot span { display: inline-flex; align-items: center; gap: 4px; }
.dev-palette-foot .dp-brand { margin-left: auto; font-weight: 600; color: rgb(var(--ink-2)); }
.dev-palette-foot .dp-brand i { color: rgb(var(--primary)); }
@media (max-width: 640px) {
  .dev-palette-backdrop { align-items: flex-end; padding: 0; }
  .dev-palette-modal { max-width: none; max-height: 82vh; border-radius: 22px 22px 0 0; border-bottom: 0; transform: translateY(24px); padding-bottom: env(safe-area-inset-bottom); }
  .dp-close kbd { display: none; }
  .dp-close .fa-xmark { display: grid; background: rgb(var(--surface-2)); }
  .dev-palette-foot { display: none; }
  .dev-palette-item .item-meta { display: none; }
}

/* Matrix background canvas */
#matrix-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .6s ease;
}
#matrix-canvas.active { opacity: 0.18; }

/* Interactive code copy button */
.copy-code-btn {
  position: absolute; top: 10px; right: 14px;
  font-size: 11px; font-family: var(--font-mono);
  padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: #94a3b8; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  transition: all .2s; z-index: 5;
}
.copy-code-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* 3D card tilt & lighting */
.tilt-card {
  transition: transform .15s ease-out, box-shadow .25s ease-out;
  transform-style: preserve-3d;
}

/* Page transition / boot screen */
.gs-curtain { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgb(var(--bg)); pointer-events: none; transform: translateY(100%); }
.gs-curtain.cover { transform: none; transition: transform .55s var(--ease); pointer-events: auto; }
.gs-curtain.leave { transform: translateY(-100%); transition: transform .7s var(--ease) .05s; }
.gs-curtain.boot { transform: none; }
.gs-curtain .gc-inner { font-family: var(--font-mono); font-size: 14px; color: rgb(var(--ink-2)); min-width: 260px; }
.gs-curtain .gc-brand { display: flex; align-items: center; gap: 10px; font: 700 22px var(--font-display); color: rgb(var(--ink)); margin-bottom: 14px; }
.gs-curtain .gc-brand img { width: 34px; height: 34px; border-radius: 10px; }
.gs-curtain .gc-line { opacity: 0; transform: translateY(6px); animation: gcLine .35s var(--ease) forwards; }
.gs-curtain .gc-line b { color: rgb(var(--success)); font-weight: 600; }
.gs-curtain .gc-bar { height: 3px; margin-top: 16px; border-radius: 3px; background: rgb(var(--line) / .1); overflow: hidden; }
.gs-curtain .gc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--accent))); animation: gcBar .9s var(--ease) forwards; }
@keyframes gcLine { to { opacity: 1; transform: none; } }
@keyframes gcBar { to { width: 100%; } }

/* Hero words react to the mouse */
.hover-words .hw { display: inline-block; transition: transform .45s var(--ease), color .3s; }
.hover-words .hw:hover { transform: translateY(-6px) rotate(-2deg); color: rgb(var(--primary)); }

/* Interactive terminal */
.term { border-radius: 22px; overflow: hidden; background: #0b0f20; color: #d6dcf5; font-family: var(--font-mono); font-size: 14px; box-shadow: 0 40px 80px -30px rgba(30, 27, 75, .55), 0 0 0 1px rgba(255,255,255,.06); }
.term-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #11162b; border-bottom: 1px solid rgba(255,255,255,.06); }
.term-head i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-body { height: 360px; overflow-y: auto; padding: 18px 20px; line-height: 1.7; cursor: text; }
.term-body::-webkit-scrollbar { width: 6px; } .term-body::-webkit-scrollbar-thumb { background: #2a3150; border: 0; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: #82aaff; } .term-ok { color: #c3e88d; } .term-key { color: #c792ea; } .term-dim { color: #6b7499; } .term-warn { color: #f78c6c; }
.term-line a { color: #89ddff; text-decoration: underline; text-underline-offset: 3px; }
.term-input-row { display: flex; gap: 8px; align-items: center; }
.term-input { flex: 1; background: transparent; border: 0; outline: none; color: #fff; font: inherit; caret-color: #82aaff; }
.term-chip { padding: 6px 12px; border-radius: 999px; font: 500 13px var(--font-mono); color: rgb(var(--ink-2)); background: rgb(var(--surface)); border: 1px solid rgb(var(--line) / .1); cursor: pointer; transition: all .25s var(--ease); }
.term-chip:hover { color: rgb(var(--primary)); border-color: rgb(var(--primary) / .4); transform: translateY(-2px); }

/* Card press feedback */
.card.spotlight:active, .tech-tile:active, .filter-btn:active, .btn-primary:active, .btn-outline:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) { .click-burst, .gs-curtain { display: none !important; } }
/* Fallback: never leave the boot curtain up if scripts fail */
.gs-curtain.boot { animation: gcAuto 0s linear 4s forwards; }
@keyframes gcAuto { to { transform: translateY(-100%); visibility: hidden; } }
