/* =========================================================
   SoftGyan — design tokens
   ========================================================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --heading: #14213d;
  --text: #475569;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #dc2626;
  --primary-soft: #eff4ff;
  --violet-soft: #f4efff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.05);
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.04), 0 8px 24px -12px rgba(20, 33, 61, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 33, 61, 0.04), 0 24px 48px -20px rgba(20, 33, 61, 0.22);

  --container: 1200px;
  --gutter: 20px;
  --section-y: 88px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 112px; }
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--heading); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--gradient); border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--text); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head--split > div { max-width: 640px; }

.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,.2), 0 8px 20px -8px rgba(37,99,235,.55); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--heading); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: #cbd5e1; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--heading); }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--primary); background: none; border: 0; padding: 0; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(20,33,61,.35); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--heading); letter-spacing: -0.03em; }
.logo img { width: 34px; height: 34px; }
.logo span span { color: var(--primary); }

.nav__menu { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }

.nav__toggle { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; color: var(--heading); }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

@media (min-width: 1080px) {
  .nav__toggle { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__menu { display: flex; align-items: center; gap: 2px; }
  .nav__link {
    display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 13px; border-radius: 8px;
    font-size: 14.5px; font-weight: 500; color: var(--heading); background: none; border: 0;
    transition: background .2s, color .2s;
  }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--bg); color: var(--primary); }
  .nav__link .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
  .nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav__link.is-active { color: var(--primary); }
  .has-mega { position: static; }
  .nav__inner { position: relative; }
}

/* Mega menu */
.mega {
  position: absolute; top: calc(100% - 4px); left: 50%; width: min(880px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 260px; overflow: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { padding: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; }
.mega__group-title { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 8px; }
.mega__item { display: flex; gap: 12px; padding: 10px; border-radius: 10px; transition: background .2s; }
.mega__item:hover { background: var(--bg); }
.mega__item .mi { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.mega__item .mi .icon { width: 18px; height: 18px; }
.mega__item strong { display: block; font-size: 14px; color: var(--heading); font-weight: 600; line-height: 1.3; }
.mega__item small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega__aside { background: var(--bg); border-left: 1px solid var(--border); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.mega__aside h4 { font-size: 16px; }
.mega__aside p { font-size: 13.5px; }
.mega__aside .btn { margin-top: auto; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; background: #fff; z-index: 99;
  padding: 16px var(--gutter) 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav.is-open + .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a.drawer__link, .drawer summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; font-size: 17px; font-weight: 600; color: var(--heading); border-bottom: 1px solid var(--border); cursor: pointer; list-style: none;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .icon { width: 18px; height: 18px; transition: transform .25s; }
.drawer details[open] summary .icon { transform: rotate(180deg); }
.drawer__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0 14px; border-bottom: 1px solid var(--border); }
.drawer__sub a { font-size: 14.5px; padding: 8px 4px; color: var(--text); }
.drawer .btn { margin-top: 24px; }
body.no-scroll { overflow: hidden; }
@media (min-width: 1080px) { .drawer { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; isolation: isolate; padding: 48px 0 72px; overflow: hidden; }
@media (min-width: 992px) {
  .hero { padding: 64px 0 88px; min-height: min(calc(100vh - var(--nav-h)), 880px); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(20,33,61,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(20,33,61,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 10%, #000 15%, transparent 72%);
          mask-image: radial-gradient(ellipse 85% 75% at 60% 10%, #000 15%, transparent 72%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(50px); animation: drift 20s ease-in-out infinite alternate; will-change: transform; }
.aurora--1 { width: 680px; height: 680px; top: -300px; right: -160px; background: radial-gradient(circle, rgba(124,58,237,.34), transparent 65%); }
.aurora--2 { width: 600px; height: 600px; top: 4%; left: -300px; background: radial-gradient(circle, rgba(37,99,235,.26), transparent 65%); animation-delay: -7s; }
.aurora--3 { width: 520px; height: 520px; bottom: -280px; right: 22%; background: radial-gradient(circle, rgba(14,165,233,.22), transparent 65%); animation-delay: -13s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,30px) scale(1.08); } 100% { transform: translate(-30px,60px) scale(.95); } }
.hero__net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 76% 45%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 55% 65% at 76% 45%, #000 25%, transparent 78%);
}

.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .hero__grid { grid-template-columns: 1.08fr 1fr; gap: 48px; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--heading);
  background: rgba(255,255,255,.75); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .25s;
}
.pill:hover { border-color: rgba(37,99,235,.4); box-shadow: 0 8px 22px -12px rgba(37,99,235,.6); }
.pill__tag { display: inline-flex; align-items: center; gap: 6px; background: var(--gradient); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.pill__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
.pill .icon { width: 15px; height: 15px; color: var(--primary); transition: transform .2s var(--ease); }
.pill:hover .icon { transform: translateX(3px); }

.hero h1 { display: block; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; margin: 18px 0 24px; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator__word {
  grid-area: 1 / 1; white-space: nowrap; padding-bottom: .08em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease);
}
.rotator__word:not(.is-active) { opacity: 0; transform: translateY(45%); filter: blur(8px); }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-45%); filter: blur(8px); }

.hero__lead { font-size: 18px; max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 65% { left: -60%; } 100% { left: 130%; } }

.hero__stack { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border); max-width: 560px; }
.hero__stack small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero__stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__stack li { font-size: 13px; font-weight: 600; color: var(--heading); padding: 5px 11px; border-radius: 8px; background: rgba(255,255,255,.75); border: 1px solid var(--border); }

/* ---------- Product scene ---------- */
.stage { position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 600 / 540; }
.stage__scale { position: absolute; top: 0; left: 0; width: 600px; height: 540px; transform: scale(var(--k, 1)); transform-origin: 0 0; perspective: 1400px; }
.stage__inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(calc(var(--mx, 0) * 7deg)) rotateX(calc(var(--my, 0) * -6deg)); }
.no-js .stage { display: none; }

.layer { position: absolute; transform: translate3d(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px), 0); }
.bob { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; translate: -50% -50%; border: 1px dashed rgba(37,99,235,.28); animation: spin 70s linear infinite; }
.ring--1 { width: 540px; height: 540px; }
.ring--2 { width: 390px; height: 390px; border-style: solid; border-color: rgba(124,58,237,.16); animation-duration: 45s; animation-direction: reverse; }
.ring span { position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(37,99,235,.15); }
.ring--2 span { top: auto; bottom: -5px; background: var(--secondary); box-shadow: 0 0 0 5px rgba(124,58,237,.15); }
@keyframes spin { to { rotate: 360deg; } }

/* shared mini window bar */
.win-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--border); background: #fbfcfe; flex: none; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.win-bar span { margin-left: 10px; font-size: 11px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 12px; }

/* dashboard */
.dash { left: 44px; top: 72px; width: 470px; height: 340px; }
.dash__win { width: 100%; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 70px -30px rgba(20,33,61,.38), 0 2px 6px rgba(20,33,61,.05); }
.dash__body { flex: 1; display: grid; grid-template-columns: 52px 1fr; min-height: 0; }
.dash__side { border-right: 1px solid var(--border); background: #fbfcfe; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 0; }
.dash__side .logo-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--gradient); margin-bottom: 6px; }
.dash__side span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #94a3b8; }
.dash__side span.on { background: var(--primary-soft); color: var(--primary); }
.dash__side .icon { width: 16px; height: 16px; }
.dash__main { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: center; }
.dash__top strong { font-family: var(--font-head); font-size: 14px; color: var(--heading); }
.dash__top small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.dash__top em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--success); background: #f0fdf4; border: 1px solid #bbf7d0; padding: 3px 9px; border-radius: 6px; }
.dash__top em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulseG 1.8s ease-out infinite; }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 100% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dk { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.dk small { display: block; font-size: 10px; color: var(--muted); line-height: 1.3; }
.dk b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--heading); letter-spacing: -.02em; line-height: 1.35; font-variant-numeric: tabular-nums; }
.dk i { font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--success); }
.dash__chart { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 10px; display: flex; flex-direction: column; min-height: 0; }
.dash__chart header { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.dash__chart header b { color: var(--heading); font-weight: 600; }
.bars { position: relative; height: 128px; margin-top: auto; display: flex; align-items: flex-end; gap: 7px; padding-top: 12px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #a9c3fa, #e3ebfe); transform-origin: bottom; animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--t) + .3s); }
.bars i.hi { background: var(--gradient); }
@keyframes grow { from { transform: scaleY(0); } }
.bars svg { position: absolute; left: 0; top: 12px; width: 100%; height: calc(100% - 12px); overflow: visible; }
.bars path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* code editor */
.code { right: 0; top: 6px; width: 252px; }
.code__win { background: #0f172a; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 30px 50px -22px rgba(15,23,42,.65); }
.code__bar { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-bottom: 1px solid rgba(255,255,255,.07); }
.code__bar i { width: 8px; height: 8px; border-radius: 50%; background: #f87171; }
.code__bar i:nth-child(2) { background: #fbbf24; }
.code__bar i:nth-child(3) { background: #34d399; }
.code__bar span { margin-left: 8px; font-size: 10px; color: #94a3b8; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.code pre { margin: 0; padding: 10px 13px 12px; min-height: 132px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.72; color: #cbd5e1; white-space: pre; }
.code .k { color: #c4b5fd; } .code .s { color: #86efac; } .code .f { color: #93c5fd; } .code .a { color: #fca5a5; } .code .c { color: #64748b; }
.caret { display: inline-block; width: 6px; height: 12px; background: #93c5fd; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* phone */
.phone { left: 0; top: 220px; width: 188px; }
.phone__body { position: relative; height: 296px; background: #fff; border: 6px solid #14213d; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 34px 55px -22px rgba(20,33,61,.5); }
.phone__notch { width: 56px; height: 14px; margin: 0 auto; background: #14213d; border-radius: 0 0 10px 10px; flex: none; }
.phone__head { padding: 8px 12px 8px; }
.phone__head small { display: block; font-size: 9px; color: var(--muted); }
.phone__head strong { font-family: var(--font-head); font-size: 13px; color: var(--heading); }
.phone__list { display: grid; gap: 6px; padding: 0 9px; }
.phone__item { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border: 1px solid var(--border); border-radius: 9px; }
.phone__item .av { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.phone__item .av .icon { width: 12px; height: 12px; }
.phone__item div { flex: 1; min-width: 0; line-height: 1.25; }
.phone__item b, .phone__item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__item b { display: block; font-size: 9.5px; color: var(--heading); }
.phone__item small { display: block; font-size: 8.5px; color: var(--muted); }
.st { font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 10px; }
.st--ok { background: #dcfce7; color: #15803d; } .st--wait { background: #fef3c7; color: #b45309; } .st--new { background: var(--violet-soft); color: var(--secondary); }
.phone__btn { margin: auto 9px 12px; height: 30px; border-radius: 9px; background: var(--gradient); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }

/* pipeline chip */
.ci { left: 196px; top: 438px; }
.ci__card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.ci__card strong { display: block; font-size: 12px; color: var(--heading); line-height: 1.3; }
.ci__card small { font-size: 10.5px; color: var(--muted); }
.ci__card .icon { width: 17px; height: 17px; color: var(--secondary); margin-left: 6px; }
.ci__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); animation: pulseG 1.8s ease-out infinite; }

/* toast */
.toast { right: 4px; top: 330px; width: 238px; }
.toast__card {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 14px;
  background: rgba(255,255,255,.94); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast__card.is-out { opacity: 0; transform: translateY(10px) scale(.97); }
.toast__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.toast__ic .icon { width: 18px; height: 18px; }
.toast__card strong { display: block; font-size: 12.5px; color: var(--heading); line-height: 1.3; }
.toast__card small { font-size: 10.5px; color: var(--muted); }
.toast__time { margin-left: auto; align-self: flex-start; font-size: 10px; color: #94a3b8; }

/* ---------- Capability marquee ---------- */
.marquee {
  overflow: hidden; padding: 20px 0; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 44px; padding-right: 44px; }
.marquee li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--heading); white-space: nowrap; }
.marquee li .icon { width: 18px; height: 18px; color: var(--primary); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; } .marquee ul[aria-hidden] { display: none; } }

/* =========================================================
   Cards (shared)
   ========================================================= */
.card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5deeb; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 20px;
  border: 1px solid rgba(37,99,235,.12);
}
.card__icon--violet { background: var(--violet-soft); color: var(--secondary); border-color: rgba(124,58,237,.12); }
.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { font-size: 15px; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Solutions */
.solution { display: flex; flex-direction: column; }
.solution p { flex: 1; margin-bottom: 18px; }
.solution__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.solution__tags li { font-size: 12px; font-weight: 500; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; }
.solution__features { display: none; }

/* Filter tabs */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.tab { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--heading); }
.tab[aria-selected="true"] { background: #fff; color: var(--heading); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.solution.is-hidden { display: none; }

/* Dialog */
.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--text);
}
.dialog::backdrop { background: rgba(20,33,61,.45); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialogIn .28s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog__inner { padding: 32px; position: relative; }
.dialog__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; color: var(--heading); }
.dialog h3 { font-size: 24px; margin: 4px 0 10px; padding-right: 40px; }
.dialog__list { display: grid; gap: 10px; margin: 22px 0 28px; }
.dialog__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--heading); }
.dialog__list .icon { width: 18px; height: 18px; color: var(--success); margin-top: 3px; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   Custom development
   ========================================================= */
.custom { display: grid; gap: 48px; align-items: start; }
@media (min-width: 992px) { .custom { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } .custom__intro { position: sticky; top: calc(var(--nav-h) + 40px); } }
.custom__intro h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 14px 0 18px; }
.custom__intro > p { font-size: 18px; margin-bottom: 30px; }
.custom__note { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); margin-bottom: 30px; font-size: 14.5px; }
.custom__note .icon { color: var(--secondary); margin-top: 2px; }
.custom__note strong { color: var(--heading); }
.services { display: grid; gap: 14px; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
.service { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.service:hover { border-color: rgba(37,99,235,.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.service .card__icon { margin: 0; width: 42px; height: 42px; }
.service h3 { font-size: 16px; margin-bottom: 4px; }
.service p { font-size: 14px; line-height: 1.55; }

/* =========================================================
   Industries
   ========================================================= */
.industries { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 560px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .industries { grid-template-columns: repeat(5, 1fr); } }
.industry { background: #fff; padding: 28px 24px; transition: background .25s; }
.industry:hover { background: #fbfcff; }
.industry .icon { width: 28px; height: 28px; color: var(--primary); margin-bottom: 18px; stroke-width: 1.4; transition: color .25s, transform .3s var(--ease); }
.industry:hover .icon { color: var(--secondary); transform: translateY(-2px); }
.industry h3 { font-size: 16px; margin-bottom: 6px; }
.industry p { font-size: 14px; line-height: 1.55; }

/* =========================================================
   Technologies
   ========================================================= */
.tech { display: grid; gap: 16px; }
@media (min-width: 640px) { .tech { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tech { grid-template-columns: repeat(3, 1fr); } }
.tech__group { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.tech__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tech__head .card__icon { margin: 0; width: 38px; height: 38px; border-radius: 10px; }
.tech__head .card__icon .icon { width: 18px; height: 18px; }
.tech__head h3 { font-size: 16px; }
.tech__head small { display: block; font-size: 12.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--heading); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); transition: border-color .2s, background .2s, color .2s; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--primary)); }
.chip:hover { border-color: rgba(37,99,235,.35); background: #fff; color: var(--primary); }

/* =========================================================
   Why choose
   ========================================================= */
.why .card { padding: 30px; }
.why__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #cbd5e1; }

/* =========================================================
   Process
   ========================================================= */
.process { display: grid; gap: 0; counter-reset: step; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 34px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: linear-gradient(var(--border), var(--border)); }
.step:last-child::before { display: none; }
.step__num {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--primary);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: background .3s, color .3s, border-color .3s;
}
.step.is-visible .step__num { background: var(--gradient); color: #fff; border-color: transparent; }
.step h3 { font-size: 18px; margin: 4px 0 6px; }
.step p { font-size: 15px; }
@media (min-width: 992px) {
  .process { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .step { grid-template-columns: 1fr; gap: 18px; padding-bottom: 0; }
  .step::before { left: 52px; right: -20px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .step:last-child::before { display: none; }
}

/* =========================================================
   Work / projects
   ========================================================= */
.projects { display: grid; gap: 22px; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5deeb; }
.project__frame { position: relative; border-bottom: 1px solid var(--border); background: var(--bg); }
.project__frame .win-bar { height: 30px; }
.project__frame .win-bar i { width: 8px; height: 8px; }
.project__frame .win-bar span { font-size: 10.5px; padding: 1px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background:
  radial-gradient(circle at 20% 20%, rgba(37,99,235,.10), transparent 55%),
  radial-gradient(circle at 80% 80%, rgba(124,58,237,.10), transparent 55%), #f1f5f9; }
.project__shot iframe {
  position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; background: #fff;
  transform: scale(var(--s, .3)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .6s;
}
.project__shot iframe.is-loaded { opacity: 1; }
.project__shot--mobile iframe { width: 420px; height: 840px; left: 50%; transform: translateX(-50%) scale(var(--sm, .3)); transform-origin: 50% 0; }
.project__shot a.project__cover { position: absolute; inset: 0; z-index: 2; }
.project__placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 20px; letter-spacing: -.02em; padding: 20px; }
.project__placeholder small { display: block; font-family: var(--font); font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.project__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project h3 { font-size: 17px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--live { color: var(--success); background: #f0fdf4; border: 1px solid #bbf7d0; }
.badge--dev { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.project p { font-size: 14px; flex: 1; }
.project__url { font-size: 13px; color: var(--muted); }
.project .link-arrow { margin-top: 6px; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 28px; text-align: center; }

/* =========================================================
   CTA band
   ========================================================= */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 64px 28px; text-align: center; color: #cbd5e1;
  background: radial-gradient(ellipse at 15% 0%, rgba(37,99,235,.5), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(124,58,237,.45), transparent 55%), #14213d;
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); max-width: 760px; margin: 0 auto 18px; }
.cta p { max-width: 620px; margin: 0 auto; font-size: 17.5px; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
@media (min-width: 768px) { .cta { padding: 88px 48px; } }

/* =========================================================
   Contact
   ========================================================= */
.contact { display: grid; gap: 40px; }
@media (min-width: 992px) { .contact { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
.contact__info h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 14px 0 18px; }
.contact__info > p { font-size: 17.5px; margin-bottom: 32px; }
.contact__list { display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.contact__list .card__icon { margin: 0; width: 40px; height: 40px; border-radius: 10px; }
.contact__list .card__icon .icon { width: 18px; height: 18px; }
.contact__list small { display: block; font-size: 12.5px; color: var(--muted); }
.contact__list a, .contact__list strong { font-weight: 600; color: var(--heading); font-size: 15px; }
.contact__list a:hover { color: var(--primary); }

.form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form { padding: 40px; } }
.form__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 7px; }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--heading); background: #fff;
  border: 1px solid #cfd8e3; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { display: none; font-size: 13px; color: var(--danger); margin-top: 6px; }
.field.has-error .field__error { display: block; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form__foot p { font-size: 13px; color: var(--muted); max-width: 340px; }
.form__status { display: none; margin-top: 20px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; }
.form__status.is-success { display: flex; gap: 10px; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form__status.is-error { display: flex; gap: 10px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form__status .icon { width: 20px; height: 20px; }
.btn.is-loading { opacity: .75; pointer-events: none; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 72px 0 32px; font-size: 14.5px; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; } }
.footer__brand p { margin: 18px 0 0; max-width: 340px; }
.footer h4 { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a { color: var(--text); transition: color .2s; }
.footer ul a:hover { color: var(--primary); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.footer__bottom a:hover { color: var(--primary); }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--heading); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease); z-index: 50; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--primary); }

/* =========================================================
   Simple content pages (privacy / terms)
   ========================================================= */
.page { padding: 72px 0 96px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); margin: 14px 0 12px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; }
.page p, .page li { font-size: 16px; }
.page ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.page .updated { color: var(--muted); font-size: 14px; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
