/* ==========================================================================
   appsdotmac & Workspace.mac — Style Sheet
   Modern CSS with native light-dark(), LinkMyMac aesthetic, macOS HIG
   ========================================================================== */

/* --- 1. Root Tokens & Color System (modern-web-guidance compliance) --- */
:root {
  /* Color Scheme declaration */
  color-scheme: light dark;

  /* Raw Palette - Light Theme */
  --bg-page-light: #fbfbfd;
  --bg-surface-light: #ffffff;
  --bg-surface-subtle-light: #f5f5f7;
  --bg-card-light: #ffffff;
  --text-primary-light: #1d1d1f;
  --text-secondary-light: #6e6e73;
  --text-tertiary-light: #86868b;
  --border-subtle-light: rgba(0, 0, 0, 0.08);
  --border-card-light: rgba(0, 0, 0, 0.06);
  --accent-blue-light: #0071e3;
  --btn-primary-bg-light: #000000;
  --btn-primary-text-light: #ffffff;
  --window-bg-light: #f0f0f4;
  --shadow-window-light: 0 30px 60px -15px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);

  /* Raw Palette - Dark Theme */
  --bg-page-dark: #0a0a0c;
  --bg-surface-dark: #141417;
  --bg-surface-subtle-dark: #1c1c20;
  --bg-card-dark: #161619;
  --text-primary-dark: #f5f5f7;
  --text-secondary-dark: #a1a1a6;
  --text-tertiary-dark: #7a7a82;
  --border-subtle-dark: rgba(255, 255, 255, 0.1);
  --border-card-dark: rgba(255, 255, 255, 0.08);
  --accent-blue-dark: #2997ff;
  --btn-primary-bg-dark: #ffffff;
  --btn-primary-text-dark: #000000;
  --window-bg-dark: #18181c;
  --shadow-window-dark: 0 35px 70px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);

  /* Default CSS Custom Properties (with media query fallback) */
  --bg-page: var(--bg-page-light);
  --bg-surface: var(--bg-surface-light);
  --bg-surface-subtle: var(--bg-surface-subtle-light);
  --bg-card: var(--bg-card-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-tertiary: var(--text-tertiary-light);
  --border-subtle: var(--border-subtle-light);
  --border-card: var(--border-card-light);
  --accent-blue: var(--accent-blue-light);
  --btn-primary-bg: var(--btn-primary-bg-light);
  --btn-primary-text: var(--btn-primary-text-light);
  --window-bg: var(--window-bg-light);
  --shadow-window: var(--shadow-window-light);

  /* Modern light-dark() Progressive Enhancement */
  @supports (color: light-dark(white, black)) {
    --bg-page: light-dark(var(--bg-page-light), var(--bg-page-dark));
    --bg-surface: light-dark(var(--bg-surface-light), var(--bg-surface-dark));
    --bg-surface-subtle: light-dark(var(--bg-surface-subtle-light), var(--bg-surface-subtle-dark));
    --bg-card: light-dark(var(--bg-card-light), var(--bg-card-dark));
    --text-primary: light-dark(var(--text-primary-light), var(--text-primary-dark));
    --text-secondary: light-dark(var(--text-secondary-light), var(--text-secondary-dark));
    --text-tertiary: light-dark(var(--text-tertiary-light), var(--text-tertiary-dark));
    --border-subtle: light-dark(var(--border-subtle-light), var(--border-subtle-dark));
    --border-card: light-dark(var(--border-card-light), var(--border-card-dark));
    --accent-blue: light-dark(var(--accent-blue-light), var(--accent-blue-dark));
    --btn-primary-bg: light-dark(var(--btn-primary-bg-light), var(--btn-primary-bg-dark));
    --btn-primary-text: light-dark(var(--btn-primary-text-light), var(--btn-primary-text-dark));
    --window-bg: light-dark(var(--window-bg-light), var(--window-bg-dark));
    --shadow-window: light-dark(var(--shadow-window-light), var(--shadow-window-dark));
  }

  /* Typography & Layout Spacing */
  --font-family-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --container-max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/* Fallback for browsers without light-dark() */
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
    --bg-page: var(--bg-page-dark);
    --bg-surface: var(--bg-surface-dark);
    --bg-surface-subtle: var(--bg-surface-subtle-dark);
    --bg-card: var(--bg-card-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-tertiary: var(--text-tertiary-dark);
    --border-subtle: var(--border-subtle-dark);
    --border-card: var(--border-card-dark);
    --accent-blue: var(--accent-blue-dark);
    --btn-primary-bg: var(--btn-primary-bg-dark);
    --btn-primary-text: var(--btn-primary-text-dark);
    --window-bg: var(--window-bg-dark);
    --shadow-window: var(--shadow-window-dark);
  }
}

