/* ==========================================================================
   Sentinel AI — Official Product Design System
   Light Theme Default with Dark Mode Toggle & Full Responsiveness
   ========================================================================== */

:root {
  /* Light Theme (Default) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.04);
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);

  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: rgba(16, 185, 129, 0.2);

  --amber: #d97706;
  --amber-light: #fef3c7;

  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(15, 23, 42, 0.08);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 30px 60px -15px rgba(15, 23, 42, 0.16);

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

  --max-width: 1200px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Opt-in */
[data-theme="dark"] {
  --bg: #070e17;
  --bg-surface: #0c1827;
  --bg-subtle: #112236;
  --bg-card: #0e1d30;
  --border: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-light: rgba(56, 189, 248, 0.15);
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);

  --emerald: #10b981;
  --emerald-light: rgba(16, 185, 129, 0.15);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --amber: #fbbf24;
  --amber-light: rgba(245, 158, 11, 0.15);

  --header-bg: rgba(7, 14, 23, 0.88);
  --header-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 25px 50px -10px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 35px 70px -15px rgba(0, 0, 0, 0.75);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

/* Background Gradients */
.bg-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, transparent 100%);
}

[data-theme="dark"] .bg-mesh {
  background: 
    radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, transparent 100%);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.shell {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  transition: var(--transition);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand span:not(.badge-pro) {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand span.badge-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  line-height: 1;
  height: 20px;
  padding: 0 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-full);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: -0.15rem;
  vertical-align: middle;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.desktop-nav a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  font-size: 1.15rem;
  padding: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

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

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 14px;
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--border-focus);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.65rem 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
}

.mobile-nav a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 2.9rem 0 2.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  padding: 0.4rem 0.9rem;
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

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

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0;
}

.hero-title .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-item i {
  color: var(--emerald);
  font-style: normal;
  font-weight: 900;
}

/* Hero Showcase Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  perspective: 1000px;
}

.phone-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.phone-card:hover {
  transform: translateY(-4px);
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: #000000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Status Pills */
.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

[data-theme="dark"] .floating-pill {
  background: rgba(14, 29, 48, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pill-top-left {
  top: 10%;
  left: -12%;
  animation-delay: 0s;
}

.pill-bottom-right {
  bottom: 12%;
  right: -10%;
  animation-delay: 2s;
}

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

.pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.pill-icon.green { background: var(--emerald-light); color: var(--emerald); }
.pill-icon.blue { background: var(--primary-light); color: var(--primary); }

.pill-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.pill-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 3.75rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Interactive Modes Showcase (The 4 Pillars)
   ========================================================================== */
.modes-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.mode-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.mode-tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.mode-panel {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.35s ease;
}

.mode-panel.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

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

.mode-info h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.mode-info p.lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-light);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.mode-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spec-badge {
  padding: 0.4rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Dual Visual Card in Mode Panel */
.mode-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: center;

  width: min(100%, 400px);
  justify-self: center;}

.media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);

  aspect-ratio: 9 / 16;}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.media-card:hover img {
  transform: scale(1.03);
}

.media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #ffffff;
  padding: 1.5rem 0.85rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Video Showcase Section
   ========================================================================== */
.video-showcase-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.video-frame-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--border);
  aspect-ratio: 16 / 9;
}

.video-frame-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.video-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.video-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.video-hl-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.video-hl-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.video-hl-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.video-hl-text small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Remote WebRTC & Cloudflare Tunnel
   ========================================================================== */
.webrtc-section {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.webrtc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.webrtc-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
  margin-left: auto;
  padding-left: 0;
}

.webrtc-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.features-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.mini-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.mini-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.mini-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}

.mini-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.comparison-table th,
.comparison-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-subtle);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.comparison-table th.col-sentinel {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.05rem;
}

.comparison-table td {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison-table td.col-sentinel {
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(2, 132, 199, 0.03);
}

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

.badge-tag-yes {
  color: var(--emerald);
  font-weight: 800;
}

.badge-tag-no {
  color: var(--text-subtle);
  font-weight: 600;
}

/* ==========================================================================
   Screenshot Gallery & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);

  padding: 0;
  text-align: left;
  font: inherit;
  width: 100%;}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.gallery-thumb {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 0.8rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-caption span.zoom-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-title {
  color: #ffffff;
  font-weight: 700;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

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

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--border-focus);
}

.faq-question {
  padding: 1.35rem 1.75rem;
  font-size: 1.08rem;
  font-weight: 750;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.75rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ==========================================================================
   Final CTA Banner
   ========================================================================== */
.cta-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 3rem 0;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 850;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.cta-banner p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
}

.cta-banner .btn-white {
  background: #ffffff;
  color: #0284c7 !important;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

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

/* ==========================================================================
   Documentation & Privacy Policy Page Styles
   ========================================================================== */
.legal-page-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.legal-article {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 5rem;
}

.legal-article h1 {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}

.legal-article h3 {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-primary);
  margin: 1.75rem 0 0.75rem;
}

