/* ============================================
   ExOS Landing Page — Style System
   Brand: Deep Space dark theme, Cobalt Blue accent
   ============================================ */

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

:root {
  --deep-space: #0A0E14;
  --deep-space-light: #0F1420;
  --cobalt: #2D5BFF;
  --cobalt-glow: rgba(45, 91, 255, 0.35);
  --cobalt-soft: rgba(45, 91, 255, 0.12);
  --emerald: #00FF94;
  --emerald-glow: rgba(0, 255, 148, 0.25);
  --slate: #64748B;
  --slate-light: #94A3B8;
  --white: #F1F5F9;
  --white-dim: rgba(241, 245, 249, 0.7);
  --card-bg: rgba(15, 20, 32, 0.6);
  --card-border: rgba(45, 91, 255, 0.15);
  --section-alt: #080C12;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--deep-space);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-light);
  max-width: 640px;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cobalt), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--cobalt-glow); }
  50%      { box-shadow: 0 0 40px var(--cobalt-glow), 0 0 80px rgba(45, 91, 255, 0.15); }
}

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

@keyframes orbit {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--card-border);
  padding: 10px 0;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-logo .ex {
  color: var(--white);
}

.nav-logo .os {
  color: var(--cobalt);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-light);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--cobalt);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: box-shadow 0.3s, transform 0.2s !important;
}

.nav-cta:hover {
  box-shadow: 0 0 24px var(--cobalt-glow);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
}

/* Radial gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--cobalt-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cobalt-soft);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cobalt);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
  box-shadow: 0 0 8px var(--emerald-glow);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--slate-light);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cobalt);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 4px 30px var(--cobalt-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

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

/* Hero visual — agent network */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease 0.3s both;
}

#agent-network {
  width: 500px;
  height: 500px;
}

/* ============================================
   LOGO STRIP
   ============================================ */
.logo-strip {
  padding: 60px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  text-align: center;
}

.logo-strip p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate);
  margin-bottom: 32px;
  font-weight: 600;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
}

.logo-row .integration-logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features {
  padding: 120px 0;
}

.features .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.features .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cobalt), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(45, 91, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cobalt-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--cobalt);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--slate-light);
  line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 120px 0;
  background: var(--section-alt);
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 72px;
}

.how-it-works .section-subtitle {
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt-soft), var(--cobalt), var(--cobalt-soft));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--deep-space);
  border: 2px solid var(--cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cobalt);
  box-shadow: 0 0 30px var(--cobalt-glow);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.925rem;
  color: var(--slate-light);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================
   AGENT SHOWCASE
   ============================================ */
.agents {
  padding: 120px 0;
}

.agents .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.agents .section-subtitle {
  margin: 0 auto;
}

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

.agent-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: border-color 0.3s, transform 0.3s;
}

