/* ==========================================================================
   Devbase — Native macOS 26 Promotional Site
   Design system modeled faithfully after Shoji craft aesthetics:
   warm paper canvas, subpixel hairline rings, kinetic typography,
   double-halo macOS framing, Liquid Glass chrome, and calm editorial rhythm.
   ========================================================================== */

:root {
  --color-paper: #fafaf8;
  --color-surface: #ffffff;
  --color-ink: #0b0b0f;
  --color-ink-2: #3f3f46;
  --color-ink-3: #71717a;
  --color-line: rgba(15, 23, 42, 0.08);
  --color-line-strong: rgba(15, 23, 42, 0.14);
  --color-accent: #0a7cff;
  --color-accent-soft: #e8f1ff;
  --color-green: #16a34a;
  --color-green-soft: rgba(22, 163, 74, 0.12);
  --color-amber: #d97706;
  --color-amber-soft: rgba(255, 149, 0, 0.16);

  --hero-backdrop: linear-gradient(180deg, #e2e2e5 0%, #ececee 45%, var(--color-paper) 100%);
  --split-wash: radial-gradient(120% 90% at 50% 0%, #eef3ff, #f7f1fb 55%, #ffffff);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-macos: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "Helvetica Neue", sans-serif;

  --ease-out-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-hairline: 0 0 0 1px var(--color-line);
  --shadow-card: 0 0 0 1px var(--color-line), 0 24px 60px -24px rgba(15, 23, 42, 0.16);
  --shadow-deep: 0 0 0 1px var(--color-line), 0 40px 90px -40px rgba(15, 23, 42, 0.28);

  --radius-pill: 999px;
  --radius-32: 32px;
  --radius-28: 28px;
  --radius-26: 26px;
  --radius-22: 22px;
  --radius-20: 20px;
  --radius-16: 16px;
  --radius-12: 12px;
  --radius-8: 8px;

  color-scheme: light;
}

.dark {
  --color-paper: #0a0a0d;
  --color-surface: #141418;
  --color-ink: #f5f5f7;
  --color-ink-2: #c7c7cc;
  --color-ink-3: #8e8e96;
  --color-line: rgba(255, 255, 255, 0.09);
  --color-line-strong: rgba(255, 255, 255, 0.16);
  --color-accent: #2b8fff;
  --color-accent-soft: rgba(43, 143, 255, 0.16);
  --color-green: #34d399;
  --color-green-soft: rgba(52, 211, 153, 0.16);
  --color-amber: #fbbf24;
  --color-amber-soft: rgba(251, 191, 36, 0.16);

  --hero-backdrop: linear-gradient(180deg, #16161b 0%, #111115 45%, var(--color-paper) 100%);
  --split-wash: radial-gradient(120% 90% at 50% 0%, #1a2140, #221a2c 55%, var(--color-surface));

  --shadow-card: 0 0 0 1px var(--color-line), 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --shadow-deep: 0 0 0 1px var(--color-line), 0 40px 90px -36px rgba(0, 0, 0, 0.72);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection {
  background: rgba(10, 124, 255, 0.22);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout & Typography ---------- */

.container-page {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container-page {
    padding-inline: 24px;
  }
}

.section {
  padding-block: clamp(72px, 10vh, 124px);
  scroll-margin-top: 64px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 5vh, 56px);
}

.display {
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin: 0 0 14px;
  display: inline-block;
}

.section-title {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
  text-wrap: balance;
}

.section-title .muted {
  color: var(--color-ink-3);
}

.section-lede {
  margin: 16px auto 0;
  max-width: 42rem;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  line-height: 1.62;
  color: var(--color-ink-2);
  text-wrap: balance;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Buttons, Badges, Keycaps ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 8px 0 22px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px -8px rgba(11, 11, 15, 0.5), inset 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.2s var(--ease-out-soft), box-shadow 0.2s var(--ease-out-soft), opacity 0.2s;
  white-space: nowrap;
}

.dark .btn-primary {
  box-shadow: 0 10px 34px -10px rgba(120, 160, 255, 0.45), inset 0 1px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(11, 11, 15, 0.58), inset 0 1px rgba(255, 255, 255, 0.2);
}

.dark .btn-primary:hover {
  box-shadow: 0 14px 38px -10px rgba(120, 160, 255, 0.6), inset 0 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-paper);
  color: var(--color-ink);
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-out-soft);
}

.btn-primary:hover .btn-dot {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 520;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-hairline);
  transition: background 0.2s var(--ease-out-soft), transform 0.2s var(--ease-out-soft);
  white-space: nowrap;
}

.btn-ghost:hover {
  background: var(--color-surface);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: scale(0.98);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-surface) 78%, transparent);
  box-shadow: var(--shadow-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ink-2);
  backdrop-filter: blur(12px);
}

