/* OmniVault - Official Landing Page Stylesheet */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg-dark: #070913;
  --bg-surface: #0f1424;
  --bg-card: rgba(18, 24, 43, 0.82);
  --bg-card-hover: rgba(28, 37, 65, 0.90);
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-cyan: #38bdf8; /* Sky 400 - WCAG AA > 4.5:1 on dark */
  --accent-emerald: #34d399; /* Emerald 400 */
  --accent-amber: #fbbf24; /* Amber 400 */
  --accent-purple: #a78bfa; /* Purple 400 */

  --text-main: #f8fafc; /* WCAG 2.1 AA > 15:1 */
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1; /* Slate 300, Contrast > 10:1 */
  --text-subtle: #94a3b8; /* Slate 400, Contrast > 5.4:1 */

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(99, 102, 241, 0.4);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);

  --nav-bg-scrolled: rgba(7, 9, 19, 0.88);
  --hero-gradient-text: linear-gradient(135deg, #ffffff 30%, #38bdf8 75%, #818cf8 100%);
  --input-bg: rgba(0, 0, 0, 0.5);
  --input-text: #ffffff;
  --cipher-box-bg: #020617;
  --cipher-box-color: #38bdf8;
  --table-header-color: #38bdf8;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

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

:root[data-theme="light"] {
  color-scheme: light;

  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(241, 245, 249, 0.95);

  --accent-primary: #4f46e5; /* Indigo 600 - WCAG AA compliant on light */
  --accent-primary-hover: #4338ca;
  --accent-cyan: #0284c7; /* Sky 600 - WCAG AA > 4.5:1 on white */
  --accent-emerald: #047857; /* Emerald 700 - WCAG AA > 4.5:1 */
  --accent-amber: #b45309; /* Amber 700 - WCAG AA > 4.5:1 */
  --accent-purple: #6d28d9; /* Purple 700 - WCAG AA > 4.5:1 */

  --text-main: #0f172a; /* Slate 900, Contrast > 17:1 */
  --text-secondary: #1e293b; /* Slate 800 */
  --text-muted: #334155; /* Slate 700, Contrast > 9:1 */
  --text-subtle: #475569; /* Slate 600, Contrast > 6.5:1 */

  --border-glass: rgba(15, 23, 42, 0.14);
  --border-glow: rgba(79, 70, 229, 0.35);
  --shadow-glow: 0 10px 30px rgba(79, 70, 229, 0.12);

  --nav-bg-scrolled: rgba(248, 250, 252, 0.92);
  --hero-gradient-text: linear-gradient(135deg, #0f172a 30%, #0284c7 75%, #4f46e5 100%);
  --input-bg: #ffffff;
  --input-text: #0f172a;
  --cipher-box-bg: #f1f5f9;
  --cipher-box-color: #0284c7;
  --table-header-color: #0284c7;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: rgba(241, 245, 249, 0.95);

    --accent-primary: #4f46e5;
    --accent-primary-hover: #4338ca;
    --accent-cyan: #0284c7;
    --accent-emerald: #047857;
    --accent-amber: #b45309;
    --accent-purple: #6d28d9;

    --text-main: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #334155;
    --text-subtle: #475569;

    --border-glass: rgba(15, 23, 42, 0.14);
    --border-glow: rgba(79, 70, 229, 0.35);
    --shadow-glow: 0 10px 30px rgba(79, 70, 229, 0.12);

    --nav-bg-scrolled: rgba(248, 250, 252, 0.92);
    --hero-gradient-text: linear-gradient(135deg, #0f172a 30%, #0284c7 75%, #4f46e5 100%);
    --input-bg: #ffffff;
    --input-text: #0f172a;
    --cipher-box-bg: #f1f5f9;
    --cipher-box-color: #0284c7;
    --table-header-color: #0284c7;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root[data-theme="dark"] body,
body {
  background-color: #070913;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.22), transparent),
    radial-gradient(circle 700px at 90% 40%, rgba(56, 189, 248, 0.14), transparent),
    radial-gradient(circle 600px at 10% 80%, rgba(167, 139, 250, 0.12), transparent),
    url('../assets/bg_dark_texture.svg');
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

:root[data-theme="light"] body {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 70, 229, 0.10), transparent),
    radial-gradient(circle 700px at 90% 40%, rgba(2, 132, 199, 0.08), transparent),
    radial-gradient(circle 600px at 10% 80%, rgba(109, 40, 217, 0.07), transparent),
    url('../assets/bg_light_texture.svg');
  background-attachment: fixed;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

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

/* Glassmorphism utility */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
}

.glass-glow {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
}

.brand-badge {
  font-size: 0.65rem;
  padding: 4px 10px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0 16px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

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

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
  transform: translateY(-1px);
  border-color: var(--border-glow);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}

/* Hero Section */
/* Hero Section & Carousel */
.hero {
  padding: 140px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero-carousel-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 1120px;
  margin: 0 auto 36px;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

.hero-slide {
  display: none;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 2-Column Split Layout: Text + High-Res Illustration */
.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  text-align: left;
}

@media (max-width: 920px) {
  .hero-slide-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-slide-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease;
}

.hero-slide-media:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-slide-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.hero-graphic-card {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-radius: var(--radius-md);
  position: relative;
  box-sizing: border-box;
}

:root[data-theme="light"] .hero-graphic-card {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.95));
}

/* Graphic Slide 2: Peering Handshake */
.peering-flow {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
}

.peering-node {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .peering-node {
  background: #fff;
  border-color: rgba(14, 165, 233, 0.3);
}

.peering-node i {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.peering-node span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.peering-beam {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.beam-line {
  height: 3px;
  width: 80px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  box-shadow: 0 0 10px var(--accent-cyan);
  border-radius: 2px;
}

.beam-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Graphic Slide 3: Audit Trail Stream */
.audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

:root[data-theme="light"] .audit-row {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

.audit-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.audit-action {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.action-copy {
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.action-read {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Graphic Slide 4: Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.platform-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.2s ease;
}

:root[data-theme="light"] .platform-box {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.platform-box i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.platform-box div {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.media-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-hero i {
  color: var(--accent-emerald);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  max-width: 920px;
  margin: 0 auto 18px;
  letter-spacing: -1.2px;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 75%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0f172a 30%, #0284c7 75%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Prominent but Smaller USP Text */
.hero-usp-desc {
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-usp-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.usp-chip {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
}

/* Hero Controls */
.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.hero-carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-carousel-arrow:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.08);
}

.hero-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-glass);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Prominent USP Grid Bar */
.hero-usps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-usp-item {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-usp-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
}

.hero-usp-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-usp-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.hero-usp-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.trust-badge-item i {
  color: var(--accent-cyan);
}

/* Interactive Interactive Simulator */
.demo-section {
  padding: 40px 0 100px;
}

.demo-wrapper {
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}

.demo-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.demo-tab-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-tab-btn.active {
  background: var(--accent-primary);
  color: #fff;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 860px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

.demo-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
}

.demo-pane-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-input-group {
  margin-bottom: 14px;
}

.demo-input-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.demo-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--input-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.demo-input:focus {
  border-color: var(--accent-cyan);
}

.cipher-output-box {
  background: var(--cipher-box-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cipher-box-color);
  word-break: break-all;
  min-height: 90px;
  max-height: 140px;
  overflow-y: auto;
}

/* Device Peering Section */
.peering-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(15, 20, 36, 0.6), transparent);
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin-bottom: 50px;
}

.peering-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .peering-flow-grid {
    grid-template-columns: 1fr;
  }
}

.flow-step-card {
  padding: 28px;
  border-radius: var(--radius-md);
  position: relative;
  transition: transform 0.3s ease;
}

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

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.flow-step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.flow-step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Features Grid */
.features-section {
  padding: 90px 0;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 30px;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-4px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

/* Downloads Section */
.downloads-section {
  padding: 100px 0;
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.download-card {
  padding: 30px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s ease;
}

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

.download-os-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: var(--accent-cyan);
}

.download-card h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.download-card .subtext {
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 18px;
}

/* FAQ Accordion */
.faq-section {
  padding: 90px 0 120px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

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

.faq-toggle i {
  transition: transform 0.2s ease;
  color: var(--accent-cyan);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
  background: var(--bg-surface);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-subtle);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 12px;
}

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

.footer-col h5 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

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

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* AI Support Chatbot Widget Styles */
#ai-chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

#ai-chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-primary));
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#ai-chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.6);
}

.chat-online-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-dark);
}

#ai-chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  height: 520px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#ai-chat-window.hidden {
  display: none !important;
}

.chat-header {
  padding: 16px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(99, 102, 241, 0.3));
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
}

.avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-dark);
}

