/* ═══════════════════════════════════════════
   Header / Navigation
   ═══════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background var(--duration-slow) var(--ease);
}

.header--scrolled {
  background: rgba(9, 9, 11, 0.95);
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__nav {
  display: flex;
  gap: var(--space-1);
}

.nav__link {
  padding: var(--space-2) var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}
.nav__link:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.header__actions {
  display: flex;
  gap: var(--space-3);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all var(--duration) var(--ease);
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: var(--color-primary);
  opacity: 0.12;
}

.hero__glow--2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: var(--color-accent);
  opacity: 0.08;
  animation-delay: 4s;
}

@keyframes glowPulse {
  0% { transform: scale(1); opacity: 0.08; }
  100% { transform: scale(1.2); opacity: 0.15; }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s var(--ease) both;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero__gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
  animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.stat__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Hero Dashboard Visual */
.hero__visual {
  animation: fadeInUp 1s var(--ease) 0.5s both;
}

.hero__dashboard {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.dash__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.dash__dots {
  display: flex;
  gap: 6px;
}
.dash__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash__dots span:nth-child(1) { background: #ef4444; }
.dash__dots span:nth-child(2) { background: #f59e0b; }
.dash__dots span:nth-child(3) { background: #22c55e; }

.dash__title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.dash__body {
  display: flex;
  min-height: 280px;
}

.dash__sidebar {
  width: 140px;
  border-right: 1px solid var(--color-border);
  padding: var(--space-3);
  flex-shrink: 0;
}

.dash__menu-item {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}
.dash__menu-item--active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.dash__content {
  flex: 1;
  padding: var(--space-4);
}

.dash__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.dash__card {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.dash__card--blue { background: var(--color-primary-soft); }
.dash__card--green { background: var(--color-success-soft); }
.dash__card--amber { background: var(--color-warning-soft); }

.dash__card-value {
  font-size: var(--text-lg);
  font-weight: 700;
}
.dash__card-label {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.dash__chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 100px;
  padding: var(--space-3);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.dash__bar {
  flex: 1;
  background: linear-gradient(to top, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  opacity: 0.7;
  animation: barGrow 1.5s var(--ease) both;
}
.dash__bar--h40 { height: 40%; }
.dash__bar--h45 { height: 45%; }
.dash__bar--h55 { height: 55%; }
.dash__bar--h65 { height: 65%; }
.dash__bar--h70 { height: 70%; }
.dash__bar--h80 { height: 80%; }
.dash__bar--h90 { height: 90%; }
.dash__bar:nth-child(2) { animation-delay: 0.1s; }
.dash__bar:nth-child(3) { animation-delay: 0.2s; }
.dash__bar:nth-child(4) { animation-delay: 0.3s; }
.dash__bar:nth-child(5) { animation-delay: 0.4s; }
.dash__bar:nth-child(6) { animation-delay: 0.5s; }
.dash__bar:nth-child(7) { animation-delay: 0.6s; }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ═══════════════════════════════════════════
   Features
   ═══════════════════════════════════════════ */

.features {
  padding: var(--space-24) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-slow) var(--ease);
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px var(--color-primary-glow);
}

.feature-card--highlight {
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-glow));
  border-color: rgba(59, 130, 246, 0.2);
}

.feature-card__icon {
  font-size: 36px;
  margin-bottom: var(--space-4);
}

.feature-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   How It Works
   ═══════════════════════════════════════════ */

.how-it-works {
  padding: var(--space-24) 0;
  background: var(--color-bg-alt);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-slow) var(--ease);
}
.step:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.step__num {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.3;
  text-align: center;
}
.step:hover .step__num { opacity: 1; }

.step__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.step__visual {
  text-align: center;
}

.step__icon {
  font-size: 40px;
}

/* ═══════════════════════════════════════════
   Industries
   ═══════════════════════════════════════════ */

.industries {
  padding: var(--space-24) 0;
}

.industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.industry-tile {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--duration-slow) var(--ease);
  cursor: default;
}
.industry-tile:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.industry-tile__icon {
  font-size: 40px;
  margin-bottom: var(--space-3);
}

.industry-tile__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.industry-tile__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════
   Modules Section
   ═══════════════════════════════════════════ */

.modules-section {
  padding: var(--space-24) 0;
  background: var(--color-bg-alt);
}

.modules__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.modules__tab {
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.modules__tab:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}
.modules__tab--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.modules__panel { display: none; }
.modules__panel--active { display: block; }

.modules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.module-tile {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--duration-slow) var(--ease);
}
.module-tile:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.module-tile__icon {
  font-size: 28px;
  margin-bottom: var(--space-3);
}

.module-tile__name {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.module-tile__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.module-tile__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: var(--text-xs);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-weight: 600;
}
.module-tile__badge--core {
  background: var(--color-success-soft);
  color: var(--color-success);
}

/* ═══════════════════════════════════════════
   Pricing
   ═══════════════════════════════════════════ */

.pricing {
  padding: var(--space-24) 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.price-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  transition: all var(--duration-slow) var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.price-card--popular {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}
.price-card--popular:hover {
  transform: scale(1.03) translateY(-4px);
}

.price-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.price-card__header {
  margin-bottom: var(--space-8);
}

.price-card__name {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.price-card__amount {
  font-size: var(--text-4xl);
  font-weight: 800;
}

.price-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.price-card__features {
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.price-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-6);
  position: relative;
}
.price-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */

.cta {
  padding: var(--space-24) 0;
  background: var(--color-bg-alt);
}

.cta__inner {
  text-align: center;
  position: relative;
}

.cta__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--color-primary-glow), transparent);
  filter: blur(80px);
  pointer-events: none;
}

.cta__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  position: relative;
}

.cta__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  position: relative;
}

/* ═══════════════════════════════════════════
   Scroll animations
   ═══════════════════════════════════════════ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */

.footer {
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: var(--space-4) 0;
  max-width: 300px;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-1) 0;
  transition: color var(--duration) var(--ease);
}
.footer__link:hover {
  color: var(--color-text);
}

/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   Responsive — Landing
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { display: none; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .price-card--popular { transform: none; }
  .price-card--popular:hover { transform: translateY(-4px); }
  .modules__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__actions { display: none; }
  .header__burger { display: flex; }

  .hero { min-height: auto; padding-top: calc(var(--header-height) + var(--space-12)); }
  .hero__title { font-size: var(--text-4xl); }

  .features__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .step__visual { display: none; }
  .modules__grid { grid-template-columns: 1fr; }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: var(--space-6); }
  .cta__actions { flex-direction: column; align-items: center; }
}
