/* ==========================================================================
   MacBotAI — Ultra-Realistic Enterprise AI Design System
   High-Contrast Dual Theme: Illuminated Executive (Light) & Cyber Obsidian (Dark)
   ========================================================================== */

:root {
  /* Default: Clean, Illuminated, High-End Executive SaaS (Light Mode) */
  --bg-body: #f8fafc;
  --bg-primary: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-section-alt: #f1f5f9;
  --bg-glass-nav: rgba(255, 255, 255, 0.94);
  --bg-footer: #ffffff;
  
  --text-title: #0a1128;
  --text-heading: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --text-subtle: #64748b;
  
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-focus: rgba(2, 132, 199, 0.4);
  --border-cyan: rgba(0, 180, 216, 0.35);
  
  --cyan-primary: #0087a2;
  --cyan-vibrant: #00b4d8;
  --cyan-glow: rgba(0, 180, 216, 0.2);
  --blue-primary: #0284c7;
  --blue-electric: #2563eb;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 45px rgba(15, 23, 42, 0.1), 0 0 25px rgba(0, 180, 216, 0.15);
  
  --font-main: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Outfit", "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-body: #030712;
  --bg-primary: #050b17;
  --bg-subtle: #091224;
  --bg-surface: #0a1324;
  --bg-card: rgba(10, 19, 36, 0.85);
  --bg-card-hover: rgba(14, 27, 51, 0.95);
  --bg-section-alt: #040814;
  --bg-glass-nav: rgba(3, 7, 18, 0.92);
  --bg-footer: #050b16;
  
  --text-title: #ffffff;
  --text-heading: #f8fafc;
  --text-body: #e2e8f0;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-card: rgba(56, 189, 248, 0.2);
  --border-focus: rgba(0, 240, 255, 0.5);
  --border-cyan: rgba(0, 240, 255, 0.4);
  
  --cyan-primary: #00e5ff;
  --cyan-vibrant: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.25);
  --blue-primary: #38bdf8;
  --blue-electric: #0284c7;
  
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08), transparent 50%),
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 100% 100%, 54px 54px, 54px 54px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.18), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(0, 240, 255, 0.08), transparent 35%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0;
}

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

.text-muted {
  color: var(--text-muted) !important;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.mac-nav {
  background: var(--bg-glass-nav) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  z-index: 1050;
  transition: all 0.3s ease;
}

.mac-nav.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--text-title) !important;
}

.brand-emblem {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 216, 0.4);
  background: #050b18;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand:hover .brand-emblem {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.45);
}

.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  color: var(--text-title);
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.brand-name .ai-accent {
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.brand-pill {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--blue-primary);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 999px;
  margin-left: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body) !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue-primary) !important;
  background: rgba(2, 132, 199, 0.06);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-body);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  color: var(--blue-primary);
  border-color: var(--blue-primary);
  transform: rotate(20deg);
}

.navbar-toggler {
  color: var(--text-title) !important;
  border: 1px solid var(--border-subtle) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
  color: #ffffff !important;
}

