/* =========================================================
   SOLVYN GROUPS — refined studio design
   ========================================================= */

:root {
  --bg: #08090c;
  --bg-alt: #0c0d11;
  --surface: #111218;
  --surface-2: #16171e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededef;
  --muted: #8b8d98;
  --faint: #5a5d68;
  --accent: #a99cff;
  --accent-strong: #8b7bff;
  --accent-soft: rgba(169, 156, 255, 0.12);
  --success: #7ee2b8;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --radius: 20px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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 {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h2 em { font-size: 1.08em; }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-align: center;
}
.display em { font-size: 1.06em; }
.body-lg { font-size: clamp(16px, 1.25vw, 18px); color: var(--muted); max-width: 520px; line-height: 1.7; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.sec-label span {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid rgba(169, 156, 255, 0.3);
  border-radius: 100px;
}
.sec-label::after { content: ""; flex: 1; max-width: 80px; height: 1px; background: var(--line-2); }
.sec-label.center { justify-content: center; }
.sec-label.center::after { display: none; }

.sec-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* split helpers */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.sw-i { display: inline-block; will-change: transform; }

/* initial states for JS reveals */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.24); }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.loader-inner { display: flex; flex-direction: column; align-items: center; }
.loader-mark { width: 64px; height: 64px; overflow: visible; }
.loader-mark path { transform-box: fill-box; transform-origin: center; }
.loader-name { margin-top: 22px; overflow: hidden; }
.loader-name span {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transform: translateY(110%);
}
.loader-line { margin-top: 26px; width: 180px; height: 1px; background: var(--line-2); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }
.loader-count {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.loader-count::after { content: "%"; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.header.scrolled {
  background: rgba(8, 9, 12, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.header.hide { transform: translateY(-100%); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand em { font-family: var(--font-display); font-style: normal; font-weight: 400; color: var(--muted); font-size: 1em; }
.brand-mark { width: 30px; height: 30px; transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); }
.burger span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--text); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 110px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.open nav a:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.mobile-menu-foot a { font-size: 17px; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 40px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 78% 40%, rgba(139, 123, 255, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(139, 123, 255, 0.05), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.hero-copy { position: relative; z-index: 2; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--muted);
}
.dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--success); animation: ping 2.4s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }

.hero-title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-size: 1.08em; }
.hero-sub { margin-top: 28px; max-width: 480px; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; }
#heroCanvas { position: absolute; inset: -12%; width: 124%; height: 124%; display: block; }
.hero-badge {
  position: absolute;
  left: 4%; bottom: 10%;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(17, 18, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hb-label { font-size: 12px; color: var(--muted); }
.hb-value { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }

.hero-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
}
.hero-foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.hero-facts { display: flex; gap: clamp(28px, 5vw, 72px); }
.hero-facts dt { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.hero-facts dd { font-size: 13px; color: var(--muted); }
.scroll-hint { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.scroll-hint i { position: relative; width: 1px; height: 40px; background: var(--line-2); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; 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); }
.strip-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.strip span {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
}
.strip span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sticky { position: sticky; top: 120px; }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); }
.approach-intro .body-lg { margin-top: 24px; }
.solved-meter { margin-top: 36px; display: flex; align-items: center; gap: 16px; }
.sm-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-count b { color: var(--text); font-weight: 500; }
.sm-bar { position: relative; flex: 1; max-width: 200px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.sm-bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }

.ps-list { border-top: 1px solid var(--line); }
.ps-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px 0 36px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.6s var(--ease);
}
.ps-row::before {
  content: "";
  position: absolute;
  left: 0; top: 36px; bottom: 36px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}
.ps-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.5s;
}
.ps-problem p, .ps-solution p { font-size: 17px; line-height: 1.55; transition: color 0.6s var(--ease), opacity 0.6s var(--ease); }
.ps-problem p { color: var(--text); }
.ps-solution { opacity: 0.25; transform: translateX(-8px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.ps-solution p { color: var(--text); }

.ps-row.is-solved .ps-problem p { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.2); }
.ps-row.is-solved .ps-solution { opacity: 1; transform: none; }
.ps-row.is-solved .ps-solution .ps-tag { color: var(--accent); }
.ps-row.is-active { background: linear-gradient(90deg, rgba(169, 156, 255, 0.06), transparent 70%); }
.ps-row.is-active::before { transform: scaleY(1); }

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  min-height: 300px;
  background: var(--bg-alt);
  transition: background 0.4s var(--ease);
}
.svc:hover { background: var(--surface); }
.svc-ico {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.4s, background 0.4s;
}
.svc:hover .svc-ico { border-color: rgba(169, 156, 255, 0.45); background: var(--accent-soft); }
.svc-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin-top: 48px; font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; }
.svc p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.svc-meta { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--faint); letter-spacing: 0.02em; }