.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--color-surface);
  color: var(--color-ink-2);
  font-family: var(--font-macos);
  font-size: 11.5px;
  font-weight: 560;
  line-height: 1;
  box-shadow: 0 0 0 1px var(--color-line), 0 2px 0 var(--color-line-strong);
  vertical-align: middle;
}

.dark .kbd {
  background: #26262b;
  color: var(--color-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 0 rgba(0, 0, 0, 0.65);
}

/* ---------- Fixed Glass Header ---------- */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 64px;
  transition: background-color 0.25s var(--ease-out-soft), box-shadow 0.25s var(--ease-out-soft), backdrop-filter 0.25s;
}

#nav[data-scrolled="true"] {
  background: color-mix(in srgb, var(--color-paper) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 var(--color-line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-version {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-ink-3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .nav-links {
    display: inline-flex;
  }
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 480;
  color: var(--color-ink-2);
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover {
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
  color: var(--color-ink);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-ink-2);
  transition: background 0.18s, color 0.18s;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  color: var(--color-ink);
}

.theme-icon-sun {
  display: none;
}

.dark .theme-icon-sun {
  display: block;
}

.dark .theme-icon-moon {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease-out-soft), opacity 0.18s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.nav-mobile-toggle {
  display: inline-flex;
}

@media (min-width: 768px) {
  .nav-mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  z-index: 58;
  padding: 12px;
  border-radius: var(--radius-22);
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: var(--shadow-deep);
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: nav-menu-in 0.2s var(--ease-out-soft);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 520;
  color: var(--color-ink);
}

.mobile-menu a:hover {
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
}

/* ---------- Hero Section ---------- */

.hero {
  position: relative;
  padding: 112px 0 clamp(56px, 8vh, 96px);
  background: var(--hero-backdrop);
  overflow: clip;
}

.hero-text {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero-badge-wrap {
  margin-bottom: 24px;
  animation: rise 0.8s var(--ease-out-soft) both;
}

.hero-title {
  font-size: clamp(38px, min(6.2vw, 9vh), 86px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hword {
  display: inline-block;
  animation: hword 0.9s var(--ease-out-soft) both;
  animation-delay: calc(var(--d, 0) * 65ms);
}

.hchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.86em;
  height: 0.86em;
  margin: 0 0.08em;
  border-radius: 0.24em;
  vertical-align: -0.1em;
  transform: rotate(var(--rot, -5deg));
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.28), inset 0 1px rgba(255, 255, 255, 0.45);
  animation: hchip 1s cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
  animation-delay: calc(var(--d, 2) * 70ms);
}

.hchip-db {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #ffffff;
}

.hchip-https {
  background: linear-gradient(145deg, #34d399, #059669);
  color: #ffffff;
}

.hchip svg {
  width: 54%;
  height: 54%;
}

.hero-lede {
  margin: 22px auto 0;
  max-width: 37rem;
  font-size: clamp(16px, 1.45vw, 18.5px);
  line-height: 1.62;
  color: var(--color-ink-2);
  text-wrap: balance;
  animation: rise 0.8s var(--ease-out-soft) 0.22s both;
}

.hero-lede code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  color: var(--color-ink);
}

.hero-cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: rise 0.8s var(--ease-out-soft) 0.34s both;
}

.hero-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--color-ink-3);
  animation: rise 0.8s var(--ease-out-soft) 0.44s both;
}

