/* Blinker microsite. Night theme: the product lives on dark roads. */

:root {
  --bg: #05070d;
  --surface: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .1);
  --text: #f4f5f8;
  --muted: #a7adbc;
  --accent: #ff8a00;
  --accent-2: #ffb000;
  --ink: #1b0e00;
  --radius: 20px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(48px, 8vw, 100px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { left: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { max-width: 40em; color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); text-wrap: pretty; }
.kicker { margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.small { color: var(--muted); font-size: 15px; }
.glow { color: var(--accent); text-shadow: 0 0 32px rgba(255, 138, 0, .55); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 16px; background: linear-gradient(180deg, #ffa22e, #ff7400); color: var(--ink); font: 700 17px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 12px 32px -10px rgba(255, 116, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -10px rgba(255, 116, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn svg { flex: none; width: 20px; height: 20px; }
.btn-ghost { background: rgba(255, 255, 255, .07); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }

/* Icons in rounded tiles */
.ic { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgba(255, 138, 0, .12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 138, 0, .18); }
.ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(5, 7, 13, .72); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.top-in { display: flex; align-items: center; gap: 12px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a, .lang { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover, .lang:hover { background: rgba(255, 255, 255, .07); color: var(--text); }

/* Hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(92svh, 900px); overflow: hidden; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 7, 13, .94) 0%, rgba(5, 7, 13, .72) 36%, rgba(5, 7, 13, 0) 68%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 13, 0) 28%); }
.hero-in { width: 100%; padding-top: 72px; padding-bottom: 120px; }
.hero-in > * { max-width: 620px; }
.hero h1 { margin: 22px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 138, 0, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 138, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 0, 0); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.note { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* Numbers */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { display: flex; flex-direction: column; padding: 30px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { color: var(--accent); font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: 15px; }

/* Sections */
.sec { padding: clamp(72px, 9vw, 112px) 0; }
.sec-head { max-width: 780px; margin-bottom: 52px; }
.sec-head h2 { margin-bottom: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* How it works */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.how h2 { margin-bottom: 18px; }
.how-fig { position: relative; margin: 0; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(0, 0, 0, .9); }
.how-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; max-width: 70%; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(5, 7, 13, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: 14px; font-weight: 600; line-height: 1.3; }
.tag i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.tag-led { top: 33%; right: 5%; }
.tag-led i { background: #fff; box-shadow: 0 0 12px #fff; }
.tag-screen { top: 79%; left: 5%; }
.tag-screen i { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.steps { display: grid; gap: 14px; margin-top: 36px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.steps p { margin-top: 4px; color: var(--muted); font-size: 16px; }

/* Pattern demo */
.sec-demo { background: radial-gradient(55% 55% at 28% 62%, rgba(255, 106, 0, .11), transparent 70%); }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.stage { --ph: 440px; display: grid; place-items: center; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.phone { --glow: rgba(255, 106, 0, .4); position: relative; width: calc(var(--ph) * .47); height: var(--ph); padding: calc(var(--ph) * .022); border-radius: calc(var(--ph) * .1); background: linear-gradient(150deg, #30333d, #0c0e13 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .13), 0 30px 60px -24px #000, 0 0 90px -12px var(--glow); will-change: transform; }
.phone canvas { width: 100%; height: 100%; border-radius: calc(var(--ph) * .08); background: #000; }
.cam { position: absolute; top: calc(var(--ph) * .045); left: 50%; width: calc(var(--ph) * .026); height: calc(var(--ph) * .026); border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #1c1e25; transform: translateX(-50%); }
.controls { display: grid; gap: 24px; }
.ctl { min-width: 0; margin: 0; padding: 0; border: 0; }
.ctl legend, .label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.ctl legend small { font-size: 13px; font-weight: 400; }
.ctl[disabled] { opacity: .4; }
.ctl-row { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.chips, .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .sw { position: relative; }
.chip input, .sw input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip span { display: inline-flex; padding: 9px 15px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .15s; }
.chip span:hover { background: rgba(255, 255, 255, .1); }
.chip input:checked + span { background: var(--accent); box-shadow: none; color: var(--ink); font-weight: 600; }
.ctl[disabled] .chip span { cursor: default; }
.sw .dot { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); cursor: pointer; transition: transform .15s; }
.sw .dot:hover { transform: scale(1.08); }
.sw input:checked + .dot { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }
.chip input:focus-visible + span, .sw input:focus-visible + .dot { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.label output { color: var(--text); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; margin: 4px 0 0; accent-color: var(--accent); }
.ctl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s; }
.card:hover { background: rgba(255, 138, 0, .05); box-shadow: inset 0 0 0 1px rgba(255, 138, 0, .32); }
.card h3 { margin: 20px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.uses { margin-top: 64px; text-align: center; }
.uses h3 { margin-bottom: 20px; font-size: 22px; }
.uses ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.uses li { padding: 11px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 500; }

/* Video and screenshots */
.sec-video { background: radial-gradient(50% 45% at 50% 60%, rgba(255, 106, 0, .1), transparent 70%); }
.video { max-width: 1040px; margin: 0 auto; overflow: hidden; border-radius: 26px; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line), 0 50px 120px -50px rgba(255, 106, 0, .45); }
.video video { width: 100%; height: 100%; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shots img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px #000; }

/* Safety and FAQ */
.callout { display: flex; gap: 18px; max-width: 840px; margin: 0 auto clamp(72px, 9vw, 104px); padding: 24px; border-radius: var(--radius); background: rgba(255, 176, 0, .07); box-shadow: inset 0 0 0 1px rgba(255, 176, 0, .28); }
.callout .ic { background: rgba(255, 176, 0, .14); color: var(--accent-2); }
.callout h3 { margin-bottom: 6px; }
.callout p { color: var(--muted); font-size: 16px; }
.faq { display: grid; gap: 12px; max-width: 840px; margin: 0 auto; }
.faq details { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq details[open] { background: rgba(255, 255, 255, .065); }
.faq summary { position: relative; padding: 20px 60px 20px 24px; font-size: 18px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; top: 50%; right: 26px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Closing call to action */
.final { padding: clamp(90px, 12vw, 150px) 0; background: radial-gradient(50% 65% at 50% 100%, rgba(255, 106, 0, .24), transparent 70%); text-align: center; }
.final img { margin: 0 auto 28px; border-radius: 24px; box-shadow: 0 24px 60px -12px rgba(255, 106, 0, .55); }
.final p { margin: 16px 0 34px; color: var(--muted); font-size: 19px; }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.maker { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: box-shadow .2s; }
.maker:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.maker img { border-radius: 12px; }
.maker strong { display: block; font-weight: 600; }
.maker span span { color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.legal { width: 100%; font-size: 13px; }

/* Fade in on scroll (only when the script runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .how, .demo { grid-template-columns: minmax(0, 1fr); }
  .how-fig { max-width: 480px; }
  .stage { --ph: min(76vw, 400px); }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -24px; padding: 4px 24px 12px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { flex: 0 0 62%; scroll-snap-align: center; }
}

@media (max-width: 760px) {
  /* On a phone the photo sits above the text, with the walker in view. */
  .hero { display: block; min-height: 0; }
  .hero-img { height: 66vh; object-position: 74% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 7, 13, .15) 0, rgba(5, 7, 13, 0) 30vh, var(--bg) 64vh); }
  .hero-in { padding-top: 50vh; padding-bottom: 56px; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 22px 0 22px 20px; }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .shots { margin-inline: -16px; padding-inline: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .top-in { gap: 4px; }
  .brand span { font-size: 18px; }
  .btn { width: 100%; }
  .btn-sm, .ctl-foot .btn { width: auto; }
  .steps li { grid-template-columns: 1fr; gap: 14px; }
  .callout { flex-direction: column; }
  .faq summary { padding-left: 20px; font-size: 17px; }
  .faq details p { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .sw .dot { transition: none; }
}
