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

/* Modern Design Tokens */
:root {
  --bg-color: #030712;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --accent-teal: #14b8a6;
  --accent-teal-glow: rgba(20, 184, 166, 0.15);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.15);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-active: rgba(20, 184, 166, 0.4);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --max-width: 1280px;
  --header-height: 80px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(20, 184, 166, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glowing Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--accent-teal-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.3);
  background: linear-gradient(135deg, #14d5c0, #7376f9);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  background-color: rgba(3, 7, 18, 0.7);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 1.1rem;
}

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

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

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

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--accent-teal);
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.05);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #ffffff, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(to right, var(--accent-teal), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(20, 184, 166, 0.2);
}

.hero-desc {
  font-size: 1.25rem;
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* Hero UI Preview */
.hero-preview {
  margin-top: 40px;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 6px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.05);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(3, 7, 18, 0.4);
  border-radius: calc(var(--border-radius-xl) - 4px) calc(var(--border-radius-xl) - 4px) 0 0;
  border-bottom: 1px solid var(--border-color);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.preview-tab {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.hero-preview-body {
  padding: 24px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

/* Stats Grid Section */
.stats-section {
  padding: 80px 0;
  background: rgba(15, 23, 42, 0.2);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.stat-card {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Section Common Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--accent-teal);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 18px;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Platform Section: Reasoning Engine */
.platform-section {
  padding: 100px 0;
}

.nexus-visual-container {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 40px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nexus-text h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.nexus-text p {
  margin-bottom: 24px;
}

.nexus-features {
  list-style: none;
}

.nexus-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.nexus-features li svg {
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 4px;
}

.nexus-flow-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
}

.nexus-node {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  transition: var(--transition-smooth);
}

.nexus-node:hover {
  border-color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.05);
  transform: translateX(5px);
}

.nexus-node-active {
  border-color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.08);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.1);
}

.node-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
  transition: var(--transition-smooth);
}

.nexus-node-active .node-num {
  background: var(--accent-teal);
  color: #000;
  border-color: var(--accent-teal);
}

.node-content h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.node-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.node-icon {
  margin-left: auto;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.nexus-node-active .node-icon {
  color: var(--accent-teal);
}

/* Meet the Bots Section */
.bots-section {
  padding: 100px 0;
  background: rgba(15, 23, 42, 0.1);
}

.bots-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

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

.tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.bot-card {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 48px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bot-card.active {
  display: grid;
  animation: fadeIn 0.5s ease;
}

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

.bot-info h3 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-info h3 span {
  font-size: 0.75rem;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
}

.bot-tagline {
  font-size: 1.1rem;
  color: var(--accent-teal);
  margin-bottom: 24px;
  font-weight: 500;
}

.bot-desc {
  margin-bottom: 32px;
}

.skills-list-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 600;
}

.bot-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.bot-skills li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bot-skills li svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

.bot-integrations {
  display: flex;
  align-items: center;
  gap: 12px;
}

.integration-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.integration-logos {
  display: flex;
  gap: 12px;
}

.integration-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.bot-visual {
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 360px;
}

.bot-avatar-glowing {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.4);
  position: relative;
  animation: pulseAvatar 4s infinite alternate ease-in-out;
}

@keyframes pulseAvatar {
  0% { transform: scale(1); box-shadow: 0 0 30px rgba(99, 102, 241, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 0 60px rgba(20, 184, 166, 0.5); }
}

.bot-avatar-icon {
  font-size: 4rem;
}

/* Interactive Playground Section */
.playground-section {
  padding: 100px 0;
  position: relative;
}

.console-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(20, 184, 166, 0.05);
}

.console-header {
  background: rgba(3, 7, 18, 0.6);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-title-indicator {
  width: 8px;
  height: 8px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: pulseIndicator 1.5s infinite;
}

@keyframes pulseIndicator {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

.console-options {
  display: flex;
  gap: 10px;
}

.console-preset {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.console-preset:hover,
.console-preset.active {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--accent-teal);
  color: var(--text-primary);
}

.console-body {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.console-input-area {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
}

.console-input-prefix {
  color: var(--accent-teal);
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
}

.console-input {
  flex-grow: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.console-input::placeholder {
  color: var(--text-muted);
}

.console-send-btn {
  background: var(--accent-teal);
  color: #000;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.console-send-btn:hover {
  background: #14d5c0;
  transform: scale(1.05);
}

/* Console Message Formats */
.log-line {
  display: flex;
  gap: 12px;
  animation: logLineIn 0.3s ease forwards;
}

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

.log-time {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 70px;
}

.log-type {
  font-weight: 700;
  flex-shrink: 0;
  width: 90px;
}

.log-type.user { color: #f8fafc; }
.log-type.cortex { color: var(--accent-indigo); }
.log-type.action { color: var(--accent-teal); }
.log-type.system { color: #eab308; }
.log-type.success { color: #22c55e; }

.log-msg {
  color: var(--text-secondary);
  word-break: break-word;
}

.log-msg strong {
  color: var(--text-primary);
}

/* Trust & Guardrails Section */
.trust-section {
  padding: 100px 0;
  background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.02));
}

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

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
}

.trust-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.trust-card:hover .trust-icon {
  background: var(--accent-indigo);
  color: #000;
  box-shadow: 0 0 15px var(--accent-indigo-glow);
}

.trust-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.trust-card p {
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  position: relative;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(3, 7, 18, 0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: 3rem;
  margin-bottom: 18px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-desc {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* Footer */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-color);
  background: #020617;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--accent-teal);
}

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

/* Contact/Demo Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: #0b0f19;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  width: 90%;
  max-width: 540px;
  padding: 40px;
  position: relative;
  z-index: 1001;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(99, 102, 241, 0.05);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* Animations on Scroll (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes revealUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-scroll {
      animation: revealUp auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% entry 35%;
    }
  }
}

/* Static fallback styles for Javascript Scroll reveal if supports check fails */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.25rem; }
  .nexus-visual-container,
  .bot-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-badge { font-size: 0.8rem; }
  .hero-ctas { flex-direction: column; align-items: center; width: 100%; gap: 12px; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-title { font-size: 2rem; }
  .bot-skills { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .footer-nav { flex-direction: column; gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
