/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #070407;
  --bg-2: #0d0710;
  --ink: #f5f1fb;
  --ink-dim: #a89fb8;
  --ink-faint: #6b6378;
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --purple-deep: #7c3aed;
  --purple-soft: rgba(168, 85, 247, 0.14);
  --border: rgba(168, 85, 247, 0.18);
  --border-soft: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(168, 85, 247, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
  color: var(--ink-dim);
}

/* ---------- Background effects ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -160px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 65%);
}

.orb-2 {
  width: 620px;
  height: 620px;
  top: 40%;
  right: -240px;
  background: radial-gradient(circle, #a855f7 0%, transparent 65%);
  animation-delay: -8s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(30px, -40px, 0);
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 32px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7, 4, 7, 0.55);
  border-bottom: 1px solid var(--border-soft);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 33px;
  height: 33px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(168, 85, 247, 0.35));
}

.logo-text .logo-ai,
.logo-ai {
  display: inline-block;
  margin-left: 2px;
  background-image: linear-gradient(
    90deg,
    #c084fc 0%,
    #a855f7 50%,
    #7c3aed 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-dim);
  transition: all 0.18s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--purple-soft);
}

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 100px 0;
}

/* ---------- Splash (first fold) ---------- */
.splash {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  min-height: calc(100vh - 104px);
  min-height: calc(100svh - 104px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 6vw 32vh 0;
}

.splash-mark {
  font-size: clamp(46px, 7.8vw, 94px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  text-align: right;
}

.splash-volt,
.splash-ai {
  display: inline-block;
  opacity: 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.splash-volt {
  /* Match hero: white like "AI agents that read, reason, and" */
  background-image: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  transform: translateY(14px);
  animation: volt-reveal 8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.splash-ai {
  /* Match hero's "act at scale" gradient — 90deg */
  background-image: linear-gradient(
    90deg,
    #c084fc 0%,
    #a855f7 50%,
    #7c3aed 100%
  );
  margin-left: 0.04em;
  animation: ai-reveal 8s cubic-bezier(0.22, 1, 0.36, 1) 4.5s forwards;
}

@keyframes volt-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ai-reveal {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-volt,
  .splash-ai {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.splash-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.splash-hint:hover {
  color: var(--purple-bright);
}

.splash-hint-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-bright) 0%, transparent 100%);
  animation: line-slide 2.4s ease-in-out infinite;
  transform-origin: left;
}

@keyframes line-slide {
  0%,
  100% {
    transform: scaleX(0.6);
    opacity: 0.6;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--purple-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 12px var(--purple-bright);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    #c084fc 0%,
    #a855f7 50%,
    #7c3aed 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 18.5px;
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  box-shadow:
    0 10px 30px -10px rgba(168, 85, 247, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px -10px rgba(168, 85, 247, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--border);
  background: var(--purple-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.stat {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid var(--border-soft);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--purple-bright);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
}

/* ---------- Courses ---------- */
.course-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--border-soft);
}

.course {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 36px;
  padding: 32px 8px;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
  transition: background 0.25s var(--ease);
}

.course:hover {
  background: linear-gradient(
    90deg,
    rgba(168, 85, 247, 0.05) 0%,
    transparent 100%
  );
}

.course-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--purple-bright);
  letter-spacing: 0.05em;
}

.course-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.course-body p {
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 540px;
}

.course-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-top: 4px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}

.about-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--purple-bright);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding-top: 12px;
}

.about-body h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 28px;
  max-width: 720px;
}

.about-body p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 640px;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin-top: 56px;
}

.capability {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.capability-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--purple-bright);
  padding-top: 3px;
  min-width: 24px;
}

.capability-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ink);
}

.capability-text {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact {
  padding-bottom: 140px;
}

.contact-card {
  position: relative;
  padding: 64px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(124, 58, 237, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  text-align: center;
  overflow: hidden;
}

.contact-card .section-label {
  margin-bottom: 20px;
}

.contact-card h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 16px;
}

.contact-card > p {
  font-size: 17px;
  margin-bottom: 40px;
}

.contact-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 28px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-soft);
  padding: 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  section {
    padding: 72px 0;
  }

  .nav {
    padding: 14px 20px;
  }

  main {
    padding: 0 20px;
  }

  .hero {
    padding: 72px 0 48px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--border-soft);
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    padding: 40px 24px;
  }

  .course {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 24px 4px;
  }

  .course-meta {
    grid-column: 2;
    padding-top: 4px;
  }
}
