/* =========================================================
   Mehedi Hasan — Portfolio
   Colour system: deep navy + technical sky blue
   ========================================================= */
:root {
  /* Light surfaces */
  --bg: #f5f9ff;
  --surface: #ffffff;
  --tint: #edf5ff;
  --ink: #0a1a33;
  --ink-2: #3b4d68;
  --muted: #6b7d98;
  --line: #dfe9f5;
  --line-2: #cddcee;

  /* Dark surfaces */
  --night: #061328;
  --night-2: #0a1d3a;
  --night-3: #0f2a52;
  --night-line: rgba(148, 196, 255, .14);
  --night-text: #a7bcd9;

  /* Sky blue scale */
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue: #2563eb;

  --grad-text: linear-gradient(110deg, #0369a1 0%, #0284c7 45%, #0ea5e9 100%);
  --grad-text-dark: linear-gradient(110deg, #bae6fd 0%, #7dd3fc 40%, #38bdf8 100%);
  --grad-btn: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 45%, #0ea5e9 100%);
  --grad-solid: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --grad-border: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 50%, #2563eb 100%);
  --glow: 0 16px 36px -14px rgba(14, 165, 233, .6);
  --glow-strong: 0 20px 50px -16px rgba(56, 189, 248, .75);

  --header-h: 76px;
  --radius: 20px;
  --pad: 40px;
  --display: "Anek Bangla", "Hind Siliguri", "Nirmala UI", system-ui, sans-serif;
  --body: "Hind Siliguri", "Nirmala UI", "Noto Sans Bengali", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky-200); color: var(--ink); }

:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; border-radius: 6px; }

.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; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

section { position: relative; }
.sec { padding: 120px 0; }
/* Tinted sections fade in and out so there are no hard colour edges between sections */
.sec.tint { background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 16%, var(--tint) 84%, var(--bg) 100%); }

