:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #11141b;
  --panel-2: #171b24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #a4adbf;
  --muted-2: #7f889b;
  --accent: #ffffff;
  --accent-text: #0b0d12;
  --glow: rgba(120, 140, 255, 0.35);
  --soft: rgba(255, 255, 255, 0.05);
  --soft-2: rgba(255, 255, 255, 0.03);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  background: #0b0d12;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% -10%, rgba(120, 140, 255, 0.18), transparent 60%),
    radial-gradient(50% 40% at 85% 10%, rgba(255, 120, 200, 0.10), transparent 60%),
    radial-gradient(80% 60% at 50% 110%, rgba(80, 220, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #10131a 0%, #0b0d12 100%);
  background-size: 200% 200%;
  animation: aurora 22s ease-in-out infinite;
}

@keyframes aurora {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  50% { background-position: 100% 30%, 0% 30%, 50% 70%, 0 0; }
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.9) 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
nav {
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  background: rgba(11, 13, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease),
    background 0.3s var(--ease);
}

nav.scrolled {
  padding: 12px 0;
  border-color: var(--border);
  background: rgba(11, 13, 18, 0.82);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s var(--ease);
}

.brand:hover { opacity: 0.85; }

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: transparent; /* remove white box */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.18s var(--ease);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: var(--accent-text) !important;
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 700 !important;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.hero-orbit::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(120, 140, 255, 0.55), transparent 60%);
  top: -160px;
  left: -120px;
  animation: orbit1 16s ease-in-out infinite;
}

.hero-orbit::after {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 120, 200, 0.4), transparent 60%);
  top: -80px;
  right: -100px;
  animation: orbit2 20s ease-in-out infinite;
}

@keyframes orbit1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}

@keyframes orbit2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-60px, 40px); }
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.03);
}

h1.hero-title {
  margin: 0 0 20px;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h1.hero-title .accent {
  background: linear-gradient(90deg, #ffffff 0%, #a4adbf 50%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.22),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.cta:hover::after { opacity: 1; }
.cta:hover { transform: translateY(-2px); }

.cta-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.cta-primary:hover {
  box-shadow: 0 16px 44px rgba(255, 255, 255, 0.22);
}

.cta-secondary {
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------- Section ---------- */
section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

h2 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Loop ---------- */
.loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.loop-step {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.loop-step:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.loop-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.loop-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.loop-text { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 26px;
  background: var(--soft-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
    background 0.25s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.feature:hover .feature-icon {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-text { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tier {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.tier:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.tier.featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.tier-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.tier.featured .tier-name { color: var(--text); }

.tier-headline {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.tier-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tier-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}

/* ---------- CTA banner ---------- */
.final {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.final h2 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .bg-aurora,
  .hero-orbit::before,
  .hero-orbit::after,
  h1.hero-title .accent {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1024px) {
  h1.hero-title { font-size: 52px; }
  .hero { padding: 80px 0 64px; }
}

@media (max-width: 860px) {
  .loop,
  .features,
  .tiers {
    grid-template-columns: 1fr 1fr;
  }

  .tier.featured { grid-column: span 2; }

  h1.hero-title { font-size: 44px; }
  h2 { font-size: 30px; }

  section { padding: 64px 0; }

  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 560px) {
  .loop,
  .features,
  .tiers {
    grid-template-columns: 1fr;
  }

  .tier.featured { grid-column: auto; }

  h1.hero-title { font-size: 38px; }
  h2 { font-size: 26px; }

  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .final { padding: 72px 0; }

  .container { padding: 0 20px; }
}
