/* ==========================================================================
   Dopamine — World-Class Apple Glassmorphism Landing Page Styles
   Palette: Deep Space Black (#07090e), Electric Cyan (#06b6d4), Radiant Amber (#f59e0b)
   Inspired by macOS Sequoia, Apple.com Pro hardware, Linear, & Raycast
   ========================================================================== */

:root {
  --bg-base: #06080d;
  --bg-card: rgba(14, 20, 31, 0.65);
  --bg-card-hover: rgba(22, 31, 49, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.18);
  
  --cyan-primary: #06b6d4;
  --cyan-bright: #38bdf8;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --cyan-subtle: rgba(6, 182, 212, 0.12);

  --amber-primary: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.35);
  --amber-subtle: rgba(245, 158, 11, 0.12);

  --danger-red: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.3);

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

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, Monaco, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --shadow-elevation: 0 20px 50px rgba(0, 0, 0, 0.7);
  --blur-glass: blur(24px);
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Ambient Glow Backgrounds */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.28;
  will-change: transform;
}

.ambient-cyan {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--cyan-primary) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: floatCyan 16s ease-in-out infinite alternate;
}

.ambient-amber {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--amber-primary) 0%, transparent 70%);
  top: 15%;
  left: -200px;
  animation: floatAmber 20s ease-in-out infinite alternate;
}

@keyframes floatCyan {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-120px, 80px) scale(1.1); }
}

@keyframes floatAmber {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(140px, -60px) scale(1.08); }
}

.mesh-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 110px 0;
  position: relative;
}

.text-center { text-align: center; }
.text-cyan { color: var(--cyan-bright); }
.text-amber { color: var(--amber-bright); }
.text-danger { color: #f87171; }

.section-header {
  max-width: 780px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-bright);
  background: var(--cyan-subtle);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 18px;
  color: #ffffff;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Glassmorphism Generic Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-highlight);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 18px;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(10, 15, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 18px;
  text-decoration: none;
  color: #ffffff;
}

.nav-logo-badge {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 0 14px var(--cyan-glow);
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-version {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber-bright);
  background: var(--amber-subtle);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

/* Language Selector Dropdown */
.lang-selector-wrapper {
  position: relative;
}

.btn-lang {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.lang-globe-icon, .chevron-icon {
  width: 15px;
  height: 15px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 150;
  border-radius: var(--radius-md);
  background: rgba(13, 19, 33, 0.94);
  box-shadow: var(--shadow-elevation);
}

.lang-menu.open {
  display: flex;
  animation: menuDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-option {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-family: inherit;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.lang-option.active {
  background: var(--cyan-subtle);
  color: var(--cyan-bright);
  font-weight: 600;
}

.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #050b14;
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-primary));
  box-shadow: 0 4px 14px var(--cyan-glow);
  transition: var(--transition-smooth);
}

.btn-primary-nav svg {
  width: 14px;
  height: 14px;
}

.btn-primary-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.mobile-drawer {
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  padding: 24px;
  z-index: 99;
  display: none;
}

.mobile-drawer.open {
  display: block;
  animation: menuDrop 0.25s ease;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.btn-mobile-dl {
  margin-top: 8px;
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--cyan-primary);
  color: #040810;
  font-weight: 700;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 105px 0 100px 0;
  text-align: center;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-wrapper {
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.badge-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan-bright);
  box-shadow: 0 0 10px var(--cyan-bright);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.badge-arrow {
  color: var(--amber-bright);
  font-weight: 700;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 24px;
  max-width: 980px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan-bright) 50%, var(--amber-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-subtitle strong {
  color: #ffffff;
}

/* Hero CTA Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
}

.btn-hero-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan-primary), #0284c7);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 32px var(--cyan-glow), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(6, 182, 212, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shineLoop 4s infinite;
}

@keyframes shineLoop {
  0% { left: -100%; }
  35%, 100% { left: 200%; }
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(18, 25, 38, 0.8);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
  background: rgba(26, 36, 56, 0.9);
}

.btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

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

.btn-main-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-sub-title {
  font-size: 0.78rem;
  opacity: 0.85;
  font-weight: 400;
}

/* Homebrew Terminal Card */
.hero-brew-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 50px;
  max-width: 90%;
}

.brew-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.terminal-prompt {
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-weight: 700;
}

.brew-label {
  color: var(--text-muted);
}

.brew-code {
  font-family: var(--font-mono);
  color: var(--amber-bright);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-copy-brew {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-copy-brew:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.copy-icon {
  width: 13px;
  height: 13px;
}

/* 3D Visual Hero Badge */
.hero-visual-wrapper {
  margin-bottom: 45px;
  perspective: 1000px;
}

.hero-icon-card {
  position: relative;
  display: inline-block;
  padding: 24px;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.7), rgba(8, 12, 20, 0.9));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rim-glow-cyan {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--cyan-bright) 0%, transparent 70%);
  filter: blur(28px);
  opacity: 0.45;
  pointer-events: none;
}

.rim-glow-amber {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--amber-bright) 0%, transparent 70%);
  filter: blur(28px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-app-icon {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  display: block;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  object-fit: cover;
}

.icon-meta-badges {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.meta-pill-cyan {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan-bright);
}

.meta-pill-amber {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber-bright);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Trust Badges Row */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--cyan-bright);
}