/* ---------- Chapter header: one system for every section ---------- */
.chapter {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  margin: 0 0 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}
.chapter-meta { align-self: start; display: flex; flex-direction: column; gap: 6px; }
.chapter-no { font: 700 14px/1 var(--mono); color: var(--sky-600); letter-spacing: .04em; }
.chapter-no span { color: var(--muted); font-weight: 500; }
.chapter-name { font: 600 13px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.chapter-body .lead { margin-top: 16px; }
.chapter-aside { align-self: end; }
.night .chapter { border-top-color: var(--night-line); }
.night .chapter-no { color: var(--sky-400); }
.night .chapter-no span { color: rgba(167, 188, 217, .6); }
.night .chapter-name { color: var(--night-text); }
.chapter.sub { margin-top: 120px; }
.sec.night { background: var(--night); color: #fff; }

/* Technical blueprint grid used on dark sections */
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 25%, transparent 78%);
  pointer-events: none;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
.h1 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.2; font-weight: 700; }
.h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.22; font-weight: 700; }
.h3 { font-size: 22px; line-height: 1.4; font-weight: 600; }
.lead { font-size: 18.5px; color: var(--ink-2); max-width: 640px; margin: 18px 0 0; }
.night .lead { color: var(--night-text); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .grad-text,
.night .grad-text,
.site-footer .grad-text,
.score .grad-text { background-image: var(--grad-text-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font: 600 12px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky-700);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 3px rgba(14, 165, 233, .18); }
.night .eyebrow,
.hero .eyebrow,
.site-footer .eyebrow { background: rgba(125, 211, 252, .06); border-color: var(--night-line); color: var(--sky-300); }
.night .eyebrow::before,
.hero .eyebrow::before,
.site-footer .eyebrow::before { background: var(--sky-400); box-shadow: 0 0 0 3px rgba(56, 189, 248, .2), 0 0 12px rgba(56, 189, 248, .8); }

.sec-head { max-width: 760px; margin: 0 0 60px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .5s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad-btn); background-size: 180% 100%; color: #03213d; font-weight: 700; box-shadow: var(--glow); }
.btn-primary:hover { background-position: 100% 0; box-shadow: var(--glow-strong); }
.btn-ghost { background: rgba(125, 211, 252, .06); border-color: rgba(148, 196, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(125, 211, 252, .12); border-color: rgba(125, 211, 252, .55); }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--sky-500); color: var(--sky-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0f2547; }
.btn-sm { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fbf5b; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px;
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.chip.accent { background: var(--sky-50); border-color: var(--sky-200); color: var(--sky-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.gborder { border-color: var(--sky-200); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(10, 26, 51, .02), 0 24px 50px -36px rgba(10, 40, 90, .35);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 19, 40, .55);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  color: #fff;
  transition: height .3s var(--ease), background .3s, border-color .3s;
}
.site-header.scrolled { --header-h: 66px; background: rgba(6, 19, 40, .86); border-bottom-color: var(--night-line); }
.hdr { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-solid);
  font: 700 15px/1 var(--display);
  letter-spacing: .02em;
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(14, 165, 233, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.logo-name { font: 700 19px/1.1 var(--display); }
.logo-name small { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--sky-300); text-transform: uppercase; }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; padding: 6px 0; color: var(--night-text); font-size: 16px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a.on { color: #fff; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--sky-400); box-shadow: 0 0 10px rgba(56, 189, 248, .8); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a.on::after { transform: scaleX(1); }
.avail { display: inline-flex; align-items: center; gap: 9px; color: var(--night-text); font-size: 14px; white-space: nowrap; }
.avail i, .status-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.avail i::after, .status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; opacity: .5; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: rgba(125, 211, 252, .06);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.burger i { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 12px var(--pad) 26px;
  background: rgba(6, 19, 40, .97);
  border-bottom: 1px solid var(--night-line);
}
.mnav a:not(.btn) { display: block; padding: 15px 0; border-bottom: 1px solid var(--night-line); color: #fff; font-size: 18px; font-weight: 500; text-decoration: none; }
.mnav .btn { margin-top: 20px; width: 100%; }
.menu-open .mnav { display: block; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-btn); box-shadow: 0 0 10px rgba(56, 189, 248, .7); }

/* ---------- Glows ---------- */
.glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.glow span { position: absolute; border-radius: 50%; filter: blur(100px); animation: drift 24s ease-in-out infinite alternate; }
.glow span:nth-child(1) { width: 560px; height: 560px; left: -180px; top: -200px; background: #0ea5e9; opacity: .32; }
.glow span:nth-child(2) { width: 520px; height: 520px; right: -160px; top: 60px; background: #2563eb; opacity: .32; animation-delay: -8s; }
.glow span:nth-child(3) { width: 420px; height: 420px; left: 40%; bottom: -220px; background: #22d3ee; opacity: .16; animation-delay: -14s; }
@keyframes drift { to { transform: translate(50px, 40px) scale(1.1); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 64px) 0 0;
  background: radial-gradient(120% 80% at 50% 0%, #0b2246 0%, var(--night) 60%);
  color: #fff;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.hero .h1 { margin: 0 0 22px; }
.hero .lead { margin: 0 0 34px; color: var(--night-text); max-width: 560px; }
.switch-label { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #fff; }
.switch { display: inline-flex; gap: 4px; padding: 5px; margin: 0 0 30px; border: 1px solid var(--night-line); border-radius: 16px; background: rgba(125, 211, 252, .05); }
.switch button {
  position: relative;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--night-text);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .25s, background .25s, box-shadow .25s;
}
.switch button:hover { color: #fff; }
.switch button.on { background: var(--grad-btn); color: #03213d; box-shadow: 0 8px 22px -10px rgba(56, 189, 248, .9); }

.stage { position: relative; padding: 0 34px 46px 0; }
.browser {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(125, 211, 252, .25), 0 0 80px -20px rgba(14, 165, 233, .45);
}
.b-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #eef4fb; border-bottom: 1px solid #dde7f2; }
.b-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #c8d6e8; }
.b-url { flex: 1; max-width: 300px; height: 22px; margin-left: 14px; padding: 0 10px; border: 1px solid #dbe5f1; border-radius: 6px; background: #fff; font: 500 11px/20px var(--mono); color: #5c6f8a; overflow: hidden; white-space: nowrap; }
.b-url::before { content: "https://"; color: #9fb0c6; }
.screen { position: relative; overflow: hidden; background: #eef4fb; }
.browser .screen { aspect-ratio: 16 / 10; }
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.screen img.on { opacity: 1; animation: pan 18s ease-in-out 1.5s infinite alternate; }
@keyframes pan { to { object-position: 50% 100%; } }
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26%;
  border: 7px solid #0d1f3c;
  border-radius: 28px;
  overflow: hidden;
  background: #0d1f3c;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(125, 211, 252, .25);
}
.phone .screen { aspect-ratio: 9 / 19.5; border-radius: 20px; }
.phone .screen img.on { animation-duration: 20s; }
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
}
.float-card strong { display: block; font: 700 16px/1.3 var(--display); }
.float-card small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.badge-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-solid); color: #fff; }
.badge-ico svg { width: 20px; height: 20px; }
.badge-card { left: -30px; bottom: 90px; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.preview-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-right: 34%; font-size: 14.5px; color: var(--night-text); }
.preview-caption b { color: #fff; font-weight: 600; }
.preview-caption a { color: var(--sky-300); }

/* Proof card straddles the hero edge: it ties the dark opening to the light page below */
.proof {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 88px 0 -78px;
  padding: 0;
  list-style: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 34px 70px -34px rgba(6, 19, 40, .5);
}
.proof li { padding: 30px 32px; }
.proof li + li { border-left: 1px solid var(--line); }
.proof strong { display: block; font: 700 clamp(30px, 3vw, 40px)/1.1 var(--display); color: var(--ink); }
.proof strong small { font-size: .55em; color: var(--muted); }
.hero .proof .grad-text { background-image: var(--grad-text); }
.proof span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* ---------- Clients strip ---------- */
.marquee-sec { padding: 126px 0 8px; background: var(--bg); overflow: hidden; }
.marquee-label { margin: 0; text-align: center; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.marquee { padding: 22px 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; animation: marq 50s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: flex; align-items: center; font: 600 24px/1 var(--display); white-space: nowrap; color: #8496b0; }
.track span b { margin-right: 8px; font-weight: 700; }
.track span::after { content: ""; width: 8px; height: 8px; margin: 0 40px; border-radius: 2px; background: var(--sky-400); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Work ---------- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; }
.devices { position: relative; padding: 0 7% 34px 0; }
.laptop .lid { position: relative; padding: 12px 12px 16px; border-radius: 22px 22px 0 0; background: #0d1f3c; box-shadow: 0 50px 90px -40px rgba(10, 40, 90, .55); }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 10px; }
.laptop .base { position: relative; height: 16px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(#e3ebf5, #c4d2e3); }
.laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; border-radius: 0 0 8px 8px; background: #b2c2d6; transform: translateX(-50%); }
.scroll-shot img { opacity: 1; transition: object-position 7s ease-in-out; }
.scroll-shot:hover img, .scroll-shot.auto img { object-position: 50% 100%; }
.devices .phone { width: 23%; right: 0; bottom: 0; box-shadow: 0 40px 70px -30px rgba(10, 40, 90, .6); }
.hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--muted); }
@media (hover: none) { .hint { display: none; } }
.case .chips { margin-bottom: 18px; }
.case h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.15; font-weight: 700; }
.case .domain { display: inline-block; margin: 8px 0 22px; font: 500 14px var(--mono); color: var(--muted); }
.case-rows { margin: 0 0 30px; display: grid; }
.case-rows > div { display: grid; grid-template-columns: 116px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.case-rows dt { font: 600 15px/1.6 var(--display); color: var(--sky-700); }
.case-rows dd { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }

.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 120px 0 28px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: .25s var(--ease);
}
.filters button:hover { border-color: var(--sky-400); color: var(--sky-700); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.arrows { display: flex; gap: 10px; }
.arrow {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: .25s var(--ease);
}
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 30px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.work-card { scroll-snap-align: start; display: flex; flex-direction: column; padding: 12px; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.work-card:hover { transform: translateY(-6px); border-color: var(--sky-200); box-shadow: 0 40px 70px -40px rgba(14, 90, 170, .5); }
.work-card[hidden] { display: none; }
.work-card .screen { aspect-ratio: 16 / 11; border-radius: 12px; }
.work-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 10px 10px; flex: 1; }
.work-body h3 { font-size: 22px; font-weight: 700; }
.work-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font: 500 13px var(--mono); color: var(--muted); }
.work-meta .go { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sky-50); border: 1px solid var(--sky-100); color: var(--sky-700); transition: .3s var(--ease); }
.work-card:hover .go { background: var(--grad-solid); border-color: transparent; color: #fff; transform: rotate(-45deg); }
.go svg { width: 16px; height: 16px; }

/* ---------- Before / After ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ba-frame { border-radius: 18px; overflow: hidden; background: #0d1f3c; padding: 10px; box-shadow: 0 50px 90px -45px rgba(10, 40, 90, .6); }
.ba-frame .b-bar { border-radius: 10px 10px 0 0; }
.ba-view { --pos: 50%; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 10px 10px; background: #eef4fb; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; pointer-events: none; }
.ba-view .after { clip-path: inset(0 0 0 var(--pos)); }
.ba-tag { position: absolute; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; font: 600 12px var(--mono); letter-spacing: .04em; pointer-events: none; }
.ba-tag.before { left: 14px; background: rgba(6, 19, 40, .82); color: #fff; }
.ba-tag.after { right: 14px; background: var(--sky-400); color: #03213d; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(6, 19, 40, .15), 0 0 18px rgba(56, 189, 248, .8); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 10px 24px -8px rgba(6, 19, 40, .6);
  transform: translate(-50%, -50%);
}
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-handle::after { outline: 3px solid var(--sky-400); outline-offset: 3px; }
.ba-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font: 500 12.5px var(--mono); color: var(--muted); }
.changes { list-style: none; margin: 0 0 28px; padding: 0; display: grid; }
.changes li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.changes li:last-child { border-bottom: 1px solid var(--line); }
.changes .ix { font: 700 13px/1.9 var(--mono); color: var(--sky-600); }
.changes h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.changes p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.svc-list button {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 22px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font: 600 22px/1.3 var(--display);
  text-align: left;
  cursor: pointer;
  transition: color .25s, padding .3s var(--ease), background .3s;
}
.svc-list button:hover { color: var(--ink-2); }
.svc-list button.on { color: var(--ink); padding-left: 18px; background: linear-gradient(90deg, rgba(14, 165, 233, .08), transparent 70%); box-shadow: inset 3px 0 0 var(--sky-500); }
.svc-list .n { font: 500 12px var(--mono); color: var(--muted); }
.svc-list button.on .n { color: var(--sky-600); font-weight: 700; }
.svc-list .arr { opacity: 0; transform: translateX(-8px); color: var(--sky-600); transition: .3s var(--ease); }
.svc-list button.on .arr { opacity: 1; transform: none; }
.svc-panel { position: sticky; top: calc(var(--header-h) + 32px); padding: 36px; border-radius: 26px; }
.svc-panel.swap > * { animation: fadeUp .45s var(--ease) both; }
.svc-top { display: flex; gap: 18px; align-items: flex-start; }
.svc-ico { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--grad-solid); color: #fff; box-shadow: var(--glow); }
.svc-ico svg { width: 26px; height: 26px; }
.svc-top h3 { font-size: 28px; font-weight: 700; }
.svc-top p { margin: 4px 0 0; color: var(--ink-2); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin: 28px 0; }
.svc-kicker { margin: 0 0 14px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sky-700); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--sky-100); border: 1px solid var(--sky-200); box-sizing: border-box; }
.checks li::after { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--sky-700); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.svc-example { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky-50); border: 1px solid var(--line); }
.svc-example img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.svc-example .tag { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 19, 40, .85); color: #fff; font-size: 12.5px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.svc-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(14, 165, 233, .08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(14, 165, 233, .08) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 70% 30%, rgba(56, 189, 248, .25), transparent 60%),
    var(--sky-50);
}
.svc-art svg { width: 40%; height: auto; color: var(--sky-600); opacity: .9; }
.svc-foot { padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, auto); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 26px; overflow: hidden; }
.tile h3 { font-size: 22px; font-weight: 600; }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.t-exp { grid-row: span 2; justify-content: flex-end; background: var(--night); border-color: var(--night); color: #fff; }
.t-exp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.t-exp::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -140px; border-radius: 50%; background: #0ea5e9; filter: blur(90px); opacity: .45; }
.t-exp > * { position: relative; z-index: 1; }
.t-exp p { color: var(--night-text); }
.bignum { margin-bottom: auto; font: 800 clamp(110px, 12vw, 190px)/.85 var(--display); letter-spacing: -.04em; background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-up { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 36px; }
.t-up > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.t-up .link-arrow { margin-top: auto; align-self: flex-start; color: var(--sky-700); }
.meters { flex: 1; display: grid; gap: 18px; align-content: center; padding-left: 36px; border-left: 1px solid var(--line); }
.meter-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 7px; }
.meter-row b { font-family: var(--display); font-weight: 700; }
.meter { height: 8px; border-radius: 4px; background: var(--sky-50); border: 1px solid var(--sky-100); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #2563eb); transition: width 1.6s var(--ease); }
.in .meter i { width: var(--v); }
.vis-devices { display: flex; align-items: flex-end; gap: 12px; height: 100px; margin-bottom: auto; }
.vis-devices span { border: 2px solid var(--ink); border-radius: 10px; background: linear-gradient(180deg, var(--sky-100), var(--sky-50)); }
.vis-devices span:first-child { flex: 1; height: 100%; }
.vis-devices span:last-child { width: 44px; height: 80%; }
.vis-target { position: relative; width: 100px; height: 100px; margin-bottom: auto; border-radius: 50%; border: 2px solid var(--sky-100); display: grid; place-items: center; }
.vis-target::before { content: ""; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--sky-200); }
.vis-target::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-solid); box-shadow: var(--glow); }
.t-comm { grid-column: span 3; flex-direction: row; align-items: center; gap: 56px; }
.t-comm > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.chat { flex: 1.2; display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 78%; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--sky-50); border: 1px solid var(--sky-100); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.bub.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--grad-solid); border: 0; color: #fff; }
.chat-progress { display: flex; align-items: center; gap: 12px; margin-top: 4px; font: 500 12px var(--mono); color: var(--muted); }
.chat-progress .meter { flex: 1; }

/* ---------- Process ---------- */
/* Process sits in an inset dark panel inside the light page.
   overflow: clip (not hidden) so the sticky visual keeps working. */
.process-sec { padding: 40px 0; }
.process-panel {
  position: relative;
  overflow: clip;
  padding: 96px 72px 72px;
  border-radius: 36px;
  background: radial-gradient(100% 60% at 50% 0%, #0b2246 0%, var(--night) 70%);
  color: #fff;
  box-shadow: 0 50px 100px -60px rgba(6, 19, 40, .8);
}
.process-panel > *:not(.glow) { position: relative; }
.process-panel .glow span { opacity: .18; }
.story { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.story-visual { position: sticky; top: calc(var(--header-h) + 60px); }
.sv-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--night-line); border-radius: 26px; background: linear-gradient(160deg, var(--night-3), var(--night-2)); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(125, 211, 252, .12); }
.sv-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.sv { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 40px; opacity: 0; transform: scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.sv.on { opacity: 1; transform: none; }
.dl { display: block; height: 10px; border-radius: 6px; background: rgba(148, 196, 255, .16); }
.dl.hi { background: linear-gradient(90deg, #7dd3fc, #38bdf8); }
.dbox { border: 1.5px dashed rgba(125, 211, 252, .35); border-radius: 12px; background: rgba(125, 211, 252, .03); }
.dbub { padding: 12px 16px; max-width: 70%; border-radius: 18px 18px 18px 6px; background: rgba(148, 196, 255, .1); color: var(--night-text); font-size: 15px; line-height: 1.5; }
.dbub.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--grad-btn); color: #03213d; font-weight: 500; }
.dcheck { display: flex; align-items: center; gap: 12px; }
.dcheck::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(56, 189, 248, .15); color: var(--sky-300); font-size: 12px; }
.dcheck .dl { flex: 1; }
.code-tag { font: 600 14px var(--mono); color: var(--sky-300); }
.launch-ok { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--grad-btn); box-shadow: var(--glow-strong); color: #03213d; }
.launch-ok svg { width: 40px; height: 40px; }
.sv-label { position: absolute; left: 26px; bottom: 20px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(167, 188, 217, .6); }
.sv-meta { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.sv-progress { flex: 1; height: 4px; border-radius: 4px; background: var(--night-line); overflow: hidden; }
.sv-progress i { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--grad-btn); box-shadow: 0 0 10px rgba(56, 189, 248, .8); transition: width .5s var(--ease); }
.sv-count { font: 500 14px var(--mono); color: var(--night-text); }
.sv-count b { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 56vh; padding: 30px 0; border-top: 1px solid var(--night-line); opacity: .32; transition: opacity .5s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--night-line); }
.step.on { opacity: 1; }
.step .num { font: 700 15px var(--mono); color: var(--sky-400); }
.step h3 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; }
.step p { margin: 0; max-width: 440px; color: var(--night-text); font-size: 17px; }
.step-mini { display: none; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.quote-card { display: flex; flex-direction: column; gap: 22px; padding: 48px; border-radius: 28px; }
.quote-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-solid); color: #fff; box-shadow: var(--glow); }
.quote-mark svg { width: 26px; height: 26px; }
.stars { display: inline-flex; gap: 3px; color: #f59e0b; }
.stars svg { width: 18px; height: 18px; }
.quote-card blockquote { margin: 0; font: 500 clamp(22px, 2.2vw, 30px)/1.5 var(--display); color: var(--ink); }
.reviewer { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.reviewer .av { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--sky-50); border: 1px solid var(--sky-100); color: var(--sky-700); }
.reviewer strong { display: block; font: 600 16px/1.3 var(--display); }
.reviewer small { display: block; font-size: 14px; color: var(--muted); }
.verified { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 6px 12px; border-radius: 999px; background: #ecfdf3; color: #067647; font: 600 12px var(--mono); white-space: nowrap; }
.verified svg { width: 14px; height: 14px; }
.review-side { display: grid; gap: 24px; }
.score { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 34px; border-radius: 28px; background: var(--night); color: #fff; overflow: hidden; }
.score::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -140px; border-radius: 50%; background: #0ea5e9; filter: blur(80px); opacity: .45; }
.score > * { position: relative; }
.score .num { font: 800 76px/1 var(--display); }
.score .num small { font-size: 28px; color: var(--night-text); font-weight: 600; }
.score-rows { display: grid; gap: 12px; margin: 22px 0 26px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.score-rows div { display: flex; justify-content: space-between; font-size: 15px; color: var(--night-text); }
.score-rows b { color: #fff; font-family: var(--display); }
.mini-review { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border-radius: 22px; }
.mini-review h4 { font: 600 17px/1.45 var(--display); }
.mini-review small { color: var(--muted); font-size: 14px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 88px; align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: var(--night); box-shadow: 0 40px 80px -40px rgba(10, 40, 90, .55); }
.portrait .mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, .8), transparent 50%), radial-gradient(circle at 80% 85%, rgba(37, 99, 235, .85), transparent 55%), var(--night);
  font: 800 clamp(90px, 12vw, 160px)/1 var(--display);
  color: rgba(255, 255, 255, .92);
  letter-spacing: -.04em;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); background: linear-gradient(180deg, transparent 60%, rgba(6, 19, 40, .35)); pointer-events: none; }
.about-media { position: relative; }
.about-media .float-card { right: -30px; bottom: 40px; left: auto; }
.about-media .float-card strong { font-size: 28px; color: var(--sky-600); }
.about-copy p { margin: 0 0 18px; color: var(--ink-2); }
.pull {
  margin: 30px 0;
  padding: 26px 30px;
  border-radius: 20px;
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  border-left: 4px solid var(--sky-500);
  font: 500 21px/1.6 var(--display);
  color: var(--ink);
}
.sig { display: block; margin-top: 26px; font: italic 38px/1 "Segoe Script", "Brush Script MT", cursive; color: var(--sky-700); }

/* ---------- Planner ---------- */
.planner { display: grid; grid-template-columns: 1.7fr 1fr; overflow: hidden; border-radius: 30px; }
.pl-main { display: flex; flex-direction: column; gap: 28px; min-height: 600px; padding: 44px; }
.pl-steps { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pl-steps li { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.pl-steps li::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); transition: background .4s; }
.pl-steps li.on, .pl-steps li.done { color: var(--ink); }
.pl-steps li.on { font-weight: 600; }
.pl-steps li.on::before, .pl-steps li.done::before { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.pl-pane { display: none; flex-direction: column; gap: 20px; }
.pl-pane.on { display: flex; animation: fadeUp .4s var(--ease) both; }
.pl-pane h3 { font-size: 26px; font-weight: 700; }
.pl-label { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  font: 600 16px/1.35 var(--display);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), background .25s;
}
.opt:hover { border-color: var(--sky-400); transform: translateY(-2px); }
.opt.on { border-color: var(--sky-500); background: var(--sky-50); box-shadow: 0 0 0 4px rgba(14, 165, 233, .14); }
.opt .oi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-50); border: 1px solid var(--sky-100); color: var(--sky-600); transition: .25s; }
.opt.on .oi { background: var(--grad-solid); border-color: transparent; color: #fff; }
.opt .oi svg { width: 20px; height: 20px; }
.sel-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  cursor: pointer;
  transition: .2s var(--ease);
}
.sel:hover { border-color: var(--sky-400); }
.sel.on { border-color: var(--sky-500); background: var(--sky-50); color: var(--sky-700); font-weight: 600; }
.sel.on::before { content: "✓"; font-size: 13px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(14, 165, 233, .15); }
.input.error { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pl-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.pl-summary { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 40px 34px; background: var(--night); color: #fff; overflow: hidden; }
.pl-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.pl-summary::after { content: ""; position: absolute; width: 320px; height: 320px; left: -140px; top: -160px; border-radius: 50%; background: #0ea5e9; filter: blur(90px); opacity: .4; }
.pl-summary > * { position: relative; z-index: 1; }
.pl-summary .svc-kicker { color: var(--sky-300); margin: 0; }
.sum { display: grid; margin: 0; }
.sum > div { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--night-line); }
.sum dt { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(167, 188, 217, .65); }
.sum dd { margin: 0; font: 600 16px/1.45 var(--display); }
.sum dd.empty { color: rgba(167, 188, 217, .35); }
.sum-actions { display: grid; gap: 10px; margin-top: auto; transition: opacity .3s; }
.sum-note { font-size: 13px; color: var(--night-text); text-align: center; margin: 0; }
.pl-error { margin: 0; font-size: 14px; color: #e11d48; display: none; }
.pl-error.show { display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; }
.help-card { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; padding: 28px; border-radius: 22px; }
.help-card h3 { font-size: 21px; font-weight: 700; }
.help-card p { margin: 0 0 6px; color: var(--ink-2); font-size: 16px; }
.help-card .btn { align-self: flex-start; }
.acc { border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font: 600 20px/1.45 var(--display);
  transition: color .2s;
}
.acc summary:hover { color: var(--sky-700); }
.acc summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 36px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 50%; transition: .3s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background .3s; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus { border-color: transparent; background: var(--grad-solid); }
details[open] .plus::before, details[open] .plus::after { background: #fff; }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.acc details p { margin: 0; padding: 0 60px 28px 0; color: var(--ink-2); }

/* ---------- Book ---------- */
.sec.night.book { overflow: hidden; background: radial-gradient(100% 70% at 50% 0%, #0b2246 0%, var(--night) 70%); }
.book-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.hero-grid > *, .feature > *, .svc > *, .story > *, .reviews > *, .about > *, .planner > *, .faq > *, .book-grid > *, .foot-cta > *, .foot-main > * { min-width: 0; }
.book h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.16; }
.book .lead { margin-bottom: 36px; }
.contact-list { list-style: none; display: grid; gap: 18px; margin: 44px 0 0; padding: 30px 0 0; border-top: 1px solid var(--night-line); }
.contact-list a { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.contact-list .ci { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(125, 211, 252, .06); border: 1px solid var(--night-line); color: var(--sky-300); transition: .3s var(--ease); }
.contact-list a:hover .ci { background: var(--grad-solid); border-color: transparent; color: #fff; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 13px; color: var(--night-text); }
.contact-list strong { display: block; font: 600 18px/1.3 var(--display); }
.cal { padding: 32px; border-radius: 28px; color: var(--ink); }
.cal h3 { font-size: 24px; font-weight: 700; }
.cal > p { margin: 6px 0 22px; font-size: 15px; color: var(--muted); }
.cal-label { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--sky-200) transparent; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 0;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: .2s var(--ease);
}
.day small { font-size: 12px; color: var(--muted); }
.day b { font: 700 22px/1.1 var(--display); }
.day:hover { border-color: var(--sky-400); }
.day.on { border-color: transparent; background: var(--grad-solid); color: #fff; box-shadow: var(--glow); }
.day.on small { color: rgba(255, 255, 255, .85); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.slot { height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 15px; cursor: pointer; transition: .2s var(--ease); }
.slot:hover { border-color: var(--sky-400); }
.slot.on { border-color: var(--sky-500); background: var(--sky-50); color: var(--sky-700); font-weight: 600; }
.cal .tz { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
/* The closing section and footer share one dark surface, so the page ends as one piece */
.site-footer { position: relative; margin-top: -1px; background: var(--night); color: #fff; box-shadow: 0 -2px 0 var(--night); }
.book { padding-bottom: 96px; }
.book .contact-tiles { margin-top: 40px; }
.site-footer .blueprint-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.site-footer .foot-glow { position: absolute; width: 700px; height: 300px; left: 50%; top: -180px; transform: translateX(-50%); border-radius: 50%; background: #0ea5e9; filter: blur(120px); opacity: .22; pointer-events: none; }
.site-footer .wrap { position: relative; }

.foot-cta {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--night-line);
}
.foot-cta h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.22; font-weight: 700; }
.foot-cta p { margin: 16px 0 0; max-width: 480px; color: var(--night-text); }
.contact-tiles { display: grid; gap: 12px; }
.ctile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--night-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(125, 211, 252, .06), rgba(125, 211, 252, .02));
  text-decoration: none;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.ctile:hover { border-color: rgba(56, 189, 248, .5); background: linear-gradient(180deg, rgba(56, 189, 248, .12), rgba(56, 189, 248, .04)); transform: translateY(-2px); }
.ctile .ci { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(56, 189, 248, .12); color: var(--sky-300); }
.ctile .ci svg { width: 22px; height: 22px; }
.ctile.wa .ci { background: rgba(37, 211, 102, .14); color: #4ade80; }
.ctile small { display: block; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(167, 188, 217, .7); }
.ctile strong { display: block; font: 600 19px/1.35 var(--display); color: #fff; word-break: break-all; }
.ctile .go-ic { margin-left: auto; flex: none; width: 20px; height: 20px; color: var(--night-text); transition: transform .3s var(--ease), color .3s; }
.ctile:hover .go-ic { transform: translate(3px, -3px); color: var(--sky-300); }
.ctile-wrap { position: relative; }
.copy-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--night-line);
  border-radius: 10px;
  background: rgba(6, 19, 40, .7);
  color: var(--night-text);
  font: 600 12px var(--mono);
  cursor: pointer;
  transition: .2s;
}
.copy-btn:hover { color: #fff; border-color: rgba(56, 189, 248, .5); }
.copy-btn.done { color: #4ade80; border-color: rgba(74, 222, 128, .5); }
.copy-btn svg { width: 14px; height: 14px; }
.ctile-wrap .ctile { padding-right: 110px; }

.foot-main { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; gap: 48px; padding: 64px 0 56px; border-top: 1px solid var(--night-line); }
.foot-brand .logo { display: inline-flex; margin-bottom: 18px; }
.foot-brand p:not(.foot-h) { margin: 0 0 22px; max-width: 340px; color: var(--night-text); font-size: 15.5px; line-height: 1.75; }
.status-card { display: grid; gap: 10px; padding: 16px 18px; max-width: 340px; border: 1px solid var(--night-line); border-radius: 16px; background: rgba(125, 211, 252, .04); font-size: 14px; color: var(--night-text); }
.status-card > div { display: flex; align-items: center; gap: 10px; }
.status-card b { color: #fff; font-weight: 600; }
.status-card .mono { font-family: var(--mono); font-size: 13px; color: var(--sky-300); }
.foot-h { margin: 0 0 18px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky-300); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-links a { display: inline-flex; align-items: center; color: var(--night-text); font-size: 15.5px; text-decoration: none; transition: color .2s; }
.foot-links a::before { content: ""; width: 0; height: 1.5px; margin-right: 0; background: var(--sky-400); transition: width .25s var(--ease), margin .25s var(--ease); }
.foot-links a:hover { color: #fff; }
.foot-links a:hover::before { width: 12px; margin-right: 8px; }
.foot-links .muted { color: rgba(167, 188, 217, .7); font-size: 14.5px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0 30px; border-top: 1px solid var(--night-line); font-size: 14px; color: rgba(167, 188, 217, .8); }
.foot-bottom .meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-bottom .meta span { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--mono); color: var(--night-text); }
.foot-bottom .meta svg { width: 14px; height: 14px; color: #f59e0b; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .25s;
}
.to-top i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-btn); color: #03213d; font-style: normal; transition: transform .3s var(--ease); }
.to-top i svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.to-top:hover { border-color: rgba(56, 189, 248, .5); }
.to-top:hover i { transform: translateY(-3px); }

/* ---------- Floating + mobile bar ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 18px 40px -12px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 19, 40, .92);
  border-top: 1px solid var(--night-line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.mbar.show { transform: none; }
.mbar .btn { flex: 1; height: 50px; padding: 0 12px; }

/* ---------- Reveal ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .nav { gap: 22px; }
  .avail { display: none; }
  .hero-grid { gap: 48px; }
  .feature { gap: 48px; }
  .about, .faq { gap: 56px; }
  .book-grid { gap: 56px; }
  .foot-main { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}

@media (max-width: 960px) {
  .sec { padding: 96px 0; }
  .nav, .hdr-cta { display: none; }
  .burger { display: flex; }

  .hero { padding-top: calc(var(--header-h) + 60px); }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .stage { max-width: 680px; }
  .proof { grid-template-columns: repeat(2, 1fr); margin-top: 72px; }
  .proof li:nth-child(3) { border-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chapter { grid-template-columns: 1fr; gap: 14px; margin-bottom: 48px; }
  .chapter-meta { flex-direction: row; align-items: baseline; gap: 14px; }
  .chapter-aside { align-self: start; }
  .chapter.sub { margin-top: 96px; }
  .ba { grid-template-columns: 1fr; gap: 36px; }
  .process-panel { padding: 72px 40px 48px; border-radius: 28px; }

  .feature { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: calc((100% - 24px) / 2); }

  .svc { grid-template-columns: 1fr; gap: 24px; }
  .svc-list { flex-direction: row; gap: 8px; overflow-x: auto; border-top: 0; margin-right: calc(var(--pad) * -1); padding: 0 var(--pad) 6px 0; scrollbar-width: none; }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc-list button { grid-template-columns: auto; padding: 0 18px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 15px; color: var(--ink-2); white-space: nowrap; box-shadow: none; }
  .svc-list button.on { padding-left: 18px; background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
  .svc-list .n, .svc-list .arr { display: none; }
  .svc-panel { position: static; }

  .bento { grid-template-columns: 1fr 1fr; }
  .t-exp { grid-row: auto; grid-column: span 2; min-height: 320px; }
  .t-up, .t-comm { grid-column: span 2; }

  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { display: none; }
  .step { min-height: 0; opacity: 1; padding: 40px 0; }
  .step-mini { display: block; position: relative; aspect-ratio: 16 / 8; margin-bottom: 10px; }
  .step-mini .sv-frame { aspect-ratio: auto; height: 100%; }
  .step-mini .sv { opacity: 1; transform: none; padding: 26px; }

  .reviews { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; }
  .planner { grid-template-columns: 1fr; }
  .pl-main { min-height: 0; }
  .faq { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .foot-cta { grid-template-columns: 1fr; gap: 36px; padding: 72px 0 56px; }

  .wa-float { display: none; }
  .mbar { display: flex; }
  body { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; --header-h: 66px; }
  body { font-size: 16px; }
  .sec { padding: 76px 0; }
  .sec-head { margin-bottom: 40px; }
  .lead { font-size: 17px; }
  .eyebrow { font-size: 11px; letter-spacing: .06em; }
  .h3 { font-size: 19px; }
  .logo-name small { display: none; }

  .btns .btn { width: 100%; }
  .switch { display: flex; width: 100%; }
  .switch button { flex: 1; padding: 11px 6px; font-size: 14px; }
  .stage { padding: 0 0 40px; }
  .phone { width: 30%; right: -6px; border-width: 5px; border-radius: 20px; }
  .phone .screen { border-radius: 14px; }
  .badge-card { left: 10px; bottom: 10px; padding: 10px 14px 10px 10px; }
  .badge-card .badge-ico { width: 34px; height: 34px; }
  .preview-caption { padding-right: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .proof { margin-bottom: -64px; border-radius: 20px; }
  .proof li { padding: 22px 18px; }
  .marquee-sec { padding-top: 108px; }
  .chapter-no, .chapter-name { font-size: 12px; }
  .process-sec { padding: 24px 0; }
  .process-panel { padding: 56px 20px 32px; border-radius: 22px; margin: 0 calc(var(--pad) * -.5); }
  .ba-frame { padding: 6px; border-radius: 14px; }
  .ba-handle::after { width: 38px; height: 38px; background-size: 18px; }
  .track span { font-size: 19px; }
  .track span::after { margin: 0 26px; }

  .devices { padding-right: 12%; }
  .case-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .gallery-head { margin-top: 88px; }
  .gallery-head .arrows { display: none; }
  .gallery { grid-auto-columns: 86%; gap: 16px; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }

  .svc-panel { padding: 24px; border-radius: 22px; }
  .svc-top h3 { font-size: 23px; }
  .svc-cols { grid-template-columns: 1fr; }

  .bento { grid-template-columns: 1fr; gap: 14px; }
  .t-exp, .t-up, .t-comm { grid-column: auto; }
  .t-exp { min-height: 280px; }
  .t-up, .t-comm { flex-direction: column; align-items: stretch; gap: 26px; }
  .meters { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .tile { padding: 26px; border-radius: 22px; }
  .vis-devices, .vis-target { margin-bottom: 14px; }

  .quote-card { padding: 30px 24px; border-radius: 24px; }
  .reviewer { flex-wrap: wrap; }
  .verified { margin-left: 0; }

  .about-media .float-card { right: 12px; bottom: 16px; }
  .pull { font-size: 18px; padding: 22px; }

  .pl-main { padding: 26px 20px; gap: 22px; }
  .pl-steps li { font-size: 0; gap: 0; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .opt { padding: 14px; font-size: 15px; }
  .field-row { grid-template-columns: 1fr; }
  .pl-summary { padding: 30px 22px; }
  .planner { border-radius: 24px; }

  .acc summary { font-size: 18px; padding: 22px 0; }
  .acc details p { padding-right: 0; }

  .cal { padding: 22px; }
  .slots { grid-template-columns: 1fr 1fr; }

  .foot-cta { padding: 64px 0 48px; }
  .ctile { padding: 16px; gap: 14px; }
  .ctile strong { font-size: 17px; }
  .ctile-wrap .ctile { padding-right: 16px; padding-bottom: 58px; }
  .copy-btn { top: auto; bottom: 14px; left: 78px; right: auto; transform: none; }
  .foot-main { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 48px 0 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 14px; }
  .js .reveal { opacity: 1; transform: none; }
}
