/* Tengga - Slack-Inspired Design System */

:root, :root[data-theme="dark"] {
  --theme-mode: dark;
  --bg-app: #0b0f19;
  --bg-body: #080c14;
  --bg-topbar: rgba(17, 24, 39, 0.85);
  --bg-sidebar: #0e1526;
  --bg-pane: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #18233c;
  --bg-subtle: #162035;
  --bg-hover: #1e2c48;
  --bg-dropdown: #131b2e;
  --bg-ribbon: rgba(14, 21, 38, 0.7);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-card: rgba(255, 255, 255, 0.09);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-emerald-dark: #6ee7b7;
  --accent-emerald-soft: rgba(16, 185, 129, 0.12);
  --accent-emerald-soft-hover: rgba(16, 185, 129, 0.20);
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-glow-strong: rgba(16, 185, 129, 0.45);

  --diff-add-bg: rgba(16, 185, 129, 0.13);
  --diff-add-sign: #34d399;
  --diff-del-bg: rgba(239, 68, 68, 0.13);
  --diff-del-sign: #f87171;
  --diff-gutter: #0e1526;

  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.4);
  --shadow-preview: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.12);
}

:root[data-theme="light"] {
  --theme-mode: light;
  --bg-app: #f8f9fd;
  --bg-body: #f4f6fc;
  --bg-topbar: rgba(255, 255, 255, 0.90);
  --bg-sidebar: #fbfcfe;
  --bg-pane: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-subtle: #f1f4fb;
  --bg-hover: #edf2f9;
  --bg-dropdown: #ffffff;
  --bg-ribbon: rgba(255, 255, 255, 0.85);

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.10);
  --border-card: rgba(0, 0, 0, 0.08);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-dim: #cbd5e1;

  --accent-emerald: #059669;
  --accent-emerald-hover: #047857;
  --accent-emerald-dark: #065f46;
  --accent-emerald-soft: #ecfdf5;
  --accent-emerald-soft-hover: #d1fae5;
  --accent-glow: rgba(16, 185, 129, 0.18);
  --accent-glow-strong: rgba(16, 185, 129, 0.3);

  --diff-add-bg: #f0fdf4;
  --diff-add-sign: #16a34a;
  --diff-del-bg: #fef2f2;
  --diff-del-sign: #dc2626;
  --diff-gutter: #f8fafc;

  --shadow-card: 0 10px 30px rgba(100, 110, 140, 0.08);
  --shadow-preview: 0 20px 50px -10px rgba(40, 50, 70, 0.15), 0 0 30px rgba(5, 150, 105, 0.08);
}

:root[data-theme="glass"] {
  --theme-mode: glass;
  --bg-app: #080d19;
  --bg-body: #050810;
  --bg-topbar: rgba(15, 23, 42, 0.75);
  --bg-sidebar: rgba(15, 23, 42, 0.70);
  --bg-pane: rgba(13, 20, 36, 0.50);
  --bg-card: rgba(14, 21, 38, 0.78);
  --bg-card-hover: rgba(22, 33, 58, 0.88);
  --bg-subtle: rgba(255, 255, 255, 0.08);
  --bg-hover: rgba(255, 255, 255, 0.12);
  --bg-dropdown: rgba(15, 23, 42, 0.95);
  --bg-ribbon: rgba(13, 20, 36, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-default: rgba(255, 255, 255, 0.16);
  --border-card: rgba(255, 255, 255, 0.14);

  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-emerald: #10b981;
  --accent-emerald-hover: #34d399;
  --accent-emerald-dark: #6ee7b7;
  --accent-emerald-soft: rgba(16, 185, 129, 0.16);
  --accent-emerald-soft-hover: rgba(16, 185, 129, 0.28);
  --accent-glow: rgba(16, 185, 129, 0.35);
  --accent-glow-strong: rgba(16, 185, 129, 0.55);

  --diff-add-bg: rgba(16, 185, 129, 0.14);
  --diff-add-sign: #34d399;
  --diff-del-bg: rgba(239, 68, 68, 0.14);
  --diff-del-sign: #f87171;
  --diff-gutter: rgba(13, 20, 36, 0.65);

  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.50);
  --shadow-preview: 0 25px 65px -12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(16, 185, 129, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  background-image: 
    radial-gradient(circle at 75% 15%, rgba(16, 185, 129, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 15% 45%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  background-repeat: no-repeat;
}

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

/* Material Symbols Rounded */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 200,
    'opsz' 48;
}

/* 1. Slack-Style Sticky Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 28px;
}

.nav-container {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.nav-brand-title {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.version-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

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

.theme-switch-group {
  display: flex;
  background: var(--bg-subtle);
  border-radius: 9999px;
  padding: 3px;
  border: 1px solid var(--border-subtle);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-github-ghost {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

.btn-nav-cta {
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--accent-emerald);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-nav-cta:hover {
  background: var(--accent-emerald-hover);
  box-shadow: 0 4px 16px var(--accent-glow-strong);
  transform: translateY(-1px);
}

/* 2. Hero Section (Asymmetrical 2-Column Slack Layout) */
.slack-hero {
  max-width: 1260px;
  margin: 0 auto;
  padding: 70px 28px 50px;
}

.slack-hero-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-headline {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.headline-gradient {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: 18.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 400;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.download-split-wrapper {
  display: inline-flex;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--accent-glow-strong);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-emerald);
  color: #ffffff;
  padding: 14px 24px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  font-weight: 700;
  font-size: 15.5px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hero-primary:hover {
  background: var(--accent-emerald-hover);
}

.btn-dropdown-toggle {
  background: var(--accent-emerald-hover);
  color: #ffffff;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 14px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-dropdown-toggle:hover {
  background: var(--accent-emerald-dark);
}

.hero-foot-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Dropdown Menu */
.download-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 8px;
  width: 310px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: none;
}

.download-dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--bg-hover);
}