.btn-cyber {
  background: #0b1528;
  border: 1px solid #1e293b;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.btn-cyber:hover {
  background: #0f203d;
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-outline-cyber {
  border: 1px solid var(--border-subtle);
  color: var(--text-heading) !important;
  background: var(--bg-primary);
}

.btn-outline-cyber:hover {
  border-color: var(--blue-primary);
  background: rgba(2, 132, 199, 0.06);
  color: var(--blue-primary) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-command {
  min-height: 840px;
  position: relative;
  overflow: hidden;
  padding: 130px 0 90px;
  background: transparent;
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.65;
}

.hero-glow {
  position: absolute;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  right: -80px;
  top: 50px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.hero-glow-secondary {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  left: -120px;
  top: 280px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--blue-primary);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.status-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.status-pill b {
  padding-left: 10px;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.hero-command h1 {
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  font-weight: 800;
  color: var(--text-title);
}

.hero-command h1 em {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 32px;
}

.micro-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
}

.micro-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.micro-proof i {
  color: var(--blue-primary);
  font-size: 15px;
}

/* ==========================================================================
   Hero Cockpit (Dedicated High-Tech Dark Container)
   ========================================================================== */
.command-shell {
  position: relative;
  z-index: 3;
  background: #070e1c !important;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22), 0 0 35px rgba(0, 180, 216, 0.12);
  overflow: hidden;
  color: #94a3b8;
}

.shell-head {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #050b16;
  border-bottom: 1px solid #1e293b;
}

.shell-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.traffic.red { background: #ef4444; }
.traffic.yellow { background: #f59e0b; }
.traffic.green { background: #10b981; }

.shell-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shell-title i {
  color: #00e5ff;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #34d399;
}

.live-badge .pulse-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.cockpit-banner {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(14, 27, 51, 0.7) 0%, rgba(7, 14, 28, 0.4) 100%);
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cockpit-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cockpit-logo-wrap img {
  height: 48px;
  width: auto;
  border-radius: 10px;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
}

.cockpit-meta h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.cockpit-meta p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.telemetry-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.agent-tabs {
  display: flex;
  padding: 10px 14px;
  gap: 6px;
  background: #050b16;
  border-bottom: 1px solid #1e293b;
  overflow-x: auto;
}

.agent-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agent-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.agent-tab.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.35);
  color: #00e5ff;
}

.shell-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.agent-avatar {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: #0c1830;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00e5ff;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.shell-body h5 {
  font-size: 16px;
  margin: 0 0 4px;
  color: #ffffff;
}

.shell-body p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.prompt-chips {
  display: flex;
  gap: 6px;
  padding: 0 18px 12px;
  overflow-x: auto;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  border-color: #00e5ff;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
}

.terminal {
  height: 150px;
  margin: 0 18px 14px;
  padding: 14px 16px;
  background: #020610;
  color: #94a3b8;
  border: 1px solid #1e293b;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  overflow-y: auto;
}

.terminal span.time {
  color: #475569;
  margin-right: 8px;
}

.terminal span.tag {
  color: #00e5ff;
  font-weight: 700;
  margin-right: 6px;
}

.terminal .success {
  color: #34d399;
}

.run-btn {
  width: calc(100% - 36px);
  margin: 0 18px 16px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #00e5ff 100%);
  color: #030712;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
  transition: all 0.25s ease;
}

.run-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
}

.shell-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #050b16;
  border-top: 1px solid #1e293b;
}

.shell-stats div {
  text-align: center;
  padding: 14px 10px;
  border-right: 1px solid #1e293b;
}

.shell-stats div:last-child {
  border-right: none;
}

.shell-stats b {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.shell-stats small {
  font-size: 10px;
  color: #64748b;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */
.trust-strip {
  padding: 36px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-strip small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-logo-item {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.trust-logo-item:hover {
  color: var(--text-title);
}

.trust-logo-item i {
  color: var(--blue-primary);
}

/* ==========================================================================
   Sections & Typography
   ========================================================================== */
.section-space {
  padding: 110px 0;
  position: relative;
}

.section-space.soft {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--blue-primary);
}

.section-title {
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--text-title);
}

.section-title span.text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-copy {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ==========================================================================
   Cards (Realistic Depth in Light & Dark Mode)
   ========================================================================== */
.premium-card {
  height: 100%;
  padding: 36px 32px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.premium-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: var(--shadow-hover);
}

.premium-card h4 {
  margin: 22px 0 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--text-title);
}

.premium-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 24px;
}

.premium-card .card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.premium-card .card-link:hover {
  gap: 10px;
  color: var(--cyan-primary);
}

.iconbox {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.premium-card:hover .iconbox {
  transform: scale(1.08);
}

.iconbox.blue {
  background: #eff6ff;
  color: #0284c7;
  border: 1px solid #bfdbfe;
}

.iconbox.cyan {
  background: #ecfeff;
  color: #0099b8;
  border: 1px solid #a5f3fc;
}

.iconbox.purple {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

[data-theme="dark"] .iconbox.blue {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

[data-theme="dark"] .iconbox.cyan {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}

[data-theme="dark"] .iconbox.purple {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
}

/* ==========================================================================
   Showcase Frame & Architecture Preview
   ========================================================================== */
.dark-section {
  padding: 120px 0;
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #060d1b;
}

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

.showcase-overlay-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(6, 12, 24, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #00e5ff;
}

/* Workflow Steps */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 20px;
}

.workflow::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 32px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.workflow-item {
  position: relative;
  text-align: center;
  padding: 0 15px;
  z-index: 2;
}

.workflow-item .step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  background: var(--bg-primary);
  border: 2px solid var(--blue-primary);
  color: var(--blue-primary);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.workflow-item:hover .step-num {
  transform: scale(1.1);
  background: var(--blue-primary);
  color: #ffffff;
}

.workflow-item h5 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-title);
}

.workflow-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA Premium Banner */
.cta-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 65px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-subtle) 100%);
  box-shadow: var(--shadow-card);
}

.cta-premium h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-title);
}

.cta-premium p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
}

/* ==========================================================================
   Footer (High-Contrast Theme Aware)
   ========================================================================== */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-footer) !important;
  color: var(--text-muted) !important;
  border-top: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
}

.footer .brand-name {
  color: var(--text-title) !important;
}