.hero-meta .sep {
  opacity: 0.45;
}

/* ---------- Interactive Double-Halo macOS 26 Demo Frame ---------- */

.demo-stage-wrap {
  position: relative;
  max-width: 1060px;
  margin: clamp(40px, 6vh, 64px) auto 0;
  animation: rise-demo 1.1s var(--ease-out-soft) 0.52s both;
}

.ambient-spill {
  position: absolute;
  inset: -44px -32px -36px;
  z-index: 0;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.95;
  background:
    radial-gradient(40% 48% at 22% 30%, rgba(120, 164, 255, 0.34), transparent 72%),
    radial-gradient(38% 45% at 78% 28%, rgba(255, 170, 205, 0.3), transparent 72%),
    radial-gradient(45% 42% at 52% 82%, rgba(255, 206, 150, 0.28), transparent 75%);
}

.dark .ambient-spill {
  opacity: 0.7;
}

.demo-frame {
  position: relative;
  z-index: 1;
  border-radius: clamp(12px, 1.6vw, 22px);
  overflow: hidden;
  font-family: var(--font-macos);
  background:
    radial-gradient(62% 70% at 14% 18%, rgba(132, 176, 255, 0.55), transparent 70%),
    radial-gradient(56% 62% at 88% 22%, rgba(248, 178, 212, 0.55), transparent 70%),
    radial-gradient(60% 60% at 56% 92%, rgba(255, 212, 168, 0.6), transparent 72%),
    linear-gradient(135deg, #cfdcff 0%, #f4d9ea 52%, #ffe6cc 100%);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 0 0 10px rgba(255, 255, 255, 0.55),
    0 0 0 11px color-mix(in srgb, var(--color-accent) 22%, transparent),
    0 40px 90px -24px color-mix(in srgb, var(--color-accent) 40%, rgba(30, 41, 90, 0.4));
}

.dark .demo-frame {
  background:
    radial-gradient(62% 70% at 14% 18%, rgba(56, 98, 214, 0.45), transparent 70%),
    radial-gradient(56% 62% at 88% 22%, rgba(140, 62, 128, 0.4), transparent 70%),
    radial-gradient(60% 60% at 56% 92%, rgba(164, 96, 56, 0.35), transparent 72%),
    linear-gradient(135deg, #141a33 0%, #24162c 52%, #2a1c16 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 10px rgba(255, 255, 255, 0.05),
    0 0 0 11px color-mix(in srgb, var(--color-accent) 30%, transparent),
    0 40px 90px -24px rgba(0, 0, 0, 0.85);
}

/* Simulated macOS Top Menu Bar */

.macos-menubar {
  position: relative;
  z-index: 20;
  height: 28px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 520;
  color: rgba(15, 23, 42, 0.88);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.08);
  user-select: none;
}

.dark .macos-menubar {
  color: rgba(245, 245, 247, 0.92);
  background: rgba(20, 20, 26, 0.56);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mb-left,
.mb-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mb-appname {
  font-weight: 680;
}

.mb-menu-item {
  opacity: 0.82;
  display: none;
}

@media (min-width: 640px) {
  .mb-menu-item {
    display: inline;
  }
}

.mb-devbase-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(10, 124, 255, 0.14);
  color: var(--color-accent);
  transition: background 0.16s, transform 0.16s;
}

.mb-devbase-trigger:hover,
.mb-devbase-trigger[aria-expanded="true"] {
  background: var(--color-accent);
  color: #ffffff;
}

.mb-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.mb-devbase-trigger[aria-expanded="true"] .mb-status-dot,
.mb-devbase-trigger:hover .mb-status-dot {
  background: #ffffff;
  box-shadow: none;
}

.mb-clock {
  opacity: 0.85;
  display: none;
}

@media (min-width: 520px) {
  .mb-clock {
    display: inline;
  }
}

/* Liquid Glass Menu Bar Popover */

.mb-popover {
  position: absolute;
  top: 34px;
  right: 12px;
  z-index: 35;
  width: min(324px, calc(100% - 24px));
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.14), inset 0 1px rgba(255, 255, 255, 0.65);
  color: var(--color-ink);
  display: none;
  animation: nav-menu-in 0.2s var(--ease-out-soft);
}