.dropdown-item .icon {
  font-size: 22px;
  color: var(--accent-emerald);
}

.dropdown-item .item-title {
  font-weight: 700;
  display: block;
}

.dropdown-item .item-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Hero Install Container & Dynamic OS Flow */
.hero-install-wrapper {
  margin-bottom: 18px;
  max-width: 540px;
}

.hero-mac-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-brew-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-brew-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: fit-content;
}

.hero-brew-badge .material-symbols-rounded {
  font-size: 14px;
}

.hero-brew-explainer {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.hero-brew-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  padding: 11px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
  width: 100%;
}

.hero-brew-box:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.brew-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-emerald);
  user-select: none;
  flex-shrink: 0;
}

.brew-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.hero-secondary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}

.hero-dmg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-default);
  transition: all 0.15s ease;
}

.hero-dmg-link:hover {
  color: var(--text-primary);
  text-decoration-color: var(--accent-emerald);
}

.hero-dmg-link .material-symbols-rounded {
  font-size: 17px;
  color: var(--accent-emerald);
}

.hero-sep {
  color: var(--border-subtle);
  user-select: none;
}

.hero-other-platforms {
  position: relative;
}

.btn-other-os {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s ease;
}

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

.btn-other-os .material-symbols-rounded {
  font-size: 16px;
}

