/* ===== CSS Variables - Roo Code Inspired Theme ===== */
:root {
  --bg-primary: #09090B;
  --bg-secondary: #0D0F12;
  --bg-card: #181C20;
  --bg-card-hover: #1E2228;
  --bg-section-arch: #111316;
  --accent-blue: #3B82F6;
  --accent-blue-dim: rgba(59, 130, 246, 0.1);
  --accent-green: #10B981;
  --accent-purple: #8B5CF6;
  --text-primary: #F9FAFB;
  --text-secondary: #A1A7AD;
  --text-tertiary: #6B7278;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-card-hover: 0 1px 4px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Navigation - Pill Style ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 15, 18, 0.95);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
}

.logo-icon {
  color: var(--accent-blue);
}

.ae-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--gradient-primary);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* ===== Hero Section - Roo Code Style ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* ===== Energy Flow Background ===== */
.energy-flow-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.55;
  z-index: 0;
  will-change: transform, opacity;
}

.flow-lines {
  position: absolute;
  width: 100%;
  height: 100%;
}

.flow-path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.35;
  animation: flowDrift 12s ease-in-out infinite;
}

/* Individual path colors — blue to purple gradient strokes */
.flow-1 {
  stroke: url(#flowGrad1);
  animation-duration: 14s;
  animation-delay: 0s;
}
.flow-2 {
  stroke: url(#flowGrad2);
  animation-duration: 16s;
  animation-delay: -3s;
}
.flow-3 {
  stroke: url(#flowGrad1);
  animation-duration: 12s;
  animation-delay: -6s;
}
.flow-4 {
  stroke: url(#flowGrad2);
  animation-duration: 18s;
  animation-delay: -9s;
}
.flow-5 {
  stroke: rgba(16, 185, 129, 0.35); /* green accent */
  stroke-width: 1;
  animation-duration: 10s;
  animation-delay: -2s;
  opacity: 0.25;
}

/* Glow pulse dots that travel along paths */
.flow-glow {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent 70%);
  filter: blur(2px);
  animation: glowTravel 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.glow-1 {
  top: 22%;
  animation-duration: 10s;
  animation-delay: 0s;
}
.glow-2 {
  top: 40%;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8), transparent 70%);
  animation-duration: 12s;
  animation-delay: -4s;
}
.glow-3 {
  top: 62%;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.6), transparent 70%);
  animation-duration: 14s;
  animation-delay: -7s;
}

/* Animations */
@keyframes flowDrift {
  0%, 100% {
    transform: translateX(-3%);
    opacity: 0.3;
  }
  50% {
    transform: translateX(3%);
    opacity: 0.6;
  }
}

@keyframes glowTravel {
  0% {
    left: -2%;
    opacity: 0;
    transform: scale(0.5);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  90% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    left: 102%;
    opacity: 0;
    transform: scale(0.5);
  }
}

/* Content-area fade — stronger on text side (left) to keep readability */
.energy-flow-container::before,
.energy-flow-container::after {
  content: '';
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* Left side (text area) — strong fade over wider zone */
.energy-flow-container::before {
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-primary) 0%, var(--bg-primary) 40%, transparent 100%);
}

/* Right side — moderate fade */
.energy-flow-container::after {
  right: 0;
  width: 25%;
  height: 100%;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  will-change: transform, opacity;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  top: 10%;
  left: 20%;
  animation: float 12s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  bottom: 20%;
  right: 15%;
  animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeInLeft 0.8s ease-out;
}