.badge-human-ai {
  font-size: 0.68rem;
  background: rgba(6, 182, 212, 0.18);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
  margin-left: 4px;
}

.chat-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.chat-close:hover {
  color: var(--text-main);
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-dark);
}

.chat-msg {
  display: flex;
  max-width: 85%;
}

.chat-msg.user {
  margin-left: auto;
}

.chat-msg.user .msg-content {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}

.chat-msg.bot .msg-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 16px 16px 16px 4px;
}

.msg-content {
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.chat-pill-btn {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-pill-btn:hover {
  background: rgba(6, 182, 212, 0.2);
}

.chat-footer {
  padding: 12px 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 10px;
}

#ai-chat-input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--input-text);
  font-size: 0.88rem;
}

#ai-chat-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

#ai-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan);
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Currency Switcher Pill Widget */
.currency-toggle-pill {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

:root[data-theme="light"] .currency-toggle-pill {
  background: rgba(241, 245, 249, 0.9);
}

.currency-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-toggle-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Business Tier Card Styling */
.glass-business {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(99, 102, 241, 0.12));
  border: 1px solid var(--accent-purple);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.2);
}

/* Permission Badges */
.perm-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.perm-badge.read { background: rgba(56, 189, 248, 0.2); color: var(--accent-cyan); }
.perm-badge.copy { background: rgba(251, 191, 36, 0.2); color: var(--accent-amber); }
.perm-badge.full { background: rgba(52, 211, 153, 0.2); color: var(--accent-emerald); }