.dark .mb-popover {
  background: rgba(28, 28, 34, 0.84);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 0 0.5px rgba(255, 255, 255, 0.16), inset 0 1px rgba(255, 255, 255, 0.1);
}

.mb-popover.open {
  display: block;
}

.mb-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--color-line);
}

.mb-pop-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.mb-pop-title img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.mb-pop-stopall {
  font-size: 11.5px;
  font-weight: 560;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 7%, transparent);
  color: var(--color-ink-2);
  transition: background 0.15s, color 0.15s;
}

.mb-pop-stopall:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.dark .mb-pop-stopall:hover {
  color: #f87171;
}

.mb-pop-section {
  padding: 9px 2px;
  border-bottom: 1px solid var(--color-line);
}

.mb-pop-label {
  font-size: 10.5px;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-3);
  margin: 0 4px 6px;
}

.mb-pop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 12.5px;
}

.mb-pop-row:hover {
  background: color-mix(in srgb, var(--color-ink) 4%, transparent);
}

.mb-pop-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mb-pop-row-name {
  font-weight: 560;
  line-height: 1.25;
}

.mb-pop-row-sub {
  font-size: 11px;
  color: var(--color-ink-3);
  font-family: var(--font-mono);
}

.mb-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  gap: 6px;
}

.mb-pop-foot button {
  font-size: 11.5px;
  font-weight: 520;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--color-ink-2);
}

.mb-pop-foot button:hover {
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  color: var(--color-ink);
}

/* Simulated macOS 26 Application Window */

.demo-desktop-pad {
  padding: clamp(10px, 2.2vw, 24px);
}

.appwin {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 500px;
  border-radius: var(--radius-12);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 28px 64px -16px rgba(15, 23, 42, 0.34), 0 0 0 0.5px rgba(15, 23, 42, 0.16);
}

.dark .appwin {
  background: #16161b;
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.72), 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}

@media (min-width: 780px) {
  .appwin {
    grid-template-columns: 214px minmax(0, 1fr);
    min-height: 530px;
  }
}

/* Liquid Glass Sidebar */

.app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 12px 10px 10px;
  background: rgba(246, 247, 250, 0.78);
  backdrop-filter: blur(28px) saturate(1.7);
  -webkit-backdrop-filter: blur(28px) saturate(1.7);
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 780px) {
  .app-sidebar {
    border-bottom: 0;
    border-right: 1px solid var(--color-line);
  }
}

.dark .app-sidebar {
  background: rgba(26, 26, 33, 0.82);
}

.app-traffic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 14px;
}

.traffic-lights {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tl-r { background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.tl-y { background: #febc2e; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.tl-g { background: #28c840; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }

.app-sidebar-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 560;
  color: var(--color-ink-3);
  padding: 2px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
}

.sidebar-nav-groups {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

@media (min-width: 780px) {
  .sidebar-nav-groups {
    flex-direction: column;
    flex: 1;
  }
}

.sidebar-group-label {
  display: none;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  padding: 10px 10px 4px;
}

@media (min-width: 780px) {
  .sidebar-group-label {
    display: block;
  }
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 520;
  color: var(--color-ink-2);
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.sidebar-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar-btn svg {
  width: 15px;
  height: 15px;
  opacity: 0.78;
  flex-shrink: 0;
}

.sidebar-btn:hover {
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
  color: var(--color-ink);
}

.sidebar-btn[aria-selected="true"] {
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--color-line);
}

.dark .sidebar-btn[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-btn[aria-selected="true"] svg {
  color: var(--color-accent);
  opacity: 1;
}

.sidebar-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.sidebar-footer {
  display: none;
  margin-top: auto;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--color-line);
  font-size: 11px;
  color: var(--color-ink-3);
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 780px) {
  .sidebar-footer {
    display: flex;
  }
}

.mcp-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.mcp-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}

/* Workspace Plane (Opaque) */

.app-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--color-surface);
}

