:root {
  --bg: #05060a;
  --bg2: #0a0c14;
  --ink: #eef1ff;
  --muted: #9aa3c0;
  --dim: #5c6484;
  --cyan: #5ef2ff;
  --violet: #8b5cff;
  --pink: #ff4ecd;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.1);
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink));
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--violet); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- background ---------- */
#core { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.grid {
  position: absolute; inset: -20% -10%;
  background-image:
    linear-gradient(rgba(94, 242, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 242, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  transform: perspective(900px) rotateX(55deg) translateY(var(--py, 0));
  transform-origin: 50% 0;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; transform: translate3d(0, var(--py, 0), 0); will-change: transform; contain: strict; }
.orb-a { width: 46vw; height: 46vw; left: -12vw; top: 10vh; background: radial-gradient(circle, var(--violet), transparent 65%); }
.orb-b { width: 40vw; height: 40vw; right: -10vw; top: 70vh; background: radial-gradient(circle, var(--cyan), transparent 65%); opacity: .35; }
.orb-c { width: 30vw; height: 30vw; left: 40vw; top: 160vh; background: radial-gradient(circle, var(--pink), transparent 65%); opacity: .3; }
.noise {
  position: absolute; inset: 0; opacity: .025; transform: translateZ(0);
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(139, 92, 255, .14), transparent 60%);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0);
  transition: opacity .4s;
}

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(145deg, rgba(30, 33, 52, .78), rgba(14, 16, 27, .72));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 60px -20px rgba(0, 0, 0, .6);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
}
.logo { display: flex; align-items: center; gap: 10px; font: 700 15px var(--display); letter-spacing: .18em; }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; }
.links a:hover, .links a.active { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.lang button { padding: 5px 9px; border-radius: 999px; font: 500 11px var(--mono); color: var(--dim); transition: .3s; }
.lang button.on { color: var(--bg); background: var(--cyan); }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
h1 { font-size: clamp(42px, 7.6vw, 104px); }
h2 { font-size: clamp(32px, 4.8vw, 62px); max-width: 16ch; }
h3 { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
h1 em, .grad { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; }
.kicker, .eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(94, 242, 255, .25); background: rgba(94, 242, 255, .06); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(94, 242, 255, .7); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(94, 242, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 242, 255, 0); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 500 15px var(--body); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.btn-primary { background: var(--grad); color: #07080d; font-weight: 600; box-shadow: 0 10px 40px -10px rgba(139, 92, 255, .8); }
.btn-primary:hover { box-shadow: 0 14px 50px -8px rgba(94, 242, 255, .7); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }

/* ---------- layout ---------- */
main { position: relative; z-index: 2; }
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 140px 0 40px; }
.head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }

/* hero */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; }
.hero-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-top: 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero h1 { max-width: 14ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.scroll-hint { position: absolute; bottom: 32px; left: 50%; width: 24px; height: 40px; margin-left: -12px; border: 1px solid var(--line); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* marquee */
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: rgba(5, 6, 10, .82); padding: 22px 0; transform: rotate(-2deg) scale(1.04); }
.track { display: flex; gap: 36px; width: max-content; animation: marq 38s linear infinite; font: 500 clamp(20px, 2.6vw, 32px) var(--display); white-space: nowrap; }
.track i { font-style: normal; color: var(--violet); }
@keyframes marq { to { transform: translateX(-50%); } }

/* services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
a.card { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--cyan); }
.card { position: relative; padding: 30px 26px; border-radius: var(--r); display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card li { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.card li::before { content: "→"; color: var(--cyan); }
.card.featured { border-color: rgba(139, 92, 255, .5); background: linear-gradient(145deg, rgba(139, 92, 255, .18), rgba(94, 242, 255, .04)); }
.badge { position: absolute; top: 18px; right: 18px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--grad); color: #07080d; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(94, 242, 255, .08); border: 1px solid rgba(94, 242, 255, .2); transform: translateZ(40px); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tilt { transition: transform .5s var(--ease), border-color .4s; }
.tilt:hover, .magnetic:hover { will-change: transform; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .1), transparent 40%); opacity: 0; transition: opacity .4s; }
.tilt:hover::after { opacity: 1; }
.tilt:hover { border-color: rgba(94, 242, 255, .35); }

/* ai */
.ai-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.ai-grid > div:first-child { display: flex; flex-direction: column; gap: 22px; }
.feats { display: grid; gap: 12px; margin-top: 8px; }
.feat { padding: 18px 20px; border-radius: 16px; display: grid; gap: 4px; }
.feat b { font: 600 16px var(--display); }
.feat span { color: var(--muted); font-size: 14px; }

/* work */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project { position: relative; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.shot { height: 260px; position: relative; overflow: hidden; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--h1) 45%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--h2) 45%, transparent), transparent 60%), #0b0d16; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.meta { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.meta p { color: var(--muted); font-size: 15px; }
.tag { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.mock-voice { display: flex; align-items: center; gap: 8px; height: 120px; }
.mock-voice span { width: 10px; height: 45%; border-radius: 6px; background: linear-gradient(var(--h1), var(--h2)); animation: wave 1.2s ease-in-out infinite; }
.mock-voice span:nth-child(odd) { animation-duration: .9s; }
.mock-voice span:nth-child(1) { animation-delay: -.2s } .mock-voice span:nth-child(2) { animation-delay: -.5s } .mock-voice span:nth-child(3) { animation-delay: -.1s } .mock-voice span:nth-child(4) { animation-delay: -.7s } .mock-voice span:nth-child(5) { animation-delay: -.3s } .mock-voice span:nth-child(6) { animation-delay: -.6s }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }

/* process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { padding: 28px 24px; border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; }
.step p { color: var(--muted); font-size: 15px; }
.num { font: 600 44px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* contact */
.contact { padding-bottom: 120px; }
.contact-card { border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 500px; height: 500px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 255, .35), transparent 65%); pointer-events: none; }
.contact-card > div { display: flex; flex-direction: column; gap: 20px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.form select option { background: var(--bg2); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(94, 242, 255, .12); }

/* footer */
.footer { position: relative; z-index: 2; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--dim); }
.footer a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero trust + live dot ---------- */
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--cyan); margin-right: 8px; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulseG 2s infinite; display: inline-block; flex: none; }
@keyframes pulseG { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* ---------- "try it live" card ---------- */
.try { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; box-shadow: 0 40px 120px -30px rgba(139, 92, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .1); }
.try h3 { font-size: clamp(24px, 2.6vw, 32px); max-width: 16ch; position: relative; }
.try > p { color: var(--muted); position: relative; max-width: 42ch; }
.tag.live { display: inline-flex; align-items: center; gap: 8px; color: #34d399; position: relative; }
.try-orb { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; pointer-events: none; }
.try-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(94, 242, 255, .3); animation: spin 14s linear infinite; }
.try-orb span:nth-child(1) { background: radial-gradient(circle at 40% 40%, rgba(139, 92, 255, .55), transparent 60%); border: 0; }
.try-orb span:nth-child(2) { inset: 30px; border-color: rgba(255, 78, 205, .4); border-style: dotted; }
.try-orb span:nth-child(3) { inset: 60px; animation-direction: reverse; border-style: dashed; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.chip { padding: 9px 14px; border-radius: 999px; font-size: 13.5px; text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.chip:hover { background: rgba(94, 242, 255, .1); border-color: rgba(94, 242, 255, .45); transform: translateY(-2px); }

/* ---------- comparison ---------- */
.compare { border-radius: var(--r); overflow: hidden; }
.compare .row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; padding: 18px 26px; border-top: 1px solid var(--line); align-items: center; }
.compare .row:first-child { border-top: 0; }
.compare .head-row { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: rgba(0, 0, 0, .2); }
.compare [role="rowheader"] { font: 600 16px var(--display); }
.compare [role="cell"] { color: var(--muted); font-size: 15px; }
.compare [role="cell"]:not(.us)::before { content: "✕"; color: #f87171; margin-right: 10px; }
.compare .us { color: var(--ink); }
.compare [role="cell"].us::before { content: "✓"; color: var(--cyan); margin-right: 10px; font-weight: 700; }
.compare .head-row .us { color: var(--cyan); }

/* ---------- concept lab ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.filters button { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: .3s; }
.filters button:hover { color: var(--ink); }
.filters button.on { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }
.work { grid-template-columns: repeat(3, 1fr); }
.project.hide { display: none; }
.concept { color: var(--pink); }
.ask { align-self: flex-start; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--cyan); transition: color .3s; }
.ask:hover { color: var(--ink); }
.meta { flex: 1; }
.mock { transition: transform .6s var(--ease); }
.project:hover .mock { transform: translateY(-8px) scale(1.03); }
.mock-shop { width: 78%; border-radius: 12px; background: rgba(5, 6, 10, .8); border: 1px solid rgba(255, 255, 255, .15); padding: 12px; display: grid; gap: 12px; box-shadow: 0 30px 60px -20px #000; }
.mock-shop .bar { display: flex; align-items: center; gap: 5px; font: 500 10px var(--mono); color: var(--muted); }
.mock-shop .bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.mock-shop .bar b { margin-left: 8px; font-weight: 500; letter-spacing: .08em; }
.mock-shop .bar em { margin-left: auto; font-style: normal; padding: 2px 8px; border-radius: 99px; background: rgba(94, 242, 255, .15); color: var(--cyan); }
.mock-shop .items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-shop .items span { aspect-ratio: 3/4; border-radius: 8px; background: radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--h1) 75%, #fff) 0 18%, transparent 19%), linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)); }
.mock-shop .items span:nth-child(2) { background: radial-gradient(ellipse 34% 14% at 50% 64%, color-mix(in srgb, var(--h2) 80%, #fff) 0 70%, transparent 72%), linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)); }
.mock-shop .items span:nth-child(3) { background: linear-gradient(color-mix(in srgb, var(--h1) 60%, #fff), color-mix(in srgb, var(--h1) 60%, #fff)) 50% 62% / 30% 34% no-repeat, linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)); }
.mock-shop .line { height: 22px; width: 45%; border-radius: 99px; background: var(--grad); justify-self: end; }
.mock-phone > div { width: 122px; height: 214px; border-radius: 22px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(5, 6, 10, .85); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-8deg); box-shadow: 0 30px 60px -20px #000; }
.mock-phone em { height: 62px; border-radius: 12px; background: linear-gradient(140deg, var(--h1), var(--h2)); }
.mock-phone .bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.mock-phone .bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 4px 4px 0 0; background: linear-gradient(var(--h2), transparent); }
.mock-phone b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.mock-phone b:last-child { width: 60%; }
.mock-iso svg { width: 230px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.mock-iso path { stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.mock-iso .f1 { fill: rgba(255, 207, 94, .12); } .mock-iso .f2 { fill: rgba(255, 207, 94, .3); } .mock-iso .f3 { fill: rgba(255, 122, 69, .35); }
.mock-iso .w { fill: rgba(255, 255, 255, .7); stroke: none; }
.mock-chat { width: 80%; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.mock-chat span { max-width: 85%; padding: 9px 12px; border-radius: 14px; box-shadow: 0 10px 30px -10px #000; }
.mock-chat .u { align-self: flex-end; background: rgba(255, 255, 255, .92); color: #07080d; border-bottom-right-radius: 4px; }
.mock-chat .b { align-self: flex-start; background: rgba(5, 6, 10, .85); border: 1px solid rgba(52, 211, 153, .4); border-bottom-left-radius: 4px; }
.mock-chat .slot { align-self: flex-start; font: 500 11px var(--mono); background: rgba(52, 211, 153, .18); color: #34d399; }
.mock-flow svg { width: 88%; overflow: visible; }
.mock-flow .wire { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.mock-flow .node rect { fill: rgba(5, 6, 10, .85); stroke: rgba(255, 255, 255, .3); }
.mock-flow .node.ai rect { fill: rgba(139, 92, 255, .5); stroke: var(--pink); }
.mock-flow text { fill: #fff; font: 600 14px var(--display); text-anchor: middle; }

/* ---------- packages ---------- */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.pack { position: relative; border-radius: var(--r); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.pack h3 { font-size: 30px; }
.pack > p { color: var(--muted); font-size: 15px; }
.pack ul { list-style: none; display: grid; align-content: start; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 4px; flex: 1; }
.pack li { font-size: 14.5px; display: flex; gap: 10px; }
.pack li::before { content: "✓"; color: var(--cyan); font-weight: 700; }
.pack.featured { border-color: rgba(139, 92, 255, .55); background: linear-gradient(160deg, rgba(139, 92, 255, .2), rgba(94, 242, 255, .04)); }
.pack .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq details { border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 30px 20px 0; font: 600 17px var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 24px; color: var(--cyan); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; font-size: 15px; }

/* ---------- contact extras ---------- */
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mail { font: 600 clamp(18px, 2vw, 24px) var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--cyan); }
.form .check a, .chat-note a { color: var(--cyan); text-decoration: underline; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: #34d399; } .form-status.err { color: #f87171; }
.form [aria-invalid="true"] { border-color: #f87171; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- live chat widget ---------- */
.chat-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(10, 12, 20, .8); border: 1px solid rgba(94, 242, 255, .35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 50px -12px rgba(139, 92, 255, .8); font-weight: 500; font-size: 14px; transition: transform .3s var(--ease), opacity .3s; }
.chat-launcher:hover { transform: translateY(-3px); }
.chat-launcher.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
.launcher-orb, .chat-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pink), var(--cyan)); animation: spin 6s linear infinite; position: relative; }
.launcher-orb::after, .chat-avatar::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, rgba(139, 92, 255, .5) 40%, #0a0c14 75%); }
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100svh - 110px)); border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(160deg, rgba(20, 22, 36, .92), rgba(8, 9, 15, .95)); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(94, 242, 255, .15), inset 0 1px 0 rgba(255, 255, 255, .08); transform-origin: bottom right; animation: chatIn .45s var(--ease) both; }
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.chat-top div { display: grid; flex: 1; line-height: 1.3; }
.chat-top b { font: 600 15px var(--display); }
.chat-top small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.chat-avatar { width: 34px; height: 34px; }
.chat-icon { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); transition: background .3s, color .3s; }
.chat-icon:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: pop .4s var(--ease) both; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--grad); color: #07080d; border-bottom-right-radius: 6px; font-weight: 500; }
.msg.bot { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot a { color: var(--cyan); text-decoration: underline; }
.msg.note { align-self: center; max-width: 100%; font-size: 13px; text-align: center; color: #34d399; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.msg.err { color: #fca5a5; background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); }
.msg.typing { display: flex; gap: 5px; padding: 15px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; }
.chat-chips:empty { display: none; }
.chat-chips .chip { font-size: 12.5px; padding: 7px 12px; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 16px; border-radius: 22px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); transition: border-color .3s; }
.chat-input:focus-within { border-color: rgba(94, 242, 255, .5); }
.chat-input textarea { flex: 1; resize: none; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; padding: 8px 0; max-height: 120px; }
.send { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #07080d; font-weight: 700; font-size: 17px; flex: none; }
.send[disabled] { opacity: .4; }
.chat-note { font-size: 11px; color: var(--dim); text-align: center; padding: 8px 14px 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .work, .packages { grid-template-columns: repeat(2, 1fr); }
  .ai-grid, .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .links { position: fixed; top: 76px; left: 16px; right: 16px; flex-direction: column; padding: 12px; border-radius: 22px; background: rgba(10, 12, 20, .92); backdrop-filter: blur(20px); border: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .3s var(--ease); }
  .links.open { opacity: 1; pointer-events: auto; transform: none; }
  .links a { padding: 14px 16px; font-size: 16px; }
  .burger { display: block; }
  .logo span { display: none; }
  .nav { padding-left: 14px; }
  .cards, .cards.three, .steps, .work, .form, .packages, .faq { grid-template-columns: 1fr; }
  .section { padding-top: 100px; }
  .shot { height: 200px; }
  .compare .row { grid-template-columns: 1fr 1fr; padding: 16px 18px; }
  .compare .row > :first-child { grid-column: 1 / -1; }
  .compare .head-row > :first-child { display: none; }
  .chat { right: 0; bottom: 0; width: 100%; height: 100svh; border-radius: 0; }
  .chat-launcher { right: 16px; bottom: 16px; }
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* chat: offline, limit, messages left */
.chat-top small.off .live-dot { background: var(--dim); animation: none; box-shadow: none; }
.msg.limit { border-color: rgba(94, 242, 255, .35); background: rgba(94, 242, 255, .07); }
.msg.limit a { color: var(--cyan); text-decoration: underline; }
.chat-left { font-size: 12px; color: var(--cyan); text-align: center; padding-top: 8px; }
.chat-left:empty { display: none; }
.chat-input textarea:disabled { opacity: .5; }

/* ---------- performance ---------- */
.grid { will-change: transform; }
.cursor-glow { will-change: transform; }
.track { will-change: transform; }
/* phones & low-power devices: no live blur behind cards (cheap solid glass instead) */
@media (max-width: 760px), (pointer: coarse) {
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(145deg, rgba(22, 25, 40, .92), rgba(12, 14, 24, .9)); }
  .orb { filter: blur(60px); }
}
/* light mode (weaker computers & phones, chosen by scene.js): same look, cheaper effects */
html.lite .orb { filter: none; opacity: .32; }
html.lite .noise { display: none; }
/* cursor glow stays on in lite: it is cheap, and phones are covered by the max-width rule above */
html.lite .nav.glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 16, 27, .88); }
html.lite .chat-launcher { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* real frosted blur only on the small top bar (cheap); cards use pre-tinted glass */
.nav.glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: linear-gradient(145deg, rgba(30, 33, 52, .55), rgba(14, 16, 27, .5)); }

