html[data-theme="dark"] {
  --bg: #06090e;
  --surface: #0c1118;
  --surface-2: #121923;
  --ink: #f4f6f8;
  --muted: #9aa4b2;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #34d399;
  --accent-fill: #10b981;
  --on-accent: #032217;
  --beam-a: rgba(16, 185, 129, 0.14);
  --beam-b: rgba(16, 185, 129, 0.03);
  --nav-bg: rgba(6, 9, 14, 0.84);
  --shadow-elev: 0 32px 80px rgba(0, 0, 0, 0.62);
}

html[data-theme="light"] {
  --bg: #f4f5f6;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --ink: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.22);
  --accent: #059669;
  --accent-fill: #059669;
  --on-accent: #ffffff;
  --beam-a: rgba(5, 150, 105, 0.09);
  --beam-b: rgba(5, 150, 105, 0.02);
  --nav-bg: rgba(244, 245, 246, 0.90);
  --shadow-elev: 0 24px 60px rgba(15, 23, 42, 0.10);
}

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Raycast-inspired Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-link img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.theme-btn:hover { border-color: var(--border-strong); }
.theme-btn:active { transform: scale(0.95); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
  transition: transform 160ms var(--ease-out), filter 160ms var(--ease-out);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.lg { padding: 15px 28px; font-size: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 15px;
  transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-secondary:active { transform: scale(0.97); }

/* Diagonal Keyway Hero Section */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-beam {
  position: absolute;
  inset: -120px auto auto 18%;
  width: 780px;
  height: 780px;
  background: linear-gradient(135deg, var(--beam-a) 0%, var(--beam-b) 55%, transparent 72%);
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
}
.hero-sub {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 48ch;
}
.hero-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-meta code { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }

/* Daylight-inspired Corner Video Card */
.film-pin {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 420px;
  text-align: left;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.film-pin:hover { border-color: var(--accent); transform: translateY(-2px); }
.film-pin:active { transform: scale(0.98); }
.film-thumb-wrap {
  position: relative;
  width: 132px;
  height: 74px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}
.film-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 14, 0.35);
}
.play-tri {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Interactive Live Guard Demo Card */
.sim-shell {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elev);
  overflow: hidden;
}
.sim-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}
.sim-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  background: rgba(52, 211, 153, 0.14);
  color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.sim-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sim-hint { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.sim-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: left;
  transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.sim-app:hover { border-color: var(--accent); }
.sim-app:active { transform: scale(0.98); }
.sim-app-left { display: flex; align-items: center; gap: 10px; }
.app-glyph {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.sim-state { font-size: 12px; font-weight: 700; color: var(--accent); }
.sim-state.open { color: #f59e0b; }

.sim-prompt {
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.sim-prompt-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.sim-prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: transform 140ms var(--ease-out);
}
.mini-btn:active { transform: scale(0.96); }
.mini-btn.accent { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }

/* Sections & Asymmetric Rhythm */
.section { padding: 92px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 66ch; margin-bottom: 40px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-desc { margin: 14px 0 0; color: var(--muted); font-size: 17px; }

.split-row {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
}
.split-row.reverse { grid-template-columns: 1.08fr 0.92fr; }
.frame-box {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-elev);
}
.frame-box img { width: 100%; height: auto; }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex-shrink: 0; }

/* Theme & Liquid Glass Blur Inspector */
.glass-lab {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.theme-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.pill-tab {
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
}
.pill-tab.active { background: var(--accent-fill); color: var(--on-accent); border-color: transparent; }
.blur-control { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; font-size: 14px; }
.blur-control input[type="range"] { accent-color: var(--accent-fill); width: 100%; }

.glass-stage {
  position: relative;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.glass-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.glass-preview-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 17, 26, 0.68);
  color: #f8fafc;
  backdrop-filter: blur(18px);
}

/* Interactive Studio Block & Site Blocker Workbench */
.workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.wb-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.wb-panel h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 8px;
}
.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-top: 10px;
  font-size: 14px;
}
.toggle-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(52, 211, 153, 0.16);
  color: var(--accent);
}
.toggle-chip.off { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

/* Architecture Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.spec-table th { color: var(--muted); font-weight: 600; width: 32%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table code { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
}
.faq-a { padding: 0 22px 18px; color: var(--muted); font-size: 15px; display: none; }
.faq-item.open .faq-a { display: block; }

/* Final Offer & Footer */
.cta-band {
  padding: 84px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a:hover { color: var(--ink); }

/* Video Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 980px;
  background: #0c1118;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
}
.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  color: #f8fafc;
  font-weight: 700;
}
.modal-iframe-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Mobile Responsive */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero { padding: 44px 0 56px; }
  .hero-grid, .split-row, .split-row.reverse, .glass-lab, .workbench {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sim-apps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .nav-inner { height: 60px; }
  .nav-actions .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