.dark .app-workspace {
  background: #141418;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-line);
  flex-wrap: wrap;
}

.app-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-topbar-title h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 560;
}

.status-chip-green {
  background: var(--color-green-soft);
  color: var(--color-green);
}

.status-chip-blue {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.status-chip-muted {
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  color: var(--color-ink-3);
}

.status-chip-amber {
  background: var(--color-amber-soft);
  color: var(--color-amber);
}

.app-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ws-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 540;
  color: var(--color-ink-2);
  background: color-mix(in srgb, var(--color-ink) 4%, transparent);
  box-shadow: var(--shadow-hairline);
  transition: background 0.15s, color 0.15s;
}

.ws-tool-btn:hover,
.ws-tool-btn[aria-pressed="true"] {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.app-pane-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

.app-view {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.app-view.active {
  display: flex;
}

/* Rows & Cards inside Simulated App */

.ws-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-ink) 2.2%, var(--color-surface));
  box-shadow: var(--shadow-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dark .ws-card {
  background: rgba(255, 255, 255, 0.03);
}

.ws-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ws-row-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ws-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 620;
  flex-wrap: wrap;
}

.ws-row-sub {
  font-size: 11.5px;
  color: var(--color-ink-3);
  font-family: var(--font-mono);
}

.ws-row-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ws-mini-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 540;
  background: var(--color-surface);
  color: var(--color-ink-2);
  box-shadow: var(--shadow-hairline);
  transition: background 0.15s, color 0.15s;
}

.dark .ws-mini-btn {
  background: rgba(255, 255, 255, 0.06);
}

.ws-mini-btn:hover {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* macOS Native Toggle Switch */

.mac-switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 16%, transparent);
  transition: background 0.2s var(--ease-out-soft);
  flex-shrink: 0;
  padding: 0;
}

.mac-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease-out-soft);
}

.mac-switch[aria-checked="true"] {
  background: #22c55e;
}

.mac-switch[aria-checked="true"]::after {
  transform: translateX(14px);
}

.mac-switch-blue[aria-checked="true"] {
  background: var(--color-accent);
}

/* HTTPS Tunnel QR Popover inside Demo */

.qr-panel {
  display: none;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: var(--shadow-hairline);
  align-items: center;
  gap: 12px;
}

.dark .qr-panel {
  background: rgba(255, 255, 255, 0.04);
}

.qr-panel.open {
  display: flex;
}

.qr-svg-box {
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 8px;
  background: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* Services Filter Bar */

.svc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.svc-search {
  flex: 1 1 160px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 0;
  background: color-mix(in srgb, var(--color-ink) 4%, transparent);
  box-shadow: var(--shadow-hairline);
  font-size: 12px;
  color: var(--color-ink);
}

.svc-pill {
  height: 26px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 540;
  color: var(--color-ink-2);
  background: color-mix(in srgb, var(--color-ink) 4%, transparent);
}

.svc-pill.active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 32%, transparent);
}

/* Live Log Drawer inside Simulated App */

.log-drawer {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--color-line);
  background: #101116;
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-size: 11px;
  max-height: 152px;
}

.log-drawer.open {
  display: flex;
}

.log-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #161820;
  font-size: 11px;
}

.log-drawer-tabs {
  display: inline-flex;
  gap: 4px;
}

.log-tab {
  padding: 2px 7px;
  border-radius: 5px;
  color: #a1a1aa;
  font-size: 10.5px;
}

.log-tab.active {
  background: rgba(43, 143, 255, 0.22);
  color: #60a5fa;
}

.log-drawer-body {
  padding: 8px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.5;
}

