/* ==========================================================================
   KeepAwake (CoffeeORTea) - Modern macOS Dark Glassmorphism CSS Design System
   ========================================================================== */

:root {
  /* Color Palette - Obsidian Base with Espresso Amber & Emerald Accents */
  --bg-dark: #0B0F17;
  --bg-surface: rgba(18, 24, 38, 0.7);
  --bg-surface-border: rgba(255, 255, 255, 0.08);
  --bg-surface-hover: rgba(255, 255, 255, 0.12);
  
  --amber-primary: #FF9F0A;
  --amber-secondary: #FF7A00;
  --amber-glow: rgba(255, 159, 10, 0.35);
  
  --emerald-accent: #30D158;
  --emerald-glow: rgba(48, 209, 88, 0.25);
  
  --red-accent: #FF453A;
  --red-glow: rgba(255, 69, 58, 0.25);
  
  --text-main: #F2F5F8;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --mac-menu-bg: rgba(26, 32, 48, 0.92);
  --mac-menu-border: rgba(255, 255, 255, 0.15);

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

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

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Ambient Background Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  top: -100px;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--amber-glow) 0%, rgba(255, 122, 0, 0) 70%);
}

.glow-2 {
  top: 600px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #FFF 20%, var(--amber-primary) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-primary), var(--amber-secondary));
  color: #000;
  box-shadow: 0 4px 20px var(--amber-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--amber-glow);
  filter: brightness(1.1);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-surface-border);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-amber {
  background: linear-gradient(135deg, rgba(255,159,10,0.2), rgba(255,122,0,0.3));
  border: 1px solid rgba(255,159,10,0.4);
  color: var(--amber-primary);
}

.btn-amber:hover {
  background: var(--amber-primary);
  color: #000;
  box-shadow: 0 0 20px var(--amber-glow);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(11, 15, 23, 0.8);
  border-bottom: 1px solid var(--bg-surface-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255,159,10,0.3);
}

.nav-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(255, 159, 10, 0.15);
  color: var(--amber-primary);
  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: 20px;
  font-weight: 600;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-surface-border);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-switch-btn:hover {
  border-color: var(--amber-primary);
  color: var(--amber-primary);
  background: rgba(255, 159, 10, 0.1);
}

.nav-github-btn {
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-github-btn svg {
  width: 15px;
  height: 15px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-surface-border);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-surface-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background-color: var(--bg-surface-border);
}

/* Simulated macOS Window & Menu Bar Demo */
.mac-mockup {
  background: #161B26;
  border: 1px solid var(--mac-menu-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 159, 10, 0.1);
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--transition-normal);
}

