:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-border: rgba(15, 23, 42, 0.08);
  --surface-border-strong: rgba(15, 23, 42, 0.14);

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent: #0f172a;
  --accent-hover: #1e293b;
  --brand-pink: #f47292;
  --brand-sky: #0ea5e9;
  --brand-indigo: #4f46e5;
  --brand-emerald: #10b981;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 28px 64px rgba(15, 23, 42, 0.11), 0 6px 18px rgba(15, 23, 42, 0.05);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font-sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "Consolas", monospace;
  --container-max: 1120px;
  --nav-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(62% 45% at 18% 0%, rgba(186, 230, 253, 0.42) 0%, rgba(186, 230, 253, 0) 70%),
    radial-gradient(50% 42% at 84% 4%, rgba(254, 205, 211, 0.34) 0%, rgba(254, 205, 211, 0) 72%);
  background-repeat: no-repeat;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

:not(pre) > code:not(.sha-code) {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

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

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

/* ── Header ───────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.brand-domain {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.16s ease;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

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

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.24);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: var(--bg-elevated);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  padding: 14px 24px 20px;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.mobile-drawer.open {
  display: grid;
  gap: 8px;
}

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-drawer a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

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

.hero h1 {
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 620px;
  font-size: clamp(15px, 1.8vw, 17.5px);
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-cta .btn-primary {
  height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.hero-cta .btn-secondary {
  height: 48px;
  padding: 0 22px;
  font-size: 14.5px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  color: var(--brand-emerald);
  flex-shrink: 0;
}

/* ── Interactive Desktop Stage ────────────────────── */

.stage-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.stage-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-pills {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.theme-pill {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.16s ease;
}

.theme-pill.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.desktop-stage {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 18px 22px 18px;
  min-height: 496px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.45s ease;
  text-align: left;
  user-select: none;
}

.desktop-stage[data-theme="liquid"] {
  background:
    radial-gradient(65% 75% at 15% 22%, rgba(125, 211, 252, 0.72) 0%, transparent 65%),
    radial-gradient(55% 65% at 88% 18%, rgba(253, 186, 200, 0.68) 0%, transparent 62%),
    radial-gradient(70% 70% at 55% 88%, rgba(165, 180, 252, 0.58) 0%, transparent 65%),
    linear-gradient(135deg, #c7e2ff 0%, #e1e8ff 50%, #f5dce8 100%);
  --glass-bg: rgba(255, 255, 255, 0.44);
  --glass-bg-strong: rgba(255, 255, 255, 0.64);
  --glass-border: rgba(255, 255, 255, 0.68);
  --glass-text: #0f172a;
  --glass-muted: rgba(15, 23, 42, 0.68);
  --island-bg: rgba(18, 24, 38, 0.84);
  --island-border: rgba(255, 255, 255, 0.24);
  --island-text: #ffffff;
  --island-muted: rgba(255, 255, 255, 0.72);
}

.desktop-stage[data-theme="hyalite"] {
  background:
    radial-gradient(60% 70% at 20% 25%, rgba(56, 189, 248, 0.58) 0%, transparent 65%),
    radial-gradient(55% 65% at 82% 20%, rgba(167, 243, 208, 0.52) 0%, transparent 62%),
    radial-gradient(65% 70% at 60% 85%, rgba(147, 197, 253, 0.54) 0%, transparent 65%),
    linear-gradient(140deg, #b8e6fe 0%, #d8f3f0 52%, #dceafe 100%);
  --glass-bg: rgba(236, 248, 255, 0.48);
  --glass-bg-strong: rgba(244, 251, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-text: #0c1b2e;
  --glass-muted: rgba(12, 27, 46, 0.68);
  --island-bg: rgba(12, 27, 46, 0.84);
  --island-border: rgba(186, 230, 253, 0.42);
  --island-text: #ffffff;
  --island-muted: rgba(224, 242, 254, 0.78);
}

.desktop-stage[data-theme="midnight"] {
  background:
    radial-gradient(55% 65% at 18% 20%, rgba(56, 189, 248, 0.28) 0%, transparent 60%),
    radial-gradient(50% 60% at 82% 18%, rgba(244, 114, 182, 0.22) 0%, transparent 60%),
    radial-gradient(65% 65% at 50% 90%, rgba(99, 102, 241, 0.28) 0%, transparent 62%),
    linear-gradient(145deg, #0f172a 0%, #172038 52%, #1d1a34 100%);
  border-color: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(20, 29, 48, 0.62);
  --glass-bg-strong: rgba(26, 37, 60, 0.78);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-text: #f8fafc;
  --glass-muted: rgba(248, 250, 252, 0.72);
  --island-bg: rgba(10, 15, 28, 0.88);
  --island-border: rgba(255, 255, 255, 0.2);
  --island-text: #ffffff;
  --island-muted: rgba(255, 255, 255, 0.68);
}

/* Dynamic Island inside Stage */
.island-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
}

.island-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--island-bg);
  border: 1px solid var(--island-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.island-tab {
  border: 0;
  background: transparent;
  color: var(--island-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

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

.island-tab.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.island-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.island-eq span {
  width: 2px;
  border-radius: 2px;
  background: #34d399;
  animation: eqPulse 1.1s ease-in-out infinite;
}

.island-eq span:nth-child(1) { height: 6px; animation-delay: 0s; }
.island-eq span:nth-child(2) { height: 11px; animation-delay: 0.2s; }
.island-eq span:nth-child(3) { height: 7px; animation-delay: 0.4s; }

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.island-card {
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 14px 16px;
  background: var(--island-bg);
  border: 1px solid var(--island-border);
  color: var(--island-text);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  transition: all 0.22s ease;
}

.island-pane {
  display: none;
}

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

.island-music {
  display: flex;
  align-items: center;
  gap: 14px;
}

.album-art {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb7185, #818cf8);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 6px 14px rgba(244, 114, 182, 0.35);
}

.island-music-meta {
  flex: 1;
  min-width: 0;
}

.island-music-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-music-lyric {
  font-size: 11.5px;
  color: #7dd3fc;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.island-play-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.island-pomo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pomo-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pomo-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(#fb7185 0% 72%, rgba(255, 255, 255, 0.14) 72% 100%);
  display: grid;
  place-items: center;
}

.pomo-ring::after {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #141c2c;
}

.pomo-time {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.pomo-label {
  font-size: 11.5px;
  color: var(--island-muted);
}

.pomo-toggle {
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.22);
  color: #fda4af;
  font-size: 12px;
  font-weight: 600;
}

.pomo-toggle:hover {
  background: rgba(251, 113, 133, 0.34);
}

.island-todo-list {
  display: grid;
  gap: 6px;
}

.island-todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  cursor: pointer;
}

.island-todo-item.done span.text {
  text-decoration: line-through;
  opacity: 0.55;
}

.todo-check {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}

.island-todo-item.done .todo-check {
  background: #34d399;
  border-color: #34d399;
  color: #06281c;
}

.island-shelf {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.island-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.health-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.health-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.health-btn {
  border: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.22);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 600;
}

.health-btn:hover {
  background: rgba(56, 189, 248, 0.34);
}

.island-sysmon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.island-sys-cell {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.island-sys-cell strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.island-sys-cell span {
  font-size: 11px;
  color: var(--island-muted);
}

.shelf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.shelf-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.25);
  color: #bae6fd;
}

/* Desktop Widgets middle area */
.desktop-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
}

.glass-widget {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: 18px;
  padding: 16px;
  color: var(--glass-text);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.widget-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--glass-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.clock-big {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.weather-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 12.5px;
}

.workbench-preview {
  background: var(--glass-bg-strong);
}

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

.wb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
}

.wb-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.wb-pill {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  color: var(--brand-sky);
  font-weight: 600;
}

.wb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.wb-tile {
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.desktop-stage[data-theme="midnight"] .wb-tile {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.wb-tile-title {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.wb-tile-desc {
  font-size: 11px;
  color: var(--glass-muted);
}

.sysmon-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.sysmon-stat strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
}

.sysmon-stat span {
  font-size: 11px;
  color: var(--glass-muted);
}

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

.filezone-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.filezone-pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.desktop-stage[data-theme="midnight"] .filezone-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Interactive Dock inside Stage */
.dock-wrap {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.dock-bar {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.dock-item {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: bottom center;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
  border: 0;
  padding: 0;
  background: transparent;
}

.dock-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.dock-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--glass-text);
  opacity: 0.7;
  margin-top: 3px;
}

.dock-dot.hidden {
  opacity: 0;
}

.dock-sep {
  width: 1px;
  height: 30px;
  background: var(--glass-border);
  align-self: center;
  margin: 0 2px;
}

.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.dock-item:hover .dock-tooltip,
.dock-item:focus-visible .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Sections ─────────────────────────────────────── */

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-sky);
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.section-header p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-secondary);
}

/* Dynamic Island Spotlight */
.island-spotlight {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
}

.island-spotlight-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.24;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.island-spotlight-copy p {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.island-highlights {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.island-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.island-highlights svg {
  color: var(--brand-sky);
  margin-top: 3px;
  flex-shrink: 0;
}

.island-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.island-mod-card {
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 14px 15px;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.island-mod-card:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-xs);
}

.island-mod-card.wide {
  grid-column: span 2;
}

.island-mod-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}

.island-mod-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  flex-shrink: 0;
}

.island-mod-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.island-mod-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Feature Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--surface-border-strong);
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.bento-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bento-visual {
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.05);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mini-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  padding: 5px 11px;
  border-radius: 999px;
}

