@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --grad-primary: #2563EB;
  --grad-secondary: #6366F1;
  --accent: #8B5CF6;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;

  /* Typography Sizes */
  --text-hero: clamp(48px, 8vw, 80px);
  --text-heading: clamp(36px, 5vw, 52px);
  --text-subtitle: clamp(18px, 2.5vw, 22px);
  --text-body: 18px;

  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-padding: 160px 5%;
  --border-radius: 24px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.section-title {
  font-size: var(--text-heading);
  margin-bottom: 24px;
}

.subtitle {
  font-size: var(--text-subtitle);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--grad-primary), var(--grad-secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.mb-8 { margin-bottom: 32px; }
.mb-16 { margin-bottom: 64px; }

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: var(--section-padding);
  position: relative;
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Components */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 48px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: var(--text-main);
  color: #fff;
}
.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

/* ── ANIMATIONS & EFFECTS ── */
.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--grad-primary);
  top: -10%; left: -10%;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: 20%; right: -5%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ── HERO & INTRO ── */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
}

#intro, #hero-details {
  position: relative;
  overflow: hidden;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.3; /* Handled by GSAP */
  transition: opacity 0.5s ease;
  margin-bottom: 2rem;
}
.workflow-step.active {
  opacity: 1;
}

.node {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin: 0 auto;
}

.connection-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--border-light), var(--grad-primary));
  margin: 10px auto;
}

.timeline-container {
  border-left: 2px solid var(--border-light);
  padding-left: 32px;
  margin-left: 16px;
}
.timeline-item {
  position: relative;
  padding-bottom: 48px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--grad-primary);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--text-main);
}

/* Utils */
.bounce {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Marquee */
.logo-marquee {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
