/* ==========================================================================
   CalmBar Official Website - Apple Design System Stylesheet
   遵循 Apple Human Interface & Web Design 官方规范
   ========================================================================== */

/* 1. CSS Custom Properties / Tokens */
:root {
  --apple-black: #000000;
  --apple-dark-surface-1: #161617;
  --apple-dark-surface-2: #1d1d1f;
  --apple-dark-surface-3: #272729;
  --apple-dark-border: rgba(255, 255, 255, 0.12);

  --apple-light-bg: #f5f5f7;
  --apple-white: #ffffff;
  --apple-light-card: #ffffff;
  --apple-light-border: rgba(0, 0, 0, 0.08);

  --apple-text-primary-dark: #f5f5f7;
  --apple-text-secondary-dark: #a1a1a6;
  --apple-text-primary-light: #1d1d1f;
  --apple-text-secondary-light: #86868b;

  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-active: #0062c4;
  --apple-blue-bright: #2997ff;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;

  --radius-capsule: 980px;
  --radius-card: 20px;
  --radius-inner: 12px;
  --radius-window: 14px;

  --nav-height: 48px;
  --transition-fast: 0.18s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. CSS Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--apple-black);
  color: var(--apple-text-primary-light);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.47;
  letter-spacing: -0.022em;
  overflow-x: hidden;
  background-color: var(--apple-black);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 3. Global Navigation (Apple Frosted Glass) */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: var(--transition-fast);
}

.nav-container {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

.nav-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

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

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.nav-github:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-nav {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* 4. Buttons & Capsules */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--radius-capsule);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-pill {
  border-radius: var(--radius-capsule);
}

.btn-primary {
  background-color: var(--apple-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--apple-blue-hover);
  transform: scale(1.01);
}

.btn-primary:active {
  background-color: var(--apple-blue-active);
  transform: scale(0.99);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.01);
}

.btn-large {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
}

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

/* 5. Hero Section (Apple Dark Keynote) */
.section {
  padding: 96px 0;
  position: relative;
}

.section-hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 72px;
  background: radial-gradient(circle at 50% 15%, rgba(0, 113, 227, 0.18) 0%, rgba(0, 0, 0, 0) 70%), var(--apple-black);
  color: #ffffff;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 16px;
  border-radius: var(--radius-capsule);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.8);
}

.hero-headline {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--apple-text-secondary-dark);
  font-weight: 400;
}

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

.hero-specs-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--apple-text-secondary-dark);
  margin-bottom: 48px;
}

.sep {
  opacity: 0.35;
}

/* Hero Visual & macOS Window Mockup */
.hero-visual {
  max-width: 820px;
  margin: 0 auto;
  perspective: 1000px;
}

.mac-window-frame {
  background: rgba(29, 29, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-window);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 113, 227, 0.15);
  overflow: hidden;
  backdrop-filter: blur(30px);
  transition: transform var(--transition-smooth);
}

.mac-window-frame:hover {
  transform: translateY(-4px);
}

.window-header {
  height: 38px;
  background: rgba(40, 40, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
}

.window-header .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 7px;
}

.window-header .dot.red { background: #ff5f56; border: 0.5px solid #e0443e; }
.window-header .dot.yellow { background: #ffbd2e; border: 0.5px solid #dea123; }
.window-header .dot.green { background: #27c93f; border: 0.5px solid #1aab29; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.window-body {
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
}

.hero-img {
  max-width: 440px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-smooth);
}

/* 6. Section Headers */
.section-header {
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.47;
  color: var(--apple-text-secondary-light);
}

/* Light / Dark Section Modes */
.section-light {
  background-color: var(--apple-light-bg);
  color: var(--apple-text-primary-light);
}

.section-dark {
  background-color: var(--apple-black);
  color: var(--apple-text-primary-dark);
}

.section-dark .section-desc {
  color: var(--apple-text-secondary-dark);
}

.text-center {
  text-align: center;
}

/* 7. Bento Grid Component (Apple Unified Light Style) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--apple-white);
  border: 1px solid var(--apple-light-border);
  padding: 32px 28px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.bento-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--apple-text-primary-light);
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 15px;
  line-height: 1.47;
  color: var(--apple-text-secondary-light);
  margin-bottom: 24px;
}

/* Bento Micro-Widgets (Replaces redundant full screenshots) */
.widget-bento {
  margin-top: auto;
  background: #f5f5f7;
  border-radius: var(--radius-inner);
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Thermal Widget */
.thermal-meter-item {
  margin-bottom: 12px;
}

.meter-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-text-primary-light);
  margin-bottom: 6px;
}

.text-blue { color: var(--apple-blue); font-weight: 600; }
.text-green { color: #34c759; font-weight: 600; }

.meter-bar-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0071e3, #2997ff);
  border-radius: 4px;
}

