/* ==============================================================================
   DisplayBridge — How to Use Web Page Styles
   Modern Apple-inspired Light & Dark Design System
============================================================================== */

:root {
  /* Light Theme Palette (Default) */
  --bg-primary: #FAFAFC;
  --bg-secondary: #FFFFFF;
  --bg-surface: #F0F2F6;
  --bg-surface-elevated: #FFFFFF;
  
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  
  --accent-color: #0071E3;
  --accent-hover: #0077ED;
  --accent-light: rgba(0, 113, 227, 0.08);
  --accent-cyan: #00C7BE;
  
  --color-success: #34C759;
  --color-warning: #FF9500;
  --color-danger: #FF3B30;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Palette */
body.dark-theme {
  --bg-primary: #0D0E11;
  --bg-secondary: #16181D;
  --bg-surface: #1E2128;
  --bg-surface-elevated: #242831;
  
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-tertiary: #6E6E73;
  
  --accent-color: #2997FF;
  --accent-hover: #47A3FF;
  --accent-light: rgba(41, 151, 255, 0.12);
  --accent-cyan: #2BD9D0;
  
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.20);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 252, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

body.dark-theme .site-header {
  background: rgba(13, 14, 17, 0.88);
}

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

.logo-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.version-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.site-nav {
  display: flex;
  gap: 22px;
}

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

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

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

.theme-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-btn:hover {
  background: var(--border-hover);
}

body.light-theme .moon-icon { display: none; }
body.light-theme .sun-icon { display: block; }
body.dark-theme .moon-icon { display: block; }
body.dark-theme .sun-icon { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-color);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--border-hover);
}

.btn-large {
  padding: 11px 22px;
  font-size: 0.95rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 48px 0 24px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.14) 0%, rgba(0, 199, 190, 0.06) 50%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-color);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(0, 113, 227, 0.2);
  margin-bottom: 16px;
}

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

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin: 0 auto 12px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 24px;
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* Device Mockup Graphic */
.display-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 0;
  perspective: 1200px;
}

.laptop-device {
  width: 320px;
  max-width: 90vw;
  background: #D8D8DC;
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  transform: rotateY(8deg) scale(0.96);
}

.laptop-device .device-screen {
  background: #111317;
  border-radius: 8px 8px 0 0;
  height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.laptop-keyboard {
  height: 14px;
  background: #B4B4B8;
  border-radius: 0 0 12px 12px;
  position: relative;
}

.laptop-keyboard::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: #8E8E93;
  border-radius: 2px;
}

.imac-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotateY(-6deg) scale(1.04);
}

.imac-bezel {
  width: 420px;
  max-width: 92vw;
  background: #E8E8EC;
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.imac-screen {
  background: #0E1015;
  border-radius: 10px 10px 0 0;
  height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.imac-chin {
  height: 38px;
  background: #E8E8EC;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imac-logo {
  font-size: 16px;
  color: #9C9CA0;
}

.imac-stand {
  width: 90px;
  height: 50px;
  background: linear-gradient(180deg, #D4D4D8 0%, #BCBCC0 100%);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.imac-foot {
  width: 140px;
  height: 7px;
  background: #C4C4C8;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mockup-menubar {
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 10px;
  color: #D1D1D6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.host-screen {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.mockup-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  color: #FFFFFF;
  width: 100%;
}

.mockup-card h4 {
  font-size: 12px;
  margin-bottom: 4px;
}

.mockup-card p {
  font-size: 10px;
  color: #A1A1A6;
  margin-bottom: 8px;
}

.pill-green {
  font-size: 9px;
  background: rgba(52, 199, 89, 0.18);
  color: #34C759;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.beam-connector {
  position: relative;
  width: 124px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-cyan));
  box-shadow: 0 0 16px var(--accent-color);
  border-radius: 2px;
  flex-shrink: 0;
}

.beam-pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 20px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 12px #FFFFFF, 0 0 20px var(--accent-cyan);
  animation: pulseMove 2.2s infinite ease-in-out;
}

@keyframes pulseMove {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 104px; opacity: 0; }
}

@keyframes pulseMoveVertical {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 50px; opacity: 0; }
}

.beam-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  white-space: nowrap;
  font-family: var(--font-mono);
  text-transform: uppercase;
  background: var(--bg-surface);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.imac-content {
  padding: 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-editor-preview {
  background: #181A20;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  height: 100%;
  padding: 10px;
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 10px;
  color: #8E8E93;
}

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

.file-name {
  margin-left: 6px;
}

.editor-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #79C0FF;
  line-height: 1.8;
}

/* Sections */
.section {
  padding: 50px 0;
  scroll-margin-top: 68px;
}

.section-header {
  margin-bottom: 24px;
  text-align: left;
}

