/* ==========================================================================
   Prism Monitor — Design System & Stylesheet
   Matches the atmospheric slate/petrol-blue & warm amber aesthetic of the app
   ========================================================================== */

:root {
  --bg-deep: #0c1722;
  --bg-mid: #122434;
  --bg-elevated: rgba(17, 34, 49, 0.72);
  --bg-card: rgba(16, 32, 46, 0.68);
  --bg-card-hover: rgba(22, 43, 61, 0.82);
  --border-subtle: rgba(140, 208, 251, 0.14);
  --border-strong: rgba(140, 208, 251, 0.32);

  --text-primary: #eef5fb;
  --text-secondary: #a8bfd2;
  --text-muted: #7690a6;

  --accent-ice: #8cd0fb;
  --accent-warm: #f2c15a;
  --accent-amber-glow: #c5884a;
  --accent-coral: #e86f68;
  --accent-mint: #7ee0b4;

  --font-sans: "Barlow", "Bahnschrift", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-card: 0 20px 50px rgba(4, 10, 17, 0.45);
  --container-max: 1180px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-ice);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: #bce4fd;
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.88em;
  background: rgba(140, 208, 251, 0.09);
  border: 1px solid rgba(140, 208, 251, 0.14);
  padding: 0.12em 0.42em;
  border-radius: 5px;
  color: #d6edfc;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.2rem;
  background: var(--accent-ice);
  color: #07131e;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Ambient Atmospheric Canvas */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 65% at 15% 10%, rgba(28, 63, 92, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 70% 55% at 88% 82%, rgba(197, 136, 74, 0.2) 0%, transparent 65%),
    linear-gradient(155deg, #0b1620 0%, #112333 48%, #162c3f 100%);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.36;
}

.glow-slate {
  width: 560px;
  height: 560px;
  top: -140px;
  right: 10%;
  background: #22547a;
}

.glow-amber {
  width: 440px;
  height: 440px;
  bottom: -140px;
  right: -80px;
  background: var(--accent-amber-glow);
  opacity: 0.24;
}

.grid-veil {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(140, 208, 251, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 208, 251, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ice);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 12px 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #8cd0fb 0%, #5bb6f2 100%);
  color: #061522;
  box-shadow: 0 8px 24px rgba(91, 182, 242, 0.28);
}