/* Manual color-scheme overrides via head meta */
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
  --bg-page: var(--bg-page-dark);
  --bg-surface: var(--bg-surface-dark);
  --bg-surface-subtle: var(--bg-surface-subtle-dark);
  --bg-card: var(--bg-card-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-tertiary: var(--text-tertiary-dark);
  --border-subtle: var(--border-subtle-dark);
  --border-card: var(--border-card-dark);
  --accent-blue: var(--accent-blue-dark);
  --btn-primary-bg: var(--btn-primary-bg-dark);
  --btn-primary-text: var(--btn-primary-text-dark);
  --window-bg: var(--window-bg-dark);
  --shadow-window: var(--shadow-window-dark);
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
  --bg-page: var(--bg-page-light);
  --bg-surface: var(--bg-surface-light);
  --bg-surface-subtle: var(--bg-surface-subtle-light);
  --bg-card: var(--bg-card-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-tertiary: var(--text-tertiary-light);
  --border-subtle: var(--border-subtle-light);
  --border-card: var(--border-card-light);
  --accent-blue: var(--accent-blue-light);
  --btn-primary-bg: var(--btn-primary-bg-light);
  --btn-primary-text: var(--btn-primary-text-light);
  --window-bg: var(--window-bg-light);
  --shadow-window: var(--shadow-window-light);
}

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

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

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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

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

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

/* --- 3. Top Announcement Bar --- */
.announcement-bar {
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 10px 0;
  font-size: 13px;
}

.announcement-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.badge-pill:hover {
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.pulse-dot-green {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34c759;
}

.icon-arrow {
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.badge-pill:hover .icon-arrow {
  transform: translateX(3px);
}

/* --- 4. Main Navigation Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 251, 253, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .site-header,
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .site-header {
    background-color: rgba(10, 10, 12, 0.82);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-logo {
  border-radius: 8px;
}

.brand-dot {
  color: #34c759;
}

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

.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-tertiary);
}

/* Toggle icon display based on active scheme */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-sun { display: block; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-sun { display: block; }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-moon { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 10px 22px;
  font-size: 14px;
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  font-size: 14px;
}

.btn-secondary:hover {
  background-color: var(--bg-surface-subtle);
  border-color: var(--text-secondary);
}

/* --- 5. Hero Section --- */
.hero-section {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

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

.app-identifier {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-app-icon {
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.app-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  display: block;
}

.app-title-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  display: inline-block;
  margin-top: 2px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #1d1d1f 20%, #0071e3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .gradient-text,
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #5ac8fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

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

.btn-hero-download {
  padding: 12px 26px;
  gap: 12px;
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.btn-subtitle {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
}

.btn-hero-secondary {
  padding: 14px 22px;
}

.trust-strip {
  display: flex;
  gap: 20px;
  list-style: none;
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

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

.bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-tertiary);
}

/* --- 6. Interactive Window Card (Hero Showcase) --- */
.hero-visual-col {
  position: relative;
}

.abstract-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #0071e3 0%, rgba(0, 113, 227, 0) 70%);
  top: -40px;
  right: -20px;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #af52de 0%, rgba(175, 82, 222, 0) 70%);
  bottom: -40px;
  left: 20px;
}

.interactive-window-card {
  position: relative;
  z-index: 1;
  background-color: var(--window-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.interactive-window-card:hover {
  transform: translateY(-3px);
}

.mac-window-chrome {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(128, 128, 128, 0.05);
}

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

.traffic-lights .light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-lights .close { background-color: #ff5f56; border: 1px solid rgba(0,0,0,0.1); }
.traffic-lights .minimize { background-color: #ffbd2e; border: 1px solid rgba(0,0,0,0.1); }
.traffic-lights .expand { background-color: #27c93f; border: 1px solid rgba(0,0,0,0.1); }

.window-title-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
}

.mac-pill-action {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-surface-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.window-tab-bar {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background-color: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.window-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.window-tab:hover {
  background-color: rgba(128, 128, 128, 0.08);
  color: var(--text-primary);
}

.window-tab.active {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  border-color: var(--border-subtle);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.window-stage {
  position: relative;
  background-color: #000;
  min-height: 380px;
}

.screen-view {
  display: none;
  position: relative;
}

.screen-view.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.screen-view img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 8px 14px;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* --- 7. Three Modes Section (LinkMyMac Style) --- */
.section-modes {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.tag-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-secondary);
}

.section-title {
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
}

.modes-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mode-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  border-color: var(--border-subtle);
}

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

.card-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.card-pink .card-step-badge { background-color: rgba(255, 45, 85, 0.12); color: #ff2d55; }
.card-cyan .card-step-badge { background-color: rgba(50, 173, 230, 0.12); color: #32ade6; }
.card-purple .card-step-badge { background-color: rgba(175, 82, 222, 0.12); color: #af52de; }

.card-accent-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Card Mockup Illustrations */
.card-icon-illustration {
  height: 140px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
}

.mini-mac-window {
  width: 184px;
  height: 114px;
  background-color: var(--bg-surface);
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mini-window-header {
  height: 18px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  background: rgba(128, 128, 128, 0.06);
  border-bottom: 1px solid var(--border-subtle);
}

.mini-traffic-lights {
  display: flex;
  gap: 4px;
}

.mini-traffic-lights span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--border-subtle);
}

.card-pink .mini-traffic-lights span:nth-child(1) { background-color: #ff5f56; }
.card-pink .mini-traffic-lights span:nth-child(2) { background-color: #ffbd2e; }
.card-pink .mini-traffic-lights span:nth-child(3) { background-color: #27c93f; }

.card-cyan .mini-traffic-lights span:nth-child(1) { background-color: #ff5f56; }
.card-cyan .mini-traffic-lights span:nth-child(2) { background-color: #ffbd2e; }
.card-cyan .mini-traffic-lights span:nth-child(3) { background-color: #27c93f; }

.card-purple .mini-traffic-lights span:nth-child(1) { background-color: #ff5f56; }
.card-purple .mini-traffic-lights span:nth-child(2) { background-color: #ffbd2e; }
.card-purple .mini-traffic-lights span:nth-child(3) { background-color: #27c93f; }

/* Top Bar Styling */
.mini-topbar {
  height: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.mini-topbar.accent-pink {
  background: rgba(255, 45, 85, 0.12);
  border-color: rgba(255, 45, 85, 0.2);
}

.mini-topbar.accent-cyan {
  background: rgba(50, 173, 230, 0.15);
  border-color: rgba(50, 173, 230, 0.25);
}

.mini-topbar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.accent-pink .mini-topbar-dot { background-color: #ff2d55; }
.accent-cyan .mini-topbar-dot { background-color: #32ade6; }

.mini-topbar-line {
  flex: 1;
  max-width: 60px;
  height: 3px;
  border-radius: 2px;
}

.accent-pink .mini-topbar-line { background-color: rgba(255, 45, 85, 0.4); }
.accent-cyan .mini-topbar-line { background-color: rgba(50, 173, 230, 0.5); }

/* Window Split: Sidebar + Content (Card 1 Everything) */
.mini-window-split {
  flex: 1;
  display: flex;
  gap: 5px;
  padding: 5px;
  background-color: var(--bg-surface);
}

.mini-sidebar {
  width: 36px;
  background-color: rgba(255, 45, 85, 0.12);
  border-radius: 4px;
  border: 1px dashed rgba(255, 45, 85, 0.35);
  position: relative;
}

.mini-sidebar::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  right: 4px;
  height: 3px;
  background-color: #ff2d55;
  border-radius: 2px;
  opacity: 0.7;
}

.mini-content {
  flex: 1;
  background-color: var(--bg-surface-subtle);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.mini-content.full-width {
  width: 100%;
  height: 100%;
}

/* Card 3: At a Glance Viewport (Popup Bubble at top + Draggable Tab) */
.mini-window-viewport {
  flex: 1;
  position: relative;
  background-color: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.mini-bubble-popup {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: rgba(175, 82, 222, 0.22);
  border: 1px solid #af52de;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(175, 82, 222, 0.25);
  animation: floatBubble 2.5s ease-in-out infinite alternate;
}

@keyframes floatBubble {
  0% { transform: translate(-50%, 0); }
  100% { transform: translate(-50%, -2px); }
}

.bubble-pill {
  width: 30px;
  height: 4px;
  background: #af52de;
  border-radius: 2px;
}

.mini-bookmark-tab {
  position: absolute;
  left: 0;
  top: 24px;
  width: 5px;
  height: 18px;
  background: #af52de;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 0 4px rgba(175, 82, 222, 0.3);
}

.mini-content.full-bleed {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* --- 8. Native Mac & Dark Zone Section --- */
.section-showcase {
  padding: 100px 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.showcase-title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.showcase-desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.checklist-item strong {
  color: var(--text-primary);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mac-preview-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-window);
  border: 1px solid var(--border-subtle);
}

/* --- 9. Apps & Gemini Grid Section --- */
.section-apps {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.text-center { text-align: center; }
.center-tag { justify-content: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.apps-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.app-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.app-chip:hover {
  transform: translateY(-2px);
  border-color: var(--border-subtle);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.gemini-chip {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(175, 82, 222, 0.08) 100%);
  border-color: rgba(0, 113, 227, 0.25);
  grid-column: span 2;
}

.spark-icon {
  font-size: 24px;
  color: #af52de;
}

.app-icon-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.app-icon-circle.blue { background-color: #0071e3; }
.app-icon-circle.green { background-color: #34c759; }
.app-icon-circle.yellow { background-color: #ff9500; }
.app-icon-circle.red { background-color: #ff3b30; }
.app-icon-circle.purple { background-color: #af52de; }
.app-icon-circle.blue-green { background-color: #30b0c7; }
.app-icon-circle.green-blue { background-color: #00c7be; }
.app-icon-circle.grey { background-color: #8e8e93; }

.chip-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chip-text strong {
  font-size: 14px;
  color: var(--text-primary);
}

.chip-text span, .chip-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* --- 10. Security & Privacy Section --- */
.section-security {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.security-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
}

.security-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(52, 199, 89, 0.1);
  color: #34c759;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.security-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.security-sub {
  font-size: 16px;
  color: var(--text-secondary);
}

.security-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.sec-col {
  text-align: left;
}

.sec-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.sec-col h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sec-col p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --- 11. Download Section --- */
.section-download {
  padding: 100px 0 120px;
}

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.06);
}

.download-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.os-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.version-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-blue);
}

.download-heading {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.download-subheading {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}

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

.btn-large-download {
  padding: 16px 32px;
  font-size: 16px;
  gap: 12px;
}

.filesize-pill {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  margin-left: 4px;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .filesize-pill,
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .filesize-pill {
    background: rgba(0, 0, 0, 0.2);
  }
}

.btn-large-secondary {
  padding: 16px 28px;
  font-size: 15px;
}

.install-instructions {
  font-size: 13px;
  color: var(--text-tertiary);
}

.install-instructions code {
  font-family: var(--font-family-mono);
  background: var(--bg-surface-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* --- 12. Site Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 64px 0 40px;
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 20px;
}

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

.footer-links-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-group h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.footer-nav-group a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* --- 13. Responsive Breakpoints --- */
@media (max-width: 960px) {
  .hero-grid,
  .showcase-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modes-card-grid,
  .security-columns {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 40px;
  }

  .nav-links {
    display: none;
  }

  .gemini-chip {
    grid-column: span 1;
  }
}