.section-tag {
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 6px;
  display: inline-block;
  text-align: left;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: left;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 640px;
  margin: 0;
  text-align: left;
}

/* Stepper Component */
.stepper-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stepper-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.step-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.step-tab:last-child {
  border-right: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: var(--transition);
}

.step-meta {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.step-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.step-tab.active {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--accent-color);
}

.step-tab.active .step-num {
  color: var(--accent-color);
}

.step-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 26px 28px 24px;
}

.step-text-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.step-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 8px;
  display: inline-block;
}

.step-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.step-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.step-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.step-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

.tip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.45;
}

.tip-box svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.stepper-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Preview Card Frame */
.preview-card-frame {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.preview-card-header {
  height: 32px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.preview-title {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.preview-card-body {
  padding: 20px;
  flex: 1;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================================================================
   Experience & Performance Comparison Grid
============================================================================== */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.experience-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.experience-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.experience-card.featured {
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: 0 6px 24px rgba(0, 113, 227, 0.08);
  background: var(--bg-secondary);
}

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

.card-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.pill-accent {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(0, 113, 227, 0.25);
}

.pill-subtle {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.pill-muted {
  background: var(--bg-surface);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

.card-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-cable {
  background: rgba(52, 199, 89, 0.1);
  color: var(--color-success);
}

.icon-wifi {
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent-color);
}

.icon-mirror {
  background: rgba(255, 149, 0, 0.1);
  color: var(--color-warning);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
  min-height: 34px;
}

.card-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-spec-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  line-height: 1.4;
}

.spec-label {
  color: var(--text-tertiary);
  font-weight: 500;
}

.spec-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.spec-value.highlight {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.text-green { color: var(--color-success) !important; }
.text-blue { color: var(--accent-color) !important; }
.text-amber { color: var(--color-warning) !important; }

/* ==============================================================================
   Simplistic, Modern Mouse Feel Simulator
============================================================================== */
.simulator-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.simulator-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sim-header-text {
  max-width: 520px;
}

.sim-mini-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  margin-bottom: 2px;
  display: inline-block;
}

.sim-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.sim-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

.sim-segmented-control {
  display: inline-flex;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  gap: 3px;
}

.sim-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.sim-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-green { background: var(--color-success); }
.dot-blue { background: var(--accent-color); }
.dot-amber { background: var(--color-warning); }

.sim-tab:hover {
  color: var(--text-primary);
}

.sim-tab.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.dark-theme .sim-tab.active {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.sim-canvas-stage {
  height: 190px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: var(--transition);
}

.sim-canvas-stage:hover {
  border-color: var(--accent-color);
  background: var(--bg-surface);
}

.sim-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
  pointer-events: none;
}

.sim-prompt-pill {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sim-live-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 5px var(--color-success);
}

.sim-cursor-pointer,
.sim-cursor-ghost {
  position: absolute;
  width: 18px;
  height: 22px;
  pointer-events: none;
  z-index: 5;
  display: none;
  transform: translate(-3px, -2px);
}

.sim-cursor-ghost {
  z-index: 4;
  opacity: 0.85;
}

/* Compatibility Table */
.compat-table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

.compat-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.compat-table th {
  background: var(--bg-surface);
  padding: 11px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.compat-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.compat-table tr:hover td {
  background: rgba(0, 113, 227, 0.02);
}

body.dark-theme .compat-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.compat-table tr:last-child td {
  border-bottom: none;
}

.tag-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.tag-status.green {
  background: rgba(52, 199, 89, 0.12);
  color: var(--color-success);
}

.tag-status.blue {
  background: var(--accent-light);
  color: var(--accent-color);
}

/* Pricing Section */
.pricing-section {
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.pricing-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

/* Official Apple App Store Badge Guidelines Compliance:
   - Preferred badge: Black badge with official #A6A6A6 border (unmodified vector SVG)
   - Minimum digital height: 40px
   - Minimum clear space: 1/4 the height of the badge (10px - 14px)
   - No distortion, no artificial border-radius on the image, no drop shadow on the badge
*/
.appstore-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.appstore-badge-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.appstore-badge-img {
  display: block;
  height: 52px;
  width: auto;
}

.nav-appstore-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-appstore-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.nav-appstore-badge {
  display: block;
  height: 40px; /* Meets Apple's minimum 40px height requirement */
  width: auto;
}

.pricing-card.featured {
  border-color: var(--accent-color);
  box-shadow: 0 8px 32px rgba(0, 113, 227, 0.12);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.03) 0%, var(--bg-surface-elevated) 100%);
}

body.dark-theme .pricing-card.featured {
  box-shadow: 0 8px 32px rgba(41, 151, 255, 0.16);
  background: linear-gradient(180deg, rgba(41, 151, 255, 0.06) 0%, var(--bg-surface-elevated) 100%);
}

.pricing-badge-wrapper {
  margin-bottom: 16px;
}

.pricing-tier-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.pricing-tier-pill.pill-accent {
  background: var(--accent-light);
  color: var(--accent-color);
  border-color: rgba(0, 113, 227, 0.25);
}

body.dark-theme .pricing-tier-pill.pill-accent {
  border-color: rgba(41, 151, 255, 0.3);
}

.pricing-tier-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pricing-tier-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 38px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.pricing-currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-amount {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 6px;
}

.pricing-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-primary);
}

.pricing-feature-list li .check-icon {
  color: var(--color-success);
  flex-shrink: 0;
}

.pricing-feature-list li .check-icon.text-accent {
  color: var(--accent-color);
}

.pricing-feature-list li .cross-icon {
  color: var(--text-tertiary);
  opacity: 0.5;
  flex-shrink: 0;
}

.pricing-feature-dimmed {
  color: var(--text-tertiary) !important;
  opacity: 0.6;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.pricing-pro-subnote {
  display: block;
  font-size: 0.74rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 8px;
}

/* Value Proposition Comparison Banner */
.pricing-comparison-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

.comp-banner-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.comp-banner-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.comp-banner-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.comp-banner-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-comparison-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .comp-banner-divider {
    width: 60%;
    height: 1px;
  }
}

/* FAQ */
.faq-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.faq-trigger span {
  flex: 1;
  text-align: left;
}

.faq-trigger .chevron {
  transition: transform 0.25s ease;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-left: 16px;
}

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

.faq-content {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 0.90rem;
  line-height: 1.6;
  text-align: left;
}

.faq-item.open .faq-content {
  display: block;
}

/* Download Banner */
.download-banner {
  padding: 36px 0;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(0, 199, 190, 0.05) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.banner-logo {
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  width: 60px;
  height: 60px;
}

.banner-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.banner-text p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Footer (Apple-Style Bottom Region & Language Selector) */
.site-footer {
  padding: 30px 0 26px;
  font-size: 0.80rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

.footer-tagline {
  font-size: 0.80rem;
  color: var(--text-secondary);
}

.footer-languages-info {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: right;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.footer-apple-legal {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* Apple-Style Locale / Language Picker */
.footer-locale {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.footer-locale:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.globe-icon {
  color: inherit;
  flex-shrink: 0;
}

.footer-locale-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  border: none;
  font-size: 0.76rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  padding: 2px 18px 2px 2px;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.footer-locale-select:hover {
  color: var(--accent-color);
}

.footer-locale-select:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==============================================================================
   Comprehensive Responsive System (Mobile, Tablet, Desktop, Accessibility)
============================================================================== */
@media (max-width: 960px) {
  .site-nav {
    display: none;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .display-stage {
    flex-direction: column;
    perspective: none;
  }
  .laptop-device {
    transform: none;
  }
  .imac-device {
    transform: none;
  }
  .beam-connector {
    width: 4px;
    height: 70px;
    margin: 18px 0;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-cyan));
    transform: none;
  }
  .beam-pulse {
    top: 0;
    left: -3px;
    width: 10px;
    height: 20px;
    animation: pulseMoveVertical 2.2s infinite ease-in-out;
  }
  .beam-label {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
  }
  .step-text-col {
    min-height: auto;
  }
  .simulator-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-languages-info {
    text-align: left;
  }
  .footer-bottom-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .hero-section {
    padding: 36px 0 20px;
  }
  .hero-title {
    font-size: 2.05rem;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }
  .section {
    padding: 42px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .stepper-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-tab {
    padding: 10px 12px;
    gap: 8px;
  }
  .step-title {
    font-size: 0.85rem;
  }
  .step-sub {
    font-size: 0.70rem;
  }
  .sim-canvas-stage {
    height: 170px;
  }
  .download-banner {
    padding: 30px 0;
  }
  .banner-text h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  .nav-container {
    padding: 0 16px;
  }
  .version-tag {
    display: none;
  }
  .nav-download {
    padding: 7px 14px;
    font-size: 0.84rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .stepper-nav {
    grid-template-columns: 1fr;
  }
  .step-tab {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .step-tab:last-child {
    border-bottom: none;
  }
  .stepper-controls {
    flex-direction: column;
  }
  .stepper-controls .btn {
    width: 100%;
    justify-content: center;
  }
  .sim-segmented-control {
    width: 100%;
    display: flex;
  }
  .sim-tab {
    flex: 1;
    justify-content: center;
    padding: 5px 6px;
    font-size: 0.72rem;
  }
  .sim-prompt-pill {
    font-size: 0.74rem;
    padding: 4px 10px;
    text-align: center;
  }
  .sim-live-badge {
    bottom: 6px;
    right: 8px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .banner-actions {
    width: 100%;
  }
  .banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
