/* =========================================================
   Arindam Sarkar — portfolio (modern theme)
   Animations are driven by GSAP in js/modern.js; this file
   holds layout, theme tokens and the CSS-only loops.
   ========================================================= */

:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ecebf5;
  --muted: #9a99b2;
  --dim: #5f5e76;

  --violet: #7c5cff;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --grad: linear-gradient(110deg, var(--violet) 0%, var(--cyan) 50%, var(--pink) 100%);

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--violet); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--mono); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 6s linear infinite;
}
@keyframes grad-shift { to { background-position: 200% center; } }

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Hide elements GSAP will reveal, only when JS is running (no-JS stays visible). */
.js [data-reveal], .js [data-hero], .js .hero__name, .js .section__title { visibility: hidden; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  pointer-events: none;
}
html:not(.js) .preloader { display: none; }
.preloader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg-2); z-index: 0; }
.preloader__panel.p1 { top: 0; }
.preloader__panel.p2 { bottom: 0; }
.preloader__inner { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: center; }
.preloader__label { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.preloader__count { font-family: var(--display); font-size: clamp(56px, 12vw, 140px); font-weight: 600; line-height: 1; }
.preloader__bar { width: 220px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* ---------- Ambient layers ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(124,92,255,.14), transparent 60%);
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035;
  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 baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; background: none;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 60px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff;
  background: linear-gradient(110deg, var(--violet), #5b8cff 60%, var(--cyan));
  box-shadow: 0 8px 30px -8px rgba(124,92,255,.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { box-shadow: 0 14px 44px -8px rgba(124,92,255,.85), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--ghost { border-color: var(--border-strong); background: var(--surface); }
.btn--ghost:hover { border-color: rgba(255,255,255,.35); background: var(--surface-2); }
.btn--link { color: var(--muted); padding: 0 8px; }
.btn--link:hover { color: var(--text); }
.spark { color: var(--cyan); display: inline-block; }
.btn--primary .spark { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding: 0 16px; }
.nav__inner {
  max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 10px 0 20px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(12,12,22,.65); border-color: var(--border);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.6);
}
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__ai { display: inline-flex; align-items: center; gap: 6px; }
.nav__ai .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); position: relative; margin-left: auto; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(80px); opacity: .55; }
.aurora__blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora__blob.a1 { width: 46vw; height: 46vw; left: 8%; top: 8%; background: var(--violet); }
.aurora__blob.a2 { width: 38vw; height: 38vw; right: 6%; top: 18%; background: #0e7490; }
.aurora__blob.a3 { width: 32vw; height: 32vw; left: 38%; bottom: 0; background: #9d174d; opacity: .7; }
.grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
  font-size: 13px; color: var(--muted); border: 1px solid var(--border); background: var(--surface);
}
.pill__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes pulse { 50% { opacity: .35; } }
.hero__hello { margin-top: 28px; font-size: 18px; color: var(--muted); }
.hero__title { font-size: clamp(54px, 9vw, 120px); font-weight: 700; line-height: .95; letter-spacing: -0.045em; margin: 6px 0 18px; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__name { display: inline-block; }
.hero__name .char { display: inline-block; will-change: transform; }
.hero__role { font-size: clamp(18px, 2.2vw, 24px); font-family: var(--display); font-weight: 500; display: flex; align-items: center; gap: 4px; min-height: 1.4em; }
.hero__role .mono { color: var(--dim); font-size: .85em; }
.typer { color: var(--text); }
.caret { width: 2px; height: 1.1em; background: var(--cyan); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { margin-top: 18px; max-width: 540px; color: var(--muted); font-size: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.stats { display: flex; gap: 40px; margin: 44px 0 0; }
.stats dt { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.hero__visual { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.avatar { position: absolute; inset: 8%; z-index: 2; border-radius: 50%; transform-style: preserve-3d; }
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 1; filter: saturate(1.05) contrast(1.05); }
.avatar__ring { position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--pink), var(--violet)); animation: spin 8s linear infinite; filter: blur(.5px); }
.avatar__ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg); }
.avatar::before { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: conic-gradient(from 90deg, var(--violet), var(--cyan), var(--pink), var(--violet)); filter: blur(50px); opacity: .45; animation: spin 12s linear infinite reverse; }
.avatar__shine { position: absolute; inset: 0; border-radius: 50%; z-index: 2; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255,255,255,.25), transparent 45%); mix-blend-mode: overlay; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  background: rgba(16,16,28,.75); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
}
.chip .fa { color: var(--cyan); }
.chip.c1 { top: 6%; left: -4%; }
.chip.c2 { top: 22%; right: -8%; }
.chip.c3 { bottom: 16%; left: -10%; }
.chip.c4 { bottom: 2%; right: 6%; }
.code-card { position: absolute; right: -14%; bottom: -10%; z-index: 4; padding: 12px 16px 14px; font-size: 12px; border-radius: 16px; background: rgba(12,12,22,.82); }
.code-card__dots { display: flex; gap: 6px; margin-bottom: 8px; }
.code-card__dots i, .browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.code-card__dots i:nth-child(2), .browser-bar i:nth-child(2) { background: #febc2e; }
.code-card__dots i:nth-child(3), .browser-bar i:nth-child(3) { background: #28c840; }
.code-card pre { margin: 0; font-family: var(--mono); color: var(--muted); line-height: 1.6; }
.code-card .k { color: var(--pink); } .code-card .v { color: var(--cyan); } .code-card .s { color: #a5e8a0; } .code-card .n { color: #fbbf24; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0; border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; position: relative; z-index: 2; }
.marquee__row { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__row + .marquee__row { margin-top: 14px; }
.marquee__track { display: flex; flex-shrink: 0; gap: 14px; padding-right: 14px; will-change: transform; }
.marquee__track span, .marquee__track a {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px; border-radius: 999px;
  font-family: var(--display); font-size: clamp(16px, 2vw, 22px); font-weight: 500; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.marquee__track span::before, .marquee__track a::before { content: "✦"; font-size: .7em; color: var(--violet); }
.marquee__row--rev .marquee__track span::before, .marquee__row--rev .marquee__track a::before { color: var(--cyan); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; z-index: 2; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(124,92,255,.04) 30%, rgba(34,211,238,.03) 70%, transparent); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.section__title { font-size: clamp(36px, 5.4vw, 64px); font-weight: 600; letter-spacing: -0.035em; }
.section__title .word { will-change: transform; }
.section__sub { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 600px; }

/* ---------- Cards / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(240px, auto); gap: 18px; perspective: 1200px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 30px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transform-style: preserve-3d; transition: border-color .4s var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 22px; font-weight: 600; margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card--xl { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card--tall { grid-row: span 2; display: flex; flex-direction: column; }
.card--wide { grid-column: span 2; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(34,211,238,.15)); border: 1px solid var(--border-strong); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 30px; right: 30px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--grad); color: #fff; }
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124,92,255,.16), transparent 45%);
}
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(34,211,238,.7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spotlight:hover::after, .spotlight:hover::before { opacity: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 12px; font-family: var(--mono); padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

.card__art--code { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }
.card__art--code span { display: block; height: 10px; border-radius: 6px; width: var(--w); margin-left: var(--x, 0); background: linear-gradient(90deg, rgba(124,92,255,.5), rgba(34,211,238,.35)); transform-origin: left; }
.card__art--code span:nth-child(odd) { background: linear-gradient(90deg, rgba(244,114,182,.45), rgba(124,92,255,.3)); }

.card--ai { background: radial-gradient(120% 80% at 50% 100%, rgba(124,92,255,.22), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.ai-orb { position: relative; margin: auto auto 0; width: 150px; height: 150px; padding-top: 28px; }
.ai-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(124,92,255,.5); }
.ai-orb span:nth-child(1) { background: radial-gradient(circle at 35% 30%, #a78bfa, var(--violet) 40%, #1e1b4b 75%); box-shadow: 0 0 60px rgba(124,92,255,.6); inset: 30px; }
.ai-orb span:nth-child(2) { border-color: rgba(34,211,238,.4); }
.ai-orb span:nth-child(3) { inset: -18px; border-style: dashed; border-color: rgba(244,114,182,.35); }

.meter { display: grid; gap: 10px; margin-top: 22px; }
.meter span { height: 6px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.meter span::after { content: ""; position: absolute; inset: 0; width: var(--v); background: linear-gradient(90deg, var(--green), var(--cyan)); border-radius: 4px; transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform 1.4s var(--ease); }

/* ---------- Browser chrome + chat bubbles (AI demo) ---------- */
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.browser-bar .url { margin-left: 14px; font-size: 12px; color: var(--dim); padding: 4px 14px; border-radius: 8px; background: var(--surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bub { max-width: 80%; padding: 9px 14px; border-radius: 16px; font-size: 13px; }
.bub--u { align-self: flex-end; background: linear-gradient(110deg, var(--violet), #5b8cff); border-bottom-right-radius: 4px; }
.bub--a { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Process */
.process { position: relative; margin-top: 90px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process__line { position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--border); }
.process__line span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgba(34,211,238,.6); }
.step { position: relative; }
.step__dot {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-family: var(--display); font-weight: 600;
  background: var(--bg); border: 1px solid var(--border-strong); transition: background .5s, border-color .5s, box-shadow .5s;
}
.step.is-lit .step__dot { background: var(--violet); border-color: transparent; box-shadow: 0 0 0 6px rgba(124,92,255,.18), 0 0 30px rgba(124,92,255,.6); }
.step h4 { font-size: 20px; margin: 22px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about__text p { color: var(--muted); font-size: 17px; margin-top: 20px; }
.text-link { color: var(--text); text-decoration: underline; text-decoration-color: rgba(34,211,238,.5); text-underline-offset: 3px; transition: color .25s; }
.text-link:hover { color: var(--cyan); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini { --mx: 50%; --my: 50%; position: relative; padding: 24px; border-radius: 18px; overflow: hidden; }
.mini:nth-child(even) { transform: translateY(32px); }
.mini__k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); }
.mini p { margin-top: 10px; font-size: 15px; }

/* ---------- AI section ---------- */
.ai-section { overflow: hidden; }
.ai-section__glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; left: 50%; top: 50%; margin: -350px 0 0 -350px; background: radial-gradient(circle, rgba(124,92,255,.22), rgba(34,211,238,.08) 45%, transparent 70%); filter: blur(30px); pointer-events: none; }
.ai-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.prompt-chips button, .chat__chips button {
  padding: 10px 16px; border-radius: 999px; font-size: 14px; text-align: left;
  border: 1px solid var(--border-strong); background: var(--surface); transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.prompt-chips button:hover, .chat__chips button:hover { background: var(--surface-2); border-color: var(--cyan); transform: translateY(-2px); }
.scoper { padding: 28px; display: grid; gap: 18px; box-shadow: 0 30px 80px -30px rgba(124,92,255,.5); }
.scoper__head { display: flex; gap: 14px; align-items: center; }
.scoper__head b { display: block; font-family: var(--display); font-size: 18px; }
.scoper__head small { color: var(--muted); font-size: 13px; }
.ai-avatar { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; background: var(--grad); box-shadow: 0 6px 20px -6px rgba(124,92,255,.8); }
textarea, input { font: inherit; color: var(--text); }
.scoper textarea {
  width: 100%; resize: vertical; min-height: 120px; padding: 16px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: rgba(0,0,0,.3); outline: none; transition: border-color .25s, box-shadow .25s;
}
.scoper textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.2); }

/* ---------- CTA ---------- */
.cta { position: relative; z-index: 2; padding: 0 0 40px; }
.cta__box {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(48px, 8vw, 96px) 32px; text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(124,92,255,.35), transparent 60%), linear-gradient(180deg, #12112a, #0b0b18);
  border: 1px solid rgba(124,92,255,.35);
}
.cta__box h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 600; margin-bottom: 36px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__info p { color: var(--muted); font-size: 17px; margin-top: 18px; }
.contact__list { display: grid; gap: 14px; margin-top: 32px; }
.contact__list a, .contact__list span { display: flex; align-items: center; gap: 14px; color: var(--text); }
.contact__list .fa { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); border: 1px solid var(--border); color: var(--cyan); flex-shrink: 0; }
.contact__list a:hover .fa { border-color: var(--cyan); }
.contact__form { padding: 32px; display: grid; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.25); outline: none;
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 15px; pointer-events: none; transition: transform .25s var(--ease), font-size .25s, color .25s; transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.2); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px); font-size: 11px; color: var(--cyan); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer__logo { height: 44px; width: auto; margin-bottom: 18px; }
.footer p { color: var(--muted); font-size: 15px; max-width: 340px; }
.footer h3 { font-size: 15px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--muted); transition: color .25s; }
.footer__links a:hover { color: var(--text); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: color .25s, border-color .25s, background .25s, transform .3s var(--ease); }
.socials a:hover { color: #fff; border-color: transparent; background: var(--violet); transform: translateY(-3px); }
.footer__bottom { margin-top: 56px; padding: 22px 16px; text-align: center; color: var(--dim); font-size: 14px; border-top: 1px solid var(--border); }

/* ---------- AI chat widget ---------- */
.ai-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 62px; height: 62px; border-radius: 50%; border: 0;
  display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--grad);
  box-shadow: 0 12px 40px -8px rgba(124,92,255,.8);
}
.ai-fab .spark { color: #fff; }
.ai-fab__ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(124,92,255,.6); animation: fab-ring 2.4s var(--ease) infinite; }
@keyframes fab-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-open .ai-fab { transform: scale(0); }
.chat {
  position: fixed; right: 24px; bottom: 24px; z-index: 160; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 48px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: rgba(14,14,26,.92); border: 1px solid var(--border-strong);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(124,92,255,.15);
  visibility: hidden; opacity: 0; transform-origin: bottom right;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.chat__head b { display: block; font-family: var(--display); }
.chat__head small { color: var(--green); font-size: 12px; }
.chat__close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 22px; line-height: 1; }
.chat__close:hover { background: var(--surface-2); }
.chat__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; }
.msg--user { align-self: flex-end; background: linear-gradient(110deg, var(--violet), #5b8cff); border-bottom-right-radius: 5px; }
.msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.msg--bot ul { margin: 6px 0; padding-left: 18px; list-style: disc; }
.msg--bot li { margin: 2px 0; }
.msg--bot a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.msg--bot strong { color: #fff; }
.msg--bot h5 { margin: 10px 0 4px; font-family: var(--display); font-size: 14px; color: var(--cyan); }
.msg--bot h5:first-child { margin-top: 0; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat__chips { display: flex; gap: 8px; padding: 0 18px 12px; overflow-x: auto; scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips button { flex-shrink: 0; font-size: 13px; padding: 7px 13px; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat__form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.3); outline: none; }
.chat__form input:focus { border-color: var(--violet); }
.chat__form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); display: grid; place-items: center; flex-shrink: 0; }
.chat__form svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px;
  border-radius: 18px; background: rgba(14,14,26,.95); border: 1px solid rgba(52,211,153,.4); box-shadow: 0 20px 60px -20px rgba(0,0,0,.8);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #052e1c; }
.toast b { display: block; } .toast small { color: var(--muted); }

/* ---------- Space: starfield background ---------- */
.space { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.space__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.nebula { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .16; }
.nebula.n1 { width: 60vw; height: 60vw; left: -18vw; top: 35vh; background: radial-gradient(circle, #7c5cff, transparent 65%); }
.nebula.n2 { width: 50vw; height: 50vw; right: -14vw; top: -12vh; background: radial-gradient(circle, #0891b2, transparent 65%); }
.section > .container { position: relative; z-index: 1; }
.section { overflow-x: clip; }

/* ---------- Mission rail: scroll progress + section nav ---------- */
.mission {
  position: fixed; left: 22px; top: 50%; z-index: 90; height: min(62vh, 520px); transform: translateY(-50%);
  display: none; flex-direction: column; justify-content: space-between; align-items: flex-start;
}
@media (min-width: 1100px) { .mission { display: flex; } }
.mission__track { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background-image: linear-gradient(var(--border-strong) 50%, transparent 50%); background-size: 2px 8px; }
.mission__fill { position: absolute; inset: 0 0 auto 0; height: 100%; background: var(--grad); background-size: 100% 300%; transform: scaleY(0); transform-origin: top; box-shadow: 0 0 10px rgba(34,211,238,.6); }
.mission__stop { position: relative; display: flex; align-items: center; gap: 14px; height: 14px; }
.mission__stop i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong); transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.mission__stop span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: rgba(12,12,22,.85); border: 1px solid var(--border);
  opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none;
}
.mission__stop:hover span, .mission__stop:focus-visible span, .mission__stop.is-current span { opacity: 1; transform: none; }
.mission__stop.is-passed i { background: var(--violet); border-color: var(--violet); }
.mission__stop.is-current i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(34,211,238,.18), 0 0 18px var(--cyan); transform: scale(1.15); }
.mission__stop--land i { border-radius: 4px; transform: rotate(45deg); }
.mission__stop--land.is-current i { transform: rotate(45deg) scale(1.2); }
.mission__rocket { position: absolute; left: 7px; top: 0; width: 22px; margin-left: -11px; pointer-events: none; z-index: 2; filter: drop-shadow(0 0 8px rgba(251,191,36,.55)); }
.mission__rocket svg { width: 100%; height: auto; overflow: visible; }
.mission__stop.is-current span { color: var(--text); }

/* ---------- Tech universe (skills) ---------- */
.universe-wrap { display: grid; justify-items: center; gap: 28px; }
.universe { position: relative; width: min(560px, 100%); aspect-ratio: 1; }
.universe__sun {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #c4b5fd, var(--violet) 45%, #312e81 80%);
  box-shadow: 0 0 40px rgba(124,92,255,.8), 0 0 120px rgba(124,92,255,.45);
}
.universe__sun img { width: 62%; height: auto; }
.orbit-ring { position: absolute; left: 50%; top: 50%; width: var(--size); aspect-ratio: 1; margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); }
.planet { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.planet b {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 6px 12px 6px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(14,14,26,.9); border: 1px solid var(--border-strong); cursor: default;
  transition: border-color .3s, box-shadow .3s;
}
.planet b::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 10px var(--pc); flex-shrink: 0; }
.planet b:hover { border-color: var(--pc); box-shadow: 0 0 24px -4px var(--pc); }
.planet--fe { --pc: #22d3ee; } .planet--be { --pc: #34d399; } .planet--db { --pc: #fbbf24; } .planet--ai { --pc: #f472b6; }
.universe__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.universe__legend li { display: flex; align-items: center; gap: 8px; }
.universe__legend i { width: 10px; height: 10px; border-radius: 50%; }
.universe__legend .fe { background: #22d3ee; } .universe__legend .be { background: #34d399; } .universe__legend .db { background: #fbbf24; } .universe__legend .ai { background: #f472b6; }

/* ---------- AI UFO ---------- */
.scoper { position: relative; overflow: visible; }
.ufo {
  position: absolute; right: 28px; top: -96px; width: 120px; padding: 0; border: 0; background: none; z-index: 3;
  filter: drop-shadow(0 0 18px rgba(34,211,238,.35));
}
.ufo svg { width: 100%; height: auto; overflow: visible; }
.ufo__beam { transform-origin: 50% 0; transform-box: fill-box; }
.ufo:hover { filter: drop-shadow(0 0 26px rgba(34,211,238,.7)); }

/* Destination planet at contact */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco--glow {
  width: min(560px, 90vw); aspect-ratio: 1; left: -200px; bottom: -300px; border-radius: 50%; opacity: .5;
  background: radial-gradient(circle at 65% 30%, #67e8f9, #0e7490 35%, #082f49 65%, #020617);
  box-shadow: 0 0 140px rgba(34,211,238,.35), inset -60px -60px 140px rgba(0,0,0,.7);
}

/* ---------- AI solutions (home) ---------- */
.ai-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.ai-hub__copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; margin: 22px 0 12px; }
.ai-hub__copy > p { color: var(--muted); font-size: 17px; }
.ai-checks { display: grid; gap: 12px; margin-top: 24px; }
.ai-checks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15px; }
.ai-checks li::before { content: "✦"; position: absolute; left: 4px; top: 0; color: var(--cyan); }
.ai-checks b { display: block; color: var(--text); font-weight: 600; }
.ai-models { margin-top: 26px; }
.ai-models .tags { margin-top: 10px; }
.ai-demo { position: relative; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(124,92,255,.6); }
.ai-demo__chat { display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; min-height: 300px; padding: 22px; }
.ai-demo__chat .bub { font-size: 14px; }
.ai-demo__chat b { color: #fff; }
.ai-demo__tool { align-self: flex-start; font-size: 11.5px; color: var(--green); padding: 5px 10px; border-radius: 8px; border: 1px dashed rgba(52,211,153,.45); background: rgba(52,211,153,.06); }
.ai-demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.ai-demo__foot > span { display: inline-flex; align-items: center; gap: 8px; }
.ai-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.ai-cards .card { display: flex; flex-direction: column; padding: 26px; }
.ai-cards .card h3 { font-size: 19px; margin: 18px 0 8px; }
.ai-cards .card p { flex: 1; }
.ai-cards .card .tags { margin-top: 16px; }
.ai-quick { --mx: 50%; --my: 50%; position: relative; overflow: hidden; margin-top: 40px; padding: 32px; border-color: rgba(124,92,255,.35); background: radial-gradient(90% 120% at 100% 0%, rgba(34,211,238,.12), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(124,92,255,.18), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.ai-quick__head { display: flex; gap: 16px; align-items: flex-start; }
.ai-quick__head h3 { font-size: 22px; font-weight: 600; }
.ai-quick__head p { color: var(--muted); margin-top: 6px; }
.ai-quick__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0; }
.ai-quick__list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--border); transition: border-color .25s, background .25s; }
.ai-quick__list li::before { content: "✦"; color: var(--cyan); font-size: 12px; }
.ai-quick__list li:hover { border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.05); }
.ai-quick__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.marquee__track a { color: var(--text); transition: border-color .25s, background .25s; }
.marquee__track a:hover { border-color: rgba(124,92,255,.6); background: rgba(124,92,255,.12); }
.process-title { margin-top: 80px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.process-title + .process { margin-top: 28px; }

/* ---------- Ready solutions (home + detail pages) ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sol-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; padding: 28px; overflow: hidden;
  transition: border-color .35s var(--ease), transform .45s var(--ease);
}
.sol-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.sol-card .badge { top: 28px; right: 28px; }
.sol-card h3 { font-size: 21px; font-weight: 600; margin: 20px 0 8px; }
.sol-card p { color: var(--muted); font-size: 15px; flex: 1; }
.sol-card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.sol-card__more, .sol-card__actions a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); transition: color .25s; }
.sol-card__more { margin-top: 22px; }
.sol-card__actions a.sol-card__dl { color: var(--muted); font-weight: 500; }
.sol-card__actions a:hover, .sol-card:hover .sol-card__more { color: var(--cyan); }
.sol-card__more svg, .sol-card__actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.sol-card__actions a:hover svg, .sol-card:hover .sol-card__more svg { transform: translateX(3px); }
.sol-card__actions a.sol-card__dl:hover svg { transform: translateY(2px); }
.sol-card--lite { background: var(--surface); }
.industries { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 48px; }
.industries .mini__k { margin-right: 6px; }
.industries .tags { margin: 0; justify-content: center; }
.profile-strip {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 26px 30px;
  border-color: rgba(124,92,255,.35); background: radial-gradient(90% 140% at 0% 0%, rgba(124,92,255,.22), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.profile-strip img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(124,92,255,.6); }
.profile-strip div { flex: 1; min-width: 220px; }
.profile-strip b { display: block; font-family: var(--display); font-size: 20px; }
.profile-strip small { color: var(--muted); font-size: 14.5px; }
.btn--dl svg { transition: transform .3s var(--ease); }
.btn--dl:hover svg { transform: translateY(3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sol-grid, .ai-cards { grid-template-columns: repeat(2, 1fr); }
  .ai-quick__list { grid-template-columns: repeat(3, 1fr); }
  .ai-hub { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--tall { grid-row: span 1; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__inner { border-radius: 26px; background: rgba(12,12,22,.95); border-color: var(--border); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 16px; right: 16px; padding: 12px; border-radius: 22px;
    background: rgba(12,12,22,.97); border: 1px solid var(--border); backdrop-filter: blur(16px);
  }
  .nav.is-open .nav__links a { padding: 14px 16px; font-size: 16px; }
  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { width: min(340px, 78%); order: -1; }
  .code-card { right: -10%; }
  .about, .contact, .ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process__line { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav { top: 10px; padding: 0 10px; }
  .bento, .sol-grid, .ai-cards { grid-template-columns: 1fr; }
  .ai-quick { padding: 22px; }
  .ai-quick__list { grid-template-columns: 1fr 1fr; }
  .ai-quick__list li { font-size: 13px; padding: 10px 12px; }
  .ai-quick__cta .btn { width: 100%; }
  .ai-demo__chat { min-height: 0; }
  .card--xl, .card--wide { grid-column: auto; grid-row: auto; }
  .sol-card, .profile-strip { padding: 24px; }
  .profile-strip .btn { width: 100%; }
  .card { padding: 24px; }
  .stats { gap: 24px; }
  .stats dt { font-size: 28px; }
  .process { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .mini:nth-child(even) { transform: none; }
  .chip.c3 { left: -4%; } .chip.c2 { right: -4%; }
  .code-card { display: none; }
  .contact__form { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .ai-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 20px; }
  .planet b { font-size: 10.5px; padding: 4px 9px 4px 5px; gap: 5px; }
  .planet b::before { width: 10px; height: 10px; }
  .ufo { width: 90px; top: -70px; right: 16px; }
  .universe { width: 78%; }
  .chat { right: 16px; bottom: 16px; }
  .hero__ctas .btn--link { width: 100%; justify-content: flex-start; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-hero], .js .hero__name, .js .section__title { visibility: visible; }
  .preloader { display: none; }
}