.btn-copy-brew {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-brew:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-copy-brew .check-icon {
  display: none;
  font-size: 18px;
  color: var(--accent-emerald);
}

.btn-copy-brew .copy-icon {
  font-size: 18px;
}

.btn-copy-brew.copied .copy-icon {
  display: none;
}

.btn-copy-brew.copied .check-icon {
  display: block;
}

.btn-copy-brew.copied {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
}

.os-card-brew {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.os-card-brew .btn-os-download {
  background: var(--accent-emerald);
  color: #ffffff;
}

.os-card-brew .btn-os-download:hover {
  background: var(--accent-emerald-hover);
}

.os-brew-box {
  width: 100%;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0 10px 0 12px;
  border-radius: 10px;
  margin-top: auto;
  box-sizing: border-box;
}

.os-brew-box .brew-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.os-brew-box .btn-copy-brew {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

/* Product Frame (Right Column) */
.product-frame {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-preview);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-frame.is-staged {
  border-color: var(--accent-emerald);
}

.window-bar {
  height: 40px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  user-select: none;
}

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

.light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.light.red { background: #ff5f56; }
.light.yellow { background: #ffbd2e; }
.light.green { background: #27c93f; }

.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.repo-name { font-weight: 700; color: var(--text-primary); }
.divider { color: var(--text-muted); }
.file-path { color: var(--text-secondary); }

.branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-emerald);
  font-size: 10.5px;
}

.branch-pill .material-symbols-rounded { font-size: 12px; }

.sync-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.sync-tag .material-symbols-rounded { font-size: 13px; color: var(--accent-emerald); }

.preview-hunk-card {
  padding: 14px 16px;
}

.hunk-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 9999px;
}

.badge-status {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 9999px;
}

.badge-status.unstaged {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.badge-status.staged {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.header-right {
  display: flex;
  gap: 6px;
}

.btn-hunk {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-accept {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.btn-accept:hover {
  background: var(--accent-emerald-soft-hover);
  color: var(--accent-emerald-dark);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.btn-reject:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

.diff-viewport {
  display: flex;
  flex-direction: column;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 19px;
  border-radius: 8px;
  overflow: hidden;
}

.diff-line {
  display: flex;
  align-items: stretch;
  min-height: 20px;
}

.diff-line .num {
  width: 32px;
  text-align: right;
  padding-right: 6px;
  color: var(--text-muted);
  background: var(--diff-gutter);
  user-select: none;
  font-size: 10px;
}

.diff-line .sign {
  width: 18px;
  text-align: center;
  font-weight: 700;
  user-select: none;
}

.diff-line .code {
  flex: 1;
  padding: 0 8px;
  white-space: pre;
  overflow-x: auto;
  color: var(--text-primary);
}

.diff-line.add { background: var(--diff-add-bg); }
.diff-line.add .sign { color: var(--diff-add-sign); }
.diff-line.del { background: var(--diff-del-bg); }
.diff-line.del .sign { color: var(--diff-del-sign); }

.floating-metric-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--bg-card);
  border: 1px solid var(--accent-emerald);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.floating-metric-pill .material-symbols-rounded {
  color: var(--accent-emerald);
  font-size: 16px;
}

/* 3. Stat Ribbon / Metrics Strip (Slack Style) */
.stat-ribbon {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-ribbon);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 30px;
  padding: 36px 28px;
}

.stat-ribbon-container {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-val {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 4. Slack-Style Alternating Story Blocks */
.story-section {
  padding: 100px 28px;
}

.story-section-alt {
  background: var(--bg-ribbon);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.story-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}

.story-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.story-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-primary);
}

.bullet-icon {
  color: var(--accent-emerald);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-mock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

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

.pill-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.pill-badge-green {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

.card-code-preview {
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 22px;
  margin-bottom: 16px;
}

.mini-row.add { color: #34d399; }
.mini-row.ctx { color: var(--text-secondary); }

.card-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-caption .material-symbols-rounded {
  color: var(--accent-emerald);
  font-size: 18px;
}

.worktree-mock-card {
  padding: 28px;
}

.worktree-preview-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.tab-item.active {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
}

.tab-item .material-symbols-rounded { font-size: 16px; }

.watcher-live-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

/* 5. Bento Grid Section (Slack Style) */
.bento-section {
  padding: 110px 28px;
}

.bento-container {
  max-width: 1200px;
  margin: 0 auto;
}

.bento-header {
  text-align: center;
  margin-bottom: 56px;
}

.bento-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
}

.bento-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-card);
}

.bento-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-3px);
}

.bento-wide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.bento-icon-box .material-symbols-rounded { font-size: 26px; }

.bento-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  margin-bottom: 8px;
}

.bento-card-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

/* 6. Comparison Section */
.comparison-section {
  padding: 100px 28px;
  background: var(--bg-ribbon);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.comparison-header {
  text-align: center;
  margin-bottom: 48px;
}

.comparison-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

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

.comparison-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.comparison-table th, .comparison-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.comparison-table th.col-highlight, .comparison-table td.col-highlight {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  font-weight: 700;
}

/* 7. Signature Slack-Style CTA Banner */
.cta-banner-section {
  padding: 90px 28px 70px;
}

.cta-banner-card {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.cta-banner-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-desc {
  font-size: 17.5px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.download-os-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto 36px;
}

.os-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.os-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--accent-glow);
}

.os-icon {
  font-size: 44px;
  color: var(--accent-emerald);
  margin-bottom: 14px;
}

.os-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.os-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.os-card-explainer {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-os-download {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  margin-top: auto;
  box-sizing: border-box;
}

.btn-os-download .material-symbols-rounded { font-size: 18px; }

.btn-os-download:hover {
  background: var(--accent-emerald);
  color: #ffffff;
}

.cta-banner-foot a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.cta-banner-foot a:hover {
  color: var(--accent-emerald);
}

/* 8. Slack-Style Multi-Column Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-topbar);
  padding: 60px 28px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
}

.footer-brand-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

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

.footer-col-heading {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-link {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent-emerald);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .slack-hero-container { grid-template-columns: 1fr; gap: 40px; }
  .story-container { grid-template-columns: 1fr; gap: 40px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; grid-row: auto; }
  .stat-ribbon-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .download-os-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: 40px; }
  .story-title { font-size: 30px; }
  .cta-banner-title { font-size: 32px; }
  .stat-ribbon-container { grid-template-columns: 1fr; }
  .download-os-grid { grid-template-columns: 1fr; }
  .hero-install-wrapper { width: 100%; }
  .hero-brew-box { padding: 9px 12px; }
  .hero-brew-box .brew-code { font-size: 11px; }
  .hero-secondary-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-sep { display: none; }
  .footer-container { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
