:root {
  --bg-primary: #030712;
  --bg-secondary: #0b1120;
  --bg-card: rgba(11, 17, 32, 0.65);
  --border-color: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(56, 189, 248, 0.25);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --accent-yellow: #eab308;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --gradient-start: #3b82f6;
  --gradient-end: #06b6d4;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Particle Canvas */
.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Background Grid */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(56, 189, 248, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Ambient Glow */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 60%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
}

/* Container */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-outline {
  background: rgba(255,255,255,0.02);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

.btn-large {
  padding: 14px 36px;
  font-size: 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  color: var(--accent-cyan);
}

.logo-text {
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

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

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

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#globe-canvas {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.globe-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(6, 182, 212, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  z-index: -1;
}

/* Stats Bar */
.stats-bar {
  position: relative;
  z-index: 2;
  padding: 36px 0;
  background: rgba(11, 17, 32, 0.45);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.stats-bar-dark {
  background: rgba(3, 7, 18, 0.75);
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

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

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-plus,
.stat-percent,
.stat-unit {
  font-size: 1.3rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-left: 2px;
}

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

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--border-glow), transparent);
}

/* Section Title */
.section-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-title.center {
  text-align: center;
}

/* Solutions Section */
.solutions {
  padding: 72px 0;
  position: relative;
  z-index: 2;
}

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

.solution-card {
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  padding: 22px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.08), inset 0 0 30px rgba(56, 189, 248, 0.03);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.solution-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.card-metrics {
  margin-bottom: 14px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.metric-name {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-value.negative {
  color: var(--accent-red);
}

.card-list {
  list-style: none;
  margin-bottom: 14px;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.bullet {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

.card-chart {
  width: 100%;
  height: 90px;
  display: block;
}

.card-x-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
}

.card-x-labels span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Analysis Section */
.analysis {
  padding: 72px 0;
  position: relative;
  z-index: 2;
}

.analysis-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.analysis-text .section-title {
  margin-bottom: 6px;
}

.analysis-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.analysis-dots {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 10px;
  max-width: 220px;
  position: relative;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
}

.analysis-dots::before,
.analysis-dots::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.15) 0px,
    rgba(56, 189, 248, 0.15) 6px,
    transparent 6px,
    transparent 12px
  );
}

.analysis-dots::before {
  top: -10px;
}

.analysis-dots::after {
  bottom: -10px;
}

.analysis-chart-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.analysis-chart-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.analysis-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.analysis-chart-header h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.badge {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

#portfolio-chart {
  width: 100%;
  height: 220px;
  display: block;
}

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
}

.chart-x-labels span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* Partners Section */
.partners {
  padding: 56px 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 17, 32, 0.25);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.partner-item:hover {
  color: var(--text-primary);
}

.partner-icon {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  opacity: 0.8;
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* CTA + Footer Wrapper */
.cta-footer-wrap {
  position: relative;
  overflow: hidden;
}

.bg-wave-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* CTA Section */
.cta {
  padding: 90px 0 60px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cta-container {
  position: relative;
}

/* Footer */
.footer {
  position: relative;
  padding: 0;
  z-index: 2;
}

.footer-content {
  position: relative;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

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

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

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}

.footer-links-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

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

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.3s ease;
}

.footer-links-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 18px 0;
  text-align: center;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  #globe-canvas {
    max-width: 300px;
  }
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analysis-container {
    grid-template-columns: 1fr;
  }
  .analysis-chart-wrapper {
    max-width: 600px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .stats-container {
    flex-direction: column;
    gap: 24px;
  }
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .partners-grid {
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .stat-value {
    font-size: 1.7rem;
  }
  .cta-title {
    font-size: 1.3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