/* ---------- Statement ---------- */
.statement { padding: clamp(120px, 16vw, 220px) 0; }
.statement-text {
  max-width: 1040px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
}
.statement-text .w { opacity: 0.16; }
.statement-text .w.em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }

/* ---------- Cinematic scene: chaos → clarity ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene { position: relative; background: #050608; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.scene-pin { height: 100vh; height: 100svh; display: flex; align-items: center; }
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.scene-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.scene-caps { position: relative; margin-top: 24px; min-height: 3.3em; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.035em; }
.scene-cap { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; }
.scene-cap:first-child { position: relative; }
.scene-cap em { font-size: 1.06em; }
.scene-meter { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 40px; max-width: 320px; font-size: 13px; color: var(--muted); }
.scene-meter b { font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.scene-meter i { grid-column: 1 / -1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.scene-meter i em { display: block; height: 100%; background: linear-gradient(90deg, #ff5c7a, #2f8bff); transform: scaleX(0); transform-origin: left; }

.scene-stage-wrap { display: flex; justify-content: center; }
.scene-stage { position: relative; width: min(100%, 62vh, 520px); aspect-ratio: 136 / 142; }
.scene-glow { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 116, 227, 0.45), transparent 70%); opacity: 0; pointer-events: none; }
.tile { position: absolute; border-radius: 3px; will-change: transform; }
.scene-chip {
  position: absolute;
  z-index: 3;
  padding: 6px 12px;
  border: 1px solid rgba(255, 92, 122, 0.45);
  border-radius: 100px;
  background: rgba(30, 12, 18, 0.85);
  color: #ff9aa9;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.4s, color 0.4s, border-color 0.4s;
}
.scene-chip.fixed { text-decoration: line-through; text-decoration-color: rgba(126, 226, 184, 0.9); color: var(--success); border-color: rgba(126, 226, 184, 0.45); background: rgba(10, 30, 22, 0.85); }

@media (max-width: 900px) {
  .scene-grid { grid-template-columns: 1fr; gap: 28px; }
  .scene-stage-wrap { order: -1; }
  .scene-stage { width: min(70vw, 40vh); }
  .scene-caps { font-size: clamp(26px, 7vw, 36px); margin-top: 14px; }
  .scene-meter { margin-top: 22px; }
  .scene-chip { font-size: 11px; padding: 4px 9px; }
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); }
.process-intro .body-lg { margin-top: 24px; }
.timeline { position: relative; padding-left: 52px; }
.tl-line { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.tl-line i { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.tl-step { position: relative; padding-bottom: 64px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -52px; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-alt);
  transition: border-color 0.5s, background 0.5s, box-shadow 0.5s;
}
.tl-step.is-on .tl-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(169, 156, 255, 0.12); }
.tl-head { display: flex; align-items: center; gap: 12px; }
.tl-num { font-family: var(--font-display); font-size: 13px; color: var(--faint); transition: color 0.5s; }
.tl-step.is-on .tl-num { color: var(--accent); }
.tl-time { font-size: 12px; color: var(--muted); padding: 2px 10px; border: 1px solid var(--line); border-radius: 100px; }
.tl-step h3 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.03em;
  color: var(--faint);
  transition: color 0.6s var(--ease);
}
.tl-step.is-on h3 { color: var(--text); }
.tl-step p { margin-top: 10px; max-width: 520px; color: var(--muted); }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 32px; }
.case { display: block; }
.case:nth-child(even) { margin-top: 96px; }
.case-media {
  position: relative;
  aspect-ratio: 16 / 12;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; transition: scale 1.2s var(--ease); }
.case:hover .mock { scale: 1.03; }
.case-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 22px; }
.case-info h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.case-info p { font-size: 14px; color: var(--muted); }
.case-result {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text);
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s;
}
.case:hover .case-result { border-color: var(--accent); color: var(--accent); }

/* sub-headings inside Work */
.work-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.work-sub h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.work-sub span { font-size: 14px; color: var(--muted); }
.work-sub-sites { margin-top: clamp(80px, 9vw, 120px); }

