:root {
  --bg: #0a0f16;
  --bg-2: #0e1520;
  --surface: #141c28;
  --surface-2: #1a2332;
  --line: rgba(160, 185, 215, .14);
  --line-strong: rgba(160, 185, 215, .24);
  --ink: #edf2f8;
  --muted: #9eabbd;
  --brand: #f7993b;
  --brand-2: #ffb766;
  --teal: #5fd3be;
  --sky: #6cc6e8;
  --good: #4ade80;
  --radius: 18px;
  --max: 1280px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(60rem 40rem at 8% -10%, rgba(247, 153, 59, .13), transparent 60%),
    radial-gradient(50rem 36rem at 100% 12%, rgba(95, 211, 190, .08), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40rem);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; color: #1a1206; background: var(--brand); border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 1.12rem; }
.btn-primary { color: #1c1106; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 12px 30px rgba(247, 153, 59, .28); }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(247, 153, 59, .38); }
.btn-ghost { color: var(--ink); background: rgba(20, 28, 40, .7); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(247, 153, 59, .55); background: rgba(247, 153, 59, .08); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 22, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; width: min(100% - 48px, var(--max)); min-height: 88px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: grid; gap: 2px; }
.brand-name { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand-name em { color: var(--brand); font-style: normal; }
.brand-tag { color: var(--teal); font-family: "DM Mono", monospace; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a { color: #c6d1df; font-weight: 600; text-decoration: none; transition: color .15s ease; }
.site-nav > a:hover { color: var(--brand); }
.nav-actions { display: inline-flex; gap: 12px; margin-left: 6px; }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 30px;
  width: min(100% - 48px, 1440px); margin: 0 auto; padding: 110px 0 90px;
}
.hero h1 { display: grid; font-size: clamp(2.8rem, 5.6vw, 5.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 span {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 35%, var(--teal) 70%, var(--brand) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: headline-shine 9s ease-in-out infinite alternate;
}
.hero h1 span:nth-child(2) { animation-delay: -3s; }
.hero h1 span:nth-child(3) { animation-delay: -6s; }
@keyframes headline-shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lead { max-width: 620px; margin-top: 30px; color: #c3cedc; font-size: 1.2rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-points { display: grid; gap: 14px; max-width: 620px; margin: 44px 0 0; padding: 0; list-style: none; }
.hero-points li { display: grid; gap: 4px; padding: 18px 24px; color: var(--muted); background: linear-gradient(90deg, rgba(26, 35, 50, .85), rgba(26, 35, 50, .2)); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; }
.hero-points strong { color: var(--ink); font-size: 1.08rem; }

.hero-visual { display: grid; gap: 26px; justify-items: end; min-width: 0; }
.theme-switch { display: grid; gap: 12px; justify-items: center; }
.theme-switch-label { color: #c3cedc; font-weight: 600; }
.theme-switch-buttons { display: inline-flex; gap: 4px; padding: 6px; background: rgba(20, 28, 40, .8); border: 1px solid var(--line-strong); border-radius: 999px; }
.theme-switch button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 20px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { color: var(--ink); background: #2a3647; box-shadow: inset 0 0 0 1px var(--line-strong); }

.hero-stage { position: relative; width: 100%; padding-bottom: 70px; perspective: 1800px; }
.hero-window { margin-top: 20px; transform: rotateY(-13deg) rotateX(5deg) rotateZ(-1deg); transform-origin: 60% 50%; box-shadow: 0 50px 90px rgba(0, 0, 0, .55), 0 0 0 1px var(--line-strong); }
.hero-window .mock-row { padding-block: 20px; }

/* Preview surface (mock app) */
.preview-surface {
  --m-bg: #1d2330; --m-panel: #232a38; --m-head: #171c27; --m-line: rgba(255, 255, 255, .08);
  --m-ink: #eef2f7; --m-muted: #8f9bb0; --m-track: #2d3546;
  color: var(--m-ink); background: var(--m-bg);
  transition: background .35s ease, color .35s ease;
}
.preview-surface[data-theme="light"] {
  --m-bg: #f4f6fa; --m-panel: #ffffff; --m-head: #e9edf3; --m-line: rgba(15, 30, 55, .1);
  --m-ink: #182233; --m-muted: #5f6c80; --m-track: #dfe5ee;
}
.mock-topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--m-head); border-bottom: 1px solid var(--m-line); }
.mock-company { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.mock-company-logo { display: inline-grid; place-items: center; width: 30px; height: 30px; color: #1c1106; background: linear-gradient(135deg, var(--brand-2), var(--brand)); border-radius: 8px; font-size: .9rem; }
.mock-clock { display: grid; justify-items: end; line-height: 1.2; }
.mock-clock small { color: var(--m-muted); font-size: .72rem; }
.mock-clock strong { font-size: 1rem; }
.mock-listbar { display: flex; align-items: center; gap: 16px; padding: 16px 22px; }
.mock-wordmark { margin-right: auto; font-weight: 800; letter-spacing: -.01em; }
.mock-wordmark em { color: var(--brand); font-style: italic; font-size: .82em; }
.mock-count { color: var(--m-muted); font-size: .84rem; }
.mock-add { padding: 7px 14px; color: #062019; background: var(--teal); border-radius: 8px; font-weight: 800; font-size: .82rem; }
.mock-table { margin: 0 22px; background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 12px; overflow: hidden; }
.mock-row { display: grid; grid-template-columns: 1.1fr .7fr 1.9fr .6fr .7fr .7fr; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--m-line); font-size: .86rem; }
.mock-row > span:not(:first-child):not(.meter) { text-align: center; }
.mock-head { border-top: 0; color: var(--m-muted); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.meter { position: relative; display: block; height: 22px; padding: 0 8px; background: var(--m-track); border-radius: 6px; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: var(--fill); background: linear-gradient(90deg, #159947, #8fd34f 35%, #f2d34a 60%, #f49035 82%, #d93636); opacity: .9; }
.meter b { position: relative; display: block; color: #fff; font: 500 .74rem/22px "DM Mono", monospace; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.bell { font-weight: 700; }
.bell::before { content: "\1F514"; margin-right: 4px; font-size: .8em; filter: grayscale(1); opacity: .5; }
.bell.is-on::before { filter: none; opacity: 1; }
.mock-status { display: flex; justify-content: flex-end; gap: 18px; padding: 14px 22px; color: var(--m-muted); font: .66rem "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.mock-status span { display: inline-flex; align-items: center; gap: 6px; }
.mock-status i { width: 7px; height: 7px; background: var(--good); border-radius: 50%; box-shadow: 0 0 8px var(--good); }

/* Guest pager overlay */
.pager {
  position: absolute; right: 3px; bottom: 0; width: 464px; max-width: calc(100% - 56px);
  display: block; isolation: isolate; filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .6));
  transform: rotate(-6deg);
}
.pager.is-buzzing { animation: pager-buzz .1s linear 32; }
.pager-sound-controls { display: grid; justify-self: end; justify-items: center; gap: 12px; width: 464px; max-width: calc(100% - 56px); margin-right: 3px; text-align: center; }
.pager > img { display: block; width: 100%; height: auto; }
.pager-display { position: absolute; left: 32.415%; top: 34.853%; width: 37.439%; height: 28.013%; }
.pager-display text { fill: #ffffff; font: 400 21px Arial, sans-serif; }
.pager-display { overflow: hidden; stroke: none; }
.pager-display.is-awaiting-message .pager-message-layout { visibility: hidden; }
.pager-display.is-scrolling text { font-size: 42px; }
.pager-ring {
  position: absolute; inset: 0; background-color: #42e6c1; mix-blend-mode: multiply; pointer-events: none;
  mask: url("/assets/images/cs8-alpha-ring.svg") center / 100% 100% no-repeat;
  animation: pager-ring-colors 10s linear infinite;
}
@keyframes pager-ring-colors {
  0%, 100% { background-color: #42e6c1; }
  25% { background-color: #60a5fa; }
  50% { background-color: #d88bff; }
  75% { background-color: #ffb347; }
}
@keyframes pager-buzz {
  0%, 100% { transform: rotate(-6deg); }
  25% { transform: rotate(-6deg) translate(2px, -1px); }
  75% { transform: rotate(-6deg) translate(-2px, 1px); }
}

/* Compatibility note */
.compat-note { width: min(100% - 48px, 1032px); margin: -20px auto 30px; padding: 22px 27.2px; color: #c3cedc; background: rgba(20, 28, 40, .75); border: 1px solid var(--line-strong); border-radius: 16px; font-size: 1.08rem; text-align: center; }
.compat-note strong { color: var(--ink); }

/* Sections */
.section { width: min(100% - 48px, var(--max)); margin: 0 auto; padding: 120px 0 40px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 48px; margin-bottom: 70px; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding-bottom: 6px; color: var(--teal); border-bottom: 2px solid currentColor; font: 500 .82rem "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 1.12rem; line-height: 1.75; }

.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; margin-bottom: 110px; }
.feature.is-reversed > :first-child { order: 2; }
.feature-copy h3 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); letter-spacing: -.025em; }
.feature-copy > p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.checks { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; color: #ccd6e2; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(95, 211, 190, .16); }

/* Window chrome */
.app-window { min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 34px 70px rgba(0, 0, 0, .45); overflow: hidden; }
.window-bar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 20px; background: linear-gradient(180deg, #223047, #1b2638); border-bottom: 1px solid var(--line); }
.dots { position: absolute; left: 20px; display: inline-flex; gap: 8px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.window-title { color: #c6d1df; font-weight: 600; letter-spacing: .02em; }
.window-body { padding: 28px; background: #171f2c; }

/* Shared mock controls */
.mock-form, .mock-kiosk { display: grid; gap: 18px; }
.mock-field { display: grid; gap: 8px; }
.mock-field label { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mock-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mock-input { display: flex; align-items: center; min-height: 46px; padding: 0 16px; background: #0f1520; border: 1px solid var(--line-strong); border-radius: 10px; }
.mock-input.mono { font-family: "DM Mono", monospace; }
.mock-select { justify-content: space-between; }
.mock-select::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); }
.mock-stepper { display: inline-flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 6px; background: #0f1520; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; }
.mock-stepper b { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--teal); background: rgba(95, 211, 190, .1); border-radius: 8px; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chips span { padding: 8px 14px; color: #c6d1df; background: #0f1520; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; font-weight: 600; }
.mock-chips .is-active { color: #1c1106; background: var(--brand); border-color: var(--brand); }
.mock-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.mock-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; }
.mock-btn.ghost { color: var(--ink); border: 1px solid var(--line-strong); }
.mock-btn.teal { color: #062019; background: var(--teal); }
.mock-btn.block { width: 100%; }

.mock-notify { position: relative; display: grid; gap: 16px; min-height: 360px; }
.mock-guest { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 18px; padding: 16px 18px; background: #0f1520; border: 1px solid var(--line-strong); border-radius: 12px; }
.mock-guest span:first-child { display: grid; }
.mock-guest small { color: var(--muted); }
.mock-guest .meter { --m-track: #2d3546; }
.mock-menu { display: grid; width: min(100%, 280px); justify-self: end; padding: 8px; background: #212b3b; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.mock-menu span { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: #d4dde8; font-weight: 600; }
.mock-menu .is-active { color: #fff; background: rgba(247, 153, 59, .16); box-shadow: inset 3px 0 0 var(--brand); }
.mock-menu .is-active svg { color: var(--brand); }
.mock-menu .is-danger { color: #ff8a8a; }
.mock-toast { position: absolute; left: 28px; bottom: 28px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #11331f; border: 1px solid rgba(74, 222, 128, .4); border-radius: 12px; box-shadow: 0 16px 34px rgba(0, 0, 0, .4); }
.mock-toast i { width: 10px; height: 10px; background: var(--good); border-radius: 50%; box-shadow: 0 0 10px var(--good); }
.mock-toast span { display: grid; line-height: 1.35; }
.mock-toast small { color: #a7d9b9; }

.mock-workflow { display: grid; gap: 26px; }
.mock-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.mock-steps li { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.mock-steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 52px; bottom: -12px; width: 2px; background: var(--line-strong); }
.mock-steps b { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; color: var(--muted); background: #0f1520; border: 2px solid var(--line-strong); border-radius: 50%; }
.mock-steps span { display: grid; }
.mock-steps small { color: var(--muted); }
.mock-steps .is-done b { color: #062019; background: var(--teal); border-color: var(--teal); }
.mock-steps .is-current b { color: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px rgba(247, 153, 59, .15); }
.mock-workflow-button { display: grid; justify-items: center; width: fit-content; padding: 12px 28px; color: #fff; background: #2563eb; border-radius: 10px; box-shadow: 0 10px 24px rgba(37, 99, 235, .35); }
.mock-workflow-button small { color: #c8d8ff; }

/* Devices */
.device-tablet { justify-self: center; width: min(100%, 470px); padding: 20px; background: #0b0d11; border: 1px solid #2b3240; border-radius: 34px; box-shadow: 0 34px 70px rgba(0, 0, 0, .5), inset 0 0 0 2px #1b1f27; }
.tablet-screen { padding: 30px; background: #171f2c; border-radius: 18px; }
.mock-kiosk h4 { font-size: 1.6rem; }
.mock-kiosk small { color: var(--muted); text-align: center; }
.device-tv { display: grid; justify-items: center; min-width: 0; }
.tv-screen { width: 100%; padding: 26px; background: #0f1520; border: 12px solid #07090c; border-radius: 16px; box-shadow: 0 34px 70px rgba(0, 0, 0, .5), 0 0 0 1px #2b3240; }
.tv-stand { width: 34%; height: 40px; background: linear-gradient(180deg, #1a1f28, #0b0d11); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.board-head { display: flex; justify-content: space-between; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.1rem; }
.board-head span:last-child { color: var(--muted); font-family: "DM Mono", monospace; }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.board-cols > div { display: grid; align-content: start; gap: 10px; }
.board-cols h5 { margin-bottom: 4px; color: var(--muted); font: 500 .78rem "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.board-item { display: flex; justify-content: space-between; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 1.12rem; font-weight: 700; }
.board-item b { color: var(--muted); font-family: "DM Mono", monospace; font-weight: 500; }
.board-item.is-ready { background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .4); }
.board-item.is-ready b { color: var(--good); }

/* Dashboard and reports */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis span { display: grid; gap: 4px; padding: 14px; background: #0f1520; border: 1px solid var(--line); border-radius: 12px; }
.kpis small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kpis strong { font-size: 1.6rem; letter-spacing: -.02em; }
.kpis .good { color: var(--good); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; margin-top: 22px; padding: 14px 14px 0; background: repeating-linear-gradient(180deg, transparent 0 41px, var(--line) 41px 42px); border-bottom: 1px solid var(--line-strong); }
.chart span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--brand-2), rgba(247, 153, 59, .35)); border-radius: 6px 6px 0 0; }
.chart-foot { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font: .74rem "DM Mono", monospace; }
.chart-foot .weather { color: var(--sky); }

.mock-reports { display: grid; gap: 12px; }
.report { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: #0f1520; border: 1px solid var(--line); border-radius: 12px; }
.report span:first-child { display: grid; }
.report small { color: var(--muted); }
.pill { padding: 5px 12px; color: var(--muted); background: rgba(158, 171, 189, .12); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.good { color: var(--good); background: rgba(74, 222, 128, .12); }
.report-run { display: flex; align-items: center; gap: 10px; padding-top: 8px; color: var(--muted); font-size: .9rem; }
.report-run i { width: 8px; height: 8px; background: var(--good); border-radius: 50%; }

.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mini-grid div { display: grid; gap: 6px; padding: 22px; color: var(--muted); background: rgba(20, 28, 40, .7); border: 1px solid var(--line); border-radius: 14px; }
.mini-grid strong { color: var(--ink); font-size: 1.05rem; }

/* Designer and code */
.mock-designer { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.mock-designer small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.palette, .canvas { display: grid; align-content: start; gap: 10px; }
.canvas { grid-template-columns: 1fr 1fr; padding: 16px; background: #0f1520; border: 1px dashed var(--line-strong); border-radius: 12px; }
.canvas small { grid-column: 1 / -1; }
.palette span { padding: 11px 14px; color: #c6d1df; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.slot { grid-column: 1 / -1; padding: 13px 14px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 600; }
.slot.half { grid-column: auto; }
.slot.is-dragging { color: var(--brand-2); border: 1px dashed var(--brand); background: rgba(247, 153, 59, .08); transform: rotate(-1.5deg); box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
.mock-code { padding: 0; }
.mock-code pre { margin: 0; padding: 28px; overflow-x: auto; color: #d6deea; font: .9rem/1.75 "DM Mono", monospace; }
.c-method { color: var(--teal); font-weight: 500; }
.c-var { color: var(--brand-2); }
.c-key { color: #8fc1ff; }
.c-str { color: #a5e3a0; }
.c-num { color: #f5b971; }

/* Features grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-grid article { padding: 30px; background: linear-gradient(180deg, rgba(26, 35, 50, .9), rgba(20, 28, 40, .6)); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.feature-grid article:hover { border-color: rgba(247, 153, 59, .45); transform: translateY(-3px); }
.feature-grid h4 { margin-bottom: 12px; font-size: 1.25rem; }
.feature-grid p { color: var(--muted); }

/* CTA */
.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px;
  width: min(100% - 48px, var(--max)); margin: 110px auto 120px; padding: 56px 60px;
  background: radial-gradient(40rem 20rem at 0% 0%, rgba(247, 153, 59, .2), transparent 70%), linear-gradient(135deg, #182234, #121a27);
  border: 1px solid rgba(247, 153, 59, .3); border-radius: 26px;
}
.cta h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -.03em; }
.cta p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.cta .hero-actions { margin-top: 0; }

/* Footer */
.site-footer { background: #070b10; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; width: min(100% - 48px, var(--max)); margin: 0 auto; padding: 64px 0 40px; }
.footer-brand img { width: 240px; margin-bottom: 18px; }
.footer-brand p { max-width: 420px; color: #c3cedc; }
.footer-brand p + p { margin-top: 10px; }
.muted { color: var(--muted) !important; }
.site-footer h3 { margin-bottom: 18px; color: var(--teal); font: 500 .82rem "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.site-footer nav { display: grid; gap: 10px; }
.site-footer nav a { width: fit-content; color: #c3cedc; text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); }
.footer-legal { width: min(100% - 48px, var(--max)); margin: 0 auto; padding: 22px 0 30px; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }

.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 40; display: grid; place-items: center; width: 52px; height: 52px; color: var(--ink); background: #1a2638; border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: 0 12px 26px rgba(0, 0, 0, .4); cursor: pointer; }
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }

/* Responsive */
@media (max-width: 1180px) {
  .site-nav { gap: 20px; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { justify-items: center; }
  .hero-stage { max-width: 860px; }
  .pager-sound-controls { margin-right: calc(max(0px, (100% - 860px) / 2) + 3px); }
}
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px; background: rgba(10, 15, 22, .97); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-actions { margin: 14px 0 0; }
  .nav-actions .btn { flex: 1; }
  .section-head, .feature, .cta { grid-template-columns: 1fr; }
  .section-head { gap: 20px; margin-bottom: 50px; }
  .feature { gap: 40px; margin-bottom: 90px; }
  .feature.is-reversed > :first-child { order: 0; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner { min-height: 74px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .62rem; }
  .hero { padding: 48px 0 60px; gap: 40px; }
  .hero-window { transform: none; }
  .mock-row { grid-template-columns: 1fr 1.5fr .6fr .7fr; }
  .mock-row > :nth-child(2), .mock-row > :nth-child(6) { display: none; }
  .mock-count, .mock-status span:not(:last-child) { display: none; }
  .pager { width: 210px; right: 24px; }
  .pager-sound-controls { width: 210px; margin-right: 24px; }
  .theme-switch button { padding: 8px 14px; }
  .section { padding-top: 80px; }
  .window-body, .tablet-screen { padding: 20px; }
  .mock-designer, .kpis, .mini-grid, .feature-grid, .footer-inner { grid-template-columns: 1fr 1fr; }
  .mock-designer, .feature-grid { grid-template-columns: 1fr; }
  .mock-toast { left: 20px; bottom: 20px; }
  .cta { padding: 36px 26px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