.hero-preview {
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Hero Badges - Pill Style */
.hero-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.hero-badge--green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 90%;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

/* ===== Terminal Window - Card Style ===== */
.terminal-window {
  background: #181C20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 16px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-window:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 24px 56px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.1);
  transform: translateY(-4px) scale(1.005);
}

/* Terminal glow effect on hover */
.terminal-window::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 30%;
  right: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.terminal-window:hover::after {
  opacity: 1;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

/* SVG icons inside dots */
.dot svg {
  width: 8px;
  height: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dot svg line,
.dot svg rect {
  stroke: #000;
  stroke-width: 1.2;
  fill: none;
}

/* Show icons on hover (macOS style) */
.dot:hover svg {
  opacity: 0.6;
}

.dot:hover {
  transition: background-color 0.15s ease;
}

.dot.red:hover { background: #ff453a; }
.dot.yellow:hover { background: #f5a623; }
.dot.green:hover { background: #1db932; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.terminal-body {
  padding: 1.25rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  background: #181C20;
}

.terminal-line {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* Terminal animation base state - hidden */
.terminal-body .terminal-line {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.terminal-body .terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Response lines (terminal-thinking) - hidden by default */
.terminal-thinking {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 0;
  height: 0;
  overflow: hidden;
}

.terminal-thinking.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  line-height: 1.5 !important;
  height: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  overflow: visible !important;
}

/* Thinking lines - hidden by default, collapse to zero */
.terminal-line[id^="thinking-"] {
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease, line-height 0.3s ease;
}

.terminal-line[id^="thinking-"].visible {
  opacity: 1 !important;
  height: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.5 !important;
  overflow: visible !important;
}

.prompt {
  color: var(--accent-blue);
}

.output {
  color: var(--accent-green);
  display: inline-block;
  padding-left: 0.9rem;
}

.thinking-text {
  color: #888;
  font-style: italic;
  display: inline-block;
  padding-left: 0.9rem;
}

.thinking-dots {
  display: inline;
  line-height: 1;
}

.thinking-dots span {
  display: inline;
  animation: thinking-dot 1.4s infinite;
  opacity: 0;
}

.thinking-dots span:nth-child(1) {
  animation-delay: 0s;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes thinking-dot {
  0%, 20% { opacity: 0; }
  30%, 100% { opacity: 1; }
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== Section Titles ===== */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-title .oi {
  font-size: 0.8em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ===== Features Section - Video BG with Card Overlay ===== */
.features-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0A0C0E 0%, #0F1114 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.feature-block {
  position: relative;
  margin-bottom: 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 550px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-block:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 80px -20px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.feature-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}

/* Cool gradient border glow on hover */
.feature-block::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), transparent 40%, transparent 60%, rgba(139, 92, 246, 0.4));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-block:hover::after {
  opacity: 1;
}

.feature-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.feature-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  background: var(--bg-primary);
}

/* Fallback for videos before they load */
.lazy-video {
  background: var(--bg-primary);
}

/* Default: card sits in the left column area */
.feature-content {
  position: relative;
  z-index: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(135deg, #181C20 0%, #1A1E24 100%) !important;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  grid-column: 1 / 4;
  margin: 0 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-content:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.05);
  transform: translateY(-3px);
}

/* Wider card for algo trading block */
#algo-trading .feature-content {
  grid-column: 1 / 5;
}

/* Alternate positioning - card on right side */
.feature-block.alternate .feature-content {
  grid-column: 6 / 9;
}

/* Subtle top glow accent on cards */
.feature-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  border-radius: 1px;
}

.feature-content:hover::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
  top: -1px;
}

.feature-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-content h3 .oi {
  font-size: 0.8em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Feature Pills */
.feature-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* AI Comparison Cards */
.ai-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comp-card {
  padding: 1.25rem;
  background: #181C20;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.comp-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.comp-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.comp-card.ours {
  border-color: rgba(59, 130, 246, 0.3);
  background: #181C20;
}

/* Token Chart */
.token-chart {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #181C20;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.token-chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.bar-label {
  width: 80px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
}

.bar-fill.efficient {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.bar-fill.moderate {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.bar-fill.heavy {
  background: linear-gradient(90deg, #EF4444, #F87171);
}

.token-chart-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
}

/* Algorithm Flow */
.algo-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.flow-step {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  font-size: 1.25rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.step-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.flow-arrow {
  color: var(--text-tertiary);
  font-size: 1.5rem;
}

/* ===== Problem Section - Card Grid ===== */
.problem-section {
  padding: 6rem 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.problem-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(59, 130, 246, 0.01) 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--radius-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.15);
}

.problem-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.problem-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problem-card:hover::after {
  opacity: 1;
}

.problem-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.problem-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.problem-extra {
  font-size: 0.875rem;
  margin-top: 1rem;
}

.problem-stats,
.solution-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pstat,
.sstat {
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pstat .oi,
.sstat .oi {
  font-size: 0.8em;
  opacity: 0.8;
}

.problem-card .oi {
  color: var(--accent-blue);
}

.problem-card.solution .oi {
  color: var(--accent-green);
}

/* ===== Architecture Comparison Table ===== */
.arch-section {
  padding: 6rem 0;
}

.comparison-wrapper {
  background: var(--bg-section-arch);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table th {
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.ours-col {
  color: var(--accent-blue) !important;
  font-weight: 600;
}

/* ===== CTA Section - Card Style with Animated Background ===== */
.cta-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* CTA Background Layer */
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* CTA Energy Flow Container - Reduced opacity for readability */
.cta-energy-flow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.35;
}

.cta-energy-flow .flow-lines {
  position: absolute;
  width: 100%;
  height: 100%;
}

.cta-energy-flow .flow-path {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.3;
  animation: flowDrift 14s ease-in-out infinite;
}

/* CTA Flow line colors */
.cta-flow-1 {
  stroke: url(#ctaFlowGrad1);
  animation-duration: 16s;
  animation-delay: 0s;
}
.cta-flow-2 {
  stroke: url(#ctaFlowGrad2);
  animation-duration: 18s;
  animation-delay: -4s;
}
.cta-flow-3 {
  stroke: url(#ctaFlowGrad1);
  animation-duration: 14s;
  animation-delay: -7s;
}
.cta-flow-4 {
  stroke: rgba(16, 185, 129, 0.3);
  stroke-width: 0.8;
  animation-duration: 12s;
  animation-delay: -2s;
  opacity: 0.2;
}

/* CTA Glow pulse dots */
.cta-glow-1 {
  position: absolute;
  width: 6px;
  height: 6px;
  top: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.7), transparent 70%);
  filter: blur(1.5px);
  animation: glowTravel 12s ease-in-out infinite;
}
.cta-glow-2 {
  position: absolute;
  width: 5px;
  height: 5px;
  top: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.7), transparent 70%);
  filter: blur(1.5px);
  animation: glowTravel 14s ease-in-out infinite;
  animation-delay: -5s;
}
.cta-glow-3 {
  position: absolute;
  width: 7px;
  height: 7px;
  top: 65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.5), transparent 70%);
  filter: blur(2px);
  animation: glowTravel 16s ease-in-out infinite;
  animation-delay: -8s;
}

/* CTA Glow Orbs */
.cta-orb-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent-blue);
  top: -10%;
  left: 10%;
  filter: blur(60px);
  opacity: 0.1;
  animation: float 14s ease-in-out infinite;
  will-change: transform, opacity;
}

.cta-orb-2 {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-purple);
  bottom: -10%;
  right: 15%;
  filter: blur(50px);
  opacity: 0.08;
  animation: float 12s ease-in-out infinite reverse;
  will-change: transform, opacity;
}

.cta-content {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0F1113 0%, #131620 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--radius-xl);
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.cta-content h2 .oi {
  font-size: 0.8em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== About Section (Vision + Team Side by Side) ===== */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0A0C0E 0%, #0F1114 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.about-column {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.about-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-title .oi {
  font-size: 0.85em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===== Vision Pillars ===== */
.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 2rem;
}

.pillar-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.12);
}

