/* skrm.app landing page. Dark, technical, calm. No external resources:
   Inter comes from /fonts (bundled OFL fonts), everything else is CSS. */

/* Inter 4, variable (weights and optical sizes), shared with the admin. */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/fonts/ui-inter-var-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --muted: #8d97ad;
  --dim: #5d6780;
  --brand: #1d2b4f;
  --accent: #aab9ff;
  --accent-2: #67e8f9;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #ff5a5f;
  --radius: 18px;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.nav.scrolled { background: rgba(5, 7, 13, 0.72); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 'Montserrat', var(--sans); letter-spacing: -0.01em; }
.brand .mark { width: 30px; height: auto; color: var(--text); }
.brand.small { font-size: 15px; }
.brand.small .mark { width: 22px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.btn.ghost { border: 1px solid var(--line-2); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); background: var(--surface-2); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner .btn, .nav-actions { margin-left: auto; }
  .nav-actions .btn { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.glow {
  position: absolute; inset: -30% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 70% 35%, rgba(103, 232, 249, 0.14), transparent 70%),
    radial-gradient(45% 55% at 30% 20%, rgba(124, 140, 255, 0.22), transparent 70%),
    radial-gradient(60% 60% at 50% 0%, rgba(29, 43, 79, 0.9), transparent 75%);
}
.glow.small { inset: auto -10% -40%; height: 600px; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 80%);
  opacity: 0.55;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  font: 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
h1 { margin-top: 22px; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; font-weight: 720; }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); }
.specs { display: flex; flex-wrap: wrap; gap: 0; margin: 32px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; width: fit-content; max-width: 100%; }
.specs div { padding: 12px 20px; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; }
.specs dt { font: 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.specs dd { margin: 6px 0 0; font-weight: 700; font-size: 15px; }

/* Screens drawn in CSS: a thin bezel, a soft reflection, a shadow on the "wall". */
.hero-visual { position: relative; aspect-ratio: 16 / 11; }
.display {
  position: absolute; padding: 10px; border-radius: 16px;
  background: linear-gradient(160deg, #1b2130, #0b0e16 60%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.display.landscape { left: 0; top: 4%; width: 86%; }
.display.portrait { right: 0; bottom: 0; width: 27%; }
.panel { position: relative; overflow: hidden; border-radius: 7px; background: #000; }
.landscape .panel { aspect-ratio: 16 / 9; }
.portrait .panel { aspect-ratio: 9 / 16; }
.panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.09), transparent 38%);
}
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.slides img.is-active { opacity: 1; }
.telemetry {
  position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(10, 15, 28, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 13px; white-space: nowrap;
}
.telemetry b { font-weight: 700; }
.telemetry span:last-child { grid-column: 2; font: 11px/1.4 var(--mono); color: var(--muted); }
.led { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.led.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.led.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.t1 { left: -4%; bottom: 20%; animation: float 7s ease-in-out infinite; }
.t2 { right: 12%; top: -3%; animation: float 8s ease-in-out -2s infinite; }
.t3 { left: 30%; bottom: -2%; animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .telemetry, .dot { animation: none; } }

.strip {
  list-style: none; margin: 64px 0 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
}
.strip li::before { content: '▸ '; color: var(--accent); }

@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { margin-inline: 8px; }
}
@media (max-width: 560px) {
  .telemetry { font-size: 11px; padding: 7px 10px; }
  .telemetry span:last-child { font-size: 10px; }
  .t1 { left: -2%; }
  .t2 { right: 4%; }
  .t3 { display: none; }
  .specs div { padding: 10px 14px; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow { font: 13px/1 var(--mono); color: var(--accent); letter-spacing: 0.04em; margin-bottom: 18px; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.026em; font-weight: 700; }
.sub { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 40em; }
@media (max-width: 760px) { .section { padding-top: 80px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
}
.step::before {
  content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6;
}
.num { font: 700 13px/1 var(--mono); color: var(--accent); }
.step h3 { margin-top: 18px; font-size: 22px; }
.step p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.step code { display: inline-block; margin-top: 20px; font: 12px/1 var(--mono); color: var(--dim); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 19px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.card.span-2 { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.card.danger { background: linear-gradient(160deg, rgba(255, 90, 95, 0.14), var(--surface) 55%); border-color: rgba(255, 90, 95, 0.28); }
.card.danger h3::before { content: '■ '; color: var(--danger); }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card.span-2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: auto; grid-template-columns: 1fr; }
}

.mock-zones { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--line-2); background: linear-gradient(135deg, #111a33, #0a0f1c); }
.z { position: absolute; border: 1.5px dashed rgba(170, 185, 255, 0.55); border-radius: 6px; background: rgba(170, 185, 255, 0.06); }
.z span { position: absolute; left: 6px; top: 5px; font: 9.5px/1.2 var(--mono); color: var(--accent); letter-spacing: 0.04em; }
.z-title { left: 6%; top: 12%; width: 44%; height: 26%; }
.z-body { left: 6%; top: 46%; width: 44%; height: 38%; }
.z-img { right: 6%; top: 12%; width: 38%; height: 72%; border-color: rgba(103, 232, 249, 0.55); background: rgba(103, 232, 249, 0.06); }
.z-img span { color: var(--accent-2); }

.mock-code { margin: 18px 0 0; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); font: 12px/1.7 var(--mono); color: var(--muted); overflow-x: auto; }
.mock-code .k { color: var(--accent); }
.mock-code .ok { color: var(--ok); }
.mock-code .warn { color: var(--warn); }

.mock-week { position: relative; margin-top: 22px; height: 58px; border-radius: 10px; border: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--line) calc(100% / 7 - 1px) calc(100% / 7)); }
.mock-week span { position: absolute; height: 12px; border-radius: 4px; }
.w-base { left: 2%; right: 2%; top: 8px; background: rgba(141, 151, 173, 0.35); }
.w-add { left: 15%; width: 42%; top: 23px; background: var(--accent); }
.w-takeover { left: 64%; width: 24%; top: 38px; background: var(--accent-2); }

.mock-flow { display: flex; align-items: center; gap: 8px; margin-top: 22px; font: 11px/1 var(--mono); }
.mock-flow span { padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.mock-flow span.ok { color: var(--ok); border-color: rgba(74, 222, 128, 0.4); }
.mock-flow i { flex: 1; min-width: 8px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--accent)); }

.mock-versions { display: flex; gap: 10px; justify-content: center; align-items: flex-end; }
.mock-versions span {
  display: grid; place-items: end start; padding: 10px; width: 30%; aspect-ratio: 4 / 3; border-radius: 10px;
  border: 1px solid var(--line); background: linear-gradient(135deg, #131a2c, #0b0f1a); font: 11px/1 var(--mono); color: var(--dim);
}
.mock-versions span.now { border-color: rgba(170, 185, 255, 0.5); color: var(--accent); background: linear-gradient(135deg, #1d2b4f, #101729); box-shadow: 0 10px 30px -10px rgba(124, 140, 255, 0.45); transform: translateY(-6px); }

.mock-status { list-style: none; margin: 0; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.mock-status li { display: grid; grid-template-columns: 8px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.mock-status li + li { border-top: 1px solid var(--line); }
.mock-status .led { grid-row: span 2; }
.mock-status em { grid-column: 2; font: normal 11px/1.5 var(--mono); color: var(--muted); }

/* Gallery */
.gallery { columns: 3 280px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.shot img { width: 100%; border-radius: 8px; }
.shot figcaption { padding: 10px 6px 4px; font: 12px/1 var(--mono); color: var(--dim); letter-spacing: 0.02em; }

/* Security */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.split .section-head { position: sticky; top: 100px; margin-bottom: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 20px 22px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.checks li::before {
  content: '✓'; grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(74, 222, 128, 0.1); color: var(--ok); font-weight: 700; font-size: 14px;
}
.checks b { font-size: 16px; }
.checks span { grid-column: 2; margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .section-head { position: static; }
}

/* Closing */
.closing { position: relative; overflow: hidden; margin-top: 128px; padding: 120px 0 128px; text-align: center; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.034em; }
.closing .sub { margin-inline: auto; }
.closing .wrap { position: relative; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Reveal on scroll (only when the script runs, so the page works without it). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Live clock on the hero dashboard ----------
   The dashboard screenshot has no clock or date; the page draws them live
   where the template's widget zones are (x/y/size as % of 1920×1080), in the
   same fonts, so the hero screen behaves like a real one. */
.panel { container-type: inline-size; }
.live-screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.panel.live-on .live-screen { opacity: 1; }
.ls-clock {
  position: absolute; left: 5%; top: 23.148%; width: 50%; height: 23.148%;
  display: flex; align-items: center; white-space: nowrap;
  font: 700 12.29cqw/1.15 'Montserrat', var(--sans); letter-spacing: -0.035em; color: #fff;
}
.ls-date {
  position: absolute; left: 5.833%; top: 46.667%; width: 46.875%; height: 5.556%;
  display: flex; align-items: center; white-space: nowrap;
  font: 700 1.667cqw/1.15 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #8e99ad;
}

/* ---------- Feature sections (widgets, video) ---------- */
.feature-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature-split .section-head { margin-bottom: 0; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 12px; height: 6px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }
.ticks b { color: var(--text); }
@media (max-width: 960px) {
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
}

/* Widget cards, styled like a customer's screen (ink, hairlines, one accent). */
.widget-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wcard {
  position: relative; padding: 24px 26px; border-radius: 22px; border: 1px solid #243049;
  background: linear-gradient(180deg, #131c2e, #0f1727); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.wcard::before { content: ''; position: absolute; left: 26px; top: 0; width: 40px; height: 3px; background: #ff5a1f; }
.wc-label { display: block; font: 700 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #8e99ad; margin-bottom: 16px; }
.wc-clock { grid-column: 1 / -1; }
.wc-time { font: 700 clamp(56px, 8vw, 96px)/1 'Montserrat', var(--sans); letter-spacing: -0.035em; }
.wc-date { margin-top: 10px; font: 700 13px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #8e99ad; }
.wx { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wc-now { display: flex; align-items: center; gap: 14px; font-size: 52px; }
.wc-now b { display: block; font: 700 44px/1 'Montserrat', var(--sans); }
.wc-now em { display: block; margin-top: 4px; font: 700 13px/1 var(--sans); font-style: normal; color: #ff5a1f; }
.wc-hours { list-style: none; margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid #243049; display: flex; justify-content: space-between; }
.wc-hours li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 26px; }
.wc-hours span { font: 700 11px/1 var(--sans); color: #8e99ad; }
.wc-hours b { font: 700 13px/1 'Montserrat', var(--sans); }
.wc-departures ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wc-departures li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; font: 700 14px/1.2 var(--sans); }
.wc-departures i { font-style: normal; text-align: center; padding: 3px 0; border-radius: 6px; background: #ff5a1f; color: #fff; font-size: 13px; }
.wc-departures span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-departures b { font-variant-numeric: tabular-nums; }
.wc-departures .canceled span { text-decoration: line-through; opacity: 0.55; }
.wc-departures .canceled b { color: #ff5a1f; }
@media (max-width: 560px) { .widget-stage { grid-template-columns: 1fr; } }

/* A screen playing real footage. */
.video-stage { position: relative; }
.screen {
  padding: 10px; border-radius: 16px; background: linear-gradient(160deg, #1b2130, #0b0e16 60%);
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.screen .panel { aspect-ratio: 16 / 9; }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.telemetry.tv { right: -12px; bottom: -22px; animation: float 8s ease-in-out -3s infinite; }

/* ---------- Integrations ---------- */
.integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.icard { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s; }
.icard:hover { border-color: var(--line-2); }
.ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(170, 185, 255, 0.1); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icard h3 { margin-top: 16px; font-size: 18px; }
.icard p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .integrations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .integrations { grid-template-columns: 1fr; } }

/* ---------- Phones ----------
   Nothing may stick out sideways (phone browsers then zoom the whole page
   out), and the desktop's decorations give way to one clear column. */
html, body { overflow-x: hidden; }
.hero, .section, .closing, .footer { overflow-x: clip; }
video { max-width: 100%; }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-inner { height: 60px; }
  .hero { padding: 28px 0 8px; }
  .chip { font-size: 11px; }
  h1 { margin-top: 18px; font-size: 40px; line-height: 1.04; }
  .lead { margin-top: 16px; font-size: 16px; }
  .specs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 24px; }
  .specs div { padding: 10px 12px; }
  .specs dt { font-size: 10px; }
  .specs dd { font-size: 14px; }
  .hero-inner { gap: 32px; }
  /* One large screen: the portrait screen and the status chips are for wide screens. */
  .hero-visual { aspect-ratio: auto; margin: 0; }
  .display.landscape { position: relative; top: 0; width: 100%; padding: 6px; border-radius: 12px; }
  .display.portrait, .hero .telemetry { display: none; }
  .strip { display: none; }
  .section { padding-top: 64px; }
  .section-head { margin-bottom: 28px; }
  h2 { font-size: 30px; }
  .sub { font-size: 16px; margin-top: 14px; }
  .eyebrow { margin-bottom: 12px; }
  .step, .card, .icard { padding: 22px; }
  .step h3 { margin-top: 12px; font-size: 20px; }
  .card.span-2 { gap: 18px; }
  .ticks { margin-top: 20px; gap: 10px; }
  .ticks li { font-size: 15px; }
  .feature-split { gap: 28px; }
  .widget-stage { gap: 12px; }
  .wcard { padding: 18px 20px; }
  .wc-time { font-size: 64px; }
  .telemetry.tv { display: none; }
  .gallery { columns: 1; }
  .split { gap: 24px; }
  .checks li { padding: 16px 18px; }
  .closing { margin-top: 72px; padding: 72px 0 80px; }
  .closing h2 { font-size: 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Language link ---------- */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; padding: 6px 4px; }
.lang:hover { color: var(--text); }

/* ---------- Administration: screenshots in browser frames ---------- */
.admin-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-shots .main { grid-column: 1 / -1; }
.browser {
  margin: 0; border-radius: 14px; overflow: hidden; background: #0b0f19;
  border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.browser img { display: block; width: 100%; height: auto; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.browser-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: var(--mono, ui-monospace, monospace); }
.admin-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; }
.admin-points li { display: flex; flex-direction: column; gap: 6px; }
.admin-points b { font-size: 16px; }
.admin-points span { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) {
  .admin-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .admin-shots { grid-template-columns: 1fr; gap: 14px; }
  .admin-points { grid-template-columns: 1fr; margin-top: 24px; }
  .nav-actions { gap: 8px; }
}
@media (max-width: 640px) {
  .browser-bar { padding: 8px 10px; }
  .browser-bar span { font-size: 11px; }
  .browser-bar i { width: 8px; height: 8px; }
}

/* ---------- More widgets, brand card ---------- */
.chip-title { margin-top: 28px; font: 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; color: var(--text); }
.mock-brand { display: flex; align-items: center; gap: 12px; padding: 22px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(135deg, #111a33, #0a0f1c); }
.b-type { font: 700 44px/1 'Montserrat', var(--sans); letter-spacing: -0.02em; margin-right: auto; color: var(--text); }
.b-sw { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12); }
.b-sw.s1 { background: #1d2b4f; }
.b-sw.s2 { background: #ff6a1a; }
.b-sw.s3 { background: #f4efe6; }
.b-sw.s4 { background: #67e8f9; }
body { font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }

/* ---------- Template studio, proof of play ---------- */
.studio-shot { max-width: 1100px; margin-inline: auto; }
.mock-bars {
  position: relative; display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 18px 16px 40px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3);
}
.mock-bars span { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--accent), rgba(124, 140, 255, 0.35)); }
.mock-bars span:nth-child(1) { height: 42%; } .mock-bars span:nth-child(2) { height: 55%; }
.mock-bars span:nth-child(3) { height: 48%; } .mock-bars span:nth-child(4) { height: 70%; }
.mock-bars span:nth-child(5) { height: 64%; } .mock-bars span:nth-child(6) { height: 30%; }
.mock-bars span:nth-child(7) { height: 26%; } .mock-bars span:nth-child(8) { height: 58%; }
.mock-bars span:nth-child(9) { height: 75%; } .mock-bars span:nth-child(10) { height: 68%; }
.mock-bars span:nth-child(11) { height: 82%; } .mock-bars span:nth-child(12) { height: 90%; }
.mock-bars span:nth-child(13) { height: 36%; } .mock-bars span:nth-child(14) { height: 100%; background: linear-gradient(180deg, var(--accent-2), rgba(103, 232, 249, 0.35)); }
.mock-bars em { position: absolute; left: 16px; right: 16px; bottom: 12px; font: normal 11px/1.4 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Design policy ----------
   One locked template (left) and three screens from three authors (right) that
   share the same layout, fonts and colours. */
.policy-board {
  display: grid; grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1.6fr); gap: 20px; align-items: center;
  padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%);
}
.policy-card { padding: 20px; border-radius: 16px; border: 1px solid rgba(170, 185, 255, 0.3); background: rgba(5, 7, 13, 0.6); }
.pc-head { font: 12px/1.3 var(--mono); color: var(--accent); letter-spacing: 0.03em; margin-bottom: 12px; }
.policy-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.policy-card li { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.policy-card li:first-child { border-top: 0; }
.policy-card b { font-size: 14px; }
.policy-card li > span { grid-column: 2; font: 11.5px/1.45 var(--mono); color: var(--muted); }
.lk { grid-row: span 2; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.policy-card .sw span { display: flex; gap: 6px; margin-top: 4px; }
.policy-card .sw i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14); }
.sw .c1 { background: #1d2b4f; } .sw .c2 { background: #ff6a1a; } .sw .c3 { background: #f4efe6; } .sw .c4 { background: #67e8f9; }
.policy-arrow { display: grid; justify-items: center; gap: 10px; }
.policy-arrow::before { content: ''; width: 64px; height: 2px; background: linear-gradient(90deg, rgba(170, 185, 255, 0.2), var(--accent)); }
.policy-arrow span { font: 11px/1.3 var(--mono); color: var(--dim); text-align: center; max-width: 9em; }
.policy-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ps { margin: 0; }
.ps-bar, .ps-body { background: #f4efe6; color: #1d2b4f; }
.ps-bar { display: flex; align-items: center; justify-content: space-between; padding: 7% 7% 0; border-radius: 10px 10px 0 0; border: 6px solid #141a28; border-bottom: 0; }
.ps-logo { width: 26%; height: 9px; border-radius: 3px; background: #1d2b4f; }
.ps-clock { font: 700 10px/1 'Montserrat', var(--sans); letter-spacing: -0.01em; }
.ps-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 6%; padding: 7%; aspect-ratio: 16 / 7.6; border-radius: 0 0 10px 10px; border: 6px solid #141a28; border-top: 0; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8); }
.ps-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ps-text em { font: normal 700 7.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #ff6a1a; }
.ps-text b { overflow-wrap: anywhere; font: 700 clamp(9px, 0.98vw, 13px)/1.14 'Montserrat', var(--sans); letter-spacing: -0.015em; }
.ps-text span { height: 4px; border-radius: 2px; background: rgba(29, 43, 79, 0.28); }
.ps-text span + span { width: 70%; }
.ps-img { border-radius: 6px; }
.ps-img.i1 { background: linear-gradient(150deg, #2a4a7a, #0f1d38 70%), #1d2b4f; }
.ps-img.i2 { background: radial-gradient(60% 50% at 70% 30%, #ffd08a, transparent 70%), linear-gradient(160deg, #ff6a1a, #b8400a); }
.ps-img.i3 { background: radial-gradient(35% 40% at 50% 40%, #f2c9a5, transparent 72%), linear-gradient(170deg, #67e8f9, #2b7f9b); }
.ps-from { margin-top: 10px; font: 11px/1.3 var(--mono); color: var(--muted); text-align: center; }
.policy-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.pcol { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pnum { font: 700 13px/1 var(--mono); color: var(--accent); }
.pcol h3 { margin-top: 14px; font-size: 21px; }
.pcol .ticks { margin-top: 18px; gap: 12px; }
.pcol .ticks li { font-size: 15px; }
@media (max-width: 1060px) {
  .policy-board { grid-template-columns: 1fr; }
  .policy-arrow { grid-auto-flow: column; align-items: center; justify-content: start; }
  .policy-arrow::before { width: 2px; height: 28px; background: linear-gradient(180deg, rgba(170, 185, 255, 0.2), var(--accent)); }
  .policy-arrow span { max-width: none; }
  .policy-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .policy-board { padding: 16px; gap: 16px; }
  .policy-screens { grid-template-columns: 1fr; gap: 18px; }
  .ps-clock { font-size: 12px; }
  .ps-text em { font-size: 9px; }
  .ps-text b { font-size: 16px; }
  .pcol { padding: 22px; }
}

/* ---------- Screens that look after themselves ---------- */
.ops-stage { display: grid; gap: 14px; }
.uptime { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.uptime p:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.uptime p:first-child span { font: 700 22px/1 'Montserrat', var(--sans); color: var(--ok); }
.ut-bars { display: flex; gap: 3px; margin-top: 14px; height: 30px; }
.ut-bars i { flex: 1; border-radius: 3px; background: rgba(74, 222, 128, 0.7); }
.ut-bars i.warn { background: var(--warn); }
.ut-bars i.night { background: rgba(141, 151, 173, 0.4); }
.ut-legend { margin-top: 10px; font: 11px/1.4 var(--mono); color: var(--dim); }
.remote { display: flex; flex-wrap: wrap; gap: 8px; }
.remote span { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; color: var(--text); }
.remote span::before { content: '▸ '; color: var(--accent-2); }

/* ---------- Polls and energy (bento) ---------- */
.mock-poll { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(135deg, #111a33, #0a0f1c); }
.mp-rows { display: grid; gap: 8px; min-width: 0; }
.mp-rows b { font-size: 15px; }
.mp-row { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 4px; font-size: 12.5px; }
.mp-row em { font-style: normal; color: var(--muted); }
.mp-row strong { grid-row: 1; grid-column: 2; color: #ffd166; font-variant-numeric: tabular-nums; }
.mp-row i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; }
.mp-row i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #ffd166; }
.mp-row i.w72::after { width: 72%; } .mp-row i.w19::after { width: 19%; } .mp-row i.w9::after { width: 9%; }
.mp-rows small { font: 11px/1 var(--mono); color: var(--dim); }
.mp-qr { position: relative; width: 84px; height: 84px; border-radius: 8px; background: #fff; }
.mp-qr i { position: absolute; width: 22px; height: 22px; border: 5px solid #05070d; border-radius: 3px; }
.mp-qr i:nth-child(1) { left: 8px; top: 8px; } .mp-qr i:nth-child(2) { right: 8px; top: 8px; } .mp-qr i:nth-child(3) { left: 8px; bottom: 8px; }
.mp-qr::after { content: ''; position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; background: repeating-linear-gradient(90deg, #05070d 0 4px, transparent 4px 8px), repeating-linear-gradient(0deg, #05070d 0 4px, transparent 4px 8px); opacity: 0.85; }
.mock-energy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.mock-energy div { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.mock-energy dt { font: 11px/1.3 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-energy dd { margin: 6px 0 0; font: 700 20px/1 'Montserrat', var(--sans); }
.mock-energy .saved dd { color: var(--ok); }
@media (max-width: 640px) { .mock-poll { grid-template-columns: 1fr; } .mp-qr { justify-self: start; } }