.footer h6 {
  color: var(--text-title) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.footer a {
  display: block;
  color: var(--text-muted) !important;
  font-size: 13px;
  margin: 10px 0;
  transition: all 0.2s ease;
}

.footer a:hover {
  color: var(--blue-primary) !important;
  transform: translateX(3px);
}

.footer p, .footer .text-muted {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted) !important;
}

.footer-bottom {
  margin-top: 55px;
  padding-top: 25px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: var(--text-muted) !important;
}

.footer-bottom a {
  color: var(--text-muted) !important;
}

.footer-bottom a:hover {
  color: var(--blue-primary) !important;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
}

/* ==========================================================================
   Subpages Specific (Platform, Solutions, Pricing, Auth)
   ========================================================================== */
.inner-hero {
  padding: 170px 0 90px;
  background: radial-gradient(circle at 75% 20%, rgba(0, 180, 216, 0.1), transparent 40%), var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.inner-hero h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--text-title);
}

.inner-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.7;
}

/* Solution Panels */
.solution-panel {
  height: 100%;
  padding: 40px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.solution-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: var(--shadow-hover);
}

.solution-panel > i {
  font-size: 32px;
  color: var(--blue-primary);
  display: inline-block;
  margin-bottom: 16px;
}

.solution-panel h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-title);
}

.solution-panel p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.solution-panel ul {
  padding-left: 0;
  list-style: none;
  margin-top: 20px;
}

.solution-panel li {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-panel li i {
  color: var(--blue-primary);
}

/* Platform Layers */
.platform-layer {
  height: 100%;
  padding: 32px 28px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.platform-layer:hover {
  transform: translateY(-4px);
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-hover);
}

.platform-layer > b {
  font-family: var(--font-mono);
  color: var(--blue-primary);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.platform-layer i {
  display: block;
  font-size: 28px;
  color: var(--cyan-primary);
  margin: 22px 0 14px;
}

.platform-layer h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-title);
}

.platform-layer p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.architecture-wide {
  padding: 50px 30px;
  border-radius: var(--radius-xl);
  background: #070e1c;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-card);
}

.aw-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.aw-row span {
  border: 1px solid #1e293b;
  background: #0b1528;
  color: #f1f5f9;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.aw-row span:hover {
  border-color: #00e5ff;
  color: #00e5ff;
}

.aw-core {
  width: min(480px, 92%);
  margin: 40px auto;
  text-align: center;
  padding: 40px 30px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: var(--radius-lg);
  background: #0c1830;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.25);
}

.aw-core img.core-logo-mark {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5));
}

.aw-core strong {
  display: block;
  font-size: 19px;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.aw-core small {
  font-size: 10px;
  color: #00e5ff;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

/* Pricing Cards */
.price-card {
  height: 100%;
  position: relative;
  padding: 40px 34px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(2, 132, 199, 0.4);
}

.price-card.featured {
  border: 2px solid var(--blue-primary);
  background: var(--bg-primary);
  box-shadow: 0 15px 40px rgba(2, 132, 199, 0.15);
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.price-card .plan-tier {
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--blue-primary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.price-card h2 {
  font-size: 46px;
  margin: 18px 0 8px;
  color: var(--text-title);
  font-weight: 800;
}

.price-card h2 span {
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-muted);
  font-weight: 500;
}

.price-card p {
  font-size: 14px;
  color: var(--text-muted);
  min-height: 44px;
}

.price-card hr {
  border-color: var(--border-subtle);
  margin: 20px 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex-grow: 1;
}

.price-card li {
  font-size: 13px;
  margin: 12px 0;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card li i {
  color: var(--blue-primary);
}

/* Authentication Pages */
.auth-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 15%, rgba(0, 180, 216, 0.08), transparent 45%), var(--bg-body);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth-wrap {
  width: min(460px, 100%);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text-title);
}

.auth-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-label {
  color: var(--text-heading);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-control {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-title);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-control:focus {
  background: var(--bg-primary);
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  color: var(--text-title);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.auth-foot {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 22px;
}

.sso-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
}

.sso-divider::before, .sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.sso-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-sso {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-sso:hover {
  background: var(--bg-primary);
  border-color: var(--blue-primary);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
  .hero-command {
    padding-top: 110px;
  }
  .command-shell {
    margin-top: 50px;
  }
  .workflow {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .workflow::before {
    display: none;
  }
  .cta-premium {
    flex-direction: column;
    text-align: center;
    padding: 45px 30px;
  }
  .cta-premium p {
    margin: 0 auto;
  }
}

@media (max-width: 575px) {
  .section-space {
    padding: 80px 0;
  }
  .hero-command h1 {
    font-size: 42px;
  }
  .hero-lead {
    font-size: 16px;
  }
  .workflow {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 26px 20px;
  }
  .sso-btn-grid {
    grid-template-columns: 1fr;
  }
}
