/* ================= Tokens ================= */
:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --paper-3: #dfdbd2;
  --ink: #0f1115;
  --ink-2: #2b2f3a;
  --ink-3: #5c6372;
  --ink-4: #8b92a0;
  --line: rgba(15, 17, 21, 0.14);
  --line-strong: rgba(15, 17, 21, 0.38);
  --blue: #1a4dff;
  --blue-soft: rgba(26, 77, 255, 0.10);
  --yellow: #ffd500;
  --ok: #178a50;
  --err: #c62d47;
  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --top-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); scroll-padding-top: calc(var(--top-h) + env(safe-area-inset-top)); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .top, .foot { position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ================= Type ================= */
.h-display { font-size: clamp(34px, 4.4vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; }
.h-2 { font-size: clamp(26px, 3.1vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
.mono { font-family: var(--font-mono); }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px;
  font-weight: 600; font-size: 14px; line-height: 1; border-radius: 4px; border: 1px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.btn-lg { padding: 16px 24px; font-size: 15px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--blue); border-color: var(--blue); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-arrow::before { content: "→"; display: inline-block; transition: transform .3s var(--ease); font-weight: 500; }
.btn:hover .btn-arrow::before { transform: translateX(4px); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ================= Top bar ================= */
.top { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); background: rgba(243, 241, 236, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--paper); pointer-events: none; }
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 30px; height: 30px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.wordmark span { color: var(--blue); }
.menu { display: flex; gap: 22px; }
.menu a { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 6px 0; position: relative; }
.menu a i { font: 500 10px var(--font-mono); color: var(--ink-4); font-style: normal; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:hover::after, .menu a.is-active::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--font-mono); }
.lang-btn { color: var(--ink-4); padding: 4px 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.lang-btn[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.lang-sep { color: var(--ink-4); }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 4px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.mobile-menu a i { font: 500 11px var(--font-mono); color: var(--ink-4); font-style: normal; }

/* ================= Hero ================= */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 11.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 28px; }
.kicker-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 213, 0, .25); }
.lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 58ch; margin-top: 28px; }
.lead.small { font-size: 15.5px; color: var(--ink-3); margin-top: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@keyframes bp-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* iPhone frame */
.iphone { position: relative; width: 270px; aspect-ratio: 402 / 874; padding: 9px; border-radius: 50px; background: linear-gradient(145deg, #3a3b40, #121316 38%, #26272b 70%, #0d0e10); box-shadow: inset 0 0 0 1.5px #55565c, inset 0 0 0 4px #0b0b0c, 0 40px 70px -30px rgba(15, 17, 21, .55), 0 18px 30px -18px rgba(15, 17, 21, .35); }
.iphone::before { content: ""; position: absolute; left: -2.5px; top: 22%; width: 3px; height: 9%; border-radius: 2px 0 0 2px; background: #2c2d31; box-shadow: 0 -40px 0 -0.5px #2c2d31; }
.iphone::after { content: ""; position: absolute; right: -2.5px; top: 27%; width: 3px; height: 13%; border-radius: 0 2px 2px 0; background: #2c2d31; }
.iphone-screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: #0b0b0c; }
.iphone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hero-screens img { opacity: 0; transform: translateY(14px) scale(1.01); transition: opacity .7s var(--ease), transform .9s var(--ease); }
#hero-screens img.is-active { opacity: 1; transform: none; }
.island { position: absolute; left: 50%; top: 3.1%; width: 31%; height: 3.9%; transform: translateX(-50%); border-radius: 40px; background: #000; z-index: 2; }

.hero-art { margin: 0; position: relative; }
.phones { position: relative; width: 100%; max-width: 540px; aspect-ratio: 540 / 620; margin: 0 auto; }
.phones .iphone { position: absolute; }
.iphone-front { width: 47%; right: 12%; top: 0; z-index: 2; animation: ph-float 7s ease-in-out infinite; }
.iphone-back { width: 40%; left: 8%; top: 13%; z-index: 1; transform: rotate(-7deg); filter: saturate(.9); animation: ph-float-b 8s ease-in-out infinite; }
.iphone-back .iphone-screen img { opacity: .92; }
@keyframes ph-float { 50% { translate: 0 -10px; } }
@keyframes ph-float-b { 50% { translate: 0 8px; } }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; font: 500 11px var(--font-mono); white-space: nowrap; box-shadow: 4px 4px 0 var(--ink); animation: chip-in .6s var(--ease) both; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-brass { background: #d9ae4b; } .dot-green { background: #5cc49b; } .dot-violet { background: #a784e8; } .dot-ink { background: var(--ink); }
.chip-a { left: 0; top: 6%; animation-delay: .5s; }
.chip-b { right: 0; top: 46%; animation-delay: .7s; }
.chip-c { left: 4%; bottom: 14%; animation-delay: .9s; }
.chip-d { right: 6%; bottom: 2%; animation-delay: 1.1s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-cap { display: flex; gap: 12px; align-items: baseline; justify-content: center; margin-top: 18px; font: 500 11px var(--font-mono); color: var(--ink-3); }
.hero-cap span { text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); }
.hero-cap a { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.hero-cap a:hover { color: var(--blue); border-color: var(--blue); }

/* ================= Work ================= */
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-media { position: sticky; top: calc(var(--top-h) + 24px); }
.case-media { padding: 12px 0 28px; }
.case-phones { position: relative; display: flex; justify-content: center; align-items: center; gap: 4%; }
.case-phones .iphone.sm { width: 28%; padding: 6px; border-radius: 34px; box-shadow: inset 0 0 0 1px #55565c, inset 0 0 0 3px #0b0b0c, 0 34px 50px -26px rgba(15, 17, 21, .5), 0 14px 22px -16px rgba(15, 17, 21, .3); }
.case-phones .iphone.sm .iphone-screen { border-radius: 28px; }
.case-phones .iphone.sm::before, .case-phones .iphone.sm::after { display: none; }
.case-phones .iphone.mid { width: 32%; transform: translateY(-18px); }
.case-list { border-top: 1px solid var(--ink); }
.case-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.case-list span { font: 500 12px var(--font-display); color: #b8892a; padding-top: 2px; }
.case-list h3 { font-size: 16px; }
.case-list p { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.case-facts { margin: 22px 0 26px; display: grid; gap: 10px; }
.case-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.case-facts dt { font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.case-facts dd { margin: 0; font-size: 14.5px; font-weight: 500; }

.xh { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0; }
.hero.is-hover .xh { opacity: 1; }
.xh-v { position: absolute; top: 0; bottom: 0; left: var(--x, -10px); border-left: 1px dashed var(--line-strong); }
.xh-h { position: absolute; left: 0; right: 0; top: var(--y, -10px); border-top: 1px dashed var(--line-strong); }
.xh-label { position: absolute; right: var(--gutter); top: 18px; font: 500 10px var(--font-mono); color: var(--ink-4); letter-spacing: .08em; white-space: nowrap; }
.hero-grid, .hero > .wrap { position: relative; z-index: 1; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.facts .fact:nth-child(4) { border-left: 0; padding-left: 0; }
.facts .fact:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.fact { padding: 24px 20px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 500 19px var(--font-display); letter-spacing: -0.01em; }
.fact span { display: block; margin-top: 6px; font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ================= Ticker ================= */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding: 18px 0; background: var(--paper); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; font: 500 13px var(--font-display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; padding-right: 44px; position: relative; }
.ticker-track span::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--yellow); border-radius: 50%; }
.ticker-ind { border-top: 1px solid var(--line); }
.ticker-ind .ticker-track { animation-duration: 75s; animation-direction: reverse; }
.ticker-ind .ticker-track span { font: 500 12px var(--font-mono); letter-spacing: .1em; color: var(--ink-3); }
.ticker-ind .ticker-track span::after { background: var(--blue); }
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* ================= Sections ================= */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding-top: 28px; border-top: 1px solid var(--ink); margin-bottom: clamp(40px, 5vw, 72px); }
.sec-num { display: flex; align-items: baseline; gap: 12px; }
.sec-num i { font: 500 13px var(--font-display); font-style: normal; color: var(--ink); }
.sec-num span { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sec-title .h-2 { max-width: 22ch; }
.sec-sub { margin-top: 18px; font-size: 17px; color: var(--ink-3); max-width: 62ch; }

.sec-dark { background: var(--ink); color: var(--paper); --line: rgba(243, 241, 236, 0.16); --ink-3: #a9afbb; --ink-4: #7b8290; }
.sec-dark .sec-head { border-top-color: rgba(243, 241, 236, 0.4); }
.sec-dark .sec-num i { color: var(--paper); }

/* ================= Services index ================= */
.index { border-top: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.5fr) auto 40px; gap: 24px; align-items: start;
  padding: 34px 20px; margin: 0 -20px; border-bottom: 1px solid var(--line);
  transition: color .35s;
}
.row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: 50% var(--o, 0%); transition: transform .42s var(--ease); z-index: -1; }
.row.is-on::before { transform: scaleY(1); }
.row.is-on { color: var(--paper); }
.row-num { font: 500 13px var(--font-display); padding-top: 4px; color: var(--ink-4); transition: color .3s; }
.row.is-on .row-num { color: var(--yellow); }
.row-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.row-sum { margin-top: 8px; font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.row-desc { font-size: 15px; color: var(--ink-3); transition: color .3s; }
.row.is-on .row-desc { color: rgba(243, 241, 236, .75); }
.row-tags { display: flex; flex-direction: column; gap: 6px; }
.row-tags li { font: 500 11px var(--font-mono); color: var(--ink-3); white-space: nowrap; transition: color .3s; }
.row-tags li::before { content: "/ "; color: var(--ink-4); }
.row.is-on .row-tags li { color: rgba(243, 241, 236, .75); }
.row-arrow { justify-self: end; font: 500 22px var(--font-body); line-height: 1; transition: transform .35s var(--ease); }
.row-arrow::before { content: "→"; }
.row.is-on .row-arrow { transform: translateX(6px); }

.preview {
  position: fixed; left: 0; top: 0; width: 300px; height: 200px; z-index: 40; pointer-events: none;
  background: var(--paper); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow);
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .25s, transform .35s var(--ease);
}
.preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview svg { display: none; width: 100%; height: 100%; }
.preview svg.is-active { display: block; }
.pv text { font: 500 7.5px var(--font-mono); fill: var(--ink-3); letter-spacing: .04em; }
.pv .bg { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.2; }
.pv .bg.sh { filter: drop-shadow(0 6px 10px rgba(15, 17, 21, .18)); }
.pv .o { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.pv .o2 { fill: none; stroke: var(--ink); stroke-opacity: .2; stroke-width: 1; }
.pv .o2f { fill: #fff; stroke: var(--ink); stroke-opacity: .18; stroke-width: 1; }
.pv .cardf { fill: #fff; stroke: var(--ink); stroke-opacity: .25; }
.pv .k { fill: var(--ink); }
.pv .g { fill: var(--ink-4); fill-opacity: .42; }
.pv .p { fill: var(--paper-2); }
.pv .pw { fill: rgba(243, 241, 236, .55); }
.pv .b { fill: var(--blue); }
.pv .bs { fill: var(--blue-soft); }
.pv .bsr { fill: var(--blue-soft); stroke: var(--blue); stroke-opacity: .35; }
.pv .y, .pv .yf { fill: var(--yellow); }
.pv .gr { fill: #1fb57a; }
.pv .rd { fill: var(--err); }
.pv .scr { fill: #fbfaf7; }
.pv .row { fill: #fff; stroke: var(--ink); stroke-opacity: .12; }
.pv .tw { font: 600 8px var(--font-body); fill: var(--paper); letter-spacing: 0; }
.pv .tw.big { font: 600 13px var(--font-display); }
.pv .tw.dim2 { fill-opacity: .7; font-weight: 500; }
.pv .tb { font: 600 12px var(--font-display); fill: var(--ink); letter-spacing: 0; }
.pv .tb2 { font: 600 8.5px var(--font-body); fill: var(--ink); letter-spacing: 0; }
.pv .st { font-size: 6px; fill: var(--yellow); letter-spacing: 0; }
.pv .code { font: 500 7.5px var(--font-mono); fill: var(--ink-2); letter-spacing: 0; white-space: pre; }
.pv .code .kw { fill: #b0378a; }
.pv .code .fn { fill: var(--blue); }
.pv .chip-d { fill: #fff; stroke: var(--ink-4); stroke-dasharray: 3 2; }
.pv .wl2 { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv .wire { fill: none; stroke: var(--ink); stroke-opacity: .25; stroke-dasharray: 3 3; }
.pv .spark-line { fill: none; stroke: #1fb57a; stroke-width: 1.5; stroke-linejoin: round; }
.pv .score-bg { fill: #fff; stroke: var(--ink); stroke-opacity: .12; stroke-width: 3; }
.pv .score { fill: none; stroke: #1fb57a; stroke-width: 3; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.pv .score-t { font: 600 9px var(--font-display); fill: #1fb57a; letter-spacing: 0; }
.pv .selbox { fill: none; stroke: var(--blue); stroke-width: 1.2; }
.pv .hd { fill: #fff; stroke: var(--blue); stroke-width: 1.2; }
.pv .dim { fill: var(--blue); }
.pv .redline { stroke: #e2508a; stroke-width: 1.2; }
.pv .b-st { stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.pv .cursor { fill: var(--ink); stroke: #fff; stroke-width: .9; stroke-linejoin: round; }
.pv .dt { fill: var(--ink-3); animation: pv-blink 1s infinite; }
.pv .dt:nth-of-type(2) { animation-delay: .15s; }
.pv .dt:nth-of-type(3) { animation-delay: .3s; }
.pv .live { animation: pv-blink 1.6s infinite; }

.pv [class*="a-"] { transform-box: fill-box; transform-origin: center; animation-duration: .55s; animation-timing-function: var(--ease); animation-fill-mode: both; animation-delay: var(--d, 0s); }
.pv .a-up { animation-name: pv-up; }
.pv .a-pop { animation-name: pv-pop; }
.pv .a-left { animation-name: pv-left; }
.pv .a-drop { animation-name: pv-drop; }
.pv .a-wipe { animation-name: pv-wipe; transform-origin: left center; }
.pv .a-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pv-draw 1.1s var(--ease) forwards var(--d, 0s); }
@keyframes pv-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pv-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes pv-left { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes pv-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes pv-wipe { from { transform: scaleX(0); } to { transform: none; } }
@keyframes pv-draw { to { stroke-dashoffset: 0; } }
@keyframes pv-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.pv .cursor:not(.dragc) { animation: pv-cursor 3.4s var(--ease) infinite .7s; transform: translate(240px, 190px); }
@keyframes pv-cursor { 0% { transform: translate(240px, 190px); } 38%, 62% { transform: translate(46px, 126px); } 44% { transform: translate(46px, 126px) scale(.82); } 50% { transform: translate(46px, 126px); } 100% { transform: translate(240px, 190px); } }
.pv .ripple { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pv-ripple 3.4s infinite .7s; }
@keyframes pv-ripple { 0%, 42% { opacity: 0; transform: scale(.4); } 46% { opacity: .9; transform: scale(1); } 62%, 100% { opacity: 0; transform: scale(2.2); } }

.pv .fly { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pv-fly 2.8s var(--ease) infinite .9s; }
@keyframes pv-fly { 0% { opacity: 0; transform: none; } 8% { opacity: 1; transform: scale(1.15); } 50% { opacity: 1; transform: translate(107px, -44px) scale(.45); } 56%, 100% { opacity: 0; transform: translate(107px, -44px) scale(.3); } }
.pv .badge-bump { transform-box: fill-box; transform-origin: center; animation: pv-bump 2.8s infinite .9s; }
@keyframes pv-bump { 0%, 50% { transform: none; } 56% { transform: scale(1.45); } 64%, 100% { transform: none; } }
.pv .n3 { opacity: 0; animation: pv-n3 2.8s infinite .9s; }
.pv .n2 { animation: pv-n2 2.8s infinite .9s; }
@keyframes pv-n3 { 0%, 52% { opacity: 0; } 56%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pv-n2 { 0%, 52% { opacity: 1; } 56%, 92% { opacity: 0; } 100% { opacity: 1; } }
.pv .ship { animation: pv-blink 2.8s infinite .9s; }

.pv .drag { transform-box: fill-box; animation: pv-drag 3.6s var(--ease) infinite .4s; }
@keyframes pv-drag { 0%, 8% { transform: translate(60px, -22px); } 40%, 100% { transform: none; } }
.pv .dragc { animation: pv-dragc 3.6s var(--ease) infinite .4s; }
@keyframes pv-dragc { 0% { transform: translate(250px, 40px); } 8% { transform: translate(180px, 140px) scale(.85); } 40% { transform: translate(120px, 162px) scale(.85); } 46%, 70% { transform: translate(120px, 162px); } 100% { transform: translate(250px, 40px); } }
.pv .sel { opacity: 0; animation: pv-sel 3.6s infinite .4s; }
@keyframes pv-sel { 0%, 40% { opacity: 0; } 46%, 92% { opacity: 1; } 100% { opacity: 0; } }
.pv .knob { transform-box: fill-box; transform-origin: center; animation: pv-knob 3.6s var(--ease) infinite .4s; }
@keyframes pv-knob { 0%, 46% { transform: none; } 60%, 92% { transform: translateX(14px); } 100% { transform: none; } }
.pv .typing { opacity: 0; animation: pv-typing .9s forwards var(--d, 0s); }
@keyframes pv-typing { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* ================= Timeline ================= */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding-top: 56px; }
.tl-line { position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: rgba(243, 241, 236, .22); }
.tl-line i { display: block; height: 100%; width: var(--p, 0%); background: var(--yellow); transition: width .25s linear; }
.tl-step { position: relative; }
.tl-dot { position: absolute; left: 0; top: -40px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid rgba(243, 241, 236, .6); transition: background .3s, border-color .3s; }
.tl-step.is-past .tl-dot { background: var(--yellow); border-color: var(--yellow); }
.tl-num { display: block; font: 500 40px var(--font-display); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 236, .55); margin-bottom: 18px; transition: color .4s; }
.tl-step.is-past .tl-num { color: var(--paper); -webkit-text-stroke: 1px var(--paper); }
.tl-step h3 { font-size: 17px; margin-bottom: 10px; }
.tl-step p { font-size: 14.5px; color: var(--ink-3); }
.tl-meta { display: inline-block; margin-top: 14px; font: 500 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }

/* ================= Why ================= */
.why { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 1px solid var(--line); }
.why-item { position: relative; padding: 32px 0 32px 72px; border-bottom: 1px solid var(--line); }
.why-num { position: absolute; left: 0; top: 36px; font: 500 13px var(--font-display); color: var(--ink-4); }
.why-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.why-tag::before { content: ""; width: 6px; height: 6px; background: var(--blue); }
.why-item h3 { font-size: 19px; margin-bottom: 10px; }
.why-item p { font-size: 15px; color: var(--ink-3); max-width: 46ch; }

/* ================= Showcase ================= */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tabs { border-top: 1px solid var(--ink); }
.tab { display: grid; grid-template-columns: 36px 1fr; gap: 12px; width: 100%; text-align: left; padding: 22px 0 22px 16px; border-bottom: 1px solid var(--line); box-shadow: inset 0 0 0 0 var(--ink); transition: box-shadow .3s, padding .3s; }
.tab i { font: 500 13px var(--font-display); font-style: normal; color: var(--ink-4); padding-top: 3px; transition: color .3s; }
.tab b { display: block; font: 500 17px var(--font-display); letter-spacing: -0.01em; }
.tab small { display: block; font-size: 14px; color: var(--ink-3); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .3s, margin .3s; }
.tab.is-active { box-shadow: inset 3px 0 0 var(--ink); }
.tab.is-active i { color: var(--blue); }
.tab.is-active small { max-height: 90px; opacity: 1; margin-top: 8px; }
.tab:hover:not(.is-active) i { color: var(--ink); }
.stage { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; align-items: center; }
.device { width: 280px; justify-self: center; }

/* Realistic app screens */
.app { background: #f7f6f2; color: #111317; font-family: var(--font-body); }
.app .sb { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 15px 22px 0 26px; font: 600 12.5px var(--font-body); color: #111317; transition: color .3s; }
.app .sb span { display: inline-flex; gap: 5px; align-items: center; }
.app .sb svg { height: 9px; width: auto; fill: currentColor; }
.app .batt { position: relative; width: 20px; height: 10px; border: 1.2px solid currentColor; border-radius: 3px; opacity: .9; }
.app .batt i { position: absolute; inset: 1.2px; right: 4px; background: currentColor; border-radius: 1px; }
.app.is-dark { background: #0d0e11; }
.app.is-dark .sb { color: #f4f1ea; }
.scr { position: absolute; inset: 0; padding: 46px 14px 14px; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; display: flex; flex-direction: column; }
.scr.is-active { opacity: 1; transform: none; }
.scr.dark { background: #0d0e11; color: #f4f1ea; }
.scr .sa { opacity: 0; }
.scr.is-active .sa { animation: scr-in .55s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes scr-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ap-top { display: flex; align-items: flex-end; justify-content: space-between; margin: 6px 2px 12px; }
.ap-top small { display: block; font-size: 10.5px; color: #7d7f86; font-weight: 500; }
.ap-top h5 { margin: 0; font: 700 21px/1.15 var(--font-body); letter-spacing: -0.02em; }
.ap-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #111317; color: #fff; font: 700 10.5px var(--font-body); }
.ap-av.dark { background: #2a2b31; }
.ap-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 11px; border-radius: 11px; background: #ebe9e3; color: #8a8c92; font-size: 12px; margin-bottom: 10px; }
.ap-search svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ap-chips { display: flex; gap: 6px; margin-bottom: 12px; }
.ap-chips span { padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid #e3e1db; font-size: 11px; font-weight: 600; }
.ap-chips span.on { background: #111317; color: #fff; border-color: #111317; }
.ap-pro { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 7px; border-radius: 13px; background: #fff; border: 1px solid #ecebe6; }
.ap-pro > div { flex: 1; min-width: 0; }
.ap-pro b { display: block; font-size: 12.5px; }
.ap-pro small { display: block; font-size: 10.5px; color: #7d7f86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-pro em { font-style: normal; font: 700 13px var(--font-body); }
.star { font-style: normal; color: #f2a516; }
.ap-photo { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 11px var(--font-body); background: linear-gradient(135deg, #ff7a59, #e2508a); }
.ap-photo.p2 { background: linear-gradient(135deg, #1a4dff, #7c5cff); }
.ap-photo.p3 { background: linear-gradient(135deg, #ff9a3c, #ffd500); color: #1a1408; }
.ap-photo.sm { width: 30px; height: 30px; font-size: 10px; }
.ap-label { margin: 8px 2px 7px; font-size: 11px; font-weight: 700; color: #4b4e55; }
.ap-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 9px; }
.ap-days span { display: grid; justify-items: center; gap: 1px; padding: 6px 0; border-radius: 11px; background: #fff; border: 1px solid #ecebe6; font: 700 13px var(--font-body); }
.ap-days small { font-size: 9px; font-weight: 600; color: #8a8c92; }
.ap-days span.on { background: #111317; color: #fff; border-color: #111317; }
.ap-days span.on small { color: rgba(255, 255, 255, .6); }
.ap-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ap-slots span { text-align: center; padding: 7px 0; border-radius: 9px; border: 1px solid #e3e1db; background: #fff; font: 600 11.5px var(--font-body); }
.ap-slots span.off { color: #b8b9bd; text-decoration: line-through; background: transparent; }
.ap-slots span.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.scr.is-active .pick { animation: pick 2.4s ease-in-out infinite 1s; }
@keyframes pick { 0%, 100% { box-shadow: 0 0 0 0 rgba(26, 77, 255, .45); } 50% { box-shadow: 0 0 0 6px rgba(26, 77, 255, 0); } }
.ap-cta { margin-top: auto; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #111317; color: #fff; font: 700 13px var(--font-body); }
.ap-cta.blue { background: var(--blue); }

.fx-bal small { font-size: 10.5px; color: #8e8b84; font-weight: 500; }
.fx-bal b { display: block; margin: 2px 0 2px; font: 700 26px/1.1 var(--font-body); letter-spacing: -0.02em; }
.fx-bal em { font-style: normal; font-size: 11px; font-weight: 600; color: #5cc49b; }
.fx-chart { width: 100%; height: 84px; margin: 10px 0 6px; overflow: visible; }
.fx-area { fill: url(#fxg); }
.fx-line { fill: none; stroke: #5cc49b; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scr.is-active .fx-line { animation: fx-draw 1.4s var(--ease) forwards .2s; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
.fx-dot { fill: #5cc49b; opacity: 0; }
.scr.is-active .fx-dot { animation: fx-dot 1.8s ease-in-out infinite 1.5s; }
@keyframes fx-dot { 0%, 100% { opacity: 1; r: 3.5; } 50% { opacity: .5; r: 6; } }
.fx-range { display: flex; justify-content: space-between; margin-bottom: 12px; }
.fx-range span { padding: 4px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 600; color: #8e8b84; }
.fx-range span.on { background: #23242a; color: #f4f1ea; }
.fx-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }
.fx-card { padding: 10px; border-radius: 13px; background: #18191d; border: 1px solid #26272d; }
.fx-card.gold { background: linear-gradient(140deg, #3a2f12, #18191d 70%); border-color: #4a3d1a; }
.fx-card small { display: block; font-size: 9.5px; color: #8e8b84; }
.fx-card b { display: block; margin-top: 4px; font: 700 15px var(--font-body); }
.fx-row { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-top: 1px solid #1f2025; }
.fx-row > div { flex: 1; }
.fx-row b { display: block; font-size: 12px; }
.fx-row small { display: block; font-size: 10px; color: #8e8b84; }
.fx-row em { font-style: normal; font-size: 12px; font-weight: 600; }
.fx-row em.up { color: #5cc49b; }
.fx-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #23242a; font: 700 11px var(--font-body); color: #f4f1ea; }
.fx-ic.g { background: rgba(92, 196, 155, .18); color: #5cc49b; }
.fx-ic.v { background: rgba(227, 90, 85, .18); color: #e35a55; }

.sh-top { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.sh-top h5 { margin: 0; font: 700 15px var(--font-body); }
.app .ic { width: 22px; height: 22px; fill: none; stroke: #111317; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sh-cart { position: relative; }
.sh-badge { position: absolute; right: -6px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 9.5px/16px var(--font-body); text-align: center; font-style: normal; }
.sh-badge b { position: absolute; inset: 0; font-weight: 700; }
.sh-badge .n3 { opacity: 0; }
.scr.is-active .sh-badge { animation: sh-bump .5s var(--ease) 1.5s; }
.scr.is-active .sh-badge .n2 { animation: sh-out .01s forwards 1.5s; }
.scr.is-active .sh-badge .n3 { animation: sh-in .01s forwards 1.5s; }
@keyframes sh-bump { 50% { transform: scale(1.5); } }
@keyframes sh-out { to { opacity: 0; } }
@keyframes sh-in { to { opacity: 1; } }
.sh-hero { position: relative; height: 150px; border-radius: 16px; background: radial-gradient(circle at 60% 40%, #ffffff, #e9e6de 70%); display: grid; place-items: center; margin-bottom: 10px; }
.sh-shoe { width: 82%; transform: rotate(-8deg); filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .18)); }
.scr.is-active .sh-shoe { animation: shoe 3.6s ease-in-out infinite; }
@keyframes shoe { 50% { transform: rotate(-5deg) translateY(-4px); } }
.sh-tag { position: absolute; left: 10px; top: 10px; padding: 3px 7px; border-radius: 7px; background: #e35a55; color: #fff; font: 700 10px var(--font-body); }
.sh-dots { position: absolute; bottom: 8px; display: flex; gap: 4px; }
.sh-dots i { width: 5px; height: 5px; border-radius: 50%; background: #c9c6be; }
.sh-dots i.on { width: 14px; border-radius: 3px; background: #111317; }
.sh-meta { display: flex; justify-content: space-between; align-items: flex-start; }
.sh-meta b { display: block; font-size: 14px; }
.sh-meta small { font-size: 10.5px; color: #7d7f86; }
.sh-price { text-align: right; }
.sh-price s { display: block; font-size: 10px; color: #a0a2a7; }
.sh-price em { font-style: normal; font: 700 16px var(--font-body); }
.sh-sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.sh-sizes span { text-align: center; padding: 6px 0; border-radius: 9px; border: 1px solid #e3e1db; background: #fff; font: 600 11.5px var(--font-body); }
.sh-sizes span.on { background: #111317; color: #fff; border-color: #111317; }
.sh-sizes span.off { color: #c2c3c6; background: transparent; text-decoration: line-through; }
.sh-colors { display: flex; gap: 9px; margin-bottom: 10px; }
.sh-colors i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.sh-colors i.on { box-shadow: 0 0 0 2px #f7f6f2, 0 0 0 3.5px #111317; }
.sh-toast { position: absolute; left: 50%; top: 44px; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: #111317; color: #fff; font: 600 11.5px var(--font-body); white-space: nowrap; opacity: 0; transform: translate(-50%, -10px); }
.sh-toast svg { width: 14px; height: 14px; fill: none; stroke: #5cc49b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.scr.is-active .sh-toast { animation: toast 2.6s var(--ease) forwards 1.2s; }
@keyframes toast { 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }

.so-stories { display: flex; gap: 9px; margin-bottom: 12px; }
.so-stories span { display: grid; justify-items: center; gap: 3px; }
.so-stories i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--font-body); font-style: normal; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px #f7f6f2, 0 0 0 3.5px var(--c1); }
.so-stories span.on i { background: #ebe9e3; color: #111317; box-shadow: none; font-size: 18px; font-weight: 500; }
.so-stories small { font-size: 9.5px; color: #4b4e55; }
.so-post { border-radius: 16px; background: #fff; border: 1px solid #ecebe6; padding: 10px; }
.so-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.so-head > div { flex: 1; }
.so-head b { display: block; font-size: 12px; }
.so-head small { display: block; font-size: 10px; color: #8a8c92; }
.so-more { color: #8a8c92; font-size: 11px; letter-spacing: 1px; }
.so-img { position: relative; height: 140px; border-radius: 11px; overflow: hidden; background: linear-gradient(180deg, #ffb36b 0%, #ff7a59 45%, #7c5cff 100%); }
.so-img .sun { position: absolute; left: 50%; top: 34%; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: #ffe7a6; box-shadow: 0 0 30px #ffe7a6; }
.scr.is-active .so-img .sun { animation: sun 4s ease-in-out infinite; }
@keyframes sun { 50% { transform: translateY(-5px); } }
.so-img .hill { position: absolute; bottom: -30px; border-radius: 50%; }
.so-img .h1 { left: -20%; width: 90%; height: 90px; background: #2b2a5e; }
.so-img .h2 { right: -25%; width: 100%; height: 76px; background: #1d1c45; }
.so-act { display: flex; gap: 14px; margin: 9px 2px 6px; font-size: 11px; font-weight: 600; color: #4b4e55; }
.so-act span { display: inline-flex; align-items: center; gap: 4px; }
.so-act svg { width: 16px; height: 16px; fill: none; stroke: #111317; stroke-width: 1.8; stroke-linejoin: round; }
.so-act .like svg { fill: #e35a55; stroke: #e35a55; }
.scr.is-active .so-act .like svg { animation: like .6s var(--ease) 1.2s; transform-origin: center; }
@keyframes like { 50% { transform: scale(1.35); } }
.so-cap { font-size: 11px; line-height: 1.4; color: #4b4e55; margin: 0 2px; }
.so-cap b { color: #111317; }
.so-push { position: absolute; left: 10px; right: 10px; top: 42px; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 16px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(-16px); }
.so-push > div { flex: 1; min-width: 0; }
.so-push b { display: block; font-size: 12px; }
.so-push small { display: block; font-size: 11px; color: #4b4e55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-push em { font-style: normal; font-size: 10px; color: #8a8c92; align-self: flex-start; }
.scr.is-active .so-push { animation: push 4s var(--ease) forwards 1.4s; }
@keyframes push { 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-16px); } }

.ai-head { display: flex; align-items: center; gap: 9px; padding: 6px 2px 11px; margin-bottom: 10px; border-bottom: 1px solid #e6e4de; }
.ai-head b { display: block; font-size: 13px; }
.ai-head small { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #7d7f86; }
.on-dot { width: 6px; height: 6px; border-radius: 50%; background: #1fb57a; }
.ai-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #111317; }
.spark { display: inline-block; width: 14px; height: 14px; background: var(--yellow); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.ai-msgs { display: flex; flex-direction: column; gap: 7px; }
.bub { max-width: 84%; padding: 8px 11px; border-radius: 15px; font: 500 12px/1.4 var(--font-body); }
.bub.me { align-self: flex-end; background: #111317; color: #fff; border-bottom-right-radius: 5px; }
.bub.bot { align-self: flex-start; background: #fff; border: 1px solid #ecebe6; border-bottom-left-radius: 5px; }
.ai-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: rgba(26, 77, 255, .08); color: var(--blue); font: 600 10px var(--font-body); }
.ai-tool svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.scr-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 15px; background: #fff; border: 1px solid #ecebe6; }
.scr-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9ca1; animation: bp-blink 1.2s infinite; }
.scr-typing i:nth-child(2) { animation-delay: .2s; }
.scr-typing i:nth-child(3) { animation-delay: .4s; }
.ai-quick { display: flex; gap: 6px; margin-top: auto; margin-bottom: 8px; }
.ai-quick span { padding: 6px 10px; border-radius: 99px; border: 1px solid #d9d7d0; font-size: 10.5px; font-weight: 600; background: #fff; }
.ai-input { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 5px 0 13px; border-radius: 99px; background: #fff; border: 1px solid #e3e1db; font-size: 12px; color: #9a9ca1; }
.ai-input .send { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #111317; }
.ai-input .send svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.panels { min-width: 0; }
.panel { display: none; }
.panel.is-active { display: block; animation: rise .5s var(--ease); }
.feat { border-top: 1px solid var(--ink); }
.feat li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.feat li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; background: var(--yellow); }

/* ================= Company ================= */
.company { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.statement { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.5; color: var(--ink); }
.statement.small { font-size: 16.5px; font-weight: 400; color: var(--ink-3); margin-top: 18px; }
.principles { margin-top: 44px; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.principles i { font: 500 13px var(--font-display); font-style: normal; color: var(--ink-4); padding-top: 3px; }
.principles h3 { font-size: 16px; }
.principles p { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.spec { margin: 0; border: 1px solid var(--ink); background: var(--paper); box-shadow: 10px 10px 0 var(--yellow); padding: 6px 24px; }
.spec div { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.spec dd { margin: 0; font-size: 15px; font-weight: 500; }
.standards { margin-top: clamp(56px, 7vw, 96px); }
.standards-title { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.std-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.std { padding: 20px 18px 18px; border-left: 1px solid var(--line); }
.std:first-child { border-left: 0; padding-left: 0; }
.std b { display: block; font: 500 13.5px var(--font-display); white-space: nowrap; }
.std span { display: block; margin-top: 6px; font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ================= FAQ ================= */
.faq { border-top: 1px solid var(--ink); }
.q { border-bottom: 1px solid var(--line); }
.q summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 30px; gap: 16px; align-items: center; padding: 22px 0; }
.q summary::-webkit-details-marker { display: none; }
.q summary i { font: 500 12px var(--font-display); font-style: normal; color: var(--ink-4); }
.q summary span { font: 500 16px var(--font-display); letter-spacing: -0.01em; transition: color .2s; }
.q summary:hover span { color: var(--blue); }
.q summary b { position: relative; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; transition: transform .4s var(--ease), background .3s; }
.q summary b::before, .q summary b::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: background .3s; }
.q summary b::after { transform: translate(-50%, -50%) rotate(90deg); }
.q[open] summary b { transform: rotate(45deg); background: var(--ink); }
.q[open] summary b::before, .q[open] summary b::after { background: var(--paper); }
.q p { padding: 0 0 26px 72px; font-size: 15.5px; color: var(--ink-3); max-width: 72ch; }

/* ================= Contact ================= */
.sec-contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.libs-text { font-size: clamp(21px, 2.5vw, 32px); font-weight: 500; line-height: 1.75; letter-spacing: -0.01em; }
.lib {
  display: inline-block; vertical-align: baseline; font: inherit; color: var(--blue); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); padding: 0 6px; margin: 0 2px; min-width: 5ch; outline: none; border-radius: 0;
  transition: border-color .2s, background .2s;
}
.lib::placeholder { color: var(--ink-4); opacity: 1; }
.lib:focus { border-bottom-color: var(--blue); background: var(--blue-soft); }
.lib.invalid { border-bottom-color: var(--err); }
select.lib { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f1115' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 6px center; }
select.lib option { font-family: var(--font-body); font-size: 16px; color: var(--ink); background: var(--paper); }
textarea.lib { display: block; width: 100%; margin: 8px 0 0; resize: none; min-height: 1.75em; line-height: 1.6; overflow: hidden; }
.libs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.form-status { font-size: 14px; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-note { margin-top: 20px; font: 500 11px var(--font-mono); color: var(--ink-4); letter-spacing: .02em; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.direct { border-top: 1px solid var(--ink); }
.direct-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.direct-item span { display: block; font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.direct-item a, .direct-item b { display: block; margin-top: 6px; font-size: 17px; font-weight: 500; }
.direct-item a:hover { color: var(--blue); }

/* ================= Footer ================= */
.foot { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-mark { font: 700 clamp(56px, 13.5vw, 196px) / .95 var(--font-display); letter-spacing: -0.045em; white-space: nowrap; }
.foot-mark span { color: var(--yellow); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(32px, 5vw, 64px); padding-top: 36px; border-top: 1px solid rgba(243, 241, 236, .18); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font: 500 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 241, 236, .5); margin-bottom: 8px; }
.foot-col a, .foot-col span { font-size: 14.5px; color: rgba(243, 241, 236, .82); }
.foot-col a:hover { color: var(--yellow); }
.foot-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(243, 241, 236, .18); font: 500 12px var(--font-mono); color: rgba(243, 241, 236, .55); }
.to-top:hover { color: var(--yellow); }

/* ================= Reveal ================= */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .case { grid-template-columns: 1fr; }
  .case-media { position: relative; top: auto; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .row { grid-template-columns: 44px minmax(0, 1fr) 32px; grid-template-areas: "num main arrow" "num desc arrow" "num tags arrow"; row-gap: 12px; }
  .row-num { grid-area: num; }
  .row-main { grid-area: main; }
  .row-desc { grid-area: desc; }
  .row-tags { grid-area: tags; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
  .row-arrow { grid-area: arrow; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .tl-line, .tl-dot { display: none; }
  .why { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .panels { width: 100%; }
  .company, .contact { grid-template-columns: 1fr; }
  .spec { box-shadow: 8px 8px 0 var(--yellow); }
  .std-grid { grid-template-columns: repeat(3, 1fr); }
  .std:nth-child(4) { border-left: 0; padding-left: 0; }
  .std:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(4) { border-left: 0; padding-left: 0; }
  .fact:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .top { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu { display: none; }
  .top-actions .btn { display: none; }
  .burger { display: flex; }
  .preview { display: none; }
}
@media (max-width: 640px) {
  :root { --top-h: 60px; }
  .hero { padding-top: 36px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 18px 14px 16px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(3), .fact:nth-child(4) { border-left-width: 1px; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .fact b { font-size: 16px; white-space: normal; }
  .timeline { grid-template-columns: 1fr; }
  .std-grid { grid-template-columns: repeat(2, 1fr); }
  .std:nth-child(odd) { border-left: 0; padding-left: 0; }
  .std:nth-child(3), .std:nth-child(5) { border-left: 0; }
  .std:nth-child(4) { border-left: 1px solid var(--line); padding-left: 18px; }
  .std:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .why-item { padding-left: 44px; }
  .q summary { grid-template-columns: 40px 1fr 28px; }
  .q p { padding-left: 56px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .libs-text { line-height: 1.9; }
  .libs-foot .btn { width: 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .xh { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv, .hero-copy > * { opacity: 1; transform: none; }
  .chip, .iphone-front, .iphone-back { animation: none; }
  html { scroll-behavior: auto; }
}

/* Ukrainian copy runs longer */
html[lang="uk"] .h-display { font-size: clamp(28px, 3.5vw, 48px); }
html[lang="uk"] .sec-title .h-2 { max-width: 26ch; }
html[lang="uk"] .fact b { font-size: 17px; }
.lib-measure { position: absolute; visibility: hidden; white-space: pre; pointer-events: none; font: inherit; letter-spacing: inherit; left: 0; top: 0; }
.libs-text { position: relative; }
.xh { --x: -9999px; --y: -9999px; }

/* ================= Half-screen / narrow desktop ================= */
@media (max-width: 1180px) {
  .menu { gap: 14px; }
  .menu a i { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 620px; width: 100%; }
}
@media (max-width: 1080px) {
  .top-actions .btn { display: none; }
}
@media (max-width: 640px) {
  .facts .fact:nth-child(4) { border-left: 1px solid var(--line); padding-left: 14px; }
  .facts .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .xh-label { display: none; }
}

@media (max-width: 640px) {
  .iphone { padding: 6px; border-radius: 34px; }
  .iphone-screen { border-radius: 28px; }
  .chip { font-size: 9.5px; padding: 6px 9px; gap: 6px; box-shadow: 3px 3px 0 var(--ink); }
  .chip-b { top: 50%; }
  .case-phones .iphone.sm { padding: 4px; border-radius: 22px; }
  .case-phones .iphone.sm .iphone-screen { border-radius: 18px; }
  .case-facts div { grid-template-columns: 1fr; gap: 2px; }
}