/* app cards */
.apps-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.app-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.app-stage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 100%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--brand2) 30%, #111218), #0c0d12 75%);
}
.app-shot {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 46%;
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  transition: transform 0.9s var(--ease), filter 0.6s;
}
.app-shot.front { z-index: 2; transform: translateX(-72%) rotate(-5deg); }
.app-shot.back { z-index: 1; transform: translateX(-18%) translateY(6%) rotate(7deg); filter: brightness(0.75); }
.app-card:hover .app-shot.front { transform: translateX(-80%) translateY(-4%) rotate(-8deg); }
.app-card:hover .app-shot.back { transform: translateX(-8%) translateY(2%) rotate(11deg); filter: brightness(0.95); }
.app-info { display: flex; align-items: center; gap: 14px; padding: 20px 22px 6px; }
.app-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; background: #fff; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.app-info h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.app-info p { font-size: 13px; color: var(--muted); }
.play-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.play-chip svg { width: 11px; height: 11px; fill: currentColor; }
.app-card:hover .play-chip { color: var(--success); border-color: var(--success); }
.app-desc { padding: 8px 22px 24px; font-size: 14px; color: var(--muted); }
.sticker-apps { top: -22px; right: 8px; }

/* real website screenshots inside the browser frame */
.mock.site { background: radial-gradient(80% 70% at 50% 100%, color-mix(in srgb, var(--brand) 38%, transparent), var(--surface) 70%); }
.site-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease); }
.case:hover .site-shot { transform: scale(1.04); }