/* ---------- living galaxy (v9) ---------- */
/* the galaxy now carries the color, so the soft orbs step back */
html.galaxy .orb { opacity: .22; }
html.galaxy .orb-b, html.galaxy .orb-c { opacity: .16; }
/* fast computers: cards turn into smoked glass so the galaxy glows through them */
html.galaxy:not(.lite) .glass { background: linear-gradient(145deg, rgba(30, 33, 52, .62), rgba(14, 16, 27, .55)); }
html.galaxy:not(.lite) .card.featured,
html.galaxy:not(.lite) .try.glass,
html.galaxy:not(.lite) .pack.featured {
  background: linear-gradient(145deg, rgba(30, 33, 52, .42), rgba(14, 16, 27, .36));
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
}
html.galaxy:not(.lite) .chat.glass { background: linear-gradient(145deg, rgba(24, 27, 44, .97), rgba(12, 14, 24, .98)); }
html { overflow-x: clip; }
html.galaxy:not(.lite) .nav.glass { background: linear-gradient(145deg, rgba(30, 33, 52, .5), rgba(14, 16, 27, .45)); }

/* section dots, right edge (desktop) */
.hud {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hud b { display: none; }
.hud .dots { display: flex; flex-direction: column; gap: 7px; }
.hud .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); transition: background .4s, box-shadow .4s, transform .4s; }
.hud .dots i.on { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transform: scale(1.3); }
@media (max-width: 1239px) { .hud { display: none; } }
@media (max-height: 859px) { .scroll-hint { display: none; } }