.legal-article p,
.legal-article li {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-article ul,
.legal-article ol {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.legal-article li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}

.callout-box strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.35rem;
}

.callout-box p {
  margin: 0;
  font-size: 0.98rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

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

  .trust-badges {
    justify-content: center;
  }

  .mode-panel.active {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .video-showcase-box {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .webrtc-section {
    padding: 2rem 1.25rem;
  }

  .webrtc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .webrtc-content {
    padding-left: 0;
    max-width: 100%;
    margin-left: 0;
  }

  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 1.5rem);
  }

  .hero-section {
    padding: 2rem 0 1.75rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .floating-pill {
    display: none;
  }

  .mode-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  
  max-width: 320px;
  gap: 0.6rem;}

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

  .legal-article {
    padding: 1.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Compact landing page: keep full screenshots visible and support keyboard users */
.mode-media .media-card picture, .gallery-thumb picture { display: block; width: 100%; height: 100%; }
.mode-media .media-card picture img { width: 100%; height: 100%; }
.gallery-item { display: block; appearance: none; -webkit-appearance: none; }
.mode-tab-btn:focus-visible, .gallery-item:focus-visible, .btn:focus-visible { outline: 3px solid var(--border-focus); outline-offset: 3px; }
[id] { scroll-margin-top: 90px; }
@media (max-width: 640px) {
  .hero-section .phone-mockup-wrapper { max-width: 228px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .gallery-caption { padding: 0.6rem 0.65rem; font-size: 0.78rem; }
  .mode-panel.active { padding: 1.15rem; }
  .section-head { margin-bottom: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}


/* Search-friendly editorial guides and product use cases */
.guide-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; }
.guide-teaser { display:block; padding:1.55rem; border:1px solid var(--border); border-radius:var(--radius-xl); background:var(--bg-surface); color:var(--text-primary); box-shadow:var(--shadow-sm); transition:transform .2s ease,border-color .2s ease; }
.guide-teaser:hover { color:var(--text-primary); border-color:var(--border-focus); transform:translateY(-3px); }
.guide-teaser-icon { display:block; font-size:1.75rem; }
.guide-teaser h3 { margin:.7rem 0 .45rem; font-size:1.2rem; }
.guide-teaser p { margin:0 0 .7rem; color:var(--text-secondary); }
.guide-teaser-link { font-weight:750; color:var(--primary); }
.guide-page { padding-block:1.5rem 3.5rem; }
.guide-breadcrumb { font-size:.85rem; margin-bottom:1.5rem; color:var(--text-muted); }
.guide-breadcrumb a { color:var(--text-secondary); }
.guide-hero { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr); gap:2rem; align-items:center; padding:2rem; border:1px solid var(--border); border-radius:var(--radius-xl); background:var(--bg-surface); }
.guide-heading h1 { font-size:clamp(2rem,3.5vw,3.15rem); line-height:1.17; letter-spacing:-.035em; margin:.8rem 0 1rem; }
.guide-lead { font-size:1.06rem; line-height:1.7; color:var(--text-secondary); }
.guide-actions { display:flex; gap:.8rem; flex-wrap:wrap; margin-top:1.5rem; }
.guide-visual { width:min(100%,200px); justify-self:center; }
.guide-visual img { width:100%; height:auto; border-radius:22px; border:5px solid var(--bg-subtle); box-shadow:var(--shadow-lg); }
.guide-article { max-width:900px; margin:2rem auto; }
.guide-block { padding:1.4rem 0; border-bottom:1px solid var(--border); }
.guide-block h2 { font-size:clamp(1.4rem,2.4vw,1.9rem); margin:0 0 .65rem; }
.guide-block p { font-size:1.04rem; color:var(--text-secondary); line-height:1.76; margin:0; }
.guide-list { color:var(--text-secondary); margin:1rem 0 0; padding-left:1.5rem; }
.guide-list li { margin-bottom:.6rem; }
.guide-related { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:1rem; background:var(--bg-subtle); padding:1.5rem; border-radius:var(--radius-lg); margin-top:2rem; }
.guide-related h2 { font-size:1.16rem; margin:0; }
.guide-related p { margin:.3rem 0 0; color:var(--text-secondary); }
.guide-bottom-cta { margin:2.5rem auto 0; max-width:700px; text-align:center; }
.guide-bottom-cta h2 { font-size:clamp(1.5rem,2.8vw,2.2rem); margin:0 0 .6rem; }
.guide-bottom-cta p { color:var(--text-secondary); }
.guide-teaser:focus-visible { outline:3px solid var(--border-focus); outline-offset:3px; }
@media (max-width:760px) {
 .guide-cards { grid-template-columns:minmax(0,1fr); }
 .guide-hero { grid-template-columns:1fr; padding:1.4rem; gap:1rem; }
 .guide-visual { width:min(50%,180px); }
}
