:root {
  --bg: #05070f;
  --surface: rgba(15, 23, 42, 0.62);
  --surface-solid: #0c1324;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #e8eef8;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-3: #818cf8;
  --on-accent: #03101d;
  --grad: linear-gradient(120deg, #60a5fa 0%, #38bdf8 40%, #22d3ee 70%, #a5b4fc 100%);
  --radius: 18px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
/* Motion is part of the design and stays on even with prefers-reduced-motion
   (owner's request, 20 Oct 2026); only smooth anchor scrolling is dropped. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7dd3fc; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.025em; overflow-wrap: break-word; font-weight: 800; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.icon { width: 20px; height: 20px; flex: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-1 { width: 560px; height: 560px; top: -220px; left: -160px; background: #1d4ed8; animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 520px; height: 520px; top: -120px; right: -200px; background: #0891b2; opacity: .42; animation: drift 22s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 420px; height: 420px; top: 55%; left: 40%; background: #4f46e5; opacity: .16; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.08); } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.top.scrolled, .top.open { background: rgba(5, 7, 15, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--border); }
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo:hover { color: var(--text); }
.logo svg { width: 32px; height: 32px; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(148, 163, 184, .08); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: rgba(15, 23, 42, .5); }
.langs a { color: var(--muted); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { background: var(--grad); color: var(--on-accent); }
.menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: rgba(15, 23, 42, .5); color: var(--text); cursor: pointer; }
.no-js .menu-btn { display: none; }
.hide-sm { display: none !important; }

@media (max-width: 959px) {
  .top.open .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
    padding: 12px 16px 20px; background: #05070f; border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  }
  .top.open .nav a { font-size: 17px; padding: 12px; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .hide-sm { display: inline-flex !important; }
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  color: var(--on-accent); font-weight: 700; font-size: 15px; font-family: inherit;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  box-shadow: 0 10px 30px -12px rgba(56, 189, 248, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}
.btn:hover { color: var(--on-accent); transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(56, 189, 248, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { background: rgba(15, 23, 42, .55); color: var(--text); border-color: var(--border-strong); box-shadow: none; backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--text); border-color: rgba(56, 189, 248, .6); box-shadow: 0 0 0 4px rgba(56, 189, 248, .1); }
.btn-light { background: #fff; color: #04111f; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); }
.btn-light:hover { color: #04111f; background: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero-in { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1040px) {
  .hero { padding: 84px 0 64px; }
  .hero-in { grid-template-columns: 1fr 1.05fr; gap: 40px; }
  .hero h1 { font-size: clamp(42px, 4.3vw, 60px); }
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: #bae6fd; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .25);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; 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 h1 { font-size: clamp(38px, 6.2vw, 68px); margin-top: 22px; letter-spacing: -0.035em; }
.lead { color: var(--muted); font-size: clamp(17px, 1.8vw, 19px); max-width: 56ch; margin-top: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: #cbd5e1; font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: #34d399; }

.hero-visual { position: relative; padding: 0 0 40px; max-width: 680px; margin: 0 auto; width: 100%; }
.browser {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong); background: #0b0f1a;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03), 0 0 80px -20px rgba(56, 189, 248, .35);
  transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); transform-origin: left center;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0f1524; border-bottom: 1px solid var(--border); }
.browser-bar i, .code-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.browser-bar i:nth-child(1), .code-bar i:nth-child(1) { background: #f87171; }
.browser-bar i:nth-child(2), .code-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3), .code-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin: 0 auto; font-size: 12px; color: var(--muted); background: rgba(148, 163, 184, .08); padding: 3px 14px; border-radius: 8px; }
.browser img { width: 100%; height: auto; aspect-ratio: 1440 / 620; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: -6px; bottom: 0; width: 30%; max-width: 190px; aspect-ratio: 390 / 760;
  border-radius: 28px; padding: 7px; background: linear-gradient(160deg, #334155, #0f172a);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: float 7s ease-in-out infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.float {
  position: absolute; border-radius: 16px; padding: 12px 14px; font-size: 13px;
  background: rgba(12, 19, 36, .82); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
}
.float-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.float-head small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.float-bot { left: -12px; bottom: 6px; width: 230px; animation: float 8s ease-in-out infinite -2s; }
.tg { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #229ed9; color: #fff; }
.tg .icon { width: 16px; height: 16px; transform: translateX(-1px); }
.bubble { margin-top: 8px; padding: 7px 11px; border-radius: 12px; width: fit-content; max-width: 100%; }
.bubble-in { background: rgba(148, 163, 184, .14); border-bottom-left-radius: 4px; }
.bubble-out { margin-left: auto; background: linear-gradient(120deg, #0ea5e9, #0891b2); color: #fff; border-bottom-right-radius: 4px; }
.float-api { right: 18%; top: -18px; animation: float 9s ease-in-out infinite -4s; }
.ok { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(52, 211, 153, .16); color: #34d399; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 560px) {
  .float-bot { width: 196px; left: -4px; font-size: 12px; }
  .float-api { right: 4%; top: -26px; font-size: 12px; }
  .phone { width: 34%; }
}

/* Stats */
.stats-wrap { padding: 24px 0 8px; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--border);
}
.stats > div { background: rgba(8, 12, 24, .9); padding: 22px 20px; }
.stats dt { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats > div { padding: 28px; } }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 720px) { .section { padding: 112px 0; } }
.head { max-width: 760px; }
.head-center { margin: 0 auto; text-align: center; }
.head-center .section-lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.03em; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 62ch; margin-top: 18px; }