.btn-primary:hover {
  color: #04101b;
  background: linear-gradient(135deg, #a2dbff 0%, #6ec1f6 100%);
  box-shadow: 0 10px 28px rgba(140, 208, 251, 0.36);
}

.btn-secondary {
  background: rgba(140, 208, 251, 0.1);
  color: var(--text-primary);
  border-color: rgba(140, 208, 251, 0.28);
}

.btn-secondary:hover {
  color: #fff;
  background: rgba(140, 208, 251, 0.18);
  border-color: rgba(140, 208, 251, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 23, 34, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.96rem;
}

.brand:hover {
  color: #fff;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(140, 208, 251, 0.08);
  border: 1px solid rgba(140, 208, 251, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.mobile-menu {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 21, 31, 0.96);
  display: grid;
  gap: 12px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 0;
}

.mobile-menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Hero */
.hero {
  padding-top: 58px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(140, 208, 251, 0.08);
  border: 1px solid rgba(140, 208, 251, 0.24);
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbe7fb;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ice);
  box-shadow: 0 0 0 4px rgba(140, 208, 251, 0.2);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 4.7vw, 3.85rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.text-accent {
  color: var(--accent-ice);
}

.text-warm {
  color: var(--accent-warm);
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.13rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.trust-bar {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-bar svg {
  color: var(--accent-ice);
}

/* ==========================================================================
   Interactive Live Widget Preview Simulator
   ========================================================================== */
.simulator-frame {
  background: rgba(11, 22, 33, 0.78);
  border: 1px solid rgba(140, 208, 251, 0.2);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: 0 28px 70px rgba(3, 9, 16, 0.65);
}

.simulator-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
}

.sim-controls-group {
  display: inline-flex;
  background: rgba(7, 15, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.sim-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sim-btn:hover {
  color: var(--text-primary);
}

.sim-btn.is-active {
  background: rgba(140, 208, 251, 0.16);
  color: #eff7fd;
}

.sim-controls-group.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.sim-swatches {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--dot);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.is-active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(140, 208, 251, 0.35);
}

/* Simulated Atmospheric Wallpaper Stage */
.wallpaper-stage {
  --widget-accent: #8cd0fb;
  --widget-accent-soft: rgba(140, 208, 251, 0.38);
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 26px 40px;
  min-height: 416px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 88%, rgba(212, 146, 82, 0.42) 0%, transparent 48%),
    radial-gradient(circle at 18% 20%, rgba(26, 62, 92, 0.72) 0%, transparent 55%),
    linear-gradient(142deg, #13283c 0%, #23465d 48%, #34566a 72%, #685c51 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallpaper-stage[data-accent="amber"] {
  --widget-accent: #f2c15a;
  --widget-accent-soft: rgba(242, 193, 90, 0.36);
}

.wallpaper-stage[data-accent="mint"] {
  --widget-accent: #7ee0b4;
  --widget-accent-soft: rgba(126, 224, 180, 0.36);
}

.wallpaper-stage[data-accent="mono"] {
  --widget-accent: #e2e8f0;
  --widget-accent-soft: rgba(226, 232, 240, 0.36);
}

.prism-widget {
  width: 100%;
  max-width: 318px;
  border-radius: 16px;
  padding: 14px 16px;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.22s ease, backdrop-filter 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border: 1px solid transparent;
}

.wallpaper-stage[data-look="poster"][data-panel="45"] .prism-widget {
  background: rgba(10, 18, 28, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Poster View */
.widget-poster-view {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-shadow: 0 2px 10px rgba(5, 11, 18, 0.72);
}

.widget-poster-view[hidden] {
  display: none;
}

.poster-rail {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  color: rgba(235, 245, 255, 0.74);
  padding-top: 6px;
  user-select: none;
  flex-shrink: 0;
}

.poster-body {
  flex: 1;
  min-width: 0;
}

.poster-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.poster-hero-meta {
  min-width: 0;
  flex: 1;
}

.poster-label {
  font-size: 2rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.poster-subline {
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eaf4fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-rule {
  margin-top: 7px;
  height: 2px;
  width: 100%;
  max-width: 150px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.poster-big-wrap {
  display: flex;
  align-items: flex-start;
  line-height: 0.82;
  flex-shrink: 0;
}

.poster-big-num {
  font-size: 4.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--widget-accent) 18%, var(--widget-accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(6, 12, 18, 0.45));
}

.poster-big-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--widget-accent);
  margin-left: 2px;
  margin-top: 4px;
}

.poster-big-unit[hidden] {
  display: none;
}

.poster-section {
  margin-top: 12px;
}

.poster-section-head {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--widget-accent);
  margin-bottom: 4px;
}

.poster-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  line-height: 1.48;
}

.poster-row[hidden] {
  display: none;
}

.row-k {
  color: rgba(236, 245, 253, 0.86);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-v {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.row-v.is-warm {
  color: var(--accent-warm);
}

.row-v-bat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 38px;
}

.bat-text {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.bat-text.is-low {
  color: var(--accent-coral);
}

.bat-text.is-mid {
  color: var(--accent-warm);
}

.bat-track {
  width: 34px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.bat-fill {
  display: block;
  height: 100%;
  background: #ffffff;
}

.bat-fill.is-low {
  background: var(--accent-coral);
}

.bat-fill.is-mid {
  background: var(--accent-warm);
}

/* Card View */
.widget-card-view {
  background: rgba(11, 20, 30, 0.9);
  border: 1px solid rgba(140, 208, 251, 0.22);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 44px rgba(3, 8, 14, 0.55);
}

.widget-card-view[hidden] {
  display: none;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--widget-accent);
}

.card-pill {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

.card-tile-grid {
  display: grid;
  gap: 8px;
}

.card-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 8px 10px 6px;
}

.tile-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.tile-head span {
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.tile-head strong {
  color: #fff;
  font-size: 0.84rem;
}

.tile-head strong.is-warm {
  color: var(--accent-warm);
}

.sparkline {
  width: 100%;
  height: 24px;
  display: block;
}

.card-footer-rows {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 4px;
}

.card-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.card-mini-row span:first-child {
  color: var(--widget-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stage-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: rgba(226, 240, 252, 0.65);
}

/* ==========================================================================
   Screenshots Showcase
   ========================================================================== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.shot-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.shot-media {
  display: flex;
  justify-content: center;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(7, 14, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 18px;
}

.shot-media img {
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.shot-caption h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

.shot-caption p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ==========================================================================
   Bento Grid Features
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 208, 251, 0.11);
  border: 1px solid rgba(140, 208, 251, 0.25);
  color: var(--accent-ice);
  margin-bottom: 16px;
}

.bento-icon.is-warm {
  background: rgba(242, 193, 90, 0.12);
  border-color: rgba(242, 193, 90, 0.3);
  color: var(--accent-warm);
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 700;
}

.bento-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.bento-card strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Sensors Platform Matrix
   ========================================================================== */
.matrix-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.sensor-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.sensor-table th,
.sensor-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(140, 208, 251, 0.1);
  vertical-align: top;
}

.sensor-table thead th {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ice);
  background: rgba(9, 19, 28, 0.55);
}

.sensor-table tbody th {
  font-weight: 700;
  color: var(--text-primary);
  width: 190px;
}

.sensor-table tbody td {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.sensor-table tbody tr:last-child th,
.sensor-table tbody tr:last-child td {
  border-bottom: 0;
}

.sensor-table tbody tr:hover {
  background: rgba(140, 208, 251, 0.04);
}

/* ==========================================================================
   Install & Downloads Section
   ========================================================================== */
.install-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.os-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(7, 14, 22, 0.72);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 26px;
}

.os-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.os-tab:hover {
  color: var(--text-primary);
}

.os-tab.is-active {
  background: linear-gradient(135deg, rgba(140, 208, 251, 0.22), rgba(91, 182, 242, 0.14));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(140, 208, 251, 0.34);
}

.os-panel[hidden] {
  display: none;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.dl-card {
  background: rgba(10, 20, 30, 0.72);
  border: 1px solid rgba(140, 208, 251, 0.14);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.dl-card.is-recommended {
  border-color: rgba(140, 208, 251, 0.38);
  background: linear-gradient(180deg, rgba(20, 44, 65, 0.6) 0%, rgba(10, 20, 30, 0.76) 100%);
}

.dl-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dl-badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(140, 208, 251, 0.18);
  color: var(--accent-ice);
}

.dl-badge.is-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.dl-size {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dl-card h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.dl-filename {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-ice);
}

.dl-desc {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.sha-box {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(6, 13, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sha-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sha-box code {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.copy-btn {
  border: 1px solid rgba(140, 208, 251, 0.28);
  background: rgba(140, 208, 251, 0.08);
  color: var(--accent-ice);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(140, 208, 251, 0.18);
  color: #fff;
}

.copy-btn.is-copied {
  background: rgba(126, 224, 180, 0.18);
  border-color: rgba(126, 224, 180, 0.45);
  color: var(--accent-mint);
}

.setup-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.setup-steps strong {
  color: var(--text-primary);
}

/* Linux & Source Panels */
.linux-intro {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.linux-intro strong {
  color: var(--text-primary);
}

.step-block {
  margin-bottom: 24px;
}

.step-block:last-child {
  margin-bottom: 0;
}

.step-block h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.step-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.step-header h3 {
  margin: 0;
}

.distro-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.distro-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 24, 0.72);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.distro-pill:hover {
  color: var(--text-primary);
}

.distro-pill.is-active {
  background: rgba(140, 208, 251, 0.16);
  border-color: rgba(140, 208, 251, 0.4);
  color: #fff;
}

.code-box {
  position: relative;
  background: #071019;
  border: 1px solid rgba(140, 208, 251, 0.18);
  border-radius: 11px;
  padding: 14px 86px 14px 16px;
  overflow-x: auto;
}

.code-box pre {
  margin: 0;
}

.code-box code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.88rem;
  color: #dff0fc;
  line-height: 1.55;
}

.code-box .copy-btn {
  position: absolute;
  top: 11px;
  right: 11px;
}

.distro-note,
.step-note {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.linux-tips {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.linux-tips strong {
  color: var(--text-primary);
}

.source-grid {
  display: grid;
  gap: 22px;
}

/* ==========================================================================
   Privacy & Footer
   ========================================================================== */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.privacy-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--accent-ice);
}

.privacy-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 14, 22, 0.72);
  padding: 44px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-tagline {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.94rem;
  font-weight: 500;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links .coffee-link {
  color: var(--accent-warm);
}

.footer-bottom {
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

/* Reveal Animations (progressive enhancement) */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bento-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .screenshots-grid,
  .download-cards,
  .bento-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .install-shell {
    padding: 20px;
  }

  .wallpaper-stage {
    padding: 22px 16px 40px;
  }

  .stage-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
