/* PiPusher website. Brand colours follow the PiPusher admin panel (#2f6fed / #4c86f5, navy #0f1b2d). */

:root {
  --bg: #0b1220;
  --bg-alt: #0f1828;
  --surface: #131e31;
  --surface-2: #18253c;
  --border: #233149;
  --text: #e6ecf5;
  --muted: #94a3b8;
  --primary: #4c86f5;
  --primary-strong: #2f6fed;
  --accent: #22d3ee;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #7aa6ff; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(76, 134, 245, .12);
  color: #bcd2ff;
  padding: .12em .4em;
  border-radius: 6px;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Icons drawn with strokes */
.icon svg, .flow-icon svg, .platform-top svg, .dl-card svg, .btn svg, .weather svg, .offline-demo svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 15px/1 var(--font);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #5b91f7, var(--primary-strong));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47, 111, 237, .7), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 30px -8px rgba(47, 111, 237, .9), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: #36486a; background: rgba(255,255,255,.07); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(35, 49, 73, .6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 760px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 75% 35%, rgba(47, 111, 237, .28), transparent 70%),
    radial-gradient(500px 320px at 95% 10%, rgba(34, 211, 238, .16), transparent 70%),
    radial-gradient(500px 400px at 10% 0%, rgba(76, 134, 245, .12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(76, 134, 245, .1); border: 1px solid rgba(76, 134, 245, .3);
  color: #bcd2ff; font-size: 13px; font-weight: 600;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; margin: 22px 0 20px; letter-spacing: -.035em; }
.lead { font-size: 18.5px; color: #b6c2d4; max-width: 560px; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.hero-facts li { display: flex; flex-direction: column; font-size: 14px; }
.hero-facts strong { font-size: 15px; }
.hero-facts span { color: var(--muted); }

/* Display mock-up */
.hero-visual { position: relative; padding: 10px 10px 40px; }
.tv {
  position: relative;
  background: linear-gradient(180deg, #1d2638, #0d131f);
  border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px #2a3750, inset 0 1px 0 rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .6s ease;
}
.hero-visual:hover .tv { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: #060a12;
  display: grid; grid-template-columns: 2.3fr 1fr; grid-template-rows: 1fr auto; gap: 6px; padding: 6px;
}
.tv-stand { width: 32%; height: 34px; margin: -2px auto 0; background: linear-gradient(180deg, #1a2234, #0f1522); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); border-radius: 0 0 6px 6px; }
.zone { position: relative; border-radius: 6px; overflow: hidden; }
.zone-main { background: #0d1a33; }
.slide {
  position: absolute; inset: 0; padding: 7% 8%;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; animation: slide 12s infinite;
}
.slide small { font-size: clamp(9px, 1.1vw, 13px); text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.75); font-weight: 600; }
.slide b { font-size: clamp(20px, 3vw, 38px); line-height: 1.05; margin: 6px 0 10px; letter-spacing: -.02em; }
.slide span { font-size: clamp(10px, 1.2vw, 14px); color: rgba(255,255,255,.85); }
.slide .price { display: inline-block; align-self: flex-start; background: #fff; color: #9a3412; font-weight: 800; padding: 4px 10px; border-radius: 6px; font-size: clamp(11px, 1.4vw, 16px); }
/* Photos (CC0, Wikimedia Commons) under a tinted gradient so the text stays readable */
.slide { background-size: cover; background-position: center; }
.slide small, .slide b, .slide span { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.slide .price { text-shadow: none; }
.s1 { background-image: linear-gradient(90deg, rgba(23, 47, 110, .92) 0%, rgba(30, 58, 138, .6) 45%, rgba(30, 58, 138, .05) 80%), url("images/slide-cafe.jpg"); }
.s2 { background: linear-gradient(135deg, #c2410c, #9f1239); animation-delay: 4s; }
/* Split slide: text on a solid colour, photo on the right fading in under it */
.slide.split { flex-direction: row; align-items: stretch; padding: 0; }
.split .slide-text { position: relative; z-index: 1; flex: 0 0 50%; padding: 7% 0 7% 8%; display: flex; flex-direction: column; justify-content: center; }
.split .slide-text b { font-size: clamp(17px, 2.3vw, 30px); }
.split .slide-photo {
  flex: 1; margin-left: -14%;
  background: url("images/slide-special.jpg") 40% 55% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.s3 { background-image: linear-gradient(90deg, rgba(46, 16, 101, .85) 0%, rgba(76, 29, 149, .35) 50%, transparent 80%), url("images/slide-music.jpg"); background-position: 60% 70%; animation-delay: 8s; }
@keyframes slide {
  0% { opacity: 0; transform: scale(1.04); }
  4%, 30% { opacity: 1; transform: scale(1); }
  34%, 100% { opacity: 0; transform: scale(1); }
}
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.progress i { display: block; height: 100%; width: 0; background: rgba(255,255,255,.85); animation: progress 4s linear infinite; }
@keyframes progress { to { width: 100%; } }
.zone-side {
  background: linear-gradient(180deg, #111c30, #0b1424);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
}
.clock { font-size: clamp(20px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.date { font-size: clamp(9px, 1.1vw, 13px); color: var(--muted); text-transform: capitalize; }
.weather { display: flex; align-items: center; gap: 6px; margin-top: 10%; color: #fcd34d; font-weight: 700; font-size: clamp(12px, 1.6vw, 20px); }
.weather svg { width: clamp(18px, 2.4vw, 30px); height: auto; }
.zone-ticker { grid-column: 1 / -1; background: #f8fafc; color: #0f172a; height: clamp(18px, 2.6vw, 30px); display: flex; align-items: center; }
.ticker { display: flex; white-space: nowrap; animation: ticker 22s linear infinite; font-size: clamp(9px, 1.15vw, 13px); font-weight: 600; }
.ticker span { padding-right: 2em; }
@keyframes ticker { to { transform: translateX(-50%); } }

.status-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(19, 30, 49, .92); border: 1px solid var(--border);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
}
.status-chip { right: -6px; top: -6px; transition: border-color .3s, color .3s; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
.status-chip.offline { border-color: rgba(245, 158, 11, .5); color: #fde68a; }
.status-chip.offline .dot { background: var(--warn); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.strip-inner { display: flex; align-items: center; gap: 28px; padding-top: 20px; padding-bottom: 20px; }
.strip-inner > span { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; }
.strip li { color: #c7d2e2; font-weight: 600; font-size: 15px; }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: #33476b; transform: translateY(-2px); }
.feature h3 { font-size: 18px; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature em { color: var(--text); font-style: normal; font-weight: 600; }
.feature-wide {
  grid-column: span 2;
  background: radial-gradient(500px 220px at 100% 0%, rgba(34, 211, 238, .12), transparent 70%), linear-gradient(135deg, #16264a, var(--surface) 60%);
  border-color: #2b4170;
}
.feature-wide h3 { font-size: 22px; }
.feature-wide p { font-size: 16px; max-width: 560px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(76, 134, 245, .14); color: #8fb3ff; border: 1px solid rgba(76, 134, 245, .25);
}
.icon svg { width: 22px; height: 22px; }
.mini-features { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mini-features li {
  font-size: 14px; color: #c7d2e2; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
}
.mini-features li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* How it works */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 12px; }
.flow-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px 26px; display: flex; flex-direction: column;
}
.flow-num {
  position: absolute; top: -14px; left: 26px; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(180deg, #5b91f7, var(--primary-strong)); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center; box-shadow: 0 0 0 5px var(--bg-alt);
}
.flow-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); margin-bottom: 18px; }
.flow-icon svg { width: 28px; height: 28px; }
.flow-card h3 { font-size: 20px; margin-bottom: 8px; }
.flow-card p { color: var(--muted); font-size: 15px; flex: 1; }
.flow-card code { align-self: flex-start; margin-top: 18px; font-size: 12.5px; }
.flow-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--primary); }
.flow-arrow span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.flow-arrow svg { width: 60px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 5; animation: dash 1s linear infinite; }
.flow-arrow svg path { stroke-dasharray: none; }
@keyframes dash { to { stroke-dashoffset: -9; } }

.offline-demo {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 158, 11, .08), rgba(76, 134, 245, .06));
  border: 1px solid rgba(245, 158, 11, .25);
}
.offline-demo h3 { font-size: 19px; margin-bottom: 6px; }
.offline-demo p { color: var(--muted); max-width: 720px; }

/* Platforms */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
}
.platform-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; color: #8fb3ff; }
.platform-top svg { width: 34px; height: 34px; }
.tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #86efac; }
.tag-alt { background: rgba(34, 211, 238, .12); color: #67e8f9; }
.platform h3 { font-size: 19px; margin-bottom: 8px; }
.platform p { color: var(--muted); font-size: 15px; flex: 1; }
.checks { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.checks li { font-size: 14px; color: #c7d2e2; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* Download */
.dl-primary {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 40px; border-radius: 18px;
  background: radial-gradient(600px 260px at 100% 0%, rgba(76, 134, 245, .22), transparent 70%), linear-gradient(135deg, #172a50, var(--surface));
  border: 1px solid #2f4677;
  box-shadow: var(--shadow);
}
.dl-step { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.dl-step-2 { margin: 44px 0 16px; }
.dl-primary h3 { font-size: 26px; margin-bottom: 10px; }
.dl-primary p { color: #b6c2d4; max-width: 620px; }
.dl-btn { flex-shrink: 0; padding: 16px 26px; }
.dl-btn span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dl-btn small { font-weight: 500; font-size: 12.5px; opacity: .8; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .2s, background .2s, transform .2s;
}
.dl-card:hover { color: var(--text); border-color: var(--primary); background: var(--surface-2); transform: translateY(-2px); }
.dl-card svg { width: 30px; height: 30px; flex-shrink: 0; color: #8fb3ff; }
.dl-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-card strong { font-size: 15px; line-height: 1.3; }
.dl-card span { font-size: 13px; color: var(--muted); }
.dl-card em { font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-card:hover em { color: var(--primary); }
.dl-card-muted { background: transparent; border-style: dashed; }
.dl-card-muted svg { fill: currentColor; stroke: none; color: var(--muted); }

/* Tabs */
.tabs {
  display: flex; gap: 6px; padding: 6px; margin: 0 auto 28px; width: fit-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; overflow-x: auto;
}
.tabs button {
  font: 600 14.5px var(--font); color: var(--muted); background: none; border: 0;
  padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--primary-strong); color: #fff; }
.tab-panel {
  max-width: 820px; margin: 0 auto; padding: 32px 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.tab-panel > p { color: #c7d2e2; margin-bottom: 16px; }
.steps { margin: 0 0 4px; padding-left: 22px; display: grid; gap: 12px; color: #c7d2e2; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps + .code { margin-top: 16px; }
.code + .steps { margin-top: 18px; }
.note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14.5px; }
.code { position: relative; }
.code pre {
  margin: 0; padding: 20px 22px; padding-right: 80px; overflow-x: auto;
  background: #070c16; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #d6e0f0;
}
.code pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.code i { font-style: normal; color: #fbbf24; }
.copy {
  position: absolute; top: 10px; right: 10px;
  font: 600 12.5px var(--font); color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 11px; cursor: pointer; transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--text); border-color: #36486a; }
.copy.done { color: #86efac; border-color: rgba(34, 197, 94, .4); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq details[open] { border-color: #33476b; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; 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(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* CTA */
.cta { padding: 110px 0; position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 100%, rgba(47, 111, 237, .3), transparent 70%);
}
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 18px; }
.cta .hero-cta { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 16px; }
.footer p { color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .lead { margin: 0 auto; }
  .hero-cta, .hero-facts { justify-content: center; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-arrow { flex-direction: row; transform: none; }
  .flow-arrow svg { transform: rotate(90deg); width: 40px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: rgba(11, 18, 32, .97); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .container { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  .tv { transform: none; }
  .hero-visual:hover .tv { transform: none; }
  .status-chip { right: 0; top: -14px; font-size: 12px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .feature-grid, .platform-grid, .dl-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .offline-demo { flex-direction: column; align-items: flex-start; padding: 22px; }
  .dl-primary { flex-direction: column; align-items: stretch; padding: 26px 22px; }
  .dl-btn { justify-content: center; }
  .tabs { border-radius: 14px; }
  .tab-panel { padding: 22px 18px; }
  .code pre { font-size: 12.5px; padding: 46px 16px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .slide.s1 { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
