/* ========================================
   OpenLex AI - Global Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --secondary: #1E40AF;
  --accent: #3B82F6;
  --accent-light: #60A5FA;
  --cyan: #06B6D4;
  --cyan-light: #22D3EE;
  --green: #10B981;
  --purple: #8B5CF6;
  --orange: #F59E0B;
  --red: #EF4444;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  --text-dark-secondary: #475569;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-light: #FFFFFF;
  --bg-section-light: #F8FAFC;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-light: #E2E8F0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after {
  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);
  line-height: 1.6;
  color: var(--text-dark);
  background: #FFFFFF;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.nav-logo span.highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 1px;
}

.nav-cta {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--accent), var(--cyan)) !important;
  border-radius: 100px !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.3px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Language Toggle */
.lang-toggle {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}

.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, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-light);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

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

.hero-stat .number {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero-stat .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.btn-dark {
  background: var(--primary);
  color: white;
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 100px 24px;
}

.section-dark {
  background: var(--primary);
  color: var(--text-primary);
}

.section-light {
  background: var(--bg-section-light);
}

.section-white {
  background: white;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-dark .section-label {
  color: var(--cyan-light);
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-dark .section-title {
  color: var(--text-primary);
}

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

.section-dark .section-desc {
  color: var(--text-muted);
}

/* ========================================
   iOS Style Icon
   ======================================== */
.ios-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.ios-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%);
  border-radius: inherit;
}

.ios-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
  position: relative;
  z-index: 1;
}

/* Outline / SF Symbols style icons */
.ios-icon.outline svg {
  fill: none !important;
  stroke: white;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-icon.outline svg * {
  fill: none !important;
}

/* ========================================
   Line Icons (no background, stroke only)
   ======================================== */
.line-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
  border: 1.5px solid;
}

.line-icon svg {
  width: 28px;
  height: 28px;
  fill: none !important;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-icon svg * {
  fill: none !important;
}

.line-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.line-icon-lg svg {
  width: 36px;
  height: 36px;
}

/* Line icon colors (border + stroke) */
.line-icon.blue    { border-color: #3B82F6; }
.line-icon.cyan    { border-color: #06B6D4; }
.line-icon.green   { border-color: #10B981; }
.line-icon.purple  { border-color: #8B5CF6; }
.line-icon.orange  { border-color: #F59E0B; }
.line-icon.red     { border-color: #EF4444; }
.line-icon.indigo  { border-color: #6366F1; }
.line-icon.teal    { border-color: #14B8A6; }

.line-icon.blue svg    { stroke: #3B82F6; }
.line-icon.cyan svg    { stroke: #06B6D4; }
.line-icon.green svg   { stroke: #10B981; }
.line-icon.purple svg  { stroke: #8B5CF6; }
.line-icon.orange svg  { stroke: #F59E0B; }
.line-icon.red svg     { stroke: #EF4444; }
.line-icon.indigo svg  { stroke: #6366F1; }
.line-icon.teal svg    { stroke: #14B8A6; }

/* Brighter colors on dark backgrounds */
.section-dark .line-icon.blue    { border-color: #60A5FA; }
.section-dark .line-icon.cyan    { border-color: #22D3EE; }
.section-dark .line-icon.green   { border-color: #34D399; }
.section-dark .line-icon.purple  { border-color: #A78BFA; }
.section-dark .line-icon.orange  { border-color: #FBBF24; }
.section-dark .line-icon.red     { border-color: #F87171; }
.section-dark .line-icon.indigo  { border-color: #818CF8; }

.section-dark .line-icon.blue svg    { stroke: #60A5FA; }
.section-dark .line-icon.cyan svg    { stroke: #22D3EE; }
.section-dark .line-icon.green svg   { stroke: #34D399; }
.section-dark .line-icon.purple svg  { stroke: #A78BFA; }
.section-dark .line-icon.orange svg  { stroke: #FBBF24; }
.section-dark .line-icon.red svg     { stroke: #F87171; }
.section-dark .line-icon.indigo svg  { stroke: #818CF8; }

.ios-icon.blue { background: linear-gradient(180deg, #4DA3FF, #2563EB); }
.ios-icon.cyan { background: linear-gradient(180deg, #32D7ED, #0891B2); }
.ios-icon.green { background: linear-gradient(180deg, #34D399, #059669); }
.ios-icon.purple { background: linear-gradient(180deg, #A78BFA, #7C3AED); }
.ios-icon.orange { background: linear-gradient(180deg, #FBBF24, #D97706); }
.ios-icon.red { background: linear-gradient(180deg, #F87171, #DC2626); }
.ios-icon.pink { background: linear-gradient(180deg, #F472B6, #DB2777); }
.ios-icon.indigo { background: linear-gradient(180deg, #818CF8, #4F46E5); }
.ios-icon.teal { background: linear-gradient(180deg, #2DD4BF, #0D9488); }
.ios-icon.dark { background: linear-gradient(180deg, #64748B, #334155); }

.ios-icon-sm {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

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

.ios-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.ios-icon-lg svg {
  width: 36px;
  height: 36px;
}

/* ========================================
   Feature Cards
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.2);
}

.feature-card .ios-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

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

/* Dark card variant */
.section-dark .feature-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.section-dark .feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-dark .feature-card h3 {
  color: var(--text-primary);
}

.section-dark .feature-card p {
  color: var(--text-muted);
}

/* ========================================
   Stats Bar
   ======================================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

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

.stat-item .stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-dark-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* ========================================
   Process Flow
   ======================================== */
.process-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 36px 24px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Step number badge */
.process-step .step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Arrow connector between steps */
.process-arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
}

.process-arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step .line-icon {
  margin: 8px auto 16px;
}

.process-step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.process-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Team Cards
   ======================================== */
.team-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.team-avatar::before {
  display: none;
}

.team-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.team-card .role {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.65;
}

.team-card .skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

.team-card .skill-tag {
  padding: 4px 12px;
  background: var(--bg-section-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark-secondary);
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--cyan), var(--purple));
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-content {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.timeline-content .timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 15px;
  color: var(--text-dark-secondary);
  line-height: 1.65;
}

.timeline-content ul {
  margin-top: 12px;
}

.timeline-content ul li {
  font-size: 14px;
  color: var(--text-dark-secondary);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.timeline-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ========================================
   Pricing Cards
   ======================================== */
.pricing-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-xl);
}

.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  margin: 20px 0;
  letter-spacing: -2px;
}

.pricing-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark-secondary);
  letter-spacing: 0;
}

.pricing-card .price-desc {
  font-size: 14px;
  color: var(--text-dark-secondary);
  margin-bottom: 24px;
}

.pricing-card ul {
  margin-bottom: 32px;
}

.pricing-card ul li {
  font-size: 14px;
  color: var(--text-dark-secondary);
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ========================================
   Globe Section
   ======================================== */
.globe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.country-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.country-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.country-card .flag {
  margin-bottom: 14px;
}

.country-card .flag img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.country-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.country-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--primary);
  padding: 64px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ========================================
   Architecture Diagram
   ======================================== */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.arch-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  min-width: 320px;
  justify-content: center;
  transition: var(--transition);
}

.arch-layer:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.arch-layer h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-layer p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Expanded arch layer with sub-items */
.arch-layer-expanded {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  width: 100%;
  transition: var(--transition);
}

.arch-layer-expanded:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.arch-layer-expanded h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.arch-layer-expanded .arch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.arch-layer-expanded .arch-tag {
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.arch-layer-expanded .arch-desc {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 500px;
}

.arch-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  border-radius: 1px;
}

/* ========================================
   Funding Donut / Progress
   ======================================== */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.funding-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.funding-card:hover {
  box-shadow: var(--shadow-lg);
}

.funding-card .percentage {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.funding-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.funding-card .amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

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

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-section-light);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 1s ease-out;
}

/* ========================================
   Advantage Tags
   ======================================== */
.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.advantage-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.3);
}

.advantage-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Sub-page Hero
   ======================================== */
.page-hero {
  padding: 160px 24px 80px;
  background: var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   Lists
   ======================================== */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-dark-secondary);
}

.check-list li svg {
  width: 20px;
  height: 20px;
  fill: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.section-dark .check-list li {
  color: var(--text-secondary);
}

/* ========================================
   Agent Grid
   ======================================== */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.agent-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.agent-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
}

.agent-card .ios-icon {
  margin: 0 auto 16px;
}

.agent-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.agent-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Split Layout
   ======================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-text h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.split-text p {
  font-size: 16px;
  color: var(--text-dark-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.section-dark .split-text h2 {
  color: var(--text-primary);
}

.section-dark .split-text p {
  color: var(--text-muted);
}

/* ========================================
   Pain Points
   ======================================== */
.pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.pain-card:nth-child(1)::before { background: linear-gradient(90deg, var(--red), var(--orange)); }
.pain-card:nth-child(2)::before { background: linear-gradient(90deg, var(--orange), #F59E0B); }
.pain-card:nth-child(3)::before { background: linear-gradient(90deg, var(--purple), var(--accent)); }

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pain-card .number {
  font-size: 48px;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.1);
  line-height: 1;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ========================================
   Investor Highlights
   ======================================== */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.highlight-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.highlight-card .ios-icon {
  margin: 0 auto 16px;
}

.highlight-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Round Cards
   ======================================== */
.round-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.round-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.round-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.round-card .round-label {
  display: inline-block;
  padding: 4px 16px;
  background: var(--bg-section-light);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.round-card .round-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -2px;
  margin-bottom: 8px;
}

.round-card .round-valuation {
  font-size: 14px;
  color: var(--text-dark-secondary);
  margin-bottom: 20px;
}

.round-card p {
  font-size: 14px;
  color: var(--text-dark-secondary);
  line-height: 1.65;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4,
  .globe-grid,
  .agent-grid,
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .pain-cards {
    grid-template-columns: 1fr;
  }
  .round-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links a {
    font-size: 18px;
  }
  .card-grid,
  .card-grid-2,
  .card-grid-4,
  .globe-grid,
  .agent-grid,
  .funding-grid,
  .advantage-list,
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .section {
    padding: 64px 20px;
  }
  .process-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .process-arrow {
    justify-content: center;
    padding: 4px 0;
  }
  .process-arrow svg {
    transform: rotate(90deg);
    width: 24px;
    height: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
