/* ==========================================================================
   WebDvlpr Studio — styles
   Bright, premium light base + cinematic dark story band + WebGL particles.
   Mobile first (360 → 1440).
   ========================================================================== */

:root {
  /* Brand */
  --blue: #3A6CFF;
  --blue-d: #2049E0;
  --sky: #6FD4FF;
  --navy: #050A1F;
  --navy-2: #0A1330;
  --ok: #1FBF7A;
  --grad: linear-gradient(115deg, #6FD4FF 0%, #3A6CFF 55%, #2049E0 100%);

  /* Light surface */
  --bg: #F7F9FF;
  --surface: #FFFFFF;
  --ink: #0A1330;
  --ink-2: #26345E;
  --muted: #56658F;
  --line: #E2E8F6;
  --tint: #EEF3FF;

  /* Type */
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 1px 2px rgba(10, 19, 48, .04), 0 4px 14px -6px rgba(10, 19, 48, .08);
  --shadow-lg: 0 2px 4px rgba(10, 19, 48, .03), 0 30px 60px -24px rgba(32, 73, 224, .28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; min-height: 100vh;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { position: relative; z-index: 2; width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- WebGL canvas + soft mesh gradient ---------- */
.gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl.is-ready { opacity: 1; }
.mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .6; }
.mesh i:nth-child(1) { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -16vw; top: -22vw; background: radial-gradient(circle, #C9DAFF, transparent 65%); animation: float1 20s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { width: 46vw; height: 46vw; max-width: 600px; max-height: 600px; left: -18vw; top: 30vh; background: radial-gradient(circle, #D3F1FF, transparent 65%); animation: float1 24s ease-in-out infinite alternate-reverse; }
.mesh i:nth-child(3) { width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; left: 40vw; bottom: -20vw; background: radial-gradient(circle, #E1E7FF, transparent 65%); animation: float1 28s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate3d(-5vw, 6vh, 0) scale(1.12); } }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(58, 108, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(58, 108, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, .75); border-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { color: var(--blue-d); background: #fff; box-shadow: 0 10px 30px -12px rgba(5, 10, 31, .5); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn .ico--arrow { transition: transform .35s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s, border-color .4s, color .4s, transform .5s var(--ease-out); border-bottom: 1px solid transparent; }
.header.is-stuck { background: rgba(247, 249, 255, .72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom-color: rgba(226, 232, 246, .9); }
.header.is-dark { color: #fff; background: rgba(5, 10, 31, .6); border-bottom-color: rgba(255, 255, 255, .08); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 6px 18px -6px rgba(32, 73, 224, .6); }
.brand__word { font: 800 20px/1 var(--f-display); letter-spacing: -.02em; display: flex; align-items: baseline; }
.brand__word b { font-weight: 800; color: var(--blue); }
.header.is-dark .brand__word b, .brand--dark .brand__word b { color: var(--sky); }
.brand__word small { font: 500 9.5px/1 var(--f-mono); letter-spacing: .32em; text-transform: uppercase; opacity: .6; margin-left: 8px; transform: translateY(-2px); }

.nav { position: relative; margin-left: auto; display: none; }
.nav__list { display: flex; gap: 2px; }
.nav__list a { position: relative; z-index: 1; display: block; padding: 9px 15px; border-radius: 999px; font-weight: 500; font-size: 15px; opacity: .72; transition: opacity .2s; }
.nav__list a:hover, .nav__list a.is-active { opacity: 1; }
.nav__pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: rgba(58, 108, 255, .1); opacity: 0; transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; pointer-events: none; }
.header.is-dark .nav__pill { background: rgba(255, 255, 255, .1); }
.header__cta { display: none; }
.burger { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .8); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.header.is-dark .burger { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); }
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 72px 0 0; padding: 20px var(--gutter) 32px; background: rgba(247, 249, 255, .97); color: var(--ink); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu ul { margin-bottom: 24px; }
.menu li a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; font: 700 34px/1.1 var(--f-display); letter-spacing: -.03em; border-bottom: 1px solid var(--line); }
.menu li a span { font: 500 12px/1 var(--f-mono); color: var(--blue); }
.menu:not([hidden]) li { animation: rise .55s var(--ease-out) both; }
.menu li:nth-child(2) { animation-delay: .05s; } .menu li:nth-child(3) { animation-delay: .1s; } .menu li:nth-child(4) { animation-delay: .15s; } .menu li:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (min-width: 960px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger, .menu { display: none !important; }
}

/* ---------- Shared type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font: 500 11.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-d); margin-bottom: 22px; }
.eyebrow--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--sky); box-shadow: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(58, 108, 255, .5); animation: ping 2.2s infinite; }
.eyebrow--dark .pulse { background: var(--sky); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(58, 108, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 108, 255, 0); } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(31, 191, 122, .55); animation: pingG 2s infinite; }
@keyframes pingG { 70% { box-shadow: 0 0 0 7px rgba(31, 191, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 191, 122, 0); } }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 700; max-width: 16ch; text-wrap: balance; }
.lead { margin-top: 20px; color: var(--muted); max-width: 52ch; font-size: clamp(17px, 1.6vw, 19px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding-block: var(--sec); position: relative; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head--center h2 { margin-inline: auto; }

/* ---------- Reveal (only when JS runs) ---------- */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
  .reveal.is-in { opacity: 1; transform: none; }
  .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
  .split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
  .split.is-in .w > span { transform: none; }
  .split.reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 64px; }
.hero__inner { display: grid; gap: 8px; align-items: center; }
.hero__copy { order: 2; }
.hero__title { font-size: clamp(54px, 13vw, 124px); font-weight: 800; letter-spacing: -.055em; line-height: .92; margin-bottom: 26px; }
.hero__title .line { display: block; overflow: hidden; padding: .02em 0 .1em; margin-bottom: -.06em; }
.hero__title .word { display: inline-block; animation: wordIn 1.2s var(--ease-out) both; }
.hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: .08s; }
.hero__title .line:nth-child(2) .word:nth-child(1) { animation-delay: .2s; }
.hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: .28s; }
@keyframes wordIn { from { transform: translateY(110%) rotate(6deg); } }
.hero__title .grad { background-size: 220% 100%; animation: wordIn 1.2s var(--ease-out) both, sheen 7s ease-in-out 1.4s infinite; }
.hero__title .line:nth-child(2) .word:nth-child(1) { animation-delay: .2s, 1.4s; }
.hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: .28s, 1.4s; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.hero__sub { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 40ch; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__ctas .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__ctas .btn { flex: 0 0 auto; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.trust b { font-weight: 700; color: var(--ink); }
.load { animation: rise .9s var(--ease-out) both; }
.load[data-l="0"] { animation-delay: .05s; } .load[data-l="3"] { animation-delay: .45s; } .load[data-l="4"] { animation-delay: .58s; } .load[data-l="5"] { animation-delay: .7s; }

/* 3D stage */
.hero__stage { --tx: 0deg; --ty: 0deg; order: 1; position: relative; width: min(80vw, 360px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; perspective: 900px; }
.coin { position: relative; width: 46%; aspect-ratio: 1; border-radius: 50%; transform: rotateX(var(--tx)) rotateY(var(--ty)); transform-style: preserve-3d; transition: transform .6s var(--ease-out); animation: coinIn 1.4s var(--ease-out) .2s both; }
.coin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 0 0 7px rgba(58, 108, 255, .2), 0 40px 80px -20px rgba(32, 73, 224, .65), 0 0 120px rgba(111, 212, 255, .45); animation: bob 6s ease-in-out infinite; }
.coin__shine { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(130deg, rgba(255, 255, 255, .45) 0%, transparent 35%, transparent 65%, rgba(111, 212, 255, .25)); mix-blend-mode: screen; pointer-events: none; animation: bob 6s ease-in-out infinite; }
@keyframes coinIn { from { opacity: 0; transform: scale(.6) rotateY(-90deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(58, 108, 255, .22); animation: orbit 16s linear infinite; }
.orbit--2 { inset: 16%; border-color: rgba(111, 212, 255, .4); animation: orbit2 11s linear infinite reverse; }
.orbit span { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 16px var(--blue); }
.orbit--2 span { background: var(--sky); box-shadow: 0 0 16px var(--sky); }
@keyframes orbit { from { transform: rotateX(70deg) rotateZ(0deg); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes orbit2 { from { transform: rotateX(70deg) rotateY(30deg) rotateZ(0deg); } to { transform: rotateX(70deg) rotateY(30deg) rotateZ(360deg); } }
.float-tag { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 14px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font: 600 13px/1 var(--f-body); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: tagIn .9s var(--ease-out) both, bob 7s ease-in-out infinite; }
.float-tag .ico { color: var(--blue); width: 16px; height: 16px; }
.float-tag--a { left: -2%; top: 16%; animation-delay: .9s, 0s; }
.float-tag--b { right: -4%; top: 46%; animation-delay: 1.05s, 1.2s; }
.float-tag--c { left: 6%; bottom: 6%; animation-delay: 1.2s, 2.4s; }
@keyframes tagIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
.scrollcue { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid rgba(10, 19, 48, .25); display: none; }
.scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 24px; }
  .hero__copy { order: 1; }
  .hero__stage { order: 2; width: min(42vw, 560px); }
  .scrollcue { display: block; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 22px 0; background: var(--surface); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: flex; align-items: center; padding: 0 18px; font: 700 clamp(22px, 3.4vw, 40px)/1.1 var(--f-display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink-2); }
.marquee li::after { content: ""; width: 12px; height: 12px; margin-left: 36px; border-radius: 3px; transform: rotate(45deg); background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SERVICES — cinematic dark story band
   ========================================================================== */
.story { --sp: 0; position: relative; color: #fff; padding-top: var(--sec); margin-top: clamp(40px, 6vw, 80px); }
.story__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 600px at 80% 30%, rgba(58, 108, 255, .28), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(111, 212, 255, .12), transparent 60%),
    var(--navy);
  clip-path: inset(0 calc((1 - var(--sp)) * 4%) round calc((1 - var(--sp)) * 48px) calc((1 - var(--sp)) * 48px) 0 0);
}
.story__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(111, 212, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 212, 255, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); }
.story__intro h2 { color: #fff; }
.story .lead { color: #A9B7E0; }
.story__track { position: relative; z-index: 2; padding-block: 56px var(--sec); }
.story__grid { display: grid; gap: 36px; }
.story__stage { display: none; }
.chap { padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.chap__num { display: block; font: 500 13px/1 var(--f-mono); color: var(--sky); letter-spacing: .1em; margin-bottom: 14px; }
.chap__num i { font-style: normal; opacity: .45; }
.chap h3 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; margin-bottom: 16px; max-width: 14ch; }
.chap p { color: #B4C1E8; max-width: 46ch; margin-bottom: 20px; font-size: clamp(16px, 1.5vw, 18px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tags li { font: 500 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(111, 212, 255, .28); color: #D3DEFF; background: rgba(111, 212, 255, .06); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; transition: transform .3s var(--ease), box-shadow .3s; }
.link-arrow:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(111, 212, 255, .7); }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.story__rail { display: none; }

/* Pinned mode (JS + motion allowed) */
.motion .story__track { height: 520vh; padding: 0; }
.motion .story__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.motion .story__grid { grid-template-rows: auto auto; align-content: center; gap: 4px; width: 100%; padding-top: 64px; }
.motion .story__stage { display: block; position: relative; width: min(64vw, 300px, 36svh); aspect-ratio: 1; margin: 0 auto; }
.story__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(111, 212, 255, .2); animation: spinr 40s linear infinite; }
@keyframes spinr { to { transform: rotate(360deg); } }
.motion .story__list { display: grid; }
.motion .chap { grid-area: 1 / 1; border: 0; padding: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s .6s; }
.motion .chap.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out) .1s, visibility 0s; }
.motion .chap > * { transform: translateY(26px); transition: transform .8s var(--ease-out); }
.motion .chap.is-on > * { transform: none; }
.motion .chap.is-on > :nth-child(2) { transition-delay: .05s; } .motion .chap.is-on > :nth-child(3) { transition-delay: .1s; } .motion .chap.is-on > :nth-child(4) { transition-delay: .15s; } .motion .chap.is-on > :nth-child(5) { transition-delay: .2s; }
.motion .chap h3 { font-size: clamp(28px, 4.4vw, 56px); margin-bottom: 12px; }
.motion .chap p { margin-bottom: 16px; }
.motion .chap .tags { margin-bottom: 18px; }
.motion .story__rail { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; }
.story__rail span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--sb, 0)); border-radius: inherit; box-shadow: 0 0 12px rgba(111, 212, 255, .7); }
@media (max-width: 1023px) and (max-height: 760px) { .motion .chap p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
@media (min-width: 1024px) {
  .motion .story__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 48px; align-items: center; padding-top: 0; }
  .motion .story__list { order: 1; }
  .motion .story__stage { order: 2; width: min(40vw, 540px, 70vh); }
  .motion .story__rail { left: auto; right: var(--gutter); top: 50%; bottom: auto; width: 2px; height: 180px; margin-top: -90px; }
  .motion .story__rail span { transform-origin: 50% 0; transform: scaleY(var(--sb, 0)); }
}

/* ==========================================================================
   BENTO
   ========================================================================== */
.bento { display: grid; gap: 16px; }
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; } .tile--wide:first-child, .tile:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } .tile--wide:first-child { grid-column: span 2; } .tile:last-child { grid-column: auto; } }
.tile {
  --x: 50%; --y: 50%;
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 26px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s, opacity 1s var(--ease-out);
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px circle at var(--x) var(--y), rgba(58, 108, 255, .1), transparent 60%); opacity: 0; transition: opacity .4s; }
.tile.is-in:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(58, 108, 255, .3); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.02em; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile__vis { position: relative; height: 170px; margin-bottom: 22px; border-radius: 18px; background: var(--tint); overflow: hidden; }

