:root {
  --bg: #0a0a0f;
  --bg-raised: #12121a;
  --bg-card: #1a1a26;
  --fg: #e8e8ef;
  --fg-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --accent-secondary: #00cec9;
  --gradient-start: #6c5ce7;
  --gradient-end: #00cec9;
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1120px;
}

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

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

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  background: rgba(0, 206, 201, 0.06);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 780px;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 540px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* ─── CASCADE LINES (decorative) ─── */
.cascade-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  overflow: hidden;
  z-index: 0;
}

.cascade-lines .line {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.15;
  animation: cascade 3s ease-in-out infinite;
}

.cascade-lines .line:nth-child(1) { left: 20%; height: 120px; animation-delay: 0s; }
.cascade-lines .line:nth-child(2) { left: 35%; height: 160px; animation-delay: 0.5s; }
.cascade-lines .line:nth-child(3) { left: 50%; height: 140px; animation-delay: 1s; }
.cascade-lines .line:nth-child(4) { left: 65%; height: 180px; animation-delay: 1.5s; }
.cascade-lines .line:nth-child(5) { left: 80%; height: 100px; animation-delay: 2s; }

@keyframes cascade {
  0%, 100% { opacity: 0.05; transform: translateY(-20px); }
  50% { opacity: 0.2; transform: translateY(0); }
}

/* ─── SECTIONS COMMON ─── */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── SERVICES ─── */
.services {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ─── HOW IT WORKS ─── */
.how {
  background: var(--bg-raised);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67%);
  right: calc(16.67%);
  height: 2px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ─── INDUSTRIES ─── */
.industries {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s;
}

.industry-card:hover {
  border-color: rgba(0, 206, 201, 0.3);
}

.industry-card .ind-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.industry-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.industry-card p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── CLOSING ─── */
.closing {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing .section-title {
  max-width: 640px;
  margin: 0 auto 1rem;
}

.closing .section-subtitle {
  max-width: 500px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

footer .footer-note {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .steps::before {
    display: none;
  }
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  footer .footer-inner {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hero {
    min-height: 70vh;
    padding: 4rem 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}