@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Design Tokens - Dark Theme (Default) */
  --bg-primary: #070913;
  --bg-secondary: #0d0f1d;
  --bg-elevated: #16192b;
  --bg-gradient: radial-gradient(circle at top, #11172b 0%, #070913 100%);
  
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.25);
  
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-glow: rgba(14, 165, 233, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border: 1px solid rgba(255, 255, 255, 0.08);
  --border-glow: 1px solid rgba(37, 99, 235, 0.2);
  --border-hover: 1px solid rgba(255, 255, 255, 0.2);
  --glass-bg: rgba(13, 15, 29, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.7);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-gradient: radial-gradient(circle at top, #eff6ff 0%, #f8fafc 100%);
  
  --primary: #2563eb;
  --primary-light: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.08);
  
  --accent: #0284c7;
  --accent-light: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.1);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: 1px solid rgba(15, 23, 42, 0.08);
  --border-glow: 1px solid rgba(37, 99, 235, 0.15);
  --border-hover: 1px solid rgba(15, 23, 42, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.05);
  --card-shadow: 0 12px 40px -10px rgba(15, 23, 42, 0.06);
}

/* CSS Resets & General Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-secondary); }
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--accent-light); }

/* Layout Blocks */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-btn {
  background: none;
  border: var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.theme-btn:hover {
  border: var(--border-hover);
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}
.theme-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Hamburger Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}
.menu-btn svg { width: 24px; height: 24px; }

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  border: var(--border);
  color: var(--text-primary) !important;
}

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

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 2rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

/* When Desktop or Pairing is active: switch to stacked single-column */
.hero-section.platform-desktop .hero-grid,
.hero-section.platform-pairing .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
}
.hero-section.platform-desktop .hero-content,
.hero-section.platform-pairing .hero-content {
  max-width: 700px;
  margin: 0 auto;
}
.hero-section.platform-desktop .hero-actions,
.hero-section.platform-pairing .hero-actions {
  justify-content: center;
}
.hero-section.platform-desktop .hero-meta,
.hero-section.platform-pairing .hero-meta {
  text-align: center;
}
.hero-section.platform-desktop .hero-proof-row,
.hero-section.platform-pairing .hero-proof-row {
  justify-content: center;
}
.hero-section.platform-desktop .hero-content h1,
.hero-section.platform-pairing .hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.hero-section.platform-desktop .hero-content p,
.hero-section.platform-pairing .hero-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* When Desktop/Pairing: put visual full-width */
.hero-section.platform-desktop .hero-visual,
.hero-section.platform-pairing .hero-visual {
  height: auto;
  min-height: 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero Graphic Flow Animation (outstanding demo) */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
}

.glow-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(45px);
  z-index: -1;
  animation: float-blob 8s ease-in-out infinite alternate;
}

.glow-blob-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(35px);
  z-index: -1;
  right: 5%;
  bottom: 10%;
  animation: float-blob 10s ease-in-out infinite alternate-reverse;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -30px) scale(1.15); }
}

/* Realistic CSS iPhone Mockup Frame */
.iphone-device {
  position: relative;
  width: 320px;
  height: 640px;
  background: #000000;
  border-radius: 44px;
  box-shadow: 
    0px 0px 0px 4px #2e3033, 
    0px 0px 0px 12px #090a0f,
    0 20px 50px rgba(0, 0, 0, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.15);
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 5;
}

/* iPhone Screen */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #080a13;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #141724;
}

/* iPhone Top Dynamic Island */
.iphone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Status Bar */
.iphone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 6px 22px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 90;
}

.iphone-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.iphone-status-icons .wifi-icon {
  width: 12px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
}
.iphone-status-icons .battery-icon {
  width: 18px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
  padding: 1px;
}
.iphone-status-icons .battery-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 3px;
  background: currentColor;
}
.iphone-status-icons .battery-level {
  height: 100%;
  background: currentColor;
  width: 80%;
  border-radius: 1px;
}

/* App Mockup Inside iPhone */
.iphone-app-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iphone-app-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.iphone-app-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #10b981;
}

.iphone-app-status .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 1.5s infinite;
}

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

.iphone-app-search {
  padding: 8px 12px;
}

.iphone-app-search-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.725rem;
  color: var(--text-secondary);
  outline: none;
}

/* Traffic List */
.iphone-traffic-feed {
  flex-grow: 1;
  overflow-y: auto;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Hide Scrollbar */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.iphone-traffic-feed::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Traffic Row Card */
.traffic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.traffic-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(37, 99, 235, 0.3);
}

.traffic-row.selected {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--primary);
}

