/* ==========================================
   BLUE EDEN — Design System & Styles
   ========================================== */

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

:root {
  /* Ultramarine palette */
  --blue-900: #0a0540;
  --blue-800: #110966;
  --blue-700: #1a0a8e;
  --blue-600: #2518b0;
  --blue-500: #3b2fd4;
  --blue-400: #5b4fe8;
  --blue-300: #7b72f0;
  --blue-200: #a9a3f5;
  --blue-100: #d4d1fa;
  --blue-50:  #eeedfd;

  /* Neutrals */
  --gray-950: #08080c;
  --gray-900: #0f0f18;
  --gray-800: #1a1a2e;
  --gray-700: #2a2a44;
  --gray-600: #3d3d5c;
  --gray-500: #6b6b8a;
  --gray-400: #9494ad;
  --gray-300: #b8b8cc;
  --gray-200: #d8d8e5;
  --gray-100: #ededf4;
  --gray-50:  #f7f7fb;

  --white: #ffffff;

  /* Functional */
  --accent: var(--blue-500);
  --accent-hover: var(--blue-400);
  --bg-dark: var(--gray-950);
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1200px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--gray-300);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

strong { color: var(--white); font-weight: 600; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 40px);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 34px;
  height: 34px;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.25s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-nav {
  padding: 9px 18px;
  background: rgba(59, 47, 212, 0.15);
  color: var(--blue-300);
  border: 1px solid rgba(59, 47, 212, 0.3);
}

.btn-nav:hover {
  background: rgba(59, 47, 212, 0.25);
  color: var(--blue-200);
  border-color: rgba(59, 47, 212, 0.5);
}

.btn-primary {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(59, 47, 212, 0.3), 0 4px 20px rgba(59, 47, 212, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px rgba(91, 79, 232, 0.4), 0 8px 30px rgba(59, 47, 212, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  padding: 14px 28px;
  background: transparent;
  color: var(--gray-200);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-glass {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gray-200);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-lg {
  font-size: 0.95rem;
  padding: 16px 32px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-300);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 12, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-300);
  transition: color 0.25s;
}

.mobile-link:hover {
  color: var(--white);
}

.mobile-cta {
  margin-top: 16px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 47, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 47, 212, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(26, 10, 142, 0.3) 0%, rgba(59, 47, 212, 0.1) 30%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  top: 20%;
  left: 15%;
  background: rgba(26, 10, 142, 0.15);
  animation: float 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  bottom: 20%;
  right: 15%;
  background: rgba(59, 47, 212, 0.1);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(59, 47, 212, 0.1);
  border: 1px solid rgba(59, 47, 212, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-300);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-200) 50%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue-500), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Sections Common --- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding: 6px 12px;
  background: rgba(59, 47, 212, 0.08);
  border: 1px solid rgba(59, 47, 212, 0.15);
  border-radius: 6px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.section-desc {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 560px;
}

/* --- Pain Section --- */
.section-pain {
  border-top: 1px solid var(--border);
}

.section-pain .section-header h2 {
  max-width: 900px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--gray-300);
  line-height: 1.5;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.pain-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s, background 0.3s;
}

.pain-card:hover {
  border-color: rgba(59, 47, 212, 0.2);
  background: rgba(59, 47, 212, 0.03);
}

.pain-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-500);
  margin-bottom: 16px;
  opacity: 0.7;
}

.pain-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--gray-400);
}

.pain-conclusion {
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(26, 10, 142, 0.08) 0%, rgba(59, 47, 212, 0.04) 100%);
  border: 1px solid rgba(59, 47, 212, 0.15);
  border-radius: 16px;
}

.pain-conclusion p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--gray-300);
  text-align: center;
}

/* --- Solution / Modules --- */
.section-solution {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 10, 142, 0.03) 50%, transparent 100%);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.module-card {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.module-card:hover {
  border-color: rgba(59, 47, 212, 0.2);
  background: rgba(59, 47, 212, 0.04);
  transform: translateY(-2px);
}

.module-card:hover::before {
  opacity: 0.5;
}

.module-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 24px;
}