.mac-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mac-header {
  height: 38px;
  background: #111520;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mac-window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background-color: #FF5F56; }
.dot-yellow { background-color: #FFBD2E; }
.dot-green { background-color: #27C93F; }

.mac-title-bar {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.mac-status-clock {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Top Menubar */
.simulated-menubar {
  height: 32px;
  background: rgba(22, 27, 38, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
  font-size: 0.82rem;
  user-select: none;
}

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

.apple-logo {
  font-size: 1rem;
  color: var(--text-main);
}

.app-name {
  font-weight: 700;
  color: var(--text-main);
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.keepawake-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition-fast);
  background: rgba(255, 159, 10, 0.15);
  border: 1px solid rgba(255, 159, 10, 0.3);
}

.keepawake-menu-trigger:hover, .keepawake-menu-trigger.active {
  background: rgba(255, 159, 10, 0.3);
}

.status-emoji {
  font-size: 0.95rem;
}

.status-timer-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-primary);
  font-family: var(--font-mono);
}

/* Simulated Native macOS NSMenu Dropdown */
.simulated-dropdown {
  position: absolute;
  top: 36px;
  right: 12px;
  width: 250px;
  background: rgba(30, 36, 52, 0.94);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
  padding: 5px;
  z-index: 100;
  display: none;
}

.simulated-dropdown.active {
  display: block;
  animation: dropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Top Toggle Switch Header Box */
.toggle-header-box {
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.toggle-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.toggle-label.active {
  color: #FFFFFF;
  font-weight: 600;
}

/* macOS Native Switch */
.mac-native-switch {
  width: 38px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease;
}

.mac-native-switch .switch-handle {
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mac-native-switch.on {
  background: #34C759; /* macOS Active Switch Green */
}

.mac-native-switch.on .switch-handle {
  transform: translateX(16px);
}

/* High-Visibility Interactive Pulsing Glow for Switch */
.mac-native-switch.pulse-attention {
  animation: switchAttention 1.5s infinite;
}

@keyframes switchAttention {
  0% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.9), 0 0 12px rgba(255, 159, 10, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(255, 159, 10, 0), 0 0 24px rgba(255, 159, 10, 0.8); }
  100% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0), 0 0 12px rgba(255, 159, 10, 0.6); }
}

/* Hint Banner Positioned BELOW Switch (Zero Y-Shift on Dismissal) */
.switch-click-hint-banner {
  background: linear-gradient(135deg, #FF6B00, #FF9F0A);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.6);
  pointer-events: none;
  animation: bounceHintUp 1.4s ease-in-out infinite;
  z-index: 500;
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-top: 6px;
  margin-bottom: 2px;
}

@keyframes bounceHintUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hint-hand {
  font-size: 1rem;
  animation: handBounce 1.2s infinite;
}

@keyframes handBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hint-beacon {
  width: 7px;
  height: 7px;
  background-color: #30D158;
  border-radius: 50%;
  box-shadow: 0 0 8px #30D158;
  animation: beaconPulse 1.2s infinite;
}

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

.switch-click-hint-banner.hidden {
  display: none !important;
}

.toggle-status-text {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-top: 2px;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* NSMenu Items */
.nsmenu-item {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nsmenu-item:hover:not(.disabled) {
  background: #0063E6; /* Authentic macOS System Selection Blue */
  color: #FFFFFF;
}

.nsmenu-item.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.menu-item-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
  margin-right: 4px;
}

.menu-item-text {
  flex: 1;
}

.submenu-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
}

.menu-shortcut {
  font-size: 0.75rem;
  opacity: 0.5;
  font-family: var(--font-mono);
}

/* Duration Submenu Floating Box (Pops out on hover with JS 400ms delay & 30px hotzone bridge) */
.ns-submenu {
  position: absolute;
  top: -4px;
  right: 100%;
  left: auto;
  margin-right: 0;
  width: 175px;
  background: rgba(30, 36, 52, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  display: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 120;
}

/* Minimal 10px Invisible Hit-Bridge strictly for the 4px margin gap */
.ns-submenu::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -10px;
  width: 10px;
  background: transparent;
  pointer-events: auto;
}

.ns-submenu.visible {
  display: block !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.nsmenu-item.hover-active {
  background: #0063E6 !important;
  color: #FFFFFF !important;
}

.submenu-item {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.submenu-item:hover {
  background: #0063E6;
  color: #FFFFFF;
}

.sub-check {
  width: 12px;
  font-weight: 700;
  color: #FFF;
}

/* Native macOS NSAlert Modal Window */
.mac-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.mac-alert-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.mac-alert-dialog {
  width: 440px;
  background: rgba(36, 42, 58, 0.96);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.alert-icon-container {
  flex-shrink: 0;
}

.alert-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.alert-body {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-features ul {
  list-style: none;
  padding-left: 4px;
  margin-top: 4px;
}

.alert-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.alert-buttons {
  display: flex;
  justify-content: flex-end;
}

.mac-alert-btn {
  background: #0063E6;
  color: #FFFFFF;
  border: none;
  padding: 6px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 99, 230, 0.4);
  transition: background var(--transition-fast);
}

.mac-alert-btn:hover {
  background: #0052C2;
}

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

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

/* Mockup Desktop Screen Body */
.mac-screen-body {
  height: 320px;
  background: linear-gradient(145deg, #0F1420, #1A2234);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px 28px;
  transition: filter 0.4s ease, background 0.4s ease;
}

.screen-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  z-index: 10;
}

.mac-screen-body.blackout-active {
  background: #020305 !important;
}

.mac-screen-body.blackout-active .screen-widget {
  opacity: 0.15;
  filter: blur(3px);
}

.screen-widget {
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.widget-icon {
  font-size: 2.2rem;
}

.widget-info h4 {
  font-size: 1.05rem;
  color: var(--text-main);
}

.widget-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blackout-overlay-banner {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: rgba(255, 159, 10, 0.1);
  border: 1px dashed var(--amber-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--amber-primary);
}

.mac-screen-body.blackout-active .blackout-overlay-banner {
  display: flex;
  animation: fadeIn 0.4s ease;
}

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

.banner-pulse {
  width: 10px;
  height: 10px;
  background: var(--amber-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--amber-primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-text strong {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.banner-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.banner-tip {
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--text-main);
}

/* Sections General */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-primary);
  background: rgba(255, 159, 10, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 159, 10, 0.2);
  display: inline-block;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Segmented Tab Bar: For Human vs For Agent */
.mode-tab-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mode-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-surface-border);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.mode-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.2), rgba(255, 122, 0, 0.25));
  border-color: var(--amber-primary);
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(255, 159, 10, 0.25);
}

.tab-icon {
  font-size: 1.1rem;
}

.agent-sparkle-badge {
  background: var(--amber-primary);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
}

/* Mode Panels */
.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Comparison Cards Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.comparison-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.glow-border {
  border-color: rgba(48, 209, 88, 0.3);
  box-shadow: 0 0 30px rgba(48, 209, 88, 0.1);
}

.card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.badge-red { background: rgba(255, 69, 58, 0.15); color: var(--red-accent); border: 1px solid rgba(255, 69, 58, 0.3); }
.badge-green { background: rgba(48, 209, 88, 0.15); color: var(--emerald-accent); border: 1px solid rgba(48, 209, 88, 0.3); }

.comparison-illustration {
  height: 140px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

.screen-mockoff, .screen-mockon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.off-icon { font-size: 2rem; }
.off-text { font-size: 0.85rem; color: var(--red-accent); font-weight: 600; }

.on-icon { font-size: 2rem; }
.on-text { font-size: 0.85rem; color: var(--emerald-accent); font-weight: 600; }
.topo-pulse {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(48, 209, 88, 0.2);
  color: var(--emerald-accent);
  padding: 2px 10px;
  border-radius: 10px;
}

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

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.list-icon {
  font-weight: 800;
  font-size: 1.1rem;
}

.negative .list-icon { color: var(--red-accent); }
.positive .list-icon { color: var(--emerald-accent); }

/* Blackout Demo Card */
.blackout-demo-card {
  background: linear-gradient(135deg, rgba(255,159,10,0.1), rgba(18,24,38,0.9));
  border: 1px solid rgba(255,159,10,0.3);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.demo-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 159, 10, 0.4);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  background: rgba(255, 159, 10, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-emoji {
  font-size: 1.6rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Security Grid */
.security-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.security-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.security-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.security-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Quick Start One-Click Terminal Box */
.code-terminal-box {
  background: #090C12;
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  margin-bottom: 24px;
}

.clickable-terminal {
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.clickable-terminal:hover {
  border-color: var(--amber-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px var(--amber-glow);
  transform: translateY(-2px);
}

.terminal-header {
  height: 44px;
  background: #111520;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #343B4D;
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.one-click-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amber-primary), var(--amber-secondary));
  color: #000000;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--amber-glow);
  transition: all var(--transition-fast);
  z-index: 10;
}

.one-click-copy-btn:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.human-steps-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
}

.step-num {
  width: 22px;
  height: 22px;
  background: rgba(255, 159, 10, 0.2);
  color: var(--amber-primary);
  border: 1px solid rgba(255, 159, 10, 0.4);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.terminal-body {
  padding: 20px 24px;
}

.code-lines-box {
  background: rgba(9, 12, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-command-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 10px;
  font-family: var(--font-sans);
}

.agent-code-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-prompt-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #30D158; /* Bright Emerald Green */
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.agent-accent-btn {
  background: linear-gradient(135deg, #30D158, #28A745) !important;
  box-shadow: 0 2px 10px rgba(48, 209, 88, 0.3) !important;
}

.prompt {
  color: var(--amber-primary);
  margin-right: 12px;
  user-select: none;
  font-weight: 700;
}

.command-highlight {
  color: #F8FAFC;
  font-weight: 500;
  white-space: nowrap;
}

.terminal-click-hint {
  font-size: 0.8rem;
  color: var(--amber-primary);
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px stroke rgba(255, 255, 255, 0.08);
  font-family: var(--font-sans);
  font-weight: 500;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--amber-primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Demo Overlay Screen */
.demo-screen-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.demo-screen-overlay.active {
  display: flex;
  opacity: 1;
}

.overlay-content {
  text-align: center;
  max-width: 500px;
  padding: 40px;
}

.overlay-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.overlay-content h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.overlay-content p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.overlay-instruction {
  font-size: 0.9rem;
  color: var(--amber-primary);
  margin-bottom: 28px;
}

.pulse-key {
  border: 1px solid var(--amber-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  background: rgba(255,159,10,0.15);
}

/* Footer */
.footer {
  border-top: 1px solid var(--bg-surface-border);
  padding: 60px 0 40px;
  background: #070A10;
}

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

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

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

.footer-name {
  font-weight: 700;
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-left: 8px;
  border-left: 1px solid var(--bg-surface-border);
}

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

.copyright {
  font-size: 0.78rem;
  color: var(--text-dim);
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--amber-primary);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    order: 2;
  }
  
  .features-grid, .security-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .features-grid, .security-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .blackout-demo-card {
    flex-direction: column;
    text-align: center;
  }
  
  .mac-mockup {
    transform: none;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-brand {
    flex-direction: column;
  }
  
  .footer-tagline {
    border-left: none;
    padding-left: 0;
  }
}