.log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-ts { color: #71717a; margin-right: 6px; }
.log-src { color: #60a5fa; margin-right: 6px; }
.log-ok { color: #4ade80; }

/* Command Palette Overlay inside Simulated App */

.cmdk-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 52px;
  background: rgba(10, 10, 15, 0.28);
  backdrop-filter: blur(4px);
}

.cmdk-backdrop.open {
  display: flex;
}

.cmdk-dialog {
  width: min(420px, calc(100% - 24px));
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(32px) saturate(1.7);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--color-line-strong);
  animation: nav-menu-in 0.16s var(--ease-out-soft);
}

.cmdk-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-line);
}

.cmdk-input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 13.5px;
  outline: none;
}

.cmdk-list {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 230px;
  overflow-y: auto;
}

.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 520;
  color: var(--color-ink);
  text-align: left;
}

.cmdk-item:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.cmdk-item-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-ink-3);
}

.demo-toast {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 25;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 12px;
  font-weight: 540;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease-out-soft);
}

.demo-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.demo-hint-bar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--color-ink-3);
}

.demo-hint-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- Section 2: 4 Core Pillars (#features) ---------- */

.tab-bar-scroll {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 36px;
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 5%, transparent);
  box-shadow: var(--shadow-hairline);
}

.seg-tab {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 540;
  color: var(--color-ink-2);
  white-space: nowrap;
  transition: background 0.2s var(--ease-out-soft), color 0.2s, box-shadow 0.2s;
}

.seg-tab:hover {
  color: var(--color-ink);
}

.seg-tab[aria-selected="true"] {
  background: var(--color-surface);
  color: var(--color-accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-accent) 35%, transparent),
    0 8px 22px -10px color-mix(in srgb, var(--color-accent) 45%, transparent);
}

.pillar-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.pillar-panel.active {
  display: grid;
}

@media (min-width: 860px) {
  .pillar-panel {
    grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
    gap: 48px;
  }
}

.pillar-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 660;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.pillar-copy p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--color-ink-2);
}

.pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pillar-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--color-ink-2);
}

.bullet-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-visual {
  padding: 18px;
  border-radius: var(--radius-28);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.pillar-stage {
  border-radius: var(--radius-16);
  padding: 20px;
  background: color-mix(in srgb, var(--color-ink) 3%, transparent);
  box-shadow: var(--shadow-hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dark .pillar-stage {
  background: rgba(255, 255, 255, 0.035);
}

.stage-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
}

.stage-tile {
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--color-surface);
  box-shadow: var(--shadow-hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dark .stage-tile {
  background: rgba(255, 255, 255, 0.04);
}

.stage-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 620;
}

.stage-tile-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-ink-3);
}

