/* ==========================================================================
   QuickMessage Landing Page - Style System
   macOS Dark Mode Luxury Aesthetic
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0a0b0e;
  --bg-secondary: #121318;
  --bg-tertiary: #181920;
  --bg-elevated: #1e2029;
  --bg-card: rgba(26, 28, 36, 0.7);
  --bg-card-hover: rgba(34, 37, 48, 0.85);

  --accent-blue: #0a84ff;
  --accent-blue-hover: #0071e3;
  --accent-blue-glow: rgba(10, 132, 255, 0.25);
  --accent-cyan: #5ac8fa;
  --accent-purple: #bf5af2;
  --accent-green: #30d158;
  --accent-amber: #ffd60a;
  --accent-red: #ff453a;

  /* Text Colors */
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --text-muted: #515154;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(10, 132, 255, 0.5);
  --border-highlight: rgba(255, 255, 255, 0.16);

  /* macOS Traffic Lights */
  --mac-close: #ff5f56;
  --mac-minimize: #ffbd2e;
  --mac-maximize: #27c93f;

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

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(10, 132, 255, 0.18);
  --shadow-window: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(10, 132, 255, 0.15), transparent 70%),
    radial-gradient(circle 600px at 90% 20%, rgba(191, 90, 242, 0.06), transparent),
    radial-gradient(circle 600px at 10% 60%, rgba(10, 132, 255, 0.05), transparent);
  background-attachment: fixed;
}