.traffic-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.method-badge {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  width: 36px;
  text-align: center;
}
.method-badge.get { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.method-badge.post { background: rgba(37, 99, 235, 0.15); color: var(--accent-light); }
.method-badge.put { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.traffic-path-meta {
  display: flex;
  flex-direction: column;
}

.traffic-path {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.traffic-host {
  font-size: 0.575rem;
  color: var(--text-secondary);
}

.traffic-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.status-code {
  font-weight: 700;
}
.status-code.ok { color: #10b981; }
.status-code.unauth { color: #ef4444; }

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

/* Sliding Inspector Sheet inside iPhone */
.iphone-inspector-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: #0b0e1b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  z-index: 80;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
}

.iphone-inspector-sheet.active {
  transform: translateY(0);
}

.inspector-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 8px auto;
  cursor: pointer;
}

.inspector-sheet-header {
  padding: 4px 14px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
}

.inspector-sheet-tabs {
  display: flex;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.65rem;
  font-weight: 600;
}

.inspector-sheet-tab {
  color: var(--text-secondary);
  cursor: pointer;
}

.inspector-sheet-tab.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.inspector-sheet-body {
  padding: 12px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Home Page Bento Layout Borders */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  border: var(--border-glow);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition-normal);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card-large {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  border: var(--border);
  margin-bottom: 0.25rem;
}

.bento-card:hover .bento-icon {
  color: var(--accent-light);
  border-color: rgba(56, 189, 248, 0.3);
  background-color: var(--primary-glow);
}

.bento-card h3 {
  font-size: 1.25rem;
}

/* Code Generator Block */
.code-generator-showcase {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.codegen-left h3 {
  margin-bottom: 1rem;
}

.codegen-terminal {
  background: #04060b;
  border: var(--border-glow);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  font-family: var(--font-mono);
  font-size: 0.825rem;
}

.terminal-header {
  background: #090c13;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-tabs {
  display: flex;
  gap: 0.25rem;
}

.terminal-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.terminal-tab-btn.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}

.terminal-body {
  padding: 1.25rem;
  overflow-x: auto;
  max-height: 280px;
}

.codegen-content-block {
  display: none;
  animation: fade-in 0.3s ease-in-out;
}

.codegen-content-block.active {
  display: block;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pricing Page CSS */
.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-toggle-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-toggle-label.active {
  color: var(--text-primary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-elevated);
  border: var(--border);
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(28px);
}

.discount-badge {
  background: var(--accent-light);
  color: #0b0f19;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 0.25rem;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 5rem;
}

.pricing-card {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
}

.pricing-card.popular {
  border: var(--border-glow);
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.05) 0%, var(--bg-secondary) 100%);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border: var(--border-hover);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-name {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.plan-billing {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-features-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features-list li.muted {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pricing-features-list li svg.check { color: #10b981; fill: none; stroke: currentColor; }
.pricing-features-list li svg.cross { color: var(--text-muted); fill: none; stroke: currentColor; }

/* Pricing Comparison Table & Competitors */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  margin-top: 2rem;
  box-shadow: var(--card-shadow);
}

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

.comparison-table th, 
.comparison-table td {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255,255,255,0.01);
}

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

.comparison-table tr:hover td {
  background: rgba(255,255,255,0.015);
}

.comparison-table td.center {
  text-align: center;
}

.comparison-table .highlight-col {
  color: var(--accent-light);
  font-weight: 600;
}

/* Accordions for FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
}

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

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

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  color: var(--text-secondary);
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content-inner {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Feature Deep-Dive Layout (Features Page) */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.features-split:nth-child(even) {
  direction: rtl;
}

.features-split:nth-child(even) .split-text {
  direction: ltr;
}

.split-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.split-visual {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--card-shadow);
  min-height: 300px;
}

/* Guide Page (Certificate Setup Tabs) */
.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.guide-tab-btn {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.guide-tab-btn:hover {
  border: var(--border-hover);
  color: var(--text-primary);
}

.guide-tab-btn.active {
  border-color: var(--primary);
  color: var(--text-primary);
  background: var(--primary-glow);
}

.guide-step-content {
  display: none;
  animation: fade-in 0.4s ease-out;
}

.guide-step-content.active {
  display: block;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  box-shadow: var(--card-shadow);
}

.step-number {
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-text p {
  font-size: 0.95rem;
}

/* Download/Apps Page layout */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.app-download-card {
  background: var(--bg-secondary);
  border: var(--border);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
}

.app-download-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.app-card-icon {
  font-size: 3rem;
  color: var(--primary-light);
}

.download-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Footer style */
footer {
  background: #03050a;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem 0;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h5 {
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

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

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

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

/* Legal Pages Styling (Privacy & Terms) */
.legal-container {
  max-width: 800px;
  margin: 6rem auto;
  padding: 0 1.5rem;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 1rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.25rem;
}

.legal-body p, .legal-body ul {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-body ul {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 600px;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-card-large {
    grid-column: span 2;
  }
  
  .code-generator-showcase {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto 4rem auto;
  }
  
  .pricing-card.popular {
    transform: none;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
  
  .features-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-split:nth-child(even) {
    direction: ltr;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 4rem auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header nav {
    display: none; /* Managed by mobile hamburger menu in JS */
  }
  
  .menu-btn {
    display: block;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card-large {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Mobile Nav Menu Drawer */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 3rem 1.5rem;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav ul a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.mobile-nav ul a:hover,
.mobile-nav ul a.active {
  color: var(--text-primary);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

/* Premium visual refresh */
:root {
  --bg-primary: #06080d;
  --bg-secondary: #0d111a;
  --bg-elevated: #151b27;
  --bg-gradient:
    linear-gradient(180deg, rgba(11, 20, 38, 0.9) 0%, rgba(6, 8, 13, 0.98) 38%, #06080d 100%);
  --primary: #2f6df6;
  --primary-light: #6aa2ff;
  --primary-glow: rgba(47, 109, 246, 0.22);
  --accent: #12b7df;
  --accent-light: #67e8f9;
  --accent-glow: rgba(18, 183, 223, 0.18);
  --success: #20d39b;
  --danger: #ff5c7a;
  --warning: #f7b955;
  --text-primary: #f8fbff;
  --text-secondary: #9ba9bd;
  --text-muted: #637085;
  --border: 1px solid rgba(161, 178, 205, 0.13);
  --border-glow: 1px solid rgba(103, 232, 249, 0.28);
  --border-hover: 1px solid rgba(188, 205, 232, 0.26);
  --glass-bg: rgba(6, 9, 16, 0.78);
  --glass-border: rgba(161, 178, 205, 0.14);
  --card-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.82);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
}

[data-theme="light"] {
  --bg-primary: #f7f9fc;
  --bg-secondary: #ffffff;
  --bg-elevated: #edf3fa;
  --bg-gradient:
    linear-gradient(180deg, #edf6ff 0%, #f7f9fc 42%, #ffffff 100%);
  --primary: #235ee8;
  --primary-light: #1d4ed8;
  --primary-glow: rgba(35, 94, 232, 0.12);
  --accent: #0289b8;
  --accent-light: #047aa6;
  --accent-glow: rgba(2, 137, 184, 0.1);
  --success: #069668;
  --danger: #d93458;
  --warning: #b87506;
  --text-primary: #0b1220;
  --text-secondary: #4a5a70;
  --text-muted: #8290a3;
  --border: 1px solid rgba(14, 25, 41, 0.1);
  --border-glow: 1px solid rgba(35, 94, 232, 0.2);
  --border-hover: 1px solid rgba(14, 25, 41, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(14, 25, 41, 0.1);
  --card-shadow: 0 18px 50px -30px rgba(30, 49, 80, 0.35);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 72% 12%, rgba(18, 183, 223, 0.14), transparent 28%),
    radial-gradient(circle at 16% 26%, rgba(47, 109, 246, 0.14), transparent 26%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5.3rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

header {
  border-bottom: 1px solid rgba(161, 178, 205, 0.11);
}

.header-container {
  height: 74px;
}

.logo {
  gap: 0.65rem;
}

.logo img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 24px rgba(47, 109, 246, 0.22);
}

.nav-links {
  gap: 0.35rem;
  padding: 0.35rem;
  border: var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-links a {
  display: inline-flex;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.theme-btn {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.btn {
  border-radius: 10px;
  min-height: 44px;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #13a8d9 100%);
  box-shadow: 0 14px 34px -18px var(--primary), inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.section {
  padding: 7rem 0;
}

.section-header {
  max-width: 760px;
}

.section-header > span,
.codegen-left > span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--accent-light) !important;
  letter-spacing: 0.12em;
}

.hero-section {
  min-height: calc(100vh - 74px);
  padding: 7.25rem 0 4.5rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: clamp(2rem, 6vw, 5.5rem);
}

.hero-content h1 {
  max-width: 760px;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 6vw, 5.65rem);
  line-height: 0.98;
  background: linear-gradient(145deg, #ffffff 10%, #d5e5ff 45%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  max-width: 650px;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  color: #aebbcf;
}

[data-theme="light"] .hero-content p {
  color: var(--text-secondary);
}

.hero-actions {
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: -0.75rem;
  color: var(--text-muted);
}

.hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 620px;
  margin-top: 1.5rem;
}

.hero-proof-row div {
  padding: 0.95rem 1rem;
  border: var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.hero-proof-row strong,
.hero-proof-row span {
  display: block;
}

.hero-proof-row strong {
  color: var(--text-primary);
  font-size: 1rem;
}

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

.hero-visual {
  height: 710px;
  isolation: isolate;
}

.glow-blob,
.glow-blob-2 {
  display: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(103,232,249,0), rgba(103,232,249,0.3), rgba(47,109,246,0.36), rgba(32,211,155,0.18), rgba(103,232,249,0));
  filter: blur(34px);
  opacity: 0.58;
  z-index: -2;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: min(560px, 100%);
  height: 74%;
  border: var(--border);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 78px);
  transform: rotate(-6deg);
  z-index: -1;
}

.iphone-device {
  width: 338px;
  height: 676px;
  border-radius: 48px;
  background: linear-gradient(145deg, #222a36, #030407 42%, #111722);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18),
    0 0 0 9px #080a0f,
    0 36px 100px rgba(0,0,0,0.78),
    -26px 24px 60px rgba(47,109,246,0.18);
}

.iphone-screen {
  background:
    linear-gradient(180deg, rgba(47,109,246,0.12), transparent 28%),
    #070b12;
  border-color: rgba(255,255,255,0.12);
}

.iphone-app-header {
  padding-top: 14px;
}

.iphone-app-title {
  font-size: 1rem;
}

.iphone-app-status {
  color: var(--success);
}

.iphone-app-status .pulse-dot {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.iphone-app-search-input,
.traffic-row,
.iphone-inspector-sheet,
.terminal-header,
.codegen-terminal,
.split-visual,
.table-wrapper,
.faq-item,
.step-card,
.app-download-card,
.pricing-card,
.bento-card,
.code-generator-showcase {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.traffic-row {
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
}

.traffic-row.selected {
  background: rgba(47,109,246,0.16);
  box-shadow: inset 3px 0 0 var(--accent-light);
}

.method-badge {
  border-radius: 6px;
}

.method-badge.get { background: rgba(32, 211, 155, 0.16); color: var(--success); }
.method-badge.post { background: rgba(47, 109, 246, 0.18); color: #8bb8ff; }
.status-code.ok { color: var(--success); }
.status-code.unauth { color: var(--danger); }

.iphone-inspector-sheet {
  background: rgba(9, 14, 24, 0.96);
  border-top-color: rgba(103,232,249,0.24);
}

/* App-accurate iPhone mockup */
.app-phone .iphone-screen {
  background: #000;
  color: #f7f7f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", var(--font-sans);
}

.app-phone svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-statusbar {
  height: 49px;
  padding: 15px 26px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
  z-index: 10;
}

.app-status-icons {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.signal-dots {
  width: 24px;
  height: 5px;
  background: radial-gradient(circle, #3a3a3c 2px, transparent 2.4px) 0 0 / 6px 5px;
  opacity: 0.95;
}

.wifi-mark {
  width: 18px;
  height: 14px;
  position: relative;
}

.wifi-mark::before,
.wifi-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 3px solid #fff;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom: 0;
  transform: translateX(-50%);
}

.wifi-mark::before {
  width: 22px;
  height: 12px;
  top: 0;
  border-radius: 18px 18px 0 0;
}

.wifi-mark::after {
  width: 11px;
  height: 7px;
  top: 7px;
  border-radius: 12px 12px 0 0;
}

.battery-mark {
  width: 28px;
  height: 15px;
  border: 2px solid #f7f7f7;
  border-radius: 6px;
  padding: 2px;
  position: relative;
}

.battery-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 4px;
  width: 2px;
  height: 6px;
  background: #f7f7f7;
  border-radius: 0 3px 3px 0;
}

.battery-mark span {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 3px;
}

.app-screen-stack {
  position: relative;
  flex: 1;
  min-height: 0;
}

.mock-app-screen {
  position: absolute;
  inset: 0 0 70px;
  padding: 25px 18px 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mock-app-screen.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.mock-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 18px;
}

.mock-page-head.single {
  margin-bottom: 22px;
}

.mock-page-head h3 {
  color: #fff;
  font-size: 2.25rem;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
}

.mock-round-actions {
  display: flex;
  gap: 0.58rem;
}

.mock-round-actions button,
.mock-filter {
  width: 41px;
  height: 41px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a7a7ad;
  background: #2c2c2e;
}

.mock-round-actions button.danger {
  color: #ff453a;
}

.mock-round-actions svg,
.mock-filter svg {
  font-size: 1.28rem;
}

.mock-search-row {
  display: grid;
  grid-template-columns: 1fr 41px;
  gap: 0.55rem;
  margin-bottom: 10px;
}

.mock-search {
  height: 42px;
  border-radius: 14px;
  background: #2c2c2e;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.8rem;
  color: #a6a6ad;
  font-size: 1rem;
  overflow: hidden;
}

.mock-search svg {
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.mock-search span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-filter {
  border-radius: 13px;
}

.mock-chips {
  display: flex;
  gap: 0.55rem;
}

.mock-chips span {
  height: 40px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: #2c2c2e;
  color: #aaaab0;
  font-size: 0.95rem;
  font-weight: 700;
}

.mock-chips svg {
  font-size: 1rem;
}

.mock-empty-state {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  color: #9b9ba1;
}

.mock-empty-state svg {
  font-size: 3rem;
  stroke-width: 2.25;
}

.mock-empty-state span {
  font-size: 1.18rem;
  color: #9b9ba1;
}

.proxy-main-card,
.settings-card,
.cert-warning {
  border-radius: 22px;
  background: #1c1c1e;
}

.proxy-main-card {
  min-height: 84px;
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: 52px 1fr 60px;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 14px;
}

.proxy-main-card strong,
.settings-row strong {
  display: block;
  color: #f4f4f6;
  font-size: 1.13rem;
  line-height: 1.15;
  font-weight: 500;
}

.proxy-main-card span:not(.mock-icon):not(.ios-switch),
.settings-row small,
.cert-warning p {
  display: block;
  color: #9b9ba1;
  font-size: 0.88rem;
  line-height: 1.3;
  margin-top: 0.38rem;
}

.mock-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.mock-icon svg {
  font-size: 1.25rem;
  stroke-width: 2.1;
}

.mock-icon.dark { background: #2c2c33; }
.mock-icon.blue { background: #0a84ff; }
.mock-icon.cyan { background: #5ac8fa; }
.mock-icon.green { background: #30d158; }

.ios-switch {
  width: 58px;
  height: 35px;
  border-radius: 999px;
  background: #3a3a3f;
  position: relative;
  justify-self: end;
}

.ios-switch::before {
  content: "";
  position: absolute;
  width: 29px;
  height: 29px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #f7f7f7;
}

.cert-warning {
  min-height: 96px;
  padding: 1rem 0.95rem;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  color: #ff9f0a;
  background: #241600;
  border: 1px solid rgba(255, 159, 10, 0.58);
  margin-bottom: 28px;
}

.cert-warning > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #ff9f0a;
  color: #fff;
}

.cert-warning strong {
  color: #ff9f0a;
  font-size: 1rem;
}

.cert-warning b,
.settings-row em,
.pro-banner em {
  color: #a5a5ab;
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 300;
}

.mock-section-label {
  margin: 0 0 10px 0.9rem;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
}

.settings-card {
  margin-bottom: 24px;
  overflow: hidden;
}

.settings-card.compact {
  margin-bottom: 22px;
}

.settings-card.one-row {
  margin-bottom: 0;
}

.settings-row {
  min-height: 64px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}

.settings-row + .settings-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 62px;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.settings-card.rules .settings-row {
  min-height: 72px;
}

.settings-row em {
  font-size: 1.05rem;
}

.pro-banner {
  height: 64px;
  border-radius: 0 17px 17px 0;
  margin-bottom: 29px;
  padding: 0 0.85rem 0 0.95rem;
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  background: linear-gradient(105deg, #7c3cff 0%, #2d7dff 52%, #13c8e6 100%);
}

.pro-banner span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
}

.pro-banner strong {
  font-size: 1rem;
  line-height: 1.05;
}

.pro-banner b {
  padding: 0.38rem 0.58rem;
  border-radius: 8px;
  background: #ffbd2e;
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.mock-tabbar {
  height: 70px;
  padding: 8px 10px 10px;
  border-top: 1px solid #2c2c2e;
  background: #171719;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.mock-tabbar button {
  border: 0;
  background: transparent;
  color: #9b9ba1;
  display: grid;
  place-items: center;
  gap: 0.15rem;
  font-family: inherit;
  font-size: 0.68rem;
  cursor: pointer;
  transition: color 220ms ease, transform 220ms ease;
}

.mock-tabbar svg {
  font-size: 1.55rem;
  stroke-width: 1.75;
}

.mock-tabbar button.active {
  color: #0a84ff;
  transform: translateY(-1px);
}

.mock-tabbar button.active svg {
  filter: drop-shadow(0 0 12px rgba(10, 132, 255, 0.42));
}

.bento-grid {
  gap: 1rem;
}

.bento-card,
.pricing-card,
.app-download-card,
.step-card,
.faq-item,
.split-visual,
.code-generator-showcase,
.table-wrapper {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    var(--bg-secondary);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}

.bento-card {
  padding: 1.65rem;
}

.bento-card:hover,
.pricing-card:hover,
.app-download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px -36px rgba(103,232,249,0.45), var(--card-shadow);
}

.bento-card::before {
  height: 1px;
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(103,232,249,0.56), transparent);
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(103,232,249,0.08);
  color: var(--accent-light);
}

.code-generator-showcase {
  padding: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 0.92fr 1.08fr;
}

.codegen-terminal,
.split-visual > div[style*="background"],
.split-visual div[style*="#05070c"],
.guide-step-content + .section-header + div div[style*="#05070c"] {
  border-radius: 14px !important;
  background: #050914 !important;
}

.terminal-tabs {
  padding: 0.2rem;
  border: var(--border);
  border-radius: 9px;
}

.terminal-tab-btn {
  border-radius: 7px;
}

.terminal-tab-btn.active {
  background: rgba(103, 232, 249, 0.13);
  color: var(--accent-light);
}

.pricing-toggle-container {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0.55rem 0.8rem;
  border: var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
}

.pricing-grid {
  gap: 1rem;
}

.pricing-card {
  padding: 2rem 1.4rem 1.4rem;
}

.pricing-card.popular {
  background:
    radial-gradient(circle at 50% -18%, rgba(103,232,249,0.2), transparent 42%),
    linear-gradient(180deg, rgba(47,109,246,0.15), rgba(255,255,255,0.018)),
    var(--bg-secondary);
}

.popular-badge,
.discount-badge {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-light), var(--success));
  color: #041018;
}

.plan-name {
  display: block;
  color: var(--accent-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.plan-price {
  margin-top: 0.8rem;
  font-size: clamp(2.35rem, 4vw, 3.35rem);
}

.pricing-features-list li {
  align-items: flex-start;
}

.table-wrapper {
  border-radius: 16px;
}

.comparison-table th {
  background: rgba(255,255,255,0.045);
}

.comparison-table th,
.comparison-table td {
  border-bottom-color: rgba(161, 178, 205, 0.11);
}

.comparison-table .highlight-col {
  color: var(--accent-light);
}

.features-split {
  gap: clamp(2rem, 5vw, 4.5rem);
}

.split-text p,
.step-text p,
.app-download-card p,
.pricing-card p {
  color: var(--text-secondary);
}

.split-visual {
  min-height: 340px;
}

.guide-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0.35rem;
  border: var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.guide-tab-btn {
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.guide-tab-btn.active {
  background: rgba(103, 232, 249, 0.12);
  color: var(--accent-light);
}

.step-card {
  position: relative;
  padding: 1.35rem;
}

.step-number {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.apps-grid {
  gap: 1rem;
}

.app-download-card {
  align-items: flex-start;
  text-align: left;
}

.app-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: var(--border);
  border-radius: 16px;
  background: rgba(103,232,249,0.08);
  color: var(--accent-light);
}

.app-card-icon svg {
  width: 34px;
  height: 34px;
}

.download-actions {
  margin-top: auto;
}

footer {
  background: linear-gradient(180deg, rgba(6,8,13,0), #020407 28%);
}

.footer-bottom {
  border-top: 1px solid rgba(161, 178, 205, 0.11);
  padding-top: 1.25rem;
}

@media (max-width: 980px) {
  .hero-section {
    min-height: 0;
    padding-top: 5rem;
  }

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

  .hero-content {
    text-align: center;
  }

  .hero-content h1,
  .hero-content p,
  .hero-proof-row {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    height: 690px;
  }
}

@media (max-width: 768px) {
  .header-actions > .btn-secondary {
    display: none;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero-section {
    padding: 4rem 0 3rem;
  }

  .hero-content h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero-content p {
    margin-bottom: 1.75rem;
  }

  .hero-meta {
    font-size: 0.82rem;
  }

  .hero-proof-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .hero-proof-row div {
    padding: 0.72rem 0.55rem;
    text-align: center;
  }

  .hero-proof-row strong {
    font-size: 0.88rem;
  }

  .hero-proof-row span {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .hero-visual {
    height: 560px;
    margin-top: 1.25rem;
    align-items: flex-start;
  }

  .iphone-device {
    width: min(318px, 88vw);
    height: min(636px, 176vw);
  }

  .pricing-toggle-container,
  .guide-tabs,
  .hero-actions,
  #pricing-cta-section-id .container > div {
    flex-direction: column;
  }

  .pricing-toggle-container {
    border-radius: 18px;
  }

  .terminal-header {
    align-items: flex-start;
    gap: 0.75rem;
    flex-direction: column;
  }

  .terminal-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 680px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    height: 500px;
  }

  .iphone-status-bar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .traffic-path {
    max-width: 116px;
  }

  .step-card {
    flex-direction: column;
  }
}

/* ==========================================================================
   NEW PLATFORM SWITCHER & DESKTOP MOCKUP SYSTEM
   ========================================================================== */

/* Hero Platform Copy Toggle */
.hero-text-mobile,
.hero-text-desktop,
.hero-text-pairing {
  display: none;
  animation: fadeInHeroText 0.4s ease forwards;
}

.platform-mobile .hero-text-mobile {
  display: block;
}

.platform-desktop .hero-text-desktop {
  display: block;
}

.platform-pairing .hero-text-pairing {
  display: block;
}

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

/* Platform Switcher Tabs */
.hero-mockup-tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: rgba(13, 15, 29, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 20;
}

.hero-tab-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

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

.hero-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mockup Display States */
.hero-visual-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.mockup-viewport {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.iphone-device-wrapper,
.desktop-device-wrapper,
.pairing-device-wrapper {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.iphone-device-wrapper.active,
.desktop-device-wrapper.active,
.pairing-device-wrapper.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Scale mockups to fit in viewport */
.iphone-device-wrapper .hf-phone {
  transform: scale(0.78);
  transform-origin: top center;
}
.desktop-device-wrapper .hf-desktop {
  transform: scale(0.82);
  transform-origin: top center;
}
.pairing-device-wrapper .hf-pairing-container {
  transform: scale(0.5);
  transform-origin: top center;
}

/* CSS Desktop App Mockup Window */
.desktop-device {
  width: 100%;
  max-width: 760px;
  height: 480px;
  background: #12131a;
  border-radius: 12px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(37, 99, 235, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Desktop App Header */
.desktop-header {
  height: 44px;
  background: #090a0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.desktop-window-controls {
  display: flex;
  gap: 8px;
}

.desktop-control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.desktop-control-dot.red { background: #ff5f56; }
.desktop-control-dot.yellow { background: #ffbd2e; }
.desktop-control-dot.green { background: #27c93f; }

.desktop-header-center {
  background: #181a24;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.desktop-status-dot.active {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.5s infinite;
}

.desktop-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-badge.active {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.desktop-badge.secure-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.desktop-header-icon {
  color: var(--text-secondary);
  cursor: pointer;
}

.desktop-header-icon:hover {
  color: var(--text-primary);
}

/* Desktop App Main Content Grid */
.desktop-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Sidebar */
.desktop-sidebar {
  width: 170px;
  background: #0f1016;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.desktop-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.desktop-sidebar-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  padding-left: 8px;
}

.desktop-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.desktop-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.desktop-sidebar-item.active {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-light);
  font-weight: 600;
}

/* Left Sub-pane (APPS list) */
.desktop-sub-pane {
  width: 120px;
  background: #13141d;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.desktop-sub-pane-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 12px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.desktop-sub-pane-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.desktop-sub-pane-item.active {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-left: 2px solid var(--primary);
}

/* Main Display Area */
.desktop-main-area {
  flex: 1;
  background: #171822;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.desktop-screen-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.desktop-screen-panel.active {
  display: flex;
}

/* Desktop Traffic View */
.desktop-toolbar {
  height: 38px;
  background: #11121a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
}

.desktop-requests-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.desktop-search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.7rem;
  color: var(--text-primary);
  outline: none;
}

.desktop-toolbar-filters {
  display: flex;
  gap: 6px;
}

.desktop-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.65rem;
  padding: 3px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}

.desktop-clear-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Desktop Traffic Table */
.desktop-table-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
  min-height: 0;
}

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

.desktop-table th {
  position: sticky;
  top: 0;
  background: #11121a;
  color: var(--text-muted);
  font-weight: 700;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.desktop-table tr.selected td {
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--text-primary);
}

.desktop-path-col {
  color: var(--text-primary);
  font-weight: 500;
}

/* Desktop Empty State */
.desktop-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  height: 100%;
}

.desktop-empty-state svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

.desktop-empty-state p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Rules Section Styles */
.desktop-tab-bar {
  background: #11121a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  display: flex;
  gap: 8px;
  height: 38px;
  align-items: flex-end;
}

.desktop-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.desktop-tab.active {
  background: #171822;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-color: #171822;
  font-weight: 600;
}

.desktop-pane-header {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-pane-title-group h4 {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.desktop-pane-title-group p {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.desktop-pane-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-btn-sm {
  background: var(--primary);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
}

.desktop-btn-sm:hover {
  background: var(--primary-light);
}

/* Add Mock Modal / Inline Form */
.desktop-mock-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  background: #0f1016;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  padding: 12px;
  z-index: 100;
  display: none;
}

.desktop-mock-modal.active {
  display: block;
}

.desktop-mock-modal h5 {
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.desktop-form-group {
  margin-bottom: 8px;
}

.desktop-form-group label {
  display: block;
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.desktop-form-group input,
.desktop-form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 4px;
  font-size: 0.65rem;
  color: var(--text-primary);
  outline: none;
}

.desktop-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

/* Remote Pairing Interactive Stream */
.pairing-device-wrapper {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 820px;
  padding: 1rem;
}

.pairing-mobile-container {
  flex-shrink: 0;
  transform: scale(0.62);
  transform-origin: center center;
  margin: -120px -60px;
}

.pairing-desktop-container {
  flex: 1;
  min-width: 0;
  transform: scale(0.85);
  transform-origin: center center;
}

.pairing-stream-bridge {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 25%;
  height: 60px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 8;
  display: none;
}

.pairing-device-wrapper.active .pairing-stream-bridge {
  display: block;
}

.pairing-bridge-svg {
  width: 100%;
  height: 100%;
}

.pairing-bridge-path {
  stroke: rgba(59, 130, 246, 0.25);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 6 6;
  animation: pairing-dash 2s linear infinite;
}

.pairing-bridge-glowing-dots circle {
  fill: var(--accent-light);
  filter: drop-shadow(0 0 6px var(--accent-light));
  animation: pairing-dot-flow 2.5s infinite linear;
}

.pairing-bridge-glowing-dots circle:nth-child(2) {
  animation-delay: 0.8s;
}

.pairing-bridge-glowing-dots circle:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes pairing-dash {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes pairing-dot-flow {
  0% {
    motion-path: path("M 10 30 C 50 10, 100 10, 140 30");
    motion-offset: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    motion-path: path("M 10 30 C 50 10, 100 10, 140 30");
    motion-offset: 100%;
    opacity: 0;
  }
}

/* Custom QR code overlay inside iPhone mockup during pairing */
.mock-qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 24px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  border-radius: 34px;
}

.mock-qr-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mock-qr-box {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
  position: relative;
}

.mock-qr-box img {
  width: 100%;
  height: 100%;
}

.mock-qr-scanner-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: qr-scan 2s ease-in-out infinite;
}

@keyframes qr-scan {
  0%, 100% { top: 8px; }
  50% { top: 112px; }
}

.mock-qr-overlay span {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}

/* Sidebar expand toggle button inside desktop mockup */
.desktop-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 8px;
}

/* Ensure layouts fit well inside the bento grid */
@media (max-width: 1024px) {
  .pairing-device-wrapper {
    gap: 1rem;
    transform: scale(0.9);
  }
}

@media (max-width: 860px) {
  .pairing-device-wrapper {
    flex-direction: column;
    height: auto;
    gap: 1.5rem;
    align-items: center;
  }
  .pairing-mobile-container {
    margin: 0;
    transform: scale(0.7);
  }
  .pairing-desktop-container {
    transform: scale(0.9);
    width: 100%;
  }
  .pairing-stream-bridge {
    top: 38%;
    left: 50%;
    width: 60px;
    height: 100px;
    transform: translateX(-50%);
  }
  @keyframes pairing-dot-flow {
    0% {
      motion-path: path("M 30 10 C 30 40, 30 70, 30 90");
      motion-offset: 0%;
      opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
      motion-path: path("M 30 10 C 30 40, 30 70, 30 90");
      motion-offset: 100%;
      opacity: 0;
    }
  }
}

/* Responsive Desktop Mockup Scaling on Standalone Viewports & Tabs Mobile Fit */
@media (max-width: 820px) {
  .desktop-device-wrapper {
    --active-scale: 0.85;
    transform-origin: center center;
  }
}
@media (max-width: 680px) {
  .desktop-device-wrapper {
    --active-scale: 0.7;
    transform-origin: center center;
    margin: -60px 0;
  }
}
@media (max-width: 520px) {
  .desktop-device-wrapper {
    --active-scale: 0.5;
    transform-origin: center center;
    margin: -110px 0;
  }
  .hero-mockup-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 20px;
    padding: 0.3rem;
  }
  .hero-tab-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
}
@media (max-width: 400px) {
  .desktop-device-wrapper {
    --active-scale: 0.42;
    transform-origin: center center;
    margin: -140px 0;
  }
}

/* Features page wrapper classes */
.features-wrapper {
  display: none;
}
.features-wrapper.active {
  display: block;
}

/* Responsive 3-column grid for desktop apps */
.apps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}
@media (max-width: 980px) {
  .apps-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .apps-grid-3 {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 4rem auto;
  }
}