.stage-code-bar {
  padding: 11px 14px;
  border-radius: 12px;
  background: #111218;
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.stage-code-bar .hl-blue { color: #60a5fa; }
.stage-code-bar .hl-green { color: #4ade80; }
.stage-code-bar .hl-muted { color: #71717a; }

/* ---------- Section 3: AI-Native CLI & MCP (#cli) ---------- */

.cli-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 920px) {
  .cli-grid {
    grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
    gap: 48px;
  }
}

.safety-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.safety-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 540;
  background: var(--color-surface);
  color: var(--color-ink-2);
  box-shadow: var(--shadow-hairline);
}

.safety-pill svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.terminal-card {
  border-radius: var(--radius-22);
  overflow: hidden;
  background: #111217;
  color: #f4f4f5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 36px 80px -28px rgba(15, 23, 42, 0.45);
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #191a22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.terminal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.term-tab {
  padding: 5px 11px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a1a1aa;
  transition: background 0.15s, color 0.15s;
}

.term-tab:hover {
  color: #f4f4f5;
}

.term-tab[aria-selected="true"] {
  background: rgba(43, 143, 255, 0.2);
  color: #60a5fa;
  box-shadow: inset 0 0 0 1px rgba(43, 143, 255, 0.35);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 540;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.copy-btn.copied {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
}

.terminal-pane {
  display: none;
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  color: #e4e4e7;
}

.terminal-pane.active {
  display: block;
}

.tk-cmd { color: #60a5fa; }
.tk-key { color: #93c5fd; }
.tk-str { color: #86efac; }
.tk-num { color: #fcd34d; }
.tk-cmt { color: #71717a; }

.mcp-tools-strip {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #15161d;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a1a1aa;
}

.mcp-tool-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
}

/* ---------- Section 4: Native Craft Grid (#craft — Shoji 6-card #fits) ---------- */

.fits-grid {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

@media (min-width: 1000px) {
  .fits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.fit-card {
  padding: 14px 14px 24px;
  border-radius: var(--radius-26);
  background: var(--color-surface);
  box-shadow: var(--shadow-hairline);
  transition: transform 0.25s var(--ease-out-soft), box-shadow 0.25s var(--ease-out-soft);
}

.fit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.fit-art {
  height: 124px;
  border-radius: var(--radius-16);
  background: color-mix(in srgb, var(--color-ink) 4%, transparent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.dark .fit-art {
  background: rgba(255, 255, 255, 0.045);
}

.fit-card h3 {
  margin: 0 8px 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.fit-card p {
  margin: 0 8px;
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--color-ink-2);
}

/* Mini pure-CSS art primitives inside .fit-art */

.art-bars {
  width: 100%;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.art-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-ink-3);
}

.art-bar-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 8%, transparent);
  overflow: hidden;
}

.art-bar-fill-accent {
  width: 12%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.art-bar-fill-muted {
  width: 92%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 24%, transparent);
}

.art-glass-layers {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 170px;
  height: 76px;
}

.art-glass-bg {
  position: absolute;
  inset: 6px 14px;
  border-radius: 14px;
  background: linear-gradient(125deg, #60a5fa, #f472b6, #fbbf24);
  opacity: 0.7;
  filter: blur(8px);
}

.art-glass-pane {
  position: relative;
  width: 152px;
  height: 62px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 48px 1fr;
  overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.art-glass-side {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dark .art-glass-side {
  background: rgba(30, 30, 40, 0.65);
}

.art-glass-side span {
  height: 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-ink) 25%, transparent);
}

.art-glass-side span:first-child {
  background: var(--color-accent);
}

.art-glass-main {
  background: var(--color-surface);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.art-glass-main span {
  height: 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-ink) 12%, transparent);
}

.art-route-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: var(--shadow-hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-ink);
}

.art-shield-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-hairline);
  font-size: 12.5px;
  font-weight: 560;
}

.art-shield-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--color-green-soft);
  color: var(--color-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Section 5: Comparison Matrix (#compare) ---------- */

.compare-card {
  border-radius: var(--radius-28);
  background: var(--color-surface);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.compare-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  border-top: 1px solid var(--color-line);
  vertical-align: middle;
}

.compare-table thead th {
  border-top: 0;
  padding-block: 20px;
  font-size: 14px;
  font-weight: 620;
  color: var(--color-ink-2);
}

.compare-table th.col-devbase,
.compare-table td.col-devbase {
  background: color-mix(in srgb, var(--color-accent) 5%, transparent);
}

.compare-table thead th.col-devbase {
  color: var(--color-accent);
  font-weight: 700;
}

.compare-feature {
  font-weight: 540;
  color: var(--color-ink);
  width: 30%;
}

.verdict-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-ink-2);
}

.verdict-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verdict-yes {
  background: var(--color-accent);
  color: #ffffff;
}

.verdict-some {
  background: rgba(255, 149, 0, 0.16);
  color: #e07800;
}

.dark .verdict-some {
  color: #fbbf24;
}

.verdict-no {
  background: color-mix(in srgb, var(--color-ink) 7%, transparent);
  color: var(--color-ink-3);
}

/* ---------- Section 6: Open Source & Download Split Card (#get) ---------- */

.split-card {
  max-width: 1024px;
  margin-inline: auto;
  border-radius: var(--radius-32);
  background: var(--color-surface);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .split-card {
    grid-template-columns: 1.05fr 1fr;
  }
}

.split-left {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
}

.split-left h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06;
  margin: 0 0 14px;
}

.split-left p {
  margin: 0 0 24px;
  color: var(--color-ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.split-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px 16px;
}

@media (min-width: 520px) {
  .split-bullets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--color-ink-2);
}

.split-trust {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ink-3);
}

.split-right {
  padding: clamp(28px, 4vw, 44px);
  background: var(--split-wash);
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

@media (min-width: 820px) {
  .split-right {
    border-top: 0;
    border-left: 1px solid var(--color-line);
  }
}

.split-app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 18px 38px -12px rgba(58, 72, 224, 0.42);
}

.split-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
}

.split-switch-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 560;
  color: var(--color-ink-2);
}