/* ---------- mobile layout (v9.1) ---------- */
@media (max-width: 760px) {
  .logo span { display: inline; font-size: 13px; letter-spacing: .16em; }
  .logo { gap: 8px; }
  .nav-right { gap: 2px; }
  .lang button { padding: 5px 7px; font-size: 10.5px; }
  .hero { min-height: auto; align-items: flex-start; }
  .hero-inner { padding-top: 124px; padding-bottom: 96px; gap: 22px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 46px); line-height: 1.05; max-width: none; }
  .hero h1 br { display: none; }
  .eyebrow { font-size: 11px; padding: 7px 14px; }
  .hero .lead { font-size: 16px; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .cta .btn { justify-content: center; }
  .trust { flex-direction: column; gap: 10px; }
  .scroll-hint { display: none; }
  /* chat button: just the orb, so it never covers text */
  .chat-launcher { padding: 6px; }
  .chat-launcher .launcher-text { display: none; }
}
@media (max-width: 340px) { .logo span { display: none; } }

/* ---------- real work ---------- */
.project .shot-real { height: auto; aspect-ratio: 16 / 10; display: block; background: #0b0d16; }
.shot-real img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
a.project:hover .shot-real img { transform: scale(1.03); }

/* v14 */
.pack .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pack .price b { font: 600 40px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.pack .price small { color: var(--muted); font-size: 13px; }
.pack.local { border-color: rgba(94, 242, 255, .45); }
.wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.wa svg { width: 18px; height: 18px; }
[hidden] { display: none !important; }
/* Fiverr link: English only (hidden when the page is switched to ES/IT/SQ) */
html:not([lang="en"]) .fiverr-link { display: none; }