.card-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #7dd3fc;
  background: linear-gradient(140deg, rgba(56, 189, 248, .2), rgba(129, 140, 248, .12));
  border: 1px solid rgba(56, 189, 248, .25);
}
.card-icon .icon { width: 22px; height: 22px; }

/* Services */
.cards { display: grid; gap: 20px; margin-top: 52px; }
@media (min-width: 820px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .4); box-shadow: 0 30px 60px -30px rgba(56, 189, 248, .45); }
.card-featured { background: linear-gradient(180deg, rgba(56, 189, 248, .1), rgba(15, 23, 42, .62) 45%); border-color: rgba(56, 189, 248, .35); }
.badge { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #a7f3d0; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); }
.card h3 { font-size: 21px; margin-top: 6px; }
.card > p { color: var(--muted); }
.checks { display: grid; gap: 9px; margin-top: 6px; font-size: 15px; color: #cbd5e1; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--accent-2); margin-top: 3px; width: 18px; height: 18px; }
.checks-lg { margin-top: 26px; font-size: 16px; gap: 12px; }

/* Hub diagram */
.hub { position: relative; display: grid; gap: 16px; margin: 56px auto 0; max-width: 980px; }
.hub-core {
  position: relative; display: grid; place-items: center; text-align: center; padding: 34px 20px;
  border-radius: 24px; border: 1px solid rgba(56, 189, 248, .45); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, .22), rgba(12, 19, 36, .9) 70%);
  box-shadow: 0 0 90px -20px rgba(56, 189, 248, .55);
}
.core-in { position: relative; display: grid; justify-items: center; gap: 6px; }
.core-logo { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; }
.core-logo svg { position: relative; width: 52px; height: 52px; }
.core-logo::before, .core-logo::after { content: ""; position: absolute; inset: -14px; border-radius: 22px; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 70%); animation: halo 3s ease-in-out infinite; }
.core-logo::after { inset: -4px; border-radius: 16px; background: none; border: 1px solid rgba(125, 211, 252, .55); animation: ring 3s ease-out infinite; }
.core-in b { font-size: 22px; }
.core-in small { color: var(--muted); font-size: 14px; }
@keyframes halo { 50% { transform: scale(1.18); opacity: .55; } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.hub-node {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.hub-node b { display: block; font-size: 16px; }
.hub-node small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (min-width: 640px) and (max-width: 899px) { .hub { grid-template-columns: 1fr 1fr; } .hub-core { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .hub { grid-template-columns: 1fr 260px 1fr; grid-template-rows: 1fr 1fr; column-gap: 64px; row-gap: 20px; }
  .hub-core { grid-column: 2; grid-row: 1 / span 2; }
  .n0 { grid-column: 1; grid-row: 1; } .n1 { grid-column: 1; grid-row: 2; }
  .n2 { grid-column: 3; grid-row: 1; } .n3 { grid-column: 3; grid-row: 2; }
  .hub-node { position: relative; }
  .hub-node::after {
    content: ""; position: absolute; top: 50%; width: 64px; height: 2px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, .9), rgba(56, 189, 248, 0));
    background-size: 200% 100%; animation: flow 2.4s linear infinite;
  }
  .n0::after, .n1::after { left: 100%; }
  .n2::after, .n3::after { right: 100%; animation-direction: reverse; }
}
@keyframes flow { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Demo */
.demo { display: grid; gap: 48px; align-items: center; margin-top: 110px; }
@media (min-width: 1000px) { .demo { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.note { color: var(--muted); font-size: 14px; margin-top: 20px; }
.code { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: #070b16; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 70px -30px rgba(129, 140, 248, .5); }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #0d1322; border-bottom: 1px solid var(--border); }
.code-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.code pre { margin: 0; padding: 22px; overflow-x: auto; font: 13.5px/1.7 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #cbd5e1; }
.code .k { color: #f472b6; font-weight: 700; }
.code .s { color: #7dd3fc; }
.code .n { color: #fbbf24; }
.code .c { color: #64748b; }
.code .ok { display: inline; width: auto; height: auto; background: none; color: #34d399; font-weight: 700; }

/* Why */
.why {
  display: grid; gap: 1px; margin-top: 52px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  /* The 1px gaps show this background: light keeps travelling along the dividers. */
  background: linear-gradient(115deg, var(--border) 0%, var(--border) 35%, rgba(56, 189, 248, .95) 45%, rgba(165, 180, 252, .8) 50%, var(--border) 60%, var(--border) 100%);
  background-size: 300% 300%; animation: lines 6s linear infinite;
}
@keyframes lines { from { background-position: 100% 100%; } to { background-position: 0% 0%; } }
@media (min-width: 680px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why-item {
  position: relative; overflow: hidden; isolation: isolate; background: rgba(7, 11, 22, .94); padding: 30px;
  transition: background .35s ease, transform .35s ease;
}
.why-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, .18), transparent 65%);
}
.why-item::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: -1;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.why-item:hover { background: rgba(10, 17, 34, .96); }
.why-item:hover::before { opacity: 1; }
.why-item:hover::after { transform: scaleX(1); }
.why-item .card-icon { animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.6s); transition: transform .35s ease, box-shadow .35s ease; }
.why-item:hover .card-icon { animation-play-state: paused; transform: translateY(-3px) rotate(-8deg) scale(1.08); box-shadow: 0 10px 30px -8px rgba(56, 189, 248, .7); }
.why-item:hover h3 { color: #fff; }
.why-item h3 { transition: color .3s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.why-item h3 { font-size: 19px; margin: 18px 0 8px; }
.why-item p { color: var(--muted); font-size: 15px; }

/* Process */
.steps { display: grid; gap: 18px; margin-top: 52px; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; color: var(--on-accent); background: var(--grad); }
.steps h3 { font-size: 19px; margin: 18px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }

.marquee { margin-top: 80px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-title { text-align: center; color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 12px; padding-right: 12px; }
.marquee li { white-space: nowrap; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #cbd5e1; background: var(--surface); border: 1px solid var(--border); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* FAQ */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.faq details[open] { border-color: rgba(56, 189, 248, .35); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* Contact */
.contact {
  position: relative; overflow: hidden; display: grid; gap: 36px; align-items: start;
  border-radius: 28px; padding: 44px 20px;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(96, 165, 250, .55), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(34, 211, 238, .45), transparent 60%),
    linear-gradient(135deg, #1e3a8a, #0e7490);
  border: 1px solid rgba(125, 211, 252, .35);
  box-shadow: 0 50px 100px -40px rgba(14, 116, 144, .8);
}
@media (min-width: 720px) { .contact { padding: 64px 56px; } }
@media (min-width: 1000px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.contact::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent 70%); mask-image: radial-gradient(circle at 30% 40%, #000, transparent 70%); pointer-events: none; }
.contact > * { position: relative; }
.contact h2 { font-size: clamp(30px, 4.6vw, 50px); color: #fff; }
.contact .section-lead { color: #dbeafe; }
.email { margin-top: 22px; font-size: 15px; overflow-wrap: anywhere; color: #bfdbfe; }
.email a { color: #fff; font-weight: 700; }

.cform { display: grid; gap: 14px; padding: 24px; border-radius: 20px; background: rgba(3, 10, 25, .55); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cform-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .cform-row { grid-template-columns: 1fr 1fr; } }
.cform label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #dbeafe; }
.cform input, .cform select, .cform textarea {
  width: 100%; font: inherit; font-size: 15px; color: #fff; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cform select option { color: #0b1220; }
.cform textarea { resize: vertical; min-height: 120px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: #7dd3fc; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(125, 211, 252, .2); }
.cform .btn { justify-self: start; margin-top: 4px; }
.cform .btn[disabled] { opacity: .7; pointer-events: none; }
.cform-status { min-height: 1.4em; font-size: 14px; font-weight: 600; }
.cform-status.is-ok { color: #a7f3d0; }
.cform-status.is-err { color: #fecaca; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .cform .btn { width: 100%; } }

/* Portfolio */
.works { display: grid; gap: 22px; margin-top: 52px; }
@media (min-width: 760px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work {
  display: flex; flex-direction: column; overflow: hidden; color: var(--text); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.work:hover { color: var(--text); transform: translateY(-6px); border-color: rgba(56, 189, 248, .45); box-shadow: 0 40px 70px -35px rgba(56, 189, 248, .55); }
.work .vis { aspect-ratio: 16 / 10; border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }
.work:hover .vis > img, .work:hover .game-scene { transform: scale(1.05); }
.work-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.work-cat { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.work h3 { font-size: 21px; }
.work-body p { color: var(--muted); font-size: 15px; }
.work-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #7dd3fc; }
.work-more .icon { width: 18px; height: 18px; transition: transform .3s; }
.work:hover .work-more .icon { transform: translateX(5px); }
.works-small .work .vis { aspect-ratio: 16 / 8; }

/* Project visuals */
.vis { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--border-strong); background: #0b0f1a; }
.vis > img, .game-scene { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s ease; }
.vis-img { display: flex; flex-direction: column; }
.vis-img .browser-bar { flex: none; }
.vis-img img { flex: 1; min-height: 0; }
.vis-blank { display: grid; place-items: center; color: var(--accent); }
.vis-blank .icon { width: 48px; height: 48px; }

.vis-chat { display: flex; flex-direction: column; background: #0b141a; font-size: 13px; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #1f2c34; color: #e9edef; }
.wa-head b { display: block; font-size: 14px; }
.wa-head small { color: #8ee5b4; font-size: 12px; }
.wa-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; }
.wa-ava .icon { width: 20px; height: 20px; }
.wa-body {
  flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(37, 211, 102, .08), transparent 50%), #0b141a;
}
.wa-msg { max-width: 82%; padding: 8px 11px; border-radius: 10px; line-height: 1.45; color: #e9edef; animation: pop .5s both; }
.wa-in { background: #202c33; border-top-left-radius: 2px; animation-delay: .2s; }
.wa-out { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; animation-delay: .9s; }
.wa-ai { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 800; background: rgba(255, 255, 255, .18); }
.wa-sys { align-self: center; font-size: 11px; color: #8696a0; background: #182229; padding: 4px 10px; border-radius: 8px; animation: pop .5s 1.6s both; }
.wa-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #202c33; animation: pop .5s 2.2s both; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .2s; }
.wa-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes blink { 50% { opacity: .25; } }

.vis-game { background: #0b0716; }
.vis-game .game-scene { position: absolute; inset: 0; }
.hud { position: absolute; font-size: 12px; font-weight: 700; color: #fef3c7; background: rgba(12, 6, 20, .72); border: 1px solid rgba(251, 191, 36, .35); border-radius: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud-top { top: 12px; left: 12px; padding: 5px 10px; display: flex; align-items: center; gap: 7px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: blink 1.6s infinite; }
.hud-quest { top: 12px; right: 12px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; animation: float 6s ease-in-out infinite; }
.hud-quest .icon { width: 18px; height: 18px; color: #fbbf24; }
.hud-quest b { display: block; }
.hud-quest small { display: block; font-weight: 500; color: #fde68a; opacity: .85; }
.hud-bar { left: 12px; right: 40%; bottom: 14px; height: 10px; padding: 2px; }
.hud-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f59e0b, #ef4444); transform-origin: left; animation: grow 4s ease-in-out infinite alternate; }
.hud-shop { right: 12px; bottom: 10px; padding: 6px 10px; display: flex; align-items: center; gap: 6px; }
.hud-shop .icon { width: 16px; height: 16px; color: #fbbf24; }
@keyframes grow { from { transform: scaleX(.45); } }

/* Project page */
.case { padding: 36px 0 24px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.crumb:hover { color: var(--text); }
.crumb .icon { width: 18px; height: 18px; }
.case-head { display: grid; gap: 40px; align-items: center; margin-top: 28px; }
@media (min-width: 1000px) { .case-head { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.case h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.035em; }
.case-vis .vis { aspect-ratio: 16 / 10; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(56, 189, 248, .35); }
.case-grid { display: grid; gap: 40px; margin-top: 72px; }
@media (min-width: 1000px) { .case-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.case-text p { font-size: 18px; color: #cbd5e1; }
.case-text p + p { margin-top: 18px; }
.case-side { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.case-side h2 { font-size: 18px; }
.case-side h2 + .checks { margin-top: 16px; }
.case-side .tags { margin-top: 14px; }
.case-side .checks + h2 { margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #cbd5e1; background: rgba(148, 163, 184, .08); border: 1px solid var(--border); }
.section-tight { padding-top: 24px; padding-bottom: 24px; }


/* Footer */
.foot { border-top: 1px solid var(--border); padding: 56px 0 28px; color: var(--muted); font-size: 14px; background: rgba(3, 5, 12, .6); }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand p { margin-top: 14px; max-width: 40ch; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot-contact { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-contact a { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.foot-contact .icon { width: 17px; height: 17px; }
.foot .langs a[aria-current] { color: var(--on-accent); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

.chooser { min-height: 100vh; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.chooser h1 { width: 100%; text-align: center; font-size: 96px; }

/* Contact dialog */
.cmodal {
  width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid rgba(125, 211, 252, .35);
  border-radius: 24px; color: var(--text); overflow: auto;
  background: radial-gradient(70% 90% at 0% 0%, rgba(96, 165, 250, .35), transparent 60%), radial-gradient(70% 90% at 100% 100%, rgba(34, 211, 238, .3), transparent 60%), #0a1530;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9);
}
.cmodal::backdrop { background: rgba(2, 4, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cmodal[open] { animation: modal-in .35s cubic-bezier(.2, .8, .2, 1); }
.cmodal[open]::backdrop { animation: fade-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
.cmodal-in { position: relative; padding: 32px 24px 24px; }
@media (min-width: 600px) { .cmodal-in { padding: 40px 36px 32px; } }
.cmodal h2 { font-size: clamp(24px, 4vw, 32px); padding-right: 40px; }
.cmodal-lead { color: #bfdbfe; margin: 10px 0 22px; }
.cmodal .cform { padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cmodal-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.cmodal-x .icon { transform: rotate(45deg); }
.cmodal-x:hover { background: rgba(255, 255, 255, .14); }

/* Service card glow under the pointer (tilt is set from JS) */
.card { transform-style: preserve-3d; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, .14), transparent 60%); }
.card:hover::after { opacity: 1; }

/* Try it live */
.lab { margin: 52px auto 0; max-width: 980px; border-radius: 26px; padding: 14px; background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 40px 100px -40px rgba(56, 189, 248, .45); }
.lab-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 16px; background: rgba(3, 6, 15, .6); }
.lab-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); background: none; cursor: pointer; transition: color .2s, background .2s; }
.lab-tabs button .icon { width: 18px; height: 18px; }
.lab-tabs button:hover { color: var(--text); }
.lab-tabs button[aria-selected="true"] { color: var(--on-accent); background: var(--grad); box-shadow: 0 10px 30px -12px rgba(56, 189, 248, .8); }
@media (max-width: 520px) { .lab-tabs button { flex-direction: column; gap: 4px; font-size: 12px; } }
.lab-stage { margin-top: 14px; }
.lab-pane { animation: fade-in .35s ease; }
.lab-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 8px 4px; color: var(--muted); font-size: 14px; }
.lab-foot span { display: inline-flex; gap: 8px; align-items: center; }
.lab-foot .icon { width: 18px; height: 18px; color: #34d399; }

.tgx, .wax { display: flex; flex-direction: column; height: 460px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.tgx { background: #0e1621; }
.tgx-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #17212b; }
.tgx-head b { display: block; }
.tgx-head small { color: #6c7883; }
.tgx-chat, .wax-chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; scroll-behavior: smooth; }
.tgx-chat { background: radial-gradient(circle at 80% 10%, rgba(34, 158, 217, .12), transparent 45%), #0e1621; }
.tgx-msg { max-width: 78%; padding: 9px 13px; border-radius: 14px; white-space: pre-line; line-height: 1.45; animation: pop .35s both; }
.tgx-msg.bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; }
.tgx-msg.me { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; }
.tgx-msg.code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .04em; color: #a7f3d0; background: #13301f; border: 1px dashed rgba(52, 211, 153, .5); }
.tgx-kb { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: #17212b; min-height: 58px; }
.tgx-btn { flex: 1 1 140px; padding: 10px 12px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; font-size: 14px; color: #fff; background: rgba(43, 82, 120, .9); cursor: pointer; transition: background .2s, transform .15s; animation: pop .3s both; }
.tgx-btn:hover { background: #3a6a99; transform: translateY(-1px); }
.typing { display: flex; gap: 4px; align-items: center; width: fit-content; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }

.apix { display: grid; gap: 12px; }
@media (min-width: 820px) { .apix { grid-template-columns: 1fr 1fr; } }
.apix-col { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #070b16; border: 1px solid var(--border); min-height: 300px; }
.apix-col pre { flex: 1; margin: 0; padding: 18px; font: 13px/1.65 ui-monospace, Consolas, monospace; color: #cbd5e1; white-space: pre-wrap; overflow-wrap: anywhere; }
.apix-res { color: #7dd3fc !important; }
.apix-status { margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.apix-status.ok { color: #34d399; }
.apix-time { margin-left: auto; font-size: 12px; color: var(--muted); }
.apix-actions { padding: 12px; border-top: 1px solid var(--border); }
.apix-hook { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #a7f3d0; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); animation: pop .35s both; }
.apix-hook .icon { width: 16px; height: 16px; }
.apix-hook code { margin-left: auto; color: #6ee7b7; }

.wax { background: #0b141a; }
.wax-chat { background: radial-gradient(circle at 20% 20%, rgba(37, 211, 102, .08), transparent 50%), #0b141a; font-size: 14px; }
.wax-chat .wa-msg { max-width: 80%; animation-delay: 0s; }
.wax-chips { display: flex; gap: 6px; padding: 8px 10px 0; overflow-x: auto; background: #0b141a; }
.wax-chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(37, 211, 102, .4); background: rgba(37, 211, 102, .08); color: #b9f6ca; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wax-chip:hover { background: rgba(37, 211, 102, .18); }
.wax-input { display: flex; gap: 8px; padding: 10px; background: #1f2c34; }
.wax-input input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 0; background: #2a3942; color: #e9edef; font: inherit; outline: none; }
.wax-input button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: #00a884; color: #fff; cursor: pointer; }
.wax-input button .icon { width: 18px; height: 18px; }
@media (max-width: 520px) { .tgx, .wax { height: 420px; } .tgx-msg, .wax-chat .wa-msg { max-width: 88%; } }

/* Chat bubbles must not shrink when the chat overflows (flex column + overflow). */
.tgx-chat > *, .wax-chat > *, .wa-body > * { flex-shrink: 0; }
.tgx-chat, .wax-chat { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .35) transparent; }
.tgx-chat::-webkit-scrollbar, .wax-chat::-webkit-scrollbar { width: 6px; }
.tgx-chat::-webkit-scrollbar-thumb, .wax-chat::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .35); border-radius: 6px; }
.tgx-chat::-webkit-scrollbar-track, .wax-chat::-webkit-scrollbar-track { background: transparent; }
