/* ============================================================
   Habitus Landing Page — Dark Theme (Vibe Island Inspired)
   ============================================================ */

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

:root {
  --bg-page: #060b1e;
  --bg-card: #0b1128;
  --bg-elevated: #101938;
  --border: rgba(148,180,255,0.08);
  --border-hover: rgba(148,180,255,0.18);
  --text: #e8eaf0;
  --text-secondary: #8b92a8;
  --text-tertiary: #505878;
  --accent: #38bdf8;
  --accent-glow: rgba(56,189,248,0.18);
  --accent-hover: #7dd3fc;
  --claude: #d97757;
  --codex: #22c55e;
  --gemini: #3b82f6;
  --cursor-purple: #a855f7;
  --windsurf: #f59e0b;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --max-width: 1100px;
  --section-pad: 56px;
  --radius: 12px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; background: var(--bg-page); }
body { font-family: var(--font-body); background: var(--bg-page); color: var(--text); line-height: 1.6; overflow-x: hidden; position: relative; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 50% 38%, rgba(56,189,248,0.07) 0%, rgba(30,64,175,0.04) 40%, transparent 70%); animation: bodyGlowPulse 8s ease-in-out infinite; }
@keyframes bodyGlowPulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg-page); }

/* ===== Nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6,11,30,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: var(--border); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { border-radius: 6px; }
.nav-logo-text { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.nav-version { font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-glow); padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.nav-btn { display: inline-flex; align-items: center; padding: 8px 20px; background: var(--accent); color: #000; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background 0.2s, transform 0.15s; }
.nav-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 1px; transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }
.nav-mobile { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(6,11,30,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 12px; }
.nav-mobile.open { display: flex; }
.nav-mobile-link { font-size: 15px; font-weight: 500; color: var(--text-secondary); padding: 8px 0; transition: color 0.2s; }
.nav-mobile-link:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; font-family: var(--font-body); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { font-size: 18px; line-height: 1; }

/* ===== Global Canvas Background ===== */
.global-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.global-grain { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.025; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 256px; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; z-index: 1; }
.hero::before { content: ''; position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255,255,255,0.05) 0%, rgba(56,189,248,0.1) 20%, rgba(30,64,175,0.07) 45%, transparent 70%); animation: heroRadialPulse 6s ease-in-out infinite; }
@keyframes heroRadialPulse { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 24px; max-width: 900px; }
.hero-logo { margin-bottom: 20px; border-radius: 20px; filter: drop-shadow(0 0 50px rgba(56,189,248,0.25)) drop-shadow(0 0 100px rgba(30,64,175,0.15)); }
.hero-title { font-family: var(--font-mono); font-size: clamp(48px, 10vw, 100px); font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--text); margin-bottom: 20px; text-shadow: 0 0 80px rgba(56,189,248,0.2), 0 0 160px rgba(30,64,175,0.1); }
.hero-agent-line { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(15px, 2.5vw, 20px); font-weight: 500; margin-bottom: 20px; min-height: 32px; }
.hero-agent-prefix { color: var(--text-secondary); }
.hero-agent-name { font-family: var(--font-mono); font-weight: 700; transition: opacity 0.3s ease, transform 0.3s ease, color 0.6s ease; display: inline-block; color: var(--claude); }
.hero-subtitle { font-size: clamp(15px, 2vw, 18px); line-height: 1.7; color: var(--text-secondary); margin-bottom: 28px; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-tertiary); font-weight: 500; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== Sections ===== */
.section { padding: var(--section-pad) 24px; position: relative; z-index: 1; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label { font-family: var(--font-mono); font-size: clamp(16px, 2.5vw, 22px); font-weight: 700; letter-spacing: -0.5px; color: var(--text); text-align: center; margin-bottom: 8px; }
.section-desc { font-size: 15px; line-height: 1.6; color: var(--text-secondary); text-align: center; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===== macOS Desktop Showcase ===== */
.mac-screen { max-width: 960px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid rgba(148,180,255,0.1); box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(148,180,255,0.05); background: #0b1128; }

/* Menu bar */
.mac-menubar { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 28px; background: rgba(11,17,40,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(148,180,255,0.06); position: relative; z-index: 50; }
.mac-menubar-left, .mac-menubar-right { display: flex; align-items: center; gap: 0; }
.mac-apple { font-size: 14px; color: rgba(255,255,255,0.8); padding: 0 12px 0 4px; cursor: default; }
.mac-menu-trigger { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55); font-family: var(--font-body); padding: 2px 10px; border-radius: 4px; cursor: default; transition: background 0.15s; }
.mac-menu-trigger:first-of-type { font-weight: 600; color: rgba(255,255,255,0.85); }
.mac-menu-trigger:hover, .mac-menu-trigger.open { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.mac-menu-status { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.55); font-family: var(--font-body); padding-right: 4px; }

/* Dropdown menus */
.mac-dropdown { display: none; position: absolute; top: 28px; left: 0; z-index: 100; min-width: 200px; background: rgba(11,17,40,0.96); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 0.5px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 4px 0; box-shadow: 0 12px 40px rgba(0,0,0,0.5); animation: menuDrop 0.15s ease; }
.mac-dropdown.open { display: block; }
@keyframes menuDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.mac-dropdown-item { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; margin: 0 4px; border-radius: 4px; font-size: 13px; color: rgba(255,255,255,0.85); cursor: default; transition: background 0.1s; }
.mac-dropdown-item:hover { background: #3478f6; color: #fff; }
.mac-dropdown-item:hover .mac-shortcut { color: rgba(255,255,255,0.7); }
.mac-shortcut { font-size: 12px; color: rgba(255,255,255,0.35); font-family: var(--font-body); }
.mac-dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 12px; }

/* Desktop wallpaper — Sequoia-style light rays */
.mac-desktop { position: relative; height: 460px; overflow: hidden;
  background: linear-gradient(180deg, #122952 0%, #0b1a3a 30%, #060b1e 100%);
}
.mac-rays { position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 40% 80% at 35% 20%, rgba(59,130,246,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 30% 90% at 50% 10%, rgba(251,191,36,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 35% 80% at 60% 15%, rgba(249,168,86,0.4) 0%, transparent 50%),
    radial-gradient(ellipse 25% 90% at 70% 5%, rgba(139,92,246,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 45% 40%, rgba(6,182,212,0.15) 0%, transparent 60%);
  animation: raysShift 12s ease-in-out infinite alternate;
}
@keyframes raysShift {
  0% { transform: scale(1) translateX(0); opacity: 0.85; }
  50% { transform: scale(1.05) translateX(10px); opacity: 1; }
  100% { transform: scale(1.02) translateX(-5px); opacity: 0.9; }
}

/* Dynamic Island — collapsed */
.mac-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 32px; background: #000; border-radius: 0 0 18px 18px; z-index: 30; cursor: pointer; transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1), height 0.5s cubic-bezier(0.34,1.56,0.64,1), border-radius 0.5s cubic-bezier(0.34,1.56,0.64,1); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mac-notch-collapsed { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 0 14px; opacity: 1; transition: opacity 0.2s; }
.mac-notch-collapsed img { border-radius: 3px; }
.mac-notch-collapsed .ni-dot { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; animation: pulse 2s ease-in-out infinite; }
.mac-notch-collapsed .ni-phase { font-size: 9px; font-weight: 500; color: rgba(255,255,255,0.5); font-family: var(--font-mono); }
.mac-notch-collapsed .ni-spacer { flex: 1; }
.mac-notch-collapsed .ni-count { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); font-family: var(--font-mono); }

/* Dynamic Island — expanded */
.mac-notch.expanded { width: 380px; height: auto; border-radius: 0 0 24px 24px; }
.mac-notch.expanded .mac-notch-collapsed { opacity: 0; position: absolute; pointer-events: none; }
.mac-notch-expanded { display: none; width: 100%; }
.mac-notch.expanded .mac-notch-expanded { display: block; animation: notchContentIn 0.4s 0.15s ease both; }
@keyframes notchContentIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Notch expanded inner content */
.ni-header { display: flex; align-items: center; gap: 6px; padding: 6px 16px 4px; }
.ni-header img { border-radius: 3px; }
.ni-header-name { font-size: 12px; font-weight: 700; color: #fff; font-family: var(--font-mono); }
.ni-header-badge { font-size: 8px; font-weight: 600; color: #fff; padding: 2px 7px; border-radius: 99px; background: rgba(59,130,246,0.7); }
.ni-header-spacer { flex: 1; }
.ni-header-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.ni-divider { height: 0.5px; background: rgba(255,255,255,0.08); margin: 4px 12px; }
.ni-row { display: flex; align-items: center; gap: 8px; padding: 5px 16px; transition: background 0.15s; }
.ni-row:hover { background: rgba(255,255,255,0.04); }
.ni-row-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ni-row-text { flex: 1; font-size: 11px; color: rgba(255,255,255,0.7); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ni-row-badge { font-size: 10px; font-weight: 600; color: #fff; padding: 1px 6px; border-radius: 4px; }
.ni-row-time { font-size: 10px; color: rgba(255,255,255,0.3); font-family: var(--font-mono); }
.ni-footer { padding: 4px 16px 8px; font-size: 9px; color: rgba(255,255,255,0.2); text-align: center; font-family: var(--font-mono); }

/* macOS Notifications — right side */
.mac-notifications { position: absolute; top: 12px; right: 12px; z-index: 25; width: 240px; display: flex; flex-direction: column; gap: 8px; }
.mac-notif { background: rgba(8,14,35,0.85); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 0.5px solid rgba(148,180,255,0.12); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); cursor: default; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.5s ease, box-shadow 0.2s; opacity: 0; transform: translateX(80px) scale(0.9); }
.mac-notif.visible { opacity: 1; transform: translateX(0) scale(1); }
.mac-notif.dismissed { opacity: 0; transform: translateX(80px) scale(0.85); transition-duration: 0.3s; }
.mac-notif:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 16px rgba(56,189,248,0.06); }
.mac-notif-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mac-notif-app { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6); flex: 1; }
.mac-notif-time { font-size: 10px; color: rgba(255,255,255,0.25); font-family: var(--font-mono); }
.mac-notif-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.mac-notif-body { font-size: 11px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* Click hint */
.mac-notch-hint { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); font-size: 11px; color: rgba(255,255,255,0.2); font-family: var(--font-mono); white-space: nowrap; transition: opacity 0.3s; pointer-events: none; }
.mac-notch.expanded ~ .mac-notch-hint { opacity: 0; }

/* Tab Panels — below the notch */
.mac-panel { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding-top: 60px; }
.mac-panel[style*="display:none"], .mac-panel[style*="display: none"] { display: none !important; }

/* Floating card */
.mac-float-card { width: 380px; z-index: 20; background: rgba(8,14,35,0.88); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 0.5px solid rgba(148,180,255,0.14); border-radius: 14px; padding: 8px 0; box-shadow: 0 16px 48px rgba(0,0,0,0.5); animation: cardFloat 4s ease-in-out infinite alternate, cardEnter 0.4s cubic-bezier(0.34,1.56,0.64,1); align-self: flex-start; }
@keyframes cardFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
@keyframes cardEnter { 0% { opacity: 0; transform: scale(0.88) translateY(16px); } 60% { opacity: 1; transform: scale(1.03) translateY(-2px); } 80% { transform: scale(0.98) translateY(1px); } 100% { transform: scale(1) translateY(0); } }

/* Monitor card rows */
.mac-card-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; transition: background 0.15s; border-radius: 0; }
.mac-card-row:hover { background: rgba(255,255,255,0.04); }
.mac-card-row.primary { padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 2px; }
.mac-card-info { flex: 1; min-width: 0; }
.mac-card-title { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.mac-card-desc { display: block; font-size: 11px; color: rgba(255,255,255,0.45); font-family: var(--font-mono); }
.mac-card-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }
.mac-card-row-text { flex: 1; font-size: 13px; color: rgba(255,255,255,0.75); }
.mac-card-badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mac-badge { font-size: 11px; font-weight: 600; color: #fff; padding: 2px 8px; border-radius: 5px; font-family: var(--font-mono); white-space: nowrap; }
.mac-card-time { font-size: 11px; color: rgba(255,255,255,0.35); font-family: var(--font-mono); }

/* Hover detail tooltips */
.mac-card-row.has-detail { position: relative; }
.mac-hover-detail { display: none; position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); width: 280px; background: rgba(20,20,28,0.95); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 0.5px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 14px 16px; z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,0.5); animation: detailIn 0.2s ease; pointer-events: none; }
.mac-card-row.has-detail:hover .mac-hover-detail { display: block; }
@keyframes detailIn { from { opacity: 0; transform: translateY(-50%) translateX(-6px); } to { opacity: 1; transform: translateY(-50%) translateX(0); } }
.hover-detail-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hover-detail-row { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.7; font-family: var(--font-mono); }
.hd-label { color: rgba(255,255,255,0.35); }
.hover-detail-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; margin: 8px 0 4px; overflow: hidden; }
.hd-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.hover-detail-footer { font-size: 10px; color: rgba(255,255,255,0.3); font-family: var(--font-mono); }

/* Approve panel */
.mac-card-approve-header { display: flex; align-items: center; gap: 8px; padding: 10px 16px 6px; }
.mac-approve-warn { font-size: 14px; color: #fbbf24; }
.mac-approve-title { font-size: 13px; font-weight: 600; color: #fff; }
.mac-card-approve-file { padding: 2px 16px 8px; font-size: 12px; color: rgba(255,255,255,0.4); font-family: var(--font-mono); }
.mac-card-approve-diff { padding: 8px 16px; background: rgba(0,0,0,0.25); margin: 0 8px; border-radius: 6px; display: flex; flex-direction: column; gap: 2px; }
.mac-diff-add { font-size: 12px; font-family: var(--font-mono); color: #4ade80; }
.mac-diff-del { font-size: 12px; font-family: var(--font-mono); color: #f87171; }
.mac-card-approve-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 16px 8px; }
.mac-btn-deny, .mac-btn-allow { font-size: 12px; font-weight: 500; border: none; cursor: pointer; padding: 6px 16px; border-radius: 6px; font-family: var(--font-body); transition: all 0.15s; }
.mac-btn-deny { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.mac-btn-deny:hover { background: rgba(255,255,255,0.14); }
.mac-btn-allow { background: #3478f6; color: #fff; font-weight: 600; }
.mac-btn-allow:hover { background: #4b8af7; transform: translateY(-1px); }
.mac-key { font-size: 10px; opacity: 0.6; margin-left: 4px; }

/* Ask panel */
.mac-card-ask-header { padding: 10px 16px 4px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.5px; }
.mac-card-ask-question { padding: 0 16px 10px; font-size: 14px; color: #fff; line-height: 1.5; }
.mac-card-ask-options { padding: 0 8px 8px; }
.mac-ask-option { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 2px 0; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,0.75); cursor: default; transition: background 0.15s; }
.mac-ask-option:hover { background: rgba(255,255,255,0.06); }
.mac-ask-key { font-size: 11px; color: rgba(255,255,255,0.3); font-family: var(--font-mono); min-width: 28px; }

/* Jump panel */
.mac-card-jump-header { display: flex; align-items: center; gap: 8px; padding: 10px 16px 8px; font-size: 14px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 4px; }
.mac-card-jump-list { padding: 0 8px 8px; }
.mac-jump-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; cursor: default; transition: background 0.15s; }
.mac-jump-row:hover { background: rgba(255,255,255,0.06); }
.mac-jump-row.active { background: rgba(52,120,246,0.15); }
.mac-jump-indicator { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.mac-jump-row.active .mac-jump-indicator { background: #3478f6; box-shadow: 0 0 8px rgba(52,120,246,0.5); }
.mac-jump-name { flex: 1; font-size: 13px; color: rgba(255,255,255,0.8); }
.mac-jump-status { font-size: 11px; font-weight: 600; font-family: var(--font-mono); }

/* Tab bar */
.mac-tabs { display: flex; justify-content: center; gap: 4px; padding: 12px 20px; background: rgba(11,17,40,0.95); border-top: 1px solid rgba(148,180,255,0.06); position: relative; }
.mac-tabs-slider { position: absolute; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.06); transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; box-shadow: 0 0 12px rgba(56,189,248,0.06); }
.mac-tab { display: flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5); font-family: var(--font-mono); cursor: pointer; transition: color 0.3s, transform 0.15s; border: 1px solid transparent; background: none; position: relative; z-index: 2; }
.mac-tab.active { color: #fff; }
.mac-tab:hover:not(.active) { color: rgba(255,255,255,0.7); }
.mac-tab:active { transform: scale(0.96); }
.mac-tab-icon { font-size: 12px; }
.mac-tab-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Headline below mockup */
.showcase-headline { font-family: var(--font-mono); font-size: clamp(20px, 3vw, 32px); font-weight: 700; color: var(--text); text-align: center; margin-top: 28px; letter-spacing: -0.5px; }
.showcase-sub { font-size: 15px; color: var(--text-secondary); text-align: center; margin-top: 6px; }

/* ===== Window Mockup ===== */
.window-mockup { background: rgba(11,17,40,0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(148,180,255,0.05), inset 0 1px 0 rgba(255,255,255,0.04); max-width: 800px; margin: 0 auto; }
.window-titlebar { display: flex; align-items: center; padding: 12px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); gap: 12px; }
.window-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.window-title { font-size: 12px; font-weight: 500; color: var(--text-tertiary); flex: 1; text-align: center; margin-right: 48px; }
.window-body { padding: 20px; }

/* Mock dashboard elements */
.mock-status { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,0.02); border-radius: 8px; margin-bottom: 16px; font-size: 12px; }
.mock-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.mock-status-dot.online { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.mock-status-text { color: #22c55e; font-weight: 600; font-family: var(--font-mono); font-size: 11px; }
.mock-status-profile { color: var(--text-secondary); margin-left: auto; font-family: var(--font-mono); font-size: 11px; }
.mock-status-time { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 11px; }
.mock-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.mock-stat { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid var(--border); }
.mock-stat-value { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.mock-stat-value.accent { color: var(--accent); }
.mock-stat-label { font-size: 10px; font-weight: 500; color: var(--text-tertiary); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.mock-section-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-tertiary); margin: 16px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.mock-dims { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 8px; }
.mock-dim { padding: 10px 12px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid var(--border); }
.mock-dim-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mock-dim-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 9px; font-weight: 700; font-family: var(--font-mono); }
.mock-dim-icon.reading { color: #06b6d4; background: rgba(6,182,212,0.1); }
.mock-dim-icon.production { color: #22c55e; background: rgba(34,197,94,0.1); }
.mock-dim-icon.organization { color: #a855f7; background: rgba(168,85,247,0.1); }
.mock-dim-icon.editing { color: #f59e0b; background: rgba(245,158,11,0.1); }
.mock-dim-icon.curation { color: #5856d6; background: rgba(88,86,214,0.1); }
.mock-dim-icon.crossmodal { color: #ff2d55; background: rgba(255,45,85,0.1); }
.mock-dim-name { font-size: 12px; font-weight: 600; color: var(--text); flex: 1; }
.mock-dim-tier { font-size: 10px; font-weight: 500; color: var(--text-tertiary); font-family: var(--font-mono); }
.mock-dim-bar { height: 3px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.mock-dim-fill { height: 100%; border-radius: 2px; transition: width 1.2s ease; }
.mock-patterns { display: flex; flex-direction: column; }
.mock-pattern { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mock-pattern:last-child { border-bottom: none; }
.mock-pattern-icon { font-family: var(--font-mono); font-size: 10px; font-weight: 700; width: 20px; text-align: center; flex-shrink: 0; }
.mock-pattern-text { flex: 1; font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-pattern-conf { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-tertiary); flex-shrink: 0; }
.mock-export { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 14px 16px; overflow-x: auto; }
.mock-code { font-family: var(--font-mono); font-size: 11px; line-height: 1.8; color: var(--text-secondary); white-space: pre; }
.code-comment { color: var(--text-tertiary); }
.code-key { color: var(--accent); }
.code-value { color: #22c55e; }

/* Dock */
.dock-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; padding: 8px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px; width: fit-content; margin-left: auto; margin-right: auto; }
.dock-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); cursor: default; position: relative; transition: transform 0.2s; }
.dock-icon:hover { transform: translateY(-4px) scale(1.1); }
.dock-icon-letter { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); }
.dock-icon.active .dock-icon-letter { color: var(--accent); }
.dock-dot { position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ===== Capabilities ===== */
.section-caps { background: rgba(56,189,248,0.015); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.caps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: var(--max-width); margin: 0 auto; }
.cap-card { padding: 28px 24px; background: rgba(11,17,40,0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04); }
.cap-card:hover { border-color: rgba(56,189,248,0.18); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 24px rgba(56,189,248,0.06), inset 0 1px 0 rgba(255,255,255,0.06); }
.cap-icon { font-size: 24px; margin-bottom: 16px; line-height: 1; color: var(--accent); }
.cap-title { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cap-desc { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ===== Agents ===== */
.agents-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; max-width: 720px; margin: 0 auto; }
.agent-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: rgba(11,17,40,0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04); }
.agent-card:hover { border-color: var(--agent-color, var(--border-hover)); transform: translateY(-3px); box-shadow: 0 0 24px color-mix(in srgb, var(--agent-color, var(--accent)) 15%, transparent), 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06); }
.agent-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--agent-color, var(--accent)); background: rgba(255,255,255,0.05); background: color-mix(in srgb, var(--agent-color, var(--accent)) 10%, transparent); flex-shrink: 0; }
.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.agent-format { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); }
.agent-badge { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 6px; border-radius: 4px; background: var(--accent-glow); color: var(--accent); }

/* ===== Steps ===== */
.section-how { border-top: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: var(--max-width); margin: 0 auto; }
.step-card { padding: 28px 24px; background: rgba(11,17,40,0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04); }
.step-card:hover { border-color: rgba(56,189,248,0.18); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 24px rgba(56,189,248,0.06); }
.step-number { font-family: var(--font-mono); font-size: 28px; font-weight: 800; color: var(--accent); opacity: 0.25; margin-bottom: 16px; line-height: 1; }
.step-title { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.step-desc { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 16px; }
.step-code { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: rgba(4,8,22,0.6); border-radius: 8px; border: 1px solid var(--border); }
.step-code code { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
.step-code .code-dim { color: var(--accent); font-weight: 700; }
.step-code .code-success { color: #22c55e; }

/* ===== Download ===== */
.section-download { border-top: 1px solid var(--border); }
.download-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.download-card { padding: 32px 28px; background: rgba(11,17,40,0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); position: relative; display: flex; flex-direction: column; align-items: center; transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04); }
.download-card:hover { border-color: rgba(56,189,248,0.18); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 24px rgba(56,189,248,0.06); }
.download-card.primary { border-color: rgba(56,189,248,0.2); background: linear-gradient(180deg, rgba(56,189,248,0.06) 0%, rgba(11,17,40,0.65) 100%); }
.download-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 14px; border-radius: 12px; background: var(--accent); color: #060b1e; }
.download-logo { border-radius: 10px; margin-bottom: 12px; }
.download-title { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.download-price { font-family: var(--font-mono); font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.download-desc { font-size: 13px; color: var(--text-tertiary); text-align: center; margin-bottom: 20px; }
.download-version { font-size: 12px; font-weight: 600; color: var(--accent); text-align: center; margin-top: 10px; font-family: var(--font-mono); }
.download-require { font-size: 11px; color: var(--text-tertiary); text-align: center; margin: 4px 0; font-family: var(--font-mono); }
.download-features { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.download-features li { font-size: 13px; color: var(--text-secondary); padding-left: 20px; position: relative; }
.download-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 12px; }

/* ===== FAQ ===== */
.section-faq { border-top: 1px solid var(--border); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20px 0; background: none; border: none; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; transition: color 0.2s; }
.faq-question:hover { color: var(--accent); }
.faq-chevron { font-family: var(--font-mono); font-size: 20px; color: var(--text-tertiary); flex-shrink: 0; transition: transform 0.3s, color 0.3s; width: 24px; text-align: center; }
.faq-item.open .faq-chevron { transform: rotate(45deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 60px 24px 40px; position: relative; z-index: 1; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.footer-name { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text); }
.footer-tagline { font-size: 13px; color: var(--text-tertiary); margin-left: 8px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-tertiary); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-tertiary); }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.18s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

/* ===== Focus ===== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; box-shadow: 0 0 0 4px var(--accent-glow); }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-canvas { display: none; }
  .badge-dot { animation: none; opacity: 1; }
  .fade-in, .stagger > * { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root { --section-pad: 40px; }
  .nav { padding: 12px 16px; }
  .nav-links { gap: 16px; }
  .nav-link { display: none; }
  .nav-hamburger { display: flex; }
  .hero-agent-line { flex-direction: column; gap: 4px; }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .caps-grid, .steps-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: repeat(2,1fr); }
  .download-cards { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: repeat(2,1fr); }
  .mock-dims { grid-template-columns: 1fr; }
  .window-body { padding: 14px; }
  .footer-links { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .footer-brand { flex-wrap: wrap; }
  .footer-tagline { flex-basis: 100%; margin-left: 0; margin-top: 4px; }
  .section-desc br { display: none; }
  .mac-desktop { height: 300px; }
  .mac-notifications { display: none; }
  .mac-float-card { width: 300px; }
  .mac-float-card .mac-card-desc { display: none; }
  .mac-tabs { flex-wrap: wrap; gap: 6px; }
  .mac-tab { padding: 6px 14px; font-size: 12px; }
  .mac-hover-detail { left: auto; right: auto; top: calc(100% + 8px); left: 16px; transform: none; width: 260px; }
  .mac-card-row.has-detail:hover .mac-hover-detail { display: block; }
  @keyframes detailIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 480px) {
  .agents-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-subtitle br { display: none; }
}