/* Workbench Capabilities Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--surface-border-strong);
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tool-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.tool-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
}

.tool-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Download Hub ─────────────────────────────────── */

.download-card {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.dl-app-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.dl-app-row img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.dl-app-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dl-version-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ver-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 600;
  font-size: 12px;
}

.dl-desc {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.mirror-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mirror-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.mirror-btn {
  border: 1px solid var(--surface-border-strong);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.mirror-btn:hover {
  border-color: rgba(15, 23, 42, 0.25);
  color: var(--text);
}

.mirror-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.dl-actions .btn-primary {
  height: 50px;
  padding: 0 28px;
  font-size: 15px;
}

.sha-box {
  background: var(--bg-subtle);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.sha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.copy-btn {
  border: 1px solid var(--surface-border-strong);
  background: #ffffff;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 7px;
}

.copy-btn:hover {
  background: var(--bg);
}

.sha-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}

.dl-aside {
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
}

.dl-specs {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  list-style: none;
}

.dl-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.dl-specs span {
  color: var(--text-muted);
}

.dl-specs strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.dl-guarantees {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.dl-guarantees li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dl-guarantees svg {
  color: var(--brand-emerald);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── FAQ ──────────────────────────────────────────── */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.faq-item[data-open="true"] {
  border-color: var(--surface-border-strong);
  box-shadow: var(--shadow-xs);
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.faq-plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .faq-plus {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item[data-open="true"] .faq-a {
  display: block;
}

/* ── Subpages (Changelog & Privacy) ───────────────── */

.doc-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 84px;
}

.doc-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--surface-border);
}

.doc-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.025em;
}

.doc-header p {
  margin: 0;
  color: var(--text-secondary);
}

.doc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.doc-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.doc-card h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.doc-card p,
.doc-card li {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.75;
}

.doc-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

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

.release-ver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
}

.release-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.release-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.65);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

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

/* Toast notification */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 960px) {
  .desktop-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .island-spotlight,
  .download-card {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .island-spotlight,
  .download-card {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn-ghost,
  .brand-domain {
    display: none;
  }

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

  .hero {
    padding: 44px 0 28px;
  }

  .section {
    padding: 58px 0;
  }

  .tools-grid,
  .island-modules-grid {
    grid-template-columns: 1fr;
  }

  .island-mod-card.wide {
    grid-column: span 1;
  }

  .dock-bar {
    gap: 6px;
    padding: 8px 10px;
  }

  .dock-item:nth-child(n+6):not(:last-child) {
    display: none;
  }

  .island-pill-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

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