/* ============================================
   XJ Power - Global Styles v2.0
   Scale AI + Vercel inspired, deep blue purple
   ============================================ */

:root {
  /* Color System */
  --bg-primary: #070B14;
  --bg-secondary: #0D1321;
  --bg-tertiary: #111827;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  
  /* Brand Colors */
  --brand-blue: #3B82F6;
  --brand-purple: #8B5CF6;
  --brand-cyan: #06B6D4;
  --brand-pink: #EC4899;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #06B6D4 100%);
  --gradient-text: linear-gradient(135deg, #A78BFA 0%, #60A5FA 50%, #22D3EE 100%);
  --gradient-warm: linear-gradient(135deg, #EC4899 0%, #8B5CF6 50%, #3B82F6 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 40%, transparent 70%);
  
  /* Orbs */
  --orb-purple: rgba(139, 92, 246, 0.4);
  --orb-blue: rgba(59, 130, 246, 0.35);
  --orb-cyan: rgba(6, 182, 212, 0.3);
  --orb-pink: rgba(236, 72, 153, 0.3);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
  --font-display: 'Inter', -apple-system, sans-serif;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 120px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

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

/* Text Utilities */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono {
  font-family: var(--font-mono);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: #fff;
  color: #0B0F1A;
}
.btn-primary:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color-hover);
}
.btn-ghost:hover {
  border-color: var(--text-secondary);
  background: var(--bg-card);
}

.btn-gradient {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
}
.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.btn-link {
  background: transparent;
  color: var(--text-primary);
  padding: 10px 0;
}
.btn-link:hover {
  color: var(--brand-purple);
}

.btn-link svg {
  transition: transform var(--transition-fast);
}
.btn-link:hover svg {
  transform: translateX(4px);
}

/* Mobile Nav */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   HERO SECTION (Scale AI + Vercel inspired)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Ambient Background Orbs */
.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background-image: url('../images/hero_bg.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.7;
  mask-image: linear-gradient(to left, black 40%, transparent 85%);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 85%);
  z-index: 0;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--orb-purple);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  animation: float1 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--orb-blue);
  bottom: 10%;
  left: 10%;
  animation: float2 15s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--orb-cyan);
  top: 30%;
  right: 5%;
  animation: float3 14s ease-in-out infinite;
}

.orb-4 {
  width: 300px;
  height: 300px;
  background: var(--orb-pink);
  bottom: 5%;
  right: 15%;
  opacity: 0.3;
  animation: float1 18s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-30px); }
}

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

@keyframes float3 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}

/* Grid Background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center top, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

/* Mono Label - Vercel style small caps label */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Hero Title - Scale AI style giant gradient headline */
.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-title .line {
  display: block;
}

.hero-title .word {
  display: inline-block;
}

.hero-title .gradient-word {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .gradient-warm-word {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.hero-cta .btn-primary {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
}

.hero-cta .btn-link {
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 500;
}

/* Hero Badge - Vercel style trusted by strip */
.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

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

.hero-logo-item {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

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

.section-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   FEATURE GRID (Vercel style clean cards)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: default;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 22px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   PRODUCT SHOWCASE (Scale AI style)
   ============================================ */
.product-section {
  padding: var(--section-padding) 0;
  position: relative;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}

.product-row:last-child {
  margin-bottom: 0;
}

.product-row.reverse .product-text {
  order: 2;
}

.product-row.reverse .product-visual {
  order: 1;
}

.product-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.product-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.product-title .accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.product-points {
  list-style: none;
  margin-bottom: 32px;
}

.product-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-primary);
}

.product-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--gradient-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

.product-visual {
  position: relative;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: var(--gradient-glow);
}

.product-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 80px rgba(139, 92, 246, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
              0 0 100px rgba(139, 92, 246, 0.15);
  border-color: var(--border-color-hover);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}

/* Architecture Diagram Visual */
.arch-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.arch-layer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
}

.arch-layer:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.arch-layer-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.arch-layer-icon.purple { background: rgba(139, 92, 246, 0.2); color: #A78BFA; }
.arch-layer-icon.blue { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.arch-layer-icon.cyan { background: rgba(6, 182, 212, 0.2); color: #22D3EE; }
.arch-layer-icon.green { background: rgba(16, 185, 129, 0.2); color: #34D399; }

.arch-layer-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.arch-layer-info p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.arch-arrow {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 20px;
  line-height: 1;
}

/* Data Visualization Cards */
.data-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.data-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.data-stat .number {
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.data-stat .label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   THEORY SECTION - About our foundation
   ============================================ */
.theory-section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.theory-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.theory-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.theory-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.theory-image-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: visible;
}

.theory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.25),
              0 0 160px rgba(59, 130, 246, 0.15);
}

.theory-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Triangle Visualization */
.triangle-container {
  position: relative;
  width: 320px;
  height: 320px;
}

.triangle-outer {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border-color-hover);
  border-radius: 50%;
  animation: rotate-slow 30s linear infinite;
}

.triangle-mid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: rotate-slow 20s linear infinite reverse;
}

.triangle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(30px);
}

.triangle-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border: 2px solid var(--brand-purple);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2;
  font-family: var(--font-mono);
}

.triangle-node span {
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.node-x { top: 0; left: 50%; transform: translateX(-50%); }
.node-i { bottom: 40px; left: 20px; }
.node-j { bottom: 40px; right: 20px; }

.triangle-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-purple), transparent);
  transform-origin: left center;
}

.line-xi { top: 30px; left: 50%; width: 160px; transform: rotate(135deg); }
.line-ij { bottom: 70px; left: 80px; width: 160px; transform: rotate(0deg); }
.line-jx { top: 30px; right: 50%; width: 160px; transform: rotate(45deg); transform-origin: right center; }

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.theory-projection {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projection-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.projection-item:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.projection-index {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-purple);
  font-family: var(--font-mono);
  flex-shrink: 0;
  padding-top: 2px;
}

.projection-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.projection-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   METRICS / STATS STRIP (Scale AI style)
   ============================================ */
.metrics-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

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

.metric-item {
  text-align: center;
}

.metric-number {
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.cta-card {
  position: relative;
  padding: 80px 60px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-title .accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-slogan {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-purple);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

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

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

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.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);
}

.reveal.active {
  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; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
  
  .product-row,
  .product-row.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .product-row.reverse .product-text { order: 1; }
  .product-row.reverse .product-visual { order: 2; }
  
  .theory-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-logos {
    gap: 24px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .metric-number {
    font-size: 36px;
  }
  
  .cta-card {
    padding: 48px 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .triangle-container {
    width: 260px;
    height: 260px;
  }
  
  .triangle-mid {
    width: 170px;
    height: 170px;
  }
  
  .data-visual {
    grid-template-columns: 1fr;
  }
}