.split-switch-btn[aria-selected="true"] {
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.split-mode {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.split-mode.active {
  display: flex;
}

.split-price {
  font-size: 36px;
  font-weight: 660;
  letter-spacing: -0.04em;
  line-height: 1;
}

.split-sublink {
  font-size: 13.5px;
  color: var(--color-ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-line-strong);
}

.split-sublink:hover {
  color: var(--color-accent);
}

.install-snippet {
  width: 100%;
  margin: 0;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  background: #111217;
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ---------- Section 7: Sticky-Left Grouped FAQ (#faq) ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    gap: 64px;
  }
}

.faq-sticky {
  text-align: left;
}

@media (min-width: 1024px) {
  .faq-sticky {
    position: sticky;
    top: 104px;
  }
}

.faq-sticky p {
  margin: 16px 0 22px;
  color: var(--color-ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.faq-groups {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-group {
  border-radius: var(--radius-28);
  background: var(--color-surface);
  box-shadow: var(--shadow-hairline);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .faq-group {
    padding: 22px;
  }
}

.faq-group-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin: 2px 6px 6px;
}

.faq-item {
  border-radius: var(--radius-20);
  background: color-mix(in srgb, var(--color-ink) 4%, transparent);
  transition: background 0.18s;
}

.dark .faq-item {
  background: rgba(255, 255, 255, 0.045);
}

.faq-item:hover {
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
}

.dark .faq-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 610;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-out-soft), background 0.2s;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-ink-2);
}

.faq-answer code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--color-ink) 7%, transparent);
  color: var(--color-ink);
}

/* ---------- Section 8: Final Heroic CTA (#download) ---------- */

.closing-cta {
  text-align: center;
  padding-block: clamp(88px, 14vh, 148px);
  position: relative;
  overflow: clip;
}

.cta-icon-halo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-icon-halo {
    width: 138px;
    height: 138px;
  }
}

.cta-icon-halo::before {
  content: "";
  position: absolute;
  inset: -44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(10, 124, 255, 0.28), transparent 62%),
    radial-gradient(circle at 70% 65%, rgba(110, 123, 255, 0.24), transparent 65%);
  filter: blur(26px);
  z-index: 0;
}

.cta-icon-halo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  box-shadow: 0 28px 60px -16px rgba(42, 31, 158, 0.45);
}

.closing-title {
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  max-width: 820px;
  margin: 0 auto 18px;
}

.closing-lede {
  margin: 0 auto 30px;
  max-width: 34rem;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--color-ink-2);
}

/* ---------- Footer (4-column Shoji layout) ---------- */

footer {
  border-top: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-ink) 1.5%, transparent);
  padding: 56px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-blurb {
  margin: 12px 0 20px;
  max-width: 300px;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--color-ink-3);
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink) 6%, transparent);
  box-shadow: var(--shadow-hairline);
}

.theme-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 540;
  color: var(--color-ink-3);
  transition: background 0.18s, color 0.18s;
}

.theme-pill-btn[aria-pressed="true"] {
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 620;
  color: var(--color-ink);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--color-ink-3);
  transition: color 0.16s;
}

.footer-col a:hover {
  color: var(--color-ink);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--color-ink-3);
}

/* ---------- Keyframes & Reduced Motion ---------- */

@keyframes hword {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(0.25em);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes hchip {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.3) rotate(-24deg);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) rotate(var(--rot, -5deg));
  }
}

@keyframes rise {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes rise-demo {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nav-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