/* Selection */
::selection {
  background: rgba(10, 132, 255, 0.35);
  color: #ffffff;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
}

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

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-blue {
  background: linear-gradient(135deg, #70b4ff 0%, #0a84ff 60%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1f8eff 0%, #0a84ff 100%);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.25);
  color: #70b4ff;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 11, 14, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(10, 11, 14, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0a84ff 0%, #0051ba 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  font-weight: 600;
  font-size: 12px;
}

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

.lang-btn.active {
  color: #ffffff;
  background: rgba(10, 132, 255, 0.35);
  box-shadow: 0 0 8px rgba(10, 132, 255, 0.3);
}

.lang-divider {
  color: var(--text-tertiary);
  font-size: 11px;
  opacity: 0.5;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 84px 0 50px;
  min-height: min(100vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-badge-wrap {
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-description {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 22px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-icon {
  color: var(--accent-green);
}

/* ==========================================================================
   Interactive macOS Showcase Window
   ========================================================================== */

.hero-showcase {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.showcase-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 80%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.18) 0%, rgba(191, 90, 242, 0.08) 50%, transparent 80%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* macOS Window Frame */
.macos-window {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  text-align: left;
}

/* Titlebar */
.macos-titlebar {
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 18px;
  user-select: none;
  position: relative;
}

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

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
}

.traffic-light.close { background: var(--mac-close); }
.traffic-light.minimize { background: var(--mac-minimize); }
.traffic-light.maximize { background: var(--mac-maximize); }

/* Showcase Tabs */
.showcase-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.showcase-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.showcase-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.showcase-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.window-status-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* App Canvas */
.window-canvas {
  height: 440px;
  position: relative;
  background: #14151a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* App Mock: Header */
.app-mock-header {
  height: 52px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.app-mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #5ac8fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.app-mock-info {
  line-height: 1.25;
}

.app-mock-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.app-mock-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Chat or Document Body */
.app-mock-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  overflow: hidden;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-out;
}

.chat-incoming {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-outgoing {
  align-self: flex-end;
  background: var(--accent-blue);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.25);
  white-space: pre-line;
}

/* App Input Bar */
.app-mock-input-wrap {
  position: relative;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
}

.app-mock-input-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  min-height: 52px;
  position: relative;
}

.typed-text-display {
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.trigger-highlight {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
  background: rgba(10, 132, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--accent-blue);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* QuickMessage Native Overlay Popup (Over the app caret) */
.qm-overlay-popup {
  position: absolute;
  bottom: 84px;
  left: 24px;
  width: 380px;
  background: rgba(26, 27, 34, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  overflow: hidden;
  z-index: 50;
  transform-origin: bottom left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qm-overlay-popup.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.qm-overlay-header {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qm-overlay-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.qm-overlay-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-secondary);
}

.qm-overlay-list {
  padding: 4px;
  list-style: none;
}

.qm-overlay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.qm-overlay-item.selected {
  background: rgba(10, 132, 255, 0.18);
}

.qm-trigger-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(10, 132, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  white-space: nowrap;
}

.qm-item-details {
  flex: 1;
  min-width: 0;
}

.qm-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-item-preview {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qm-return-icon {
  font-size: 11px;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  opacity: 0.8;
}

/* Showcase Controls */
.showcase-control-bar {
  padding: 12px 20px;
  background: rgba(20, 21, 26, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.demo-step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-label {
  color: var(--text-primary);
  font-weight: 500;
}

.demo-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */

section {
  padding: 120px 0;
  position: relative;
}

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

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Playground Section
   ========================================================================== */

.playground-section {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 19, 24, 0.5) 50%, transparent 100%);
}

.playground-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.playground-instructions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.quick-triggers-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-trigger-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-trigger-pill:hover {
  background: rgba(10, 132, 255, 0.15);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.interactive-input-container {
  position: relative;
  margin-bottom: 20px;
}

.interactive-textarea {
  width: 100%;
  height: 130px;
  background: rgba(10, 11, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  line-height: 1.6;
}

.interactive-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

/* Floating suggestions on playground */
.playground-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 20px;
  width: 360px;
  background: rgba(26, 28, 36, 0.98);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 100;
  display: none;
}

.playground-popup.visible {
  display: block;
  animation: slideUpFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.playground-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Section: Privacy First
   ========================================================================== */

.privacy-banner {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.08) 0%, rgba(48, 209, 88, 0.04) 100%);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.privacy-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.12), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.privacy-card {
  background: rgba(20, 22, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-normal);
}

.privacy-card:hover {
  background: rgba(28, 30, 39, 0.8);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.privacy-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(48, 209, 88, 0.12);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(48, 209, 88, 0.25);
}

.privacy-card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.privacy-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section: iCloud Sync
   ========================================================================== */

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

.sync-content {
  text-align: left;
}

.feature-checklist {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: var(--text-primary);
}

.checklist-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* iCloud Interactive Diagram */
.sync-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icloud-hub {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(90, 200, 250, 0.1));
  border: 1.5px solid rgba(10, 132, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(10, 132, 255, 0.25);
  margin-bottom: 40px;
  position: relative;
}

.icloud-hub-icon {
  font-size: 32px;
  color: var(--accent-blue);
  margin-bottom: 2px;
}

.icloud-hub-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.sync-devices-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 24px;
}

.device-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition-normal);
}

.device-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-highlight);
}

.device-icon {
  font-size: 28px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.device-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.device-status {
  font-size: 11px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}

.device-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
}

/* ==========================================================================
   Section: Blazing Fast & Native Tech
   ========================================================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.metric-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.metric-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

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

/* Architecture Comparison */
.arch-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.arch-info h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.arch-tech-tags {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-tag.rust {
  color: #f74c00;
  border-color: rgba(247, 76, 0, 0.3);
  background: rgba(247, 76, 0, 0.08);
}

.tech-tag.swift {
  color: #f05138;
  border-color: rgba(240, 81, 56, 0.3);
  background: rgba(240, 81, 56, 0.08);
}

.tech-tag.appkit {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.08);
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comp-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}

.comp-track {
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.comp-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.comp-fill.qm {
  width: 12%;
  background: linear-gradient(90deg, #0a84ff, #5ac8fa);
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
}

.comp-fill.electron {
  width: 88%;
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Section: Keyboard-First & Spotlight Search
   ========================================================================== */

.spotlight-preview-wrap {
  max-width: 640px;
  margin: 40px auto 0;
  background: rgba(28, 28, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  text-align: left;
}

.spotlight-input-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.spotlight-icon {
  font-size: 18px;
  color: var(--accent-blue);
}

.spotlight-query {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  flex: 1;
}

.spotlight-shortcut-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.spotlight-results-list {
  padding: 8px;
  list-style: none;
}

.spotlight-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.spotlight-row.active {
  background: rgba(10, 132, 255, 0.16);
}

.spotlight-keyword-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(10, 132, 255, 0.12);
  padding: 4px 8px;
  border-radius: 5px;
}

.spotlight-text-group {
  flex: 1;
  min-width: 0;
}

.spotlight-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.spotlight-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Section: Real World Use Cases
   ========================================================================== */

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.usecase-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.usecase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.usecase-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.usecase-title {
  font-size: 20px;
  font-weight: 700;
}

.usecase-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.usecase-code-snippet {
  background: rgba(10, 11, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: auto;
}

.snippet-trigger {
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.snippet-body {
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.5;
}

/* ==========================================================================
   Section: App Preview & Manager UI
   ========================================================================== */

.manager-showcase-wrap {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
}

.manager-img-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  position: relative;
}

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

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-blue);
}

.faq-icon {
  font-size: 20px;
  color: var(--text-tertiary);
  transition: transform var(--transition-normal);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  text-align: center;
  padding: 100px 0 140px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.15) 0%, rgba(191, 90, 242, 0.08) 100%);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(10, 132, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 18px;
}

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

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  background: rgba(10, 11, 14, 0.95);
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand-desc {
  max-width: 320px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .sync-container {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .usecases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 38px;
  }
  .macos-window {
    border-radius: var(--radius-md);
  }
  .traffic-lights {
    display: none;
  }
  .window-canvas {
    height: 480px;
  }
  .qm-overlay-popup {
    width: calc(100% - 32px);
    left: 16px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .privacy-banner {
    padding: 36px 24px;
  }
  .cta-box {
    padding: 48px 24px;
  }
}