/* tile visuals */
.vis-phone { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding-top: 24px; background: linear-gradient(160deg, #E8EFFF, #F5F8FF); }
.vp, .vd { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.vp { width: 74px; height: 136px; border-radius: 16px 16px 0 0; animation: sway 6s ease-in-out infinite; }
.vd { width: 210px; height: 120px; border-radius: 12px 12px 0 0; animation: sway 6s ease-in-out 1s infinite reverse; }
.vp i, .vd i { display: block; border-radius: 5px; background: #E3EAFB; }
.vp .vp__bar, .vd .vp__bar { height: 6px; width: 50%; }
.vp .vp__hero, .vd .vp__hero { height: 34px; background: linear-gradient(120deg, #6FD4FF, #3A6CFF); }
.vd .vp__hero { height: 40px; }
.vp .vp__row { height: 6px; } .vp .vp__row--s { width: 60%; }
.vp .vp__btn { height: 14px; width: 60%; border-radius: 999px; background: var(--blue); margin-top: auto; }
.vd .vp__grid { flex: 1; background: repeating-linear-gradient(90deg, #E3EAFB 0 30%, transparent 30% 35%); }
@keyframes sway { 50% { transform: translateY(-8px); } }
.vis-wa { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px; background: #E7F5EF; background-image: radial-gradient(rgba(10, 19, 48, .05) 1px, transparent 1px); background-size: 12px 12px; }
.bub { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.3; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); animation: bub 6s var(--ease-out) infinite both; }
.bub--in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bub--out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 2px; animation-delay: .9s; }
@keyframes bub { 0%, 6% { opacity: 0; transform: translateY(10px) scale(.95); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.vis-map { background: #EAF1FB; background-image: linear-gradient(90deg, transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(0deg, transparent 60%, #fff 60% 66%, transparent 66%), linear-gradient(35deg, transparent 30%, #DCE7F7 30% 34%, transparent 34%); display: grid; place-items: center; }
.pin { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #E5484D; box-shadow: 0 6px 14px rgba(229, 72, 77, .45); animation: pin 2.4s var(--ease) infinite; }
.pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
@keyframes pin { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 30% { transform: rotate(-45deg) translate(6px, -6px); } }
.ripple { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: 4px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(229, 72, 77, .5); animation: ripple 2.4s ease-out infinite; }
@keyframes ripple { from { transform: scale(.5); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.vis-admin { display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 14px; padding: 22px 24px; align-items: center; }
.tg { width: 40px; height: 22px; border-radius: 999px; background: #CBD5EE; position: relative; animation: tgbg 4s steps(1) infinite; }
.tg i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); animation: tg 4s var(--ease) infinite; }
.tg--on, .tg--on i { animation-delay: -2s; }
@keyframes tg { 0%, 45% { transform: none; } 50%, 95% { transform: translateX(18px); } }
@keyframes tgbg { 0% { background: #CBD5EE; } 50% { background: #3A6CFF; } }
.ln { height: 8px; border-radius: 4px; background: #D7E0F5; }
.ln--s { width: 60%; grid-column: 2; }
.vis-seo { display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #E8EFFF, #F5F8FF); }
.serp { width: 100%; max-width: 360px; display: grid; gap: 8px; }
.serp__q { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm); white-space: nowrap; overflow: hidden; }
.serp__q b { width: 2px; height: 14px; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.serp__r { display: grid; gap: 5px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.serp__r i { height: 6px; border-radius: 3px; background: #DCE4F6; }
.serp__r i:first-child { width: 55%; background: #B9C8EE; }
.serp__r--hit { border-color: rgba(58, 108, 255, .4); box-shadow: 0 8px 20px -10px rgba(58, 108, 255, .6); animation: hit 5s var(--ease-out) infinite; }
.serp__r--hit i:first-child { background: var(--blue); }
@keyframes hit { 0%, 30% { transform: translateY(0); } 45%, 90% { transform: translateY(-108%); } 100% { transform: translateY(0); } }

/* ==========================================================================
   PRICING
   ========================================================================== */
.plans { display: grid; gap: 22px; perspective: 1600px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: 1fr 1fr; gap: 26px; } }
.plan {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative; display: flex; flex-direction: column; gap: 26px; padding: clamp(24px, 4vw, 40px); border-radius: 30px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
  transform-style: preserve-3d; transition: transform .6s var(--ease-out), box-shadow .5s;
}
.plan.reveal.is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity 1s var(--ease-out), transform .6s var(--ease-out), box-shadow .5s; }
.plan__shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx) var(--gy), rgba(111, 212, 255, .22), transparent 45%); opacity: 0; transition: opacity .4s; }
.plan:hover .plan__shine { opacity: 1; }
.plan--feature { color: #fff; border: 0; background: radial-gradient(800px 400px at 100% 0%, rgba(111, 212, 255, .45), transparent 60%), linear-gradient(150deg, #3A6CFF 0%, #2049E0 55%, #142C9C 100%); box-shadow: 0 50px 100px -40px rgba(32, 73, 224, .8); }
.plan__head { display: flex; align-items: center; gap: 16px; }
.plan__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 26px -8px rgba(58, 108, 255, .8); flex: none; }
.plan--feature .plan__icon { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.plan__icon svg { width: 30px; height: 30px; }
.plan__head h3 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.plan__head p { font-size: 15px; color: var(--muted); }
.plan--feature .plan__head p { color: #D6E1FF; }
.plan__price { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 20px; background: var(--tint); color: var(--blue-d); }
.plan--feature .plan__price { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.plan__from { font: 500 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.plan__amt { font: 800 clamp(52px, 8vw, 76px)/1 var(--f-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; }
.plan__cur { font-size: .55em; margin: .14em .06em 0 0; opacity: .9; }
.plan__amt sup { font-size: .4em; margin-left: 2px; top: 0; }
.plan__cols { display: grid; gap: 22px; }
@media (min-width: 560px) { .plan__cols { grid-template-columns: 1.25fr 1fr; } }
@media (min-width: 960px) and (max-width: 1179px) { .plan__cols { grid-template-columns: 1fr; } }
.plan h4 { font: 600 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-d); margin-bottom: 14px; }
.plan--feature h4 { color: #CFE9FF; }
.checks li, .extras li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.45; }
.checks li + li, .extras li + li { margin-top: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.plan--feature .checks li::before { background-color: rgba(255, 255, 255, .22); }
.extras { padding: 16px; border-radius: 16px; background: #F6F8FE; border: 1px dashed #C7D3F2; }
.plan--feature .extras { background: rgba(5, 10, 31, .18); border-color: rgba(255, 255, 255, .28); }
.extras li { color: var(--ink-2); }
.plan--feature .extras li { color: #E3EAFF; }
.extras li::before { content: "+"; position: absolute; left: 4px; top: 0; font: 700 16px/1.3 var(--f-mono); color: var(--blue); }
.plan--feature .extras li::before { color: var(--sky); }
.plan .btn { margin-top: auto; }
.footnote { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.perfect { margin-top: 56px; text-align: center; }
.perfect__title { font: 600 12px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--blue-d); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; font-size: 15px; transition: transform .35s var(--ease), border-color .3s, color .3s, box-shadow .3s; }
.chips li .ico { color: var(--blue); }
.chips li:hover { transform: translateY(-4px); border-color: var(--blue); color: var(--blue-d); box-shadow: var(--shadow-lg); }

/* ==========================================================================
   PROCESS — horizontal scroll
   ========================================================================== */
.process { position: relative; padding-block: var(--sec); }
.process__head { display: grid; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 1024px) { .process__head { grid-template-columns: 1.3fr 1fr; align-items: end; } .process__head .lead { justify-self: end; } }
.process__viewport { position: relative; z-index: 2; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 0 24px; }
.process__viewport::-webkit-scrollbar { display: none; }
.process__track { display: flex; gap: 18px; width: max-content; padding-inline: var(--gutter); }
.pcard { position: relative; scroll-snap-align: center; width: min(78vw, 400px); min-height: 360px; display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__n { position: absolute; right: 18px; top: 4px; font: 800 120px/1 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px #D5DEF5; }
.pcard__ico { width: 54px; height: 54px; padding: 12px; border-radius: 16px; color: var(--blue); background: var(--tint); margin-bottom: auto; }
.pcard h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; margin: 64px 0 10px; }
.pcard p { color: var(--muted); max-width: 30ch; }
.pcard--last { color: #fff; border: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(111, 212, 255, .45), transparent 60%), linear-gradient(150deg, #3A6CFF, #142C9C); }
.pcard--last .pcard__n { -webkit-text-stroke-color: rgba(255, 255, 255, .3); }
.pcard--last .pcard__ico { color: #fff; background: rgba(255, 255, 255, .16); }
.pcard--last p { color: #DCE5FF; margin-bottom: 20px; }
.pcard--last .btn { align-self: flex-start; }
.process__rail { height: 3px; border-radius: 3px; background: var(--line); margin-top: 8px; }
.process__rail span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--hb, 0)); }

/* Pinned horizontal mode (JS, ≥1024px, motion allowed) */
.hmode .process { padding: 0; }
.hmode .process__sticky { position: sticky; top: 0; height: 100vh; padding-top: 72px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hmode .process__viewport { overflow: visible; scroll-snap-type: none; }
.hmode .process__track { will-change: transform; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: 8vw; }
.hmode .pcard { width: 420px; min-height: 440px; }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.work { display: grid; gap: 22px; }
@media (min-width: 768px) { .work { grid-template-columns: 1fr 1fr; } }
.work__card { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s; }
.work__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work__card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.work__body { padding: 22px; }
.work__body h3 { font-size: 24px; margin-bottom: 6px; }
.work__body p { color: var(--muted); margin-bottom: 12px; }
.work__body a { color: var(--blue-d); font-weight: 600; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } .faq__head { position: sticky; top: 120px; } }
.faq__head .btn { margin-top: 28px; }
.acc { display: grid; gap: 12px; }
.acc__item { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s, opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.acc__item[open] { border-color: rgba(58, 108, 255, .35); box-shadow: var(--shadow-lg); }
.acc__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; font: 600 clamp(18px, 2vw, 21px)/1.3 var(--f-display); letter-spacing: -.015em; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__ico { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--tint); color: var(--blue); transition: transform .5s var(--ease-out), background-color .3s, color .3s; }
.acc__ico::before, .acc__ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
.acc__ico::after { transform: rotate(90deg); }
.acc__item[open] .acc__ico { background: var(--blue); color: #fff; transform: rotate(180deg); }
.acc__item[open] .acc__ico::after { transform: rotate(0); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 24px 24px; color: var(--muted); max-width: 60ch; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__card {
  position: relative; display: grid; gap: 36px; padding: clamp(24px, 5vw, 64px); border-radius: 36px; color: #fff; overflow: hidden;
  background: radial-gradient(900px 500px at 0% 0%, rgba(111, 212, 255, .35), transparent 55%), radial-gradient(700px 500px at 100% 100%, rgba(58, 108, 255, .5), transparent 60%), var(--navy);
  box-shadow: 0 60px 120px -50px rgba(5, 10, 31, .8);
}
.contact__card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(111, 212, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 212, 255, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 20% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 20% 20%, #000, transparent 70%); pointer-events: none; }
@media (min-width: 1024px) { .contact__card { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.contact__info, .brief { position: relative; }
.contact h2 { color: #fff; max-width: 12ch; }
.contact .lead { color: #B4C1E8; }
.cinfo { margin-top: 32px; display: grid; }
.cinfo li { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cinfo__k { font: 500 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #8FA2D6; }
.cinfo__v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 20px/1.3 var(--f-display); }
.cinfo__v a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.cinfo__v a:hover { color: var(--sky); background-size: 100% 1px; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; font: 500 13px/1 var(--f-body); color: #C9D4F5; cursor: pointer; transition: all .25s; }
.copy:hover { color: #fff; border-color: var(--sky); }
.copy .ico { width: 15px; height: 15px; }

.brief { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.brief__title { font-size: 24px; font-weight: 700; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: #F8FAFF; color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #75839F; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(58, 108, 255, .15); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #F8FAFF; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all .25s var(--ease); }
.seg input:hover + span { border-color: var(--blue); color: var(--blue-d); }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -8px rgba(58, 108, 255, .9); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.chat { padding: 14px; border-radius: 16px; background: #EFEAE2; background-image: radial-gradient(rgba(10, 19, 48, .05) 1px, transparent 1px); background-size: 12px 12px; }
.chat__k { display: block; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #5B6270; margin-bottom: 10px; }
.chat__bubble { position: relative; margin-left: auto; max-width: 92%; width: fit-content; padding: 9px 12px 20px; border-radius: 12px 2px 12px 12px; background: #D9FDD3; color: #111B21; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.chat__bubble::after { content: "✓✓"; position: absolute; right: 8px; bottom: 3px; font-size: 10px; letter-spacing: -2px; color: #3496C7; }
.chat__bubble.bump { animation: bump .3s var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.015); } }
.brief__note { font-size: 13.5px; color: var(--muted); text-align: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; z-index: 2; padding: var(--sec) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--navy); color: #fff; margin-top: var(--sec); overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 50%; top: -300px; width: 900px; height: 600px; margin-left: -450px; background: radial-gradient(closest-side, rgba(58, 108, 255, .4), transparent); pointer-events: none; }
.footer__big { position: relative; font: 800 clamp(48px, 12.5vw, 176px)/.9 var(--f-display); letter-spacing: -.06em; margin-bottom: 64px; user-select: none; }
.footer__big span:first-child { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .3); }
.footer__grid { position: relative; display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer__grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } .footer__grid > :first-child { grid-column: auto; } }
.footer__tag { margin-top: 16px; color: #A9B7E0; max-width: 34ch; }
.footer__h { font: 600 12px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; }
.footer ul li + li { margin-top: 11px; }
.footer ul a, .footer ul li { color: #A9B7E0; font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer__base { position: relative; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; color: #8FA2D6; }
.footer__base a:hover { color: #fff; }
.totop { display: inline-flex; align-items: center; gap: 8px; }
.totop .ico { transform: rotate(-90deg); transition: transform .3s var(--ease); }
.totop:hover .ico { transform: rotate(-90deg) translateX(3px); }

/* ---------- Mobile dock + toast ---------- */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 20px 40px -14px rgba(10, 19, 48, .4); transform: translateY(150%); transition: transform .6s var(--ease-out); }
.dock.is-on { transform: none; }
.dock__call { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--blue-d); }
@media (min-width: 960px) { .dock { display: none; } }
@media (max-width: 959px) { .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 70; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 16px 40px -10px rgba(10, 19, 48, .5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { position: relative; z-index: 2; padding: 130px 0 var(--sec); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; margin-bottom: 12px; }
.legal .updated { color: var(--muted); font: 500 13px/1.4 var(--f-mono); margin-bottom: 20px; }
.legal .notice { padding: 14px 18px; border-radius: 16px; border: 1px dashed #A9BDF2; background: var(--tint); color: var(--ink-2); margin-bottom: 36px; font-size: 15px; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; max-width: none; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); text-decoration: none; }
.legal .back .ico { transform: rotate(180deg); }
.legal__cta { margin-left: auto; }
.legal-page .footer { margin-top: 0; padding-top: 40px; padding-bottom: 28px; }
.legal-page .footer__base { margin-top: 0; }

/* ==========================================================================
   Reduced motion: switch off decorative motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .split .w > span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul + ul { display: none; }
  .plan { transform: none !important; }
}