.meter-bar-fill.fill-green {
  background: linear-gradient(90deg, #34c759, #30d158);
}

.fan-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: var(--apple-text-secondary-light);
}

.fan-indicator {
  font-weight: 500;
  color: var(--apple-text-primary-light);
}

/* Command Palette Mini Widget */
.mini-search-bar {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-text-primary-light);
  flex-grow: 1;
}

.cursor-blink {
  color: var(--apple-blue);
  animation: blink 1s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.search-tag {
  font-size: 11px;
  color: #86868b;
  background: #f0f0f2;
  padding: 2px 6px;
  border-radius: 4px;
}

.mini-command-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-item {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--apple-text-primary-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cmd-item.active {
  background: var(--apple-blue);
  color: #ffffff;
  font-weight: 500;
}

.cmd-item.active kbd {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Battery Widget */
.widget-battery-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.battery-visual {
  display: flex;
  align-items: center;
}

.battery-shell {
  width: 58px;
  height: 28px;
  border: 2.5px solid #1d1d1f;
  border-radius: 6px;
  padding: 2px;
  position: relative;
  background: #ffffff;
}

.battery-level-fill {
  width: 80%;
  height: 100%;
  background: #34c759;
  border-radius: 2px;
}

.battery-limit-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 80%;
  width: 2px;
  background: #ff3b30;
  opacity: 0.8;
}

.battery-cap {
  width: 3px;
  height: 10px;
  background: #1d1d1f;
  border-radius: 0 2px 2px 0;
}

.battery-info-text {
  display: flex;
  flex-direction: column;
}

.battery-pct {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1;
}

.battery-state {
  font-size: 12px;
  color: var(--apple-text-secondary-light);
  margin-top: 4px;
}

/* Menubar Widget */
.menubar-mock-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.menubar-icons-hidden {
  display: flex;
  gap: 8px;
  opacity: 0.35;
  filter: blur(0.3px);
}

.divider-fold {
  font-weight: 700;
  color: var(--apple-blue);
  background: rgba(0, 113, 227, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.menubar-icons-active {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
}

.menubar-time {
  font-size: 12px;
  font-weight: 600;
}

/* Cleaner Stack Widget */
.clean-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.clean-tag-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.tag-name {
  color: #1d1d1f;
  font-weight: 500;
}

.tag-size {
  color: #86868b;
  font-family: var(--font-mono);
  font-weight: 600;
}

.clean-tag-pill.highlight {
  grid-column: span 2;
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.2);
}

/* Vision OCR Widget */
.ocr-scan-frame {
  position: relative;
  background: #ffffff;
  border: 1px dashed rgba(0, 113, 227, 0.5);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.scan-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--apple-blue);
  border-style: solid;
}

.scan-corner.top-left { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.scan-corner.top-right { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.scan-corner.bottom-left { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.scan-corner.bottom-right { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.scan-text {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.scan-badge {
  display: inline-block;
  font-size: 11px;
  color: #34c759;
  font-weight: 600;
  background: rgba(52, 199, 89, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Apple Switch Toggle Widget */
.widget-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
}

.apple-switch {
  width: 36px;
  height: 20px;
  background: #e9e9ea;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

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

.apple-switch.on {
  background: #34c759;
}

.apple-switch.on::after {
  transform: translateX(16px);
}

/* Light Kbd in Light Bento Cards */
.kbd-light {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #1d1d1f !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

/* 8. Interactive Tabbed Showcase Gallery */
.tab-nav-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tab-nav {
  display: inline-flex;
  background: var(--apple-dark-surface-2);
  padding: 6px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--apple-dark-border);
  gap: 4px;
}

.tab-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-text-secondary-dark);
  border-radius: var(--radius-capsule);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--apple-black);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--apple-dark-surface-1);
  padding: 48px;
  border-radius: var(--radius-card);
  border: 1px solid var(--apple-dark-border);
}

.showcase-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-blue-bright);
  margin-bottom: 12px;
  display: inline-block;
}

.showcase-text h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: #ffffff;
}

.showcase-text p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--apple-text-secondary-dark);
  margin-bottom: 24px;
}

.feature-bullets {
  list-style: none;
  margin-bottom: 28px;
}

.feature-bullets li {
  font-size: 14px;
  color: #e5e5ea;
  margin-bottom: 10px;
  line-height: 1.4;
}

.shortcut-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--apple-text-secondary-dark);
}