.agent-card:hover {
  border-color: rgba(45, 91, 255, 0.3);
  transform: translateY(-2px);
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-avatar svg {
  width: 28px;
  height: 28px;
}

.agents-more {
  text-align: center;
  margin-top: 40px;
}

.agents-more p {
  font-size: 1.05rem;
  color: var(--slate-light);
  font-weight: 500;
}

.agents-more a {
  color: var(--cobalt);
  font-weight: 600;
  transition: color 0.2s;
}

.agents-more a:hover {
  color: var(--white);
}

.agent-avatar.analyst    { background: rgba(45, 91, 255, 0.15); color: var(--cobalt); }
.agent-avatar.social     { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.agent-avatar.news       { background: rgba(0, 255, 148, 0.15); color: var(--emerald); }
.agent-avatar.financial  { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.agent-avatar.collector  { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.agent-avatar.compliance { background: rgba(244, 63, 94, 0.15); color: #F43F5E; }
.agent-avatar.erp        { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.agent-avatar.hr         { background: rgba(249, 115, 22, 0.15); color: #F97316; }

.agent-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.agent-info p {
  font-size: 0.9rem;
  color: var(--slate-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.agent-skills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skill-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  border: 1px solid var(--card-border);
}

/* ============================================
   GOVERNANCE & APPROVALS
   ============================================ */
.governance {
  padding: 120px 0;
  background: var(--section-alt);
}

.governance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.policy-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.policy-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.3s, transform 0.2s;
}

.policy-card:hover {
  border-color: rgba(45, 91, 255, 0.3);
  transform: translateX(4px);
}

.policy-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-icon svg {
  width: 20px;
  height: 20px;
}

.policy-icon.auto     { background: rgba(0, 255, 148, 0.12); color: var(--emerald); }
.policy-icon.approval  { background: rgba(45, 91, 255, 0.12); color: var(--cobalt); }
.policy-icon.board     { background: rgba(251, 191, 36, 0.12); color: #FBBF24; }
.policy-icon.notify    { background: rgba(168, 85, 247, 0.12); color: #A855F7; }

.policy-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.policy-card p {
  font-size: 0.85rem;
  color: var(--slate-light);
  line-height: 1.5;
}

/* Approval flow visual */
.governance-visual {
  display: flex;
  justify-content: center;
}

.approval-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  width: 100%;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.flow-step:hover {
  border-color: rgba(45, 91, 255, 0.3);
}

.flow-step span {
  font-size: 0.875rem;
  font-weight: 600;
}

.flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon svg {
  width: 22px;
  height: 22px;
}

.flow-agent .flow-icon  { background: rgba(45, 91, 255, 0.15); color: var(--cobalt); }
.flow-policy .flow-icon { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.flow-gate .flow-icon   { background: rgba(251, 191, 36, 0.15); color: #FBBF24; }
.flow-execute .flow-icon { background: rgba(0, 255, 148, 0.15); color: var(--emerald); }
.flow-audit .flow-icon  { background: rgba(100, 116, 139, 0.2); color: var(--slate-light); }

.flow-gate {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.08);
}

.flow-roles {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 6px;
}

.role-ceo     { background: rgba(251, 191, 36, 0.15); color: #FBBF24; border: 1px solid rgba(251, 191, 36, 0.3); }
.role-board   { background: rgba(45, 91, 255, 0.12); color: var(--cobalt); border: 1px solid var(--card-border); }
.role-manager { background: rgba(0, 255, 148, 0.1); color: var(--emerald); border: 1px solid rgba(0, 255, 148, 0.2); }

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--slate);
  padding: 4px 0;
}

.flow-line {
  width: 1px;
  height: 12px;
  background: linear-gradient(to bottom, var(--card-border), var(--slate));
}

@media (max-width: 1024px) {
  .governance-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .governance-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .approval-flow {
    max-width: 100%;
  }
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 80px 0;
  background: var(--section-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.stat h3 .gradient-text {
  background: linear-gradient(135deg, var(--cobalt), var(--emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat p {
  font-size: 0.875rem;
  color: var(--slate);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   USE CASES / TESTIMONIAL
   ============================================ */
.use-cases {
  padding: 120px 0;
}

.use-cases .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.use-cases .section-subtitle {
  margin: 0 auto;
}

.use-case-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--slate-light);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--cobalt);
  color: var(--white);
}

.tab-btn.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
  box-shadow: 0 0 20px var(--cobalt-glow);
}

.use-case-panel {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 48px;
  animation: fadeInUp 0.4s ease;
}

.use-case-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.use-case-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.use-case-content p {
  font-size: 1rem;
  color: var(--slate-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.use-case-list {
  list-style: none;
}

.use-case-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.925rem;
  color: var(--white-dim);
}

.use-case-list li svg {
  width: 20px;
  height: 20px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.use-case-visual {
  background: var(--deep-space);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 32px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--slate-light);
  overflow: hidden;
}

.use-case-visual .prompt {
  color: var(--cobalt);
}

.use-case-visual .response {
  color: var(--emerald);
}

.use-case-visual .action {
  color: #FBBF24;
}

.use-case-visual .dim {
  color: var(--slate);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cobalt-soft) 0%, transparent 70%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.15rem;
  color: var(--slate-light);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--card-border);
  background: var(--section-alt);
}

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

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--slate);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--slate);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--slate);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--cobalt);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--deep-space-light);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--card-border);
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .use-case-panel.active {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

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

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   DEMO REQUEST MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--deep-space-light);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--slate);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.modal-header {
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--slate-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form elements */
.demo-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-form .form-group {
  margin-bottom: 20px;
}

.demo-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: var(--slate);
}

.demo-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.demo-form select option {
  background: var(--deep-space);
  color: var(--white);
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}

.demo-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 24px 0;
}

.success-icon {
  color: var(--emerald);
  margin-bottom: 20px;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--slate-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form validation states */
.demo-form input.error-field,
.demo-form select.error-field {
  border-color: #F43F5E;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

@media (max-width: 560px) {
  .modal {
    padding: 32px 24px;
  }

  .demo-form .form-row {
    grid-template-columns: 1fr;
  }
}