.module-icon svg {
  width: 28px;
  height: 28px;
}

.module-icon-gen  { background: rgba(123, 114, 240, 0.1); color: var(--blue-300); }
.module-icon-auto { background: rgba(91, 79, 232, 0.1);  color: var(--blue-400); }
.module-icon-data { background: rgba(59, 47, 212, 0.1);  color: var(--blue-400); }
.module-icon-intel{ background: rgba(37, 24, 176, 0.12); color: var(--blue-300); }

.module-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.module-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-400);
}

.modules-footer {
  text-align: center;
}

.api-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(59, 47, 212, 0.06);
  border: 1px solid rgba(59, 47, 212, 0.12);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.api-badge svg {
  color: var(--blue-400);
  flex-shrink: 0;
}

/* --- Difference --- */
.section-diff {
  border-top: 1px solid var(--border);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.diff-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s var(--ease-out);
}

.diff-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.diff-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-400);
}

.diff-icon svg {
  width: 28px;
  height: 28px;
}

.diff-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.diff-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--gray-400);
}

/* --- Process --- */
.section-process {
  background: linear-gradient(180deg, transparent 0%, rgba(26, 10, 142, 0.03) 50%, transparent 100%);
}

.process-timeline {
  max-width: 680px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 32px;
  position: relative;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 47, 212, 0.1);
  border: 1px solid rgba(59, 47, 212, 0.25);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-400);
}

.step-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(59, 47, 212, 0.3), transparent);
  margin: 8px 0;
}

.step-content {
  padding-bottom: 56px;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-400);
}

.step-detail {
  margin-top: 12px;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(59, 47, 212, 0.08);
  border: 1px solid rgba(59, 47, 212, 0.15);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-300);
}

/* --- Sectors --- */
.section-sectors {
  border-top: 1px solid var(--border);
}

.sectors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sector-pill {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: all 0.3s var(--ease-out);
}

.sector-pill:hover {
  border-color: rgba(59, 47, 212, 0.3);
  background: rgba(59, 47, 212, 0.06);
  color: var(--white);
}

/* --- CTA --- */
.section-cta {
  padding-bottom: 0;
}

.cta-box {
  text-align: center;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 60px);
  background: linear-gradient(135deg, rgba(26, 10, 142, 0.12) 0%, rgba(59, 47, 212, 0.06) 100%);
  border: 1px solid rgba(59, 47, 212, 0.15);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 100%, rgba(59, 47, 212, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  position: relative;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--gray-400);
  margin-bottom: 36px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* --- Footer --- */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: var(--section-pad);
}

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

.footer-tagline {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: var(--gray-400);
  display: block;
  margin-bottom: 4px;
}

.footer-contact a:hover {
  color: var(--blue-300);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color 0.25s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.pain-grid [data-animate]:nth-child(2),
.modules-grid [data-animate]:nth-child(2),
.diff-grid [data-animate]:nth-child(2) {
  transition-delay: 0.1s;
}

.pain-grid [data-animate]:nth-child(3),
.modules-grid [data-animate]:nth-child(3),
.diff-grid [data-animate]:nth-child(3) {
  transition-delay: 0.2s;
}

.modules-grid [data-animate]:nth-child(4),
.diff-grid [data-animate]:nth-child(4) {
  transition-delay: 0.3s;
}

.process-step:nth-child(2) [data-animate] {
  transition-delay: 0.15s;
}

.process-step:nth-child(3) [data-animate] {
  transition-delay: 0.3s;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .pain-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }

  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

  .hero-sub br { display: none; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .process-step { gap: 20px; }
  .step-content { padding-bottom: 40px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .api-badge {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .module-card {
    padding: 28px 24px;
  }

  .cta-box {
    padding: 36px 20px;
  }

  .sector-pill {
    padding: 10px 18px;
    font-size: 0.82rem;
  }
}