.shortcut-tip kbd, kbd {
  display: inline-block;
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.showcase-image {
  background: #000000;
  border-radius: var(--radius-inner);
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.showcase-image img {
  border-radius: 8px;
  max-height: 380px;
  object-fit: contain;
}

/* 9. Technical Architecture Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.tech-item {
  background: var(--apple-white);
  padding: 36px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--apple-light-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.tech-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--apple-blue);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.tech-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--apple-text-primary-light);
  margin-bottom: 6px;
}

.tech-sub {
  font-size: 13px;
  color: var(--apple-text-secondary-light);
}

/* 10. Shortcut Cards */
.shortcut-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.shortcut-card {
  background: var(--apple-dark-surface-1);
  padding: 28px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--apple-dark-border);
  text-align: center;
  transition: transform var(--transition-fast);
}

.shortcut-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.key-combo {
  margin-bottom: 16px;
}

.key-combo kbd {
  font-size: 15px;
  padding: 5px 9px;
}

.key-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.key-desc {
  font-size: 13px;
  color: var(--apple-text-secondary-dark);
}

/* 11. Download Section */
.section-download {
  background: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.15) 0%, rgba(0, 0, 0, 0) 70%), var(--apple-black);
  color: #ffffff;
  text-align: center;
  padding: 108px 0;
}

.download-box {
  max-width: 820px;
  margin: 0 auto;
}

.download-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.download-sub {
  font-size: 17px;
  color: var(--apple-text-secondary-dark);
  margin-bottom: 48px;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.download-card {
  background: var(--apple-dark-surface-1);
  border: 1px solid var(--apple-dark-border);
  padding: 36px 28px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.highlight-card {
  border-color: var(--apple-blue);
  box-shadow: 0 0 30px rgba(0, 113, 227, 0.2);
}

.card-tag {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 113, 227, 0.2);
  color: var(--apple-blue-bright);
  padding: 3px 10px;
  border-radius: var(--radius-capsule);
  border: 1px solid rgba(0, 113, 227, 0.35);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.download-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.card-info {
  font-size: 14px;
  color: var(--apple-text-secondary-dark);
  margin-bottom: 24px;
  line-height: 1.5;
  flex-grow: 1;
}

.card-subtext {
  font-size: 12px;
  color: var(--apple-text-secondary-dark);
  text-align: center;
  margin-top: 10px;
}

/* Installation & Gatekeeper Guide Box */
.install-guide-box {
  background: var(--apple-dark-surface-1);
  border: 1px solid var(--apple-dark-border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  margin-bottom: 36px;
  text-align: left;
}

.install-guide-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.install-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.install-step-card {
  background: var(--apple-dark-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-inner);
  padding: 24px;
  position: relative;
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--apple-blue-bright);
  background: rgba(0, 113, 227, 0.2);
  border: 1px solid rgba(0, 113, 227, 0.35);
  padding: 2px 10px;
  border-radius: var(--radius-capsule);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.install-step-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.install-step-card p {
  font-size: 14px;
  color: var(--apple-text-secondary-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

.install-step-card code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 13px;
}

.step-subtext {
  font-size: 13px !important;
  color: #a1a1a6 !important;
  margin-top: 8px;
}

.terminal-install-box.in-card {
  margin: 14px 0 16px;
}

.step-tip {
  font-size: 13px;
  color: #e5e5ea;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--apple-blue);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

.link-blue {
  color: var(--apple-blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-blue:hover {
  color: #ffffff;
}

/* Terminal Box */
.terminal-install-box {
  background: var(--apple-dark-surface-2);
  border: 1px solid var(--apple-dark-border);
  border-radius: var(--radius-inner);
  overflow: hidden;
  margin-bottom: 32px;
  text-align: left;
}

.terminal-header {
  height: 38px;
  background: var(--apple-dark-surface-3);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--apple-dark-border);
}

.terminal-title {
  font-size: 12px;
  color: var(--apple-text-secondary-dark);
  font-weight: 500;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--apple-blue-bright);
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition-fast);
}

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

.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #34c759;
  overflow-x: auto;
}

.sys-reqs {
  font-size: 13px;
  color: var(--apple-text-secondary-dark);
}

/* 12. Apple Minimalist Footer */
.global-footer {
  background: #111112;
  color: #86868b;
  font-size: 12px;
  line-height: 1.6;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-notes {
  margin-bottom: 20px;
}

.footer-notes p {
  margin-bottom: 6px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

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

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #a1a1a6;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* 13. Zoomable Lightbox */
.img-zoomable {
  cursor: zoom-in;
  transition: transform var(--transition-fast);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 2001;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #ffffff;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.lightbox-close:hover {
  opacity: 1;
}

/* 14. Responsive Breakpoints */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-2 {
    grid-column: span 2;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shortcut-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-toggle {
    display: flex;
  }
  .nav-github-text {
    display: none;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-2 {
    grid-column: span 1;
  }
  .download-cards-grid {
    grid-template-columns: 1fr;
  }
  .shortcut-cards {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 36px;
  }
}