.pillar-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pillar-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%);
  transform: translateY(-6px);
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.2),
    0 16px 48px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pillar-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pillar-card:hover::after {
  opacity: 1;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.pillar-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 6px;
}

.pillar-icon .oi {
  font-size: 1rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pillar-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--text-primary);
  line-height: 1.4;
}

.pillar-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0;
}


/* ===== Expertise Grid ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(-15px);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.expertise-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.expertise-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.03) 100%);
  color: var(--text-primary);
  transform: translateX(4px);
  box-shadow:
    0 4px 12px rgba(139, 92, 246, 0.15),
    0 8px 24px rgba(139, 92, 246, 0.1);
}

.expertise-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2px;
}

.expertise-item:hover::before {
  opacity: 1;
}

.expertise-item:hover {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
  color: var(--text-primary);
  transform: translateX(4px);
}

.expertise-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  color: var(--accent-purple);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.expertise-icon .oi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ===== Partners Row ===== */
.partners-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.partner-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.partner-badge {
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.partner-badge:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.about-close {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.about-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0 1.5rem 0;
}

.about-partners {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0;
  padding-top: 0;
}

/* ===== Vision Section (legacy, kept for reference) ===== */
.vision-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0A0C0E 0%, #0F1114 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.vision-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.vision-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.vision-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.vision-close {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* ===== Team & Experience Section (legacy, kept for reference) ===== */
.team-section {
  padding: 6rem 0;
}

.team-content {
  max-width: 900px;
  margin: 0 auto;
}

.team-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.team-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.team-partners {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* ===== Footer ===== */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.copyright {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .feature-block {
    grid-template-columns: 1fr;
  }
  
  .problem-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 120px 0 4rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-column {
    padding: 2rem;
  }
}

/* ===== Animation States (moved from JS dynamic injection) ===== */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== Fade-in elements (replaces JS inline styles) ===== */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* About section content fade-in (smaller offset) */
.about-fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
