/* ─── DESIGN TOKENS ─── */
:root {
  --primary: #7C3AED;
  --primary-light: #8B5CF6;
  --primary-dark: #6D28D9;
  --secondary: #06B6D4;
  --secondary-light: #22D3EE;
  --accent: #84CC16;
  --void: #0A0A0F;
  --card-bg: #1E1E2E;
  --card-bg-hover: #252538;
  --card-border: rgba(124, 58, 237, 0.12);
  --card-border-hover: rgba(124, 58, 237, 0.3);
  --snow: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 80px -20px rgba(124, 58, 237, 0.35);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--void);
  color: var(--snow);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(124, 58, 237, 0.15); padding: 2px 6px; border-radius: 4px; }

/* ─── UTILITIES ─── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.btn:hover::before { opacity: 1; }
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 24px -4px rgba(124, 58, 237, 0.4);
}
.btn--primary::before { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); }
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px -4px rgba(124, 58, 237, 0.6);
}
.btn--secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn--secondary::before { background: rgba(6, 182, 212, 0.1); }
.btn--secondary:hover { color: var(--secondary-light); border-color: var(--secondary-light); }
.btn--ghost {
  background: rgba(248, 250, 252, 0.06);
  color: var(--snow);
  border-color: rgba(248, 250, 252, 0.12);
}
.btn--ghost:hover { background: rgba(248, 250, 252, 0.1); border-color: rgba(248, 250, 252, 0.2); }
.btn--sm { padding: 8px 20px; font-size: 0.875rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid rgba(248, 250, 252, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  background: rgba(10, 10, 15, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.nav__logo-icon {
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 1px;
}
.nav__links a:hover { color: var(--snow); }
.nav__links a:hover::after { width: 100%; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--snow);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 1px;
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav__mobile {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(248, 250, 252, 0.06);
}
.nav__mobile.active { display: block; }
.nav__mobile ul { display: flex; flex-direction: column; gap: 16px; }
.nav__mobile a { font-size: 1rem; color: var(--text-secondary); }
.nav__mobile a:hover { color: var(--snow); }

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.15);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  animation: glow-pulse 8s ease-in-out infinite alternate;
}
.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.1);
  bottom: -100px;
  right: -100px;
  animation: glow-pulse 10s ease-in-out infinite alternate-reverse;
}
@keyframes glow-pulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.hero__inner { text-align: center; position: relative; z-index: 1; max-width: 800px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-light);
  margin-bottom: 32px;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__proof-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.hero__proof-item strong {
  color: var(--snow);
  font-weight: 700;
  font-size: 1.1rem;
}
.hero__proof-sep {
  width: 1px;
  height: 20px;
  background: rgba(248, 250, 252, 0.12);
}

/* ─── SECTIONS ─── */
.section { padding: 120px 0; position: relative; }
.section__header { text-align: center; margin-bottom: 64px; }
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── PRODUCTS ─── */
.products { background: linear-gradient(180deg, var(--void) 0%, rgba(30, 30, 46, 0.2) 50%, var(--void) 100%); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) { .products__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ─── CARD ─── */
.card {
  position: relative;
  background: rgba(30, 30, 46, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }
.card--featured {
  border-color: rgba(124, 58, 237, 0.25);
  background: rgba(30, 30, 46, 0.8);
}
.card--featured::before { opacity: 0.5; }
.card__ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card__ribbon--primary { background: var(--primary); color: #fff; }
.card__ribbon--secondary { background: rgba(6, 182, 212, 0.15); color: var(--secondary-light); border: 1px solid rgba(6, 182, 212, 0.3); }
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon--finops { background: rgba(6, 182, 212, 0.1); color: var(--secondary); }
.card__icon--ai { background: rgba(124, 58, 237, 0.12); color: var(--primary-light); }
.card__icon--devops { background: rgba(132, 204, 22, 0.1); color: var(--accent); }
.card__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.card__desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.card__features {
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}
.card__footer { margin-top: auto; }
.card__price { text-align: center; margin-bottom: 16px; }
.card__price-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.card__price-unit { font-size: 0.85rem; color: var(--text-tertiary); margin-left: 4px; }

/* ─── WHY ─── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 640px) { .why__grid { grid-template-columns: 1fr; } }
.why__card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(30, 30, 46, 0.4);
  border: 1px solid rgba(248, 250, 252, 0.06);
  transition: all var(--transition);
}
.why__card:hover {
  background: rgba(30, 30, 46, 0.7);
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}
.why__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.why__card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.why__card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── HOW ─── */
.how { background: linear-gradient(180deg, var(--void) 0%, rgba(30, 30, 46, 0.15) 50%, var(--void) 100%); }
.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.how__step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.how__step-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}
.how__step-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.how__step-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.how__connector {
  width: 60px;
  min-width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin-top: 28px;
  border-radius: 1px;
  opacity: 0.4;
}
@media (max-width: 768px) {
  .how__steps { flex-direction: column; align-items: center; gap: 32px; }
  .how__connector {
    width: 2px;
    min-width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    margin-top: 0;
  }
}

/* ─── FAQ ─── */
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq__item {
  background: rgba(30, 30, 46, 0.4);
  border: 1px solid rgba(248, 250, 252, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.faq__item:hover { border-color: rgba(124, 58, 237, 0.15); }
.faq__item[open] { background: rgba(30, 30, 46, 0.7); border-color: rgba(124, 58, 237, 0.2); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { content: ''; }
.faq__question:hover { color: var(--primary-light); }
.faq__chevron {
  color: var(--text-tertiary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── CTA BANNER ─── */
.cta-banner { padding: 80px 0; }
.cta-banner__inner {
  text-align: center;
  padding: 72px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.15);
  position: relative;
  overflow: hidden;
}
.cta-banner__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner__inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
}
.cta-banner__inner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}
.cta-banner__inner .btn { position: relative; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid rgba(248, 250, 252, 0.06);
  padding: 64px 0 40px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand { max-width: 300px; }
.footer__brand p { margin-top: 12px; font-size: 0.9rem; color: var(--text-tertiary); line-height: 1.6; }
.footer__links { display: flex; gap: 64px; }
.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--snow); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(248, 250, 252, 0.06);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.footer__built { font-family: var(--font-mono); }

@media (max-width: 768px) {
  .footer__top { flex-direction: column; gap: 40px; }
  .footer__links { gap: 40px; flex-wrap: wrap; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SELECTION ─── */
::selection { background: rgba(124, 58, 237, 0.3); color: #fff; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(248, 250, 252, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(248, 250, 252, 0.2); }