/* mock browser */
.mock-bar { display: flex; align-items: center; gap: 6px; margin: 7% 7% 0; padding: 12px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, 0.03); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mock-bar span { margin-left: 10px; font-size: 11px; color: var(--faint); }
.mock-screen { position: relative; flex: 1; margin: 0 7%; border: 1px solid var(--line); border-bottom: 0; overflow: hidden; background: #0b0c12; }
.mw-copy { position: absolute; left: 8%; top: 20%; width: 42%; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.mw-copy b { height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.82); }
.mw-copy b.s { width: 64%; }
.mw-copy em { display: block; margin-top: 12px; width: 44%; height: 26px; border-radius: 100px; background: var(--accent); }

.mock-web { background: radial-gradient(80% 70% at 70% 30%, #1a1638, var(--surface) 70%); }
.mw-orb {
  position: absolute;
  right: 8%; top: 12%;
  width: 40%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f3f0ff, #a99cff 22%, #4b3fb5 58%, #14112e 85%);
  box-shadow: 0 30px 80px -20px rgba(139, 123, 255, 0.55);
  animation: bob 7s ease-in-out infinite;
}
.mw-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background-image: linear-gradient(rgba(169, 156, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 156, 255, 0.18) 1px, transparent 1px); background-size: 28px 28px; transform: perspective(300px) rotateX(55deg); transform-origin: bottom; mask-image: linear-gradient(to top, #000, transparent); -webkit-mask-image: linear-gradient(to top, #000, transparent); }
@keyframes bob { 50% { transform: translateY(-10px); } }

.mock-app { background: radial-gradient(70% 70% at 50% 60%, #1c1838, var(--surface) 70%); align-items: center; justify-content: center; }
.phone { position: relative; width: 36%; aspect-ratio: 9 / 18.5; border-radius: 28px; border: 5px solid #23242c; background: #0b0c12; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); overflow: hidden; }
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 10px; border-radius: 10px; background: #000; }
.phone-ui { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 12px 12px; height: 100%; }
.phone-ui > small { align-self: flex-start; font-size: 11px; color: var(--muted); }
.ring { position: relative; width: 76%; aspect-ratio: 1; display: grid; place-items: center; text-align: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .r-bg { stroke: rgba(255, 255, 255, 0.08); }
.ring .r-fg { stroke: var(--accent); stroke-dasharray: 88; stroke-dashoffset: 24; stroke-linecap: round; }
.ring span { font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 1.1; }
.ring span small { font-size: 9px; color: var(--muted); font-family: var(--font-body); }
.bars { display: flex; align-items: flex-end; gap: 4px; width: 100%; height: 44px; margin-top: auto; }
.bars i { flex: 1; height: var(--h); border-radius: 3px; background: rgba(169, 156, 255, 0.35); }
.bars i:nth-child(4) { background: var(--accent); }

.mock-estate { background: radial-gradient(80% 70% at 70% 60%, #2a2016, var(--surface) 70%); }
.mock-estate .mw-copy em { background: #e8c48f; }
.iso { position: absolute; right: 10%; bottom: 14%; width: 42%; aspect-ratio: 1; transform: rotateX(55deg) rotateZ(45deg); transform-style: preserve-3d; }
.iso span { position: absolute; border-radius: 4px; border: 1px solid rgba(232, 196, 143, 0.4); }
.iso span:nth-child(1) { inset: 0; background: rgba(232, 196, 143, 0.08); }
.iso span:nth-child(2) { inset: 18%; background: rgba(232, 196, 143, 0.18); transform: translateZ(30px); }
.iso span:nth-child(3) { inset: 36%; background: rgba(232, 196, 143, 0.55); transform: translateZ(60px); animation: lift 5s ease-in-out infinite; }
@keyframes lift { 50% { transform: translateZ(80px); } }

.mock-dash { background: radial-gradient(80% 70% at 30% 70%, #10241e, var(--surface) 70%); }
.mock-screen.dash { display: flex; gap: 10px; padding: 12px; }
.dash aside { width: 18%; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.dash aside i { height: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.dash aside i:first-child { background: var(--success); opacity: 0.8; }
.dash-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis span { height: 46px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.kpis b { display: block; width: 60%; height: 8px; margin-top: 18px; border-radius: 3px; background: rgba(255, 255, 255, 0.5); }
.chart { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--line); }
.chart svg { width: 100%; height: 100%; }
.chart .area { fill: rgba(126, 226, 184, 0.12); }
.chart .stroke { fill: none; stroke: var(--success); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

/* ---------- Stats ---------- */
.stats { padding: clamp(64px, 8vw, 100px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat > span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.quote blockquote { flex: 1; font-size: 17px; line-height: 1.6; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.q-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(169, 156, 255, 0.3); }
.quote b { display: block; font-size: 14px; font-weight: 500; }
.quote small { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.faq-grid .body-lg { margin-top: 24px; }
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc-ico { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.5s var(--ease), border-color 0.3s; }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.acc-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc-ico { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.acc-body { overflow: hidden; }
.acc-body p { padding-bottom: 26px; max-width: 600px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact-glow { position: absolute; left: 50%; top: 0; width: 900px; max-width: 120vw; height: 500px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 30%, rgba(139, 123, 255, 0.16), transparent 70%); pointer-events: none; }
.contact-head { position: relative; margin-bottom: clamp(56px, 7vw, 96px); }
.contact-head .body-lg { margin-top: 28px; }
.contact-grid { position: relative; display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.ci-item small { display: block; font-size: 13px; color: var(--faint); margin-bottom: 4px; }
.ci-item a, .ci-item span { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.ci-item a { border-bottom: 1px solid var(--line-2); transition: border-color 0.3s, color 0.3s; }
.ci-item a:hover { color: var(--accent); border-color: var(--accent); }
.ci-points { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.ci-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.ci-points svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 18, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(169, 156, 255, 0.12); }
.field.invalid input, .field.invalid textarea { border-color: #ff7a8a; }

.choice { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.choice label:hover span { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.choice input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { min-height: 1.2em; font-size: 14px; color: #ff9aa6; text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 96px 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer-brand p { margin-top: 16px; font-size: 15px; color: var(--muted); }
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.footer-contact a { color: var(--text); transition: color 0.3s; }
.footer-contact a:hover { color: var(--accent); }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-cols h4 { margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--faint); }
.footer-cols a { display: block; margin-bottom: 10px; font-size: 15px; color: var(--muted); transition: color 0.3s; }
.footer-cols a:hover { color: var(--text); }
.footer-word {
  margin: 72px 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(88px, 21vw, 300px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.01));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); transition: color 0.3s; }
.to-top:hover { color: var(--text); }
.to-top svg { width: 32px; height: 32px; padding: 8px; border: 1px solid var(--line-2); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 0.4s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- Stickers ---------- */
.sticker {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #0b0c10;
  background: var(--st, #fff);
  /* die-cut vinyl look: white edge + soft drop shadow */
  box-shadow: 0 0 0 3px #f4f4f6, 0 14px 30px -10px rgba(0, 0, 0, 0.7), 0 2px 0 3px rgba(0, 0, 0, 0.15);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow 0.3s var(--ease);
}
.sticker::after {
  /* glossy highlight */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 45%);
  pointer-events: none;
}
.sticker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sticker:hover { box-shadow: 0 0 0 3px #fff, 0 22px 40px -12px rgba(0, 0, 0, 0.8), 0 2px 0 3px rgba(0, 0, 0, 0.15); }
.sticker.dragging { cursor: grabbing; z-index: 50; }
.st-blue { --st: #2f8bff; color: #fff; }
.st-yellow { --st: #ffd84d; }
.st-green { --st: #7ee2b8; }
.st-lav { --st: var(--accent); }
.st-pink { --st: #ff9ccf; }
.st-circle {
  --st: #0674e3;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 96px; height: 96px;
  padding: 0;
  border-radius: 50%;
  text-align: center;
  line-height: 1.05;
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-circle b { font-size: 22px; letter-spacing: -0.03em; }
.sticker-inline { position: relative; margin-top: 32px; }
.sticker-corner { top: -18px; right: 0; }
.sticker-case { top: 16px; right: 16px; }
.sec-head { position: relative; }

.drag-hint {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
}

/* ---------- Speech bubbles ---------- */
.bubble {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.bubble svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bubble-hero { right: 18%; bottom: 26%; }
.hero-visual { cursor: grab; touch-action: pan-y; }
.hero-visual.dragging { cursor: grabbing; }

.case-media .case-bubble, .app-stage .case-bubble {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 3;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transform-origin: left bottom;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.case:hover .case-bubble, .case:focus-visible .case-bubble,
.app-card:hover .case-bubble, .app-card:focus-visible .case-bubble { opacity: 1; transform: none; }
@media (hover: none) { .case-media .case-bubble, .app-stage .case-bubble { opacity: 1; transform: none; } }

/* ---------- Conversation ---------- */
.talk-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.talk-intro .body-lg { margin-top: 24px; }
.talk-stickers { position: relative; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; }
.talk-stickers .sticker { position: relative; }

.chat {
  display: flex;
  flex-direction: column;
  height: 560px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(6, 116, 227, 0.35);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.chat-avatar svg { width: 24px; height: 24px; }
.chat-head b { display: block; font-size: 15px; font-weight: 600; }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.msg {
  max-width: 82%;
  padding: 11px 15px;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 18px;
  animation: msgIn 0.45s var(--ease) both;
}
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: #0674e3; color: #fff; border-bottom-right-radius: 6px; }
.msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } }

.chat-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.chat-replies button {
  padding: 8px 14px;
  border: 1px solid rgba(6, 116, 227, 0.5);
  border-radius: 100px;
  font-size: 13px;
  color: #8cc3ff;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.chat-replies button:hover { background: #0674e3; color: #fff; transform: translateY(-2px); }
.chat-replies button:disabled { opacity: 0.4; pointer-events: none; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}
.chat-input input:focus { border-color: #0674e3; }
.chat-input button { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #0674e3; color: #fff; transition: transform 0.3s var(--ease); }
.chat-input button:hover { transform: scale(1.06); }
.chat-input svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Confetti ---------- */
.confetti { position: fixed; z-index: 300; pointer-events: none; font-size: 22px; will-change: transform; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: var(--surface-2);
  font-size: 15px;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 640px; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .header-inner { height: 64px; }

  .hero { padding: 96px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { order: -1; max-width: 340px; width: 78%; justify-self: center; margin-bottom: 8px; }
  .hero-badge { left: -4%; bottom: 6%; padding: 10px 14px; }
  .hb-value { font-size: 17px; }
  .hero-title { margin-top: 22px; }
  .hero-foot { margin-top: 40px; }
  .scroll-hint { display: none; }

  .approach-grid, .process-grid, .faq-grid, .contact-grid, .talk-grid { grid-template-columns: 1fr; gap: 40px; }
  .chat { height: 520px; }
  .bubble-hero { right: 4%; bottom: 30%; }
  .hero > .sticker { left: auto; right: var(--gutter); bottom: 6%; }
  .statement .sticker { display: none; }
  .contact-head .sticker { display: none; }
  .sticker-corner { top: auto; bottom: -14px; right: 4px; }
  .sticky { position: static; }

  .work-grid { grid-template-columns: 1fr; gap: 48px; }
  .case:nth-child(even) { margin-top: 0; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 640px) {
  .apps-grid { grid-template-columns: 1fr; }
  .sticker-apps { top: -18px; right: 4px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .svc h3 { margin-top: 28px; }
  .ps-row { grid-template-columns: 1fr; gap: 18px; padding: 28px 0 28px 20px; }
  .ps-row::before { top: 28px; bottom: 28px; }
  .ps-problem p, .ps-solution p { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { gap: 24px; }
  .hero-facts dt { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .stat { padding: 0 16px; }
  .case-info { flex-direction: column; gap: 10px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