/* ==========================================================================
   SECTION 2: CLAMSHELL COMPARISON (BEFORE & AFTER)
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.compare-card {
  padding: 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.compare-card-legacy {
  border-color: rgba(239, 68, 68, 0.25);
}

.compare-card-legacy:hover {
  border-color: rgba(239, 68, 68, 0.45);
}

.compare-card-dopamine {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.12);
}

.compare-card-dopamine:hover {
  border-color: rgba(6, 182, 212, 0.6);
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.badge-warning {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-success {
  background: var(--cyan-subtle);
  color: var(--cyan-bright);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

/* Laptop Mockup Visualizer */
.laptop-visual {
  height: 160px;
  border-radius: var(--radius-md);
  margin-bottom: 26px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.laptop-visual-hot {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px dashed rgba(239, 68, 68, 0.4);
}

.laptop-visual-cool {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.screen-lid-closed {
  width: 82%;
  height: 90px;
  border-radius: 10px;
  background: #090e17;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.heat-glow-hazard {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 10%, transparent 80%);
  animation: heatPulse 2s ease-in-out infinite alternate;
}

@keyframes heatPulse {
  0% { opacity: 0.4; }
  100% { opacity: 0.9; }
}

.cool-glow-safe {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 80%);
}

.laptop-icon-label {
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 2;
  margin-bottom: 6px;
}

.stat-pill {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.stat-pill-danger {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.stat-pill-safe {
  background: rgba(6, 182, 212, 0.25);
  color: var(--cyan-bright);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.stat-value {
  font-weight: 700;
  font-size: 0.88rem;
}

.stat-label {
  font-size: 0.76rem;
  opacity: 0.9;
}

.card-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bullet-cross {
  color: #f87171;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

.bullet-check {
  color: var(--cyan-bright);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

.list-content strong {
  display: block;
  font-size: 0.98rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.list-content span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 3: INTERACTIVE MENUBAR MOCKUP
   ========================================================================== */
.mac-screen-mockup {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  padding-bottom: 30px;
  background: rgba(12, 17, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mac-menubar {
  height: 34px;
  background: rgba(24, 32, 47, 0.88);
  backdrop-filter: blur(20px);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 500;
  user-select: none;
}

.mac-menubar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
}

.mac-apple-logo {
  font-size: 1rem;
  color: #ffffff;
  cursor: default;
}

.mac-app-name {
  color: #ffffff;
  font-weight: 700;
}

.mac-menu-item-text {
  cursor: default;
  transition: color 0.15s ease;
}

.mac-menu-item-text:hover {
  color: #ffffff;
}

.mac-menubar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
}

/* The Live Status Item */
.mac-status-item-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.mac-status-item-trigger:hover,
.mac-status-item-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.mac-status-item-trigger.active {
  background: var(--cyan-subtle);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan-bright);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.status-icon {
  font-size: 1rem;
  line-height: 1;
}

.status-timer-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.status-active-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-bright);
  animation: pulseDot 1.5s infinite;
}

.mac-status-item-trigger:not(.active) .status-active-pulse {
  background: var(--text-muted);
  box-shadow: none;
  animation: none;
}

.mac-status-item-trigger:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: transparent;
  box-shadow: none;
}

/* System battery & clock */
.battery-chip {
  display: inline-block;
  width: 18px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
  vertical-align: middle;
  padding: 1px;
}

.battery-chip::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
}

.battery-fill {
  display: block;
  height: 100%;
  background: #10b981;
  border-radius: 1px;
}

/* Realistic Desktop Workspace Screen */
.mac-desktop-stage {
  position: relative;
  min-height: 400px;
  background: radial-gradient(ellipse at 85% 20%, rgba(6, 182, 212, 0.22), transparent 55%),
              radial-gradient(ellipse at 15% 85%, rgba(245, 158, 11, 0.18), transparent 55%),
              linear-gradient(180deg, #0c1220 0%, #070a12 100%);
  display: flex;
  align-items: center;
  padding: 36px;
  position: relative;
}

.desktop-wallpaper-glow {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.desktop-widget {
  position: relative;
  z-index: 10;
  max-width: 440px;
  background: rgba(14, 21, 35, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 18px 22px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.widget-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.widget-dot.red { background: #ef4444; }
.widget-dot.yellow { background: #f59e0b; }
.widget-dot.green { background: #10b981; }

.widget-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 6px;
}

.widget-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  gap: 14px;
}

.widget-k {
  color: var(--text-muted);
}

.widget-v {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #ffffff;
}

/* The Realistic Dropdown Popover */
.mac-dropdown-menu {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 320px;
  background: rgba(18, 26, 42, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  padding: 8px 6px;
  z-index: 50;
  display: none;
  flex-direction: column;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.mac-dropdown-menu.open {
  display: flex;
  animation: menuDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.dropdown-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 10px var(--cyan-bright);
  flex-shrink: 0;
}

.dropdown-status-dot:not(.active) {
  background: var(--text-muted);
  box-shadow: none;
}

.dropdown-title-wrap {
  display: flex;
  flex-direction: column;
}

.dropdown-state-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
}

.dropdown-state-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 4px;
}

.dropdown-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  letter-spacing: 0.05em;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-item.active {
  color: var(--cyan-bright);
  font-weight: 600;
}

.item-check {
  width: 16px;
  font-weight: 800;
  color: var(--cyan-bright);
  display: inline-block;
}

.dropdown-shortcut {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dropdown-item-danger {
  color: #f87171;
}

.dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ffffff;
}

/* Controls Footer */
.mockup-controls-footer {
  margin-top: 40px;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-control-toggle {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--amber-bright);
  border-color: rgba(245, 158, 11, 0.3);
}

.btn-control-toggle:hover {
  background: var(--amber-subtle);
}

.icon-style-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-icon-choice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-icon-choice:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-icon-choice.active {
  background: var(--cyan-subtle);
  border-color: var(--cyan-bright);
  color: var(--cyan-bright);
  font-weight: 600;
}

/* ==========================================================================
   SECTION 4: FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon-badge svg {
  width: 24px;
  height: 24px;
}

.cyan-badge {
  background: var(--cyan-subtle);
  color: var(--cyan-bright);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.amber-badge {
  background: var(--amber-subtle);
  color: var(--amber-bright);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.feature-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.feature-card-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 5: SPECS TABLE
   ========================================================================== */
.specs-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  padding: 12px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.specs-table th, .specs-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table th {
  color: var(--text-secondary);
  font-weight: 600;
  width: 32%;
}

.specs-table td {
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   SECTION 6: FAQ ACCORDION
   ========================================================================== */
.faq-accordion-group {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  outline: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--cyan-bright);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 28px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: 24px;
}

.faq-answer code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  color: var(--amber-bright);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   SECTION 7: BOTTOM CTA BANNER
   ========================================================================== */
.cta-banner-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 30px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-glow-amber {
  position: absolute;
  top: -60px;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.cta-glow-cyan {
  position: absolute;
  bottom: -60px;
  right: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.cta-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.cta-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.btn-copy-brew-footer {
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--amber-bright);
}

.copy-badge-pill {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 40px 0;
  background: #04060a;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 360px;
  margin-bottom: 14px;
}

.footer-eula {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-eula a {
  color: var(--cyan-bright);
  text-decoration: underline;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.back-to-top:hover {
  color: var(--cyan-bright);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--cyan-bright);
  box-shadow: 0 10px 30px var(--cyan-glow);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-card.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--cyan-bright);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE / TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-brew-card {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-lg);
    gap: 12px;
  }

  .specs-table th {
    width: 45%;
  }

  .mockup-controls-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .mac-menubar-left .mac-menu-item-text {
    display: none;
  }
}
