:root {
  --bg: #fcfcff;
  --bg-soft: #f7f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-accent: #f5f3ff;
  --text: #232638;
  --text-soft: #666b82;
  --accent: #8b5cf6;
  --accent-deep: #6d3cf3;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --accent-rgb: 139 92 246;
  --text-rgb: 35 38 56;
  --line: rgba(var(--text-rgb) / 0.08);
  --line-strong: rgba(var(--text-rgb) / 0.14);
  --shadow: 0 18px 50px rgba(74, 64, 130, 0.08);
  --shadow-strong: 0 32px 100px rgba(92, 76, 180, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-display: "Geologica", "Segoe UI", sans-serif;
  --font-logo: "Playfair Display", "Georgia", serif;
  --font-body: "Geologica", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --text-6xl: clamp(2.8rem, 6vw, 5.4rem);
  --text-4xl: clamp(2rem, 5vw, 4rem);
  --text-2xl: clamp(1.5rem, 3vw, 2.25rem);
  --text-xl: clamp(1.05rem, 2vw, 1.28rem);
  --text-lg: 1.12rem;
  --card-pad: 1.35rem;
  --section-py: 5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

/* ── Header ── */

.site-header,
main,
.section {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: white;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 30px rgba(var(--accent-rgb) / 0.18);
}

.brand-name {
  font-family: var(--font-logo);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.top-nav .nav-cta {
  color: white;
  padding: 0.82rem 1.08rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 12px 28px rgba(var(--accent-rgb) / 0.22);
}

/* ── Layout ── */

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: var(--section-py) 0;
}

.hero {
  padding-top: 3.6rem;
  padding-bottom: 1rem;
}

.proof-section {
  padding-top: 6rem;
}

.pricing-section {
  padding-top: 6.5rem;
}

.final-section {
  padding-bottom: 6rem;
}

/* ── Typography ── */

.eyebrow,
.mono,
.pricing-topline {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-lead,
.section-lead,
.pillar p,
.proof-panel li,
.workflow-card p,
.testimonial-copy,
.price-note,
.price-small,
.faq-answer p,
.final-card p {
  color: var(--text-soft);
  line-height: 1.72;
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  min-height: 76vh;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-6xl);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
  max-width: 10.5ch;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-kicker {
  margin: 0.7rem 0 0;
  color: var(--text);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.45rem;
}

.pillars-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.pillar p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

.hero-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: relative;
}

/* Blueprint grid — "миллиметровка" за терминалом */
.hero-aside::before {
  content: "";
  position: absolute;
  inset: -40px -20px;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(139, 92, 246, 0.04) 0px,
      rgba(139, 92, 246, 0.04) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(139, 92, 246, 0.04) 0px,
      rgba(139, 92, 246, 0.04) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-xl);
}

/* Диффузный glow — терминал светит на рабочий стол */
.hero-aside::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.12) 0%,
    rgba(139, 92, 246, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* ── Buttons ── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.96rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 16px 36px rgba(var(--accent-rgb) / 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(var(--text-rgb) / 0.1);
  color: var(--text);
}

/* ── Cards (unified base) ── */

.proof-panel,
.workflow-card,
.testimonial-card,
.pricing-card,
.faq-item,
.final-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.workflow-card,
.testimonial-card,
.pricing-card,
.final-card {
  padding: var(--card-pad);
}

.pricing-card,
.final-card {
  border-color: rgba(var(--accent-rgb) / 0.1);
}

/* ── Section heads ── */

.section-head {
  max-width: 54rem;
}

.section-head h2,
.pricing-copy h2,
.final-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.section-head .section-lead {
  margin-top: 1rem;
  max-width: 48rem;
}

/* ── Proof ── */

.proof-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.08fr 0.92fr;
  margin-top: 2rem;
}

.proof-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.proof-phone {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f5ff, #ffffff);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  align-self: start;
}

.proof-phone img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  border-radius: 20px;
  max-height: 820px;
}

.proof-copy {
  display: grid;
  gap: 1rem;
}

.proof-panel {
  padding: 1.4rem;
}

.proof-panel h3 {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0.3rem;
  top: -0.02rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.proof-summary {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

/* ── Proof carousel dots (mobile) ── */

.proof-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 200ms ease;
}

.proof-dot.is-active {
  background: var(--accent);
}

/* ── Workflow ── */

.pillars-grid,
.workflow-grid,
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), rgba(var(--accent-rgb) / 0.18));
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb) / 0.1);
  margin-bottom: 0.85rem;
}

.workflow-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.workflow-summary {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb) / 0.04);
  border: 1px solid rgba(var(--accent-rgb) / 0.08);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

/* ── Curriculum topics ── */

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

.curriculum-item {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb) / 0.04);
  border: 1px solid rgba(var(--accent-rgb) / 0.08);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.curriculum-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(var(--accent-rgb) / 0.1);
  border-color: rgba(var(--accent-rgb) / 0.18);
}

.curriculum-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.curriculum-item span {
  display: block;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.5;
}

/* ── Tools showcase ── */

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.tool-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tool-card-media {
  padding: 0.6rem 0.6rem 0;
  background: linear-gradient(180deg, #f0ecfc, #faf8ff);
  border-bottom: 1px solid rgba(var(--text-rgb) / 0.06);
}

.tool-card-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  max-height: 280px;
}

.tool-card-body {
  padding: 1.2rem var(--card-pad);
}

.tool-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.tool-card-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ── Testimonials ── */

.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-head {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.testimonial-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(var(--text-rgb) / 0.06);
  background: linear-gradient(180deg, rgba(var(--text-rgb) / 0.04), rgba(var(--text-rgb) / 0.1));
}

.testimonial-avatar::before,
.testimonial-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(var(--text-rgb) / 0.18);
}

.testimonial-avatar::before {
  top: 0.8rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
}

.testimonial-avatar::after {
  bottom: 0.45rem;
  width: 2.35rem;
  height: 1.5rem;
  border-radius: 999px 999px 0.75rem 0.75rem;
}

.testimonial-head h3 {
  margin: 0 0 0.15rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

.testimonial-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.testimonial-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.testimonial-copy {
  margin-top: 0.9rem;
  font-size: 0.97rem;
}

/* ── Pricing ── */

.pricing-topline {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.urgency-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(var(--accent-rgb) / 0.2);
  animation: urgency-pulse 2.5s ease-in-out infinite;
}

@keyframes urgency-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.pricing-content {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

.pricing-aside {
  width: min(100%, 34rem);
  justify-self: start;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--text-rgb) / 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: -0.06em;
}

.price-note {
  margin: 0.4rem 0 0;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 1rem;
}

.price-small {
  margin: 0.4rem 0 0;
}

.value-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.value-item {
  display: grid;
  gap: 0.22rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(var(--text-rgb) / 0.07);
}

.value-item.value-item-bonus {
  background: rgba(var(--accent-rgb) / 0.1) !important;
  border: 1.5px solid rgba(var(--accent-rgb) / 0.3) !important;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb) / 0.12) !important;
}

.value-item-primary {
  background:
    radial-gradient(circle at right center, rgba(var(--accent-rgb) / 0.1), transparent 30%), rgba(255, 255, 255, 0.9);
  border-color: rgba(var(--accent-rgb) / 0.14);
}

.risk-item {
  box-shadow: 0 14px 32px rgba(var(--accent-rgb) / 0.08);
}

.value-title {
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
}

.value-note {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.risk-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.9rem 0 0.8rem;
}

.risk-signals span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb) / 0.09);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ── Parser screenshot in pricing aside ── */

.parser-bridge {
  margin: 0.9rem 0 0.8rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 600;
}

.parser-screenshot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.parser-label {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
  text-align: center;
}

.parser-screenshot img {
  width: 90%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  align-self: center;
}

.parser-caption {
  display: block;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  text-align: center;
}

/* ── FAQ ── */

.faq-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(74, 64, 130, 0.06);
  border-radius: 20px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem var(--card-pad);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer > * {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 var(--card-pad) 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--text-rgb) / 0.06);
}

.faq-answer > div {
  min-height: 0;
}

/* ── Final CTA ── */

.final-card {
  text-align: center;
}

.final-card h2 {
  max-width: 14ch;
  margin-inline: auto;
}

.final-card .hero-actions {
  justify-content: center;
}

/* ── Scroll reveal ── */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Terminal ── */

.hero-terminal {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, #0d0e1a 0%, #111225 50%, #0a0b14 100%);
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 40px 120px rgba(92, 76, 180, 0.22),
    0 0 120px rgba(var(--accent-rgb) / 0.12),
    0 0 40px rgba(var(--accent-rgb) / 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  /* Entrance: прилетает справа */
  transform: translateX(60px);
  opacity: 0;
  transition:
    transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 800ms ease,
    box-shadow 300ms ease;
}

/* Floating — терминал висит в воздухе */
@keyframes terminal-float {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(0) translateY(-10px);
  }
}

/* После загрузки: прилетел и парит */
.hero-terminal.is-loaded {
  transform: translateX(0);
  opacity: 1;
  animation: terminal-float 5s ease-in-out 1s infinite;
  box-shadow:
    0 60px 160px rgba(92, 76, 180, 0.32),
    0 0 160px rgba(var(--accent-rgb) / 0.16),
    0 0 60px rgba(var(--accent-rgb) / 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb) / 0.3),
    rgba(110, 231, 183, 0.15),
    rgba(var(--accent-rgb) / 0.2),
    rgba(110, 231, 183, 0.1)
  );
  z-index: -1;
  animation: border-shift 8s ease infinite;
}

@keyframes border-shift {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.hero-terminal::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(var(--accent-rgb) / 0.06), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-chrome .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-close {
  background: #ff5f57;
}
.dot-min {
  background: #febc2e;
}
.dot-max {
  background: #28c840;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.terminal-body {
  flex: 1;
  padding: 1.6rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.t-prompt {
  color: #a78bfa;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}
.t-system {
  color: rgba(255, 255, 255, 0.35);
}
.t-success {
  color: #6ee7b7;
  text-shadow: 0 0 10px rgba(110, 231, 183, 0.3);
}
.t-file {
  color: rgba(255, 255, 255, 0.55);
}

.t-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Scanlines overlay */
.terminal-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  border-radius: inherit;
  z-index: 10;
}

/* Thinking dots indicator */
.thinking-dots {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--accent);
  animation: thinking-pulse 1.2s ease-in-out infinite;
  font-size: 0.5rem;
  vertical-align: middle;
  letter-spacing: -2px;
}
@keyframes thinking-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Bounce checkmark */
.t-check {
  color: #6ee7b7;
  text-shadow: 0 0 8px rgba(110, 231, 183, 0.5);
  animation: bounce-in 300ms ease forwards;
}
@keyframes bounce-in {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Success glow pulse */
.t-success {
  text-shadow: 0 0 12px rgba(110, 231, 183, 0.6);
  animation: success-glow 1.5s ease-out;
}
@keyframes success-glow {
  0% {
    text-shadow: 0 0 30px rgba(110, 231, 183, 1);
  }
  100% {
    text-shadow: 0 0 12px rgba(110, 231, 183, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .t-cursor,
  .hero-terminal::before,
  .hero-terminal::after {
    animation: none;
  }
}

/* ── Glow cursor — multi-layer system ── */

/* All cursor layers: centered on cursor, no pointer events */
.cursor-dot,
.cursor-ring,
.cursor-glow,
.cursor-ghost-1,
.cursor-ghost-2,
.cursor-ghost-3 {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Layer 1: bright dot at exact cursor position */
.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow:
    0 0 6px 2px rgba(167, 139, 250, 0.9),
    0 0 14px 4px rgba(167, 139, 250, 0.5);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 200ms ease;
  mix-blend-mode: screen;
}

/* Layer 2: inner bright core ring */
.cursor-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.5);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity 250ms ease,
    width 300ms ease,
    height 300ms ease,
    border-color 300ms ease;
  animation: cursor-ring-rotate 4s linear infinite;
}

@keyframes cursor-ring-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Layer 3: main glow — large soft halo */
.cursor-glow {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(167, 139, 250, 0.5) 0%,
    rgba(139, 92, 246, 0.25) 30%,
    rgba(110, 231, 183, 0.1) 55%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity 250ms ease,
    width 300ms ease,
    height 300ms ease;
  mix-blend-mode: screen;
  animation: cursor-hue-shift 8s linear infinite;
}

@keyframes cursor-hue-shift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(30deg);
  }
}

/* Trailing ghosts — fade and delay */
.cursor-ghost-1 {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 250ms ease;
  mix-blend-mode: screen;
}

.cursor-ghost-2 {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 250ms ease;
  mix-blend-mode: screen;
}

.cursor-ghost-3 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 250ms ease;
  mix-blend-mode: screen;
}

/* Hover state — everything explodes */
.cursor-dot.is-hovering {
  width: 8px;
  height: 8px;
  box-shadow:
    0 0 10px 3px rgba(167, 139, 250, 1),
    0 0 24px 8px rgba(167, 139, 250, 0.6),
    0 0 40px 12px rgba(110, 231, 183, 0.3);
}

.cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  border-color: rgba(167, 139, 250, 0.9);
}

.cursor-glow.is-hovering {
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(167, 139, 250, 0.7) 0%,
    rgba(139, 92, 246, 0.4) 25%,
    rgba(110, 231, 183, 0.18) 50%,
    transparent 70%
  );
  box-shadow: 0 0 60px 10px rgba(139, 92, 246, 0.25);
}

.cursor-ghost-1.is-hovering {
  opacity: 0.6;
  width: 110px;
  height: 110px;
}
.cursor-ghost-2.is-hovering {
  opacity: 0.4;
  width: 90px;
  height: 90px;
}
.cursor-ghost-3.is-hovering {
  opacity: 0.25;
  width: 70px;
  height: 70px;
}

/* Hover targets */
.is-hovering .cursor-dot,
.is-hovering .cursor-ring,
.is-hovering .cursor-glow {
  opacity: 1;
}
.is-hovering .cursor-ghost-1 {
  opacity: 0.5;
}
.is-hovering .cursor-ghost-2 {
  opacity: 0.3;
}
.is-hovering .cursor-ghost-3 {
  opacity: 0.15;
}

/* Default visible state */
.cursor-dot.is-visible,
.cursor-ring.is-visible,
.cursor-glow.is-visible,
.cursor-ghost-1.is-visible,
.cursor-ghost-2.is-visible,
.cursor-ghost-3.is-visible {
  opacity: 1;
}

/* ── Card & button micro-interactions ── */

.tool-card {
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(74, 64, 130, 0.14);
}

.testimonial-card {
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(74, 64, 130, 0.12);
}

.button-primary {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(var(--accent-rgb) / 0.3);
  filter: brightness(1.08);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb) / 0.2);
}

/* ── Staggered reveals ── */

.js .pillars-strip .pillar:nth-child(1) {
  transition-delay: 100ms;
}
.js .pillars-strip .pillar:nth-child(2) {
  transition-delay: 200ms;
}
.js .pillars-strip .pillar:nth-child(3) {
  transition-delay: 300ms;
}

.js .curriculum-grid .curriculum-item:nth-child(1) {
  transition-delay: 50ms;
}
.js .curriculum-grid .curriculum-item:nth-child(2) {
  transition-delay: 150ms;
}
.js .curriculum-grid .curriculum-item:nth-child(3) {
  transition-delay: 250ms;
}
.js .curriculum-grid .curriculum-item:nth-child(4) {
  transition-delay: 350ms;
}

.js .pillars-strip .pillar,
.js .curriculum-grid .curriculum-item {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.js .reveal.is-visible .pillar,
.js .reveal.is-visible .curriculum-item {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dark grid cards ── */

.workflow-card,
.tool-card,
.testimonial-card,
.faq-item {
  background-color: #0e0d1c;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.065) 1px, transparent 1px);
  background-size: 28px 28px;
  border-color: rgba(139, 92, 246, 0.18);
}

.workflow-card h3,
.tool-card-body h3,
.testimonial-head h3,
.faq-question {
  color: #fff;
}

.workflow-card p {
  color: rgba(255, 255, 255, 0.62);
}

.tool-card-media {
  background: linear-gradient(180deg, #1c1930 0%, #100f22 100%);
  border-bottom-color: rgba(139, 92, 246, 0.15);
}

.tool-card-body p {
  color: rgba(255, 255, 255, 0.6);
}

.testimonial-head p {
  color: rgba(255, 255, 255, 0.5);
}

.testimonial-copy {
  color: rgba(255, 255, 255, 0.8);
}

.faq-answer p {
  border-top-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
}

.tool-card:hover {
  box-shadow: 0 24px 60px rgba(139, 92, 246, 0.22);
}

.testimonial-card:hover {
  box-shadow: 0 22px 50px rgba(139, 92, 246, 0.22);
}

/* ── Final CTA — immersive dark ── */

.final-section {
  background-color: #080614;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow:
    0 0 120px rgba(139, 92, 246, 0.22) inset,
    0 40px 120px rgba(139, 92, 246, 0.18);
  padding-block: 6rem;
}

.final-card {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.final-card h2 {
  color: #fff;
}

/* hide cursor on touch */
@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

/* ── Responsive: 1100px ── */

@media (max-width: 1100px) {
  .hero,
  .proof-layout,
  .pricing-content {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .pillars-strip {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
}

/* ── Responsive: 820px ── */

@media (max-width: 820px) {
  :root {
    --section-py: 4rem;
    --card-pad: 1.2rem;
  }

  .site-header {
    padding: 0.95rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .top-nav {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .section {
    width: min(100% - 1.25rem, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 2.6rem;
    padding-bottom: 0.3rem;
  }

  .hero-kicker {
    font-size: 1.25rem;
  }

  .pillars-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .proof-metrics,
  .workflow-grid,
  .testimonials-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

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

  /* Proof gallery carousel */
  .proof-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    scroll-padding: 0 1rem;
    scrollbar-width: none;
  }
  .proof-gallery::-webkit-scrollbar {
    display: none;
  }
  .proof-gallery .proof-phone {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }
  .proof-phone img {
    max-height: 520px;
  }

  .pricing-aside {
    align-items: flex-start;
    text-align: left;
  }
  .pricing-content {
    gap: 1.8rem;
  }
}

/* ── Responsive: 560px ── */

@media (max-width: 560px) {
  :root {
    --section-py: 3.5rem;
    --card-pad: 1.1rem;
  }

  .site-header {
    position: static;
  }

  .top-nav a:not(.nav-cta) {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .pricing-copy h2 {
    font-size: clamp(1.7rem, 8.5vw, 2.4rem);
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .pricing-aside {
    align-items: stretch;
  }
  .pricing-aside .button {
    width: 100%;
  }
  .pricing-card {
    overflow: hidden;
  }

  .faq-question {
    padding: 1rem var(--card-pad);
    font-size: 0.95rem;
    gap: 0.75rem;
  }
  .faq-answer p {
    padding: 0 var(--card-pad) 1.1rem;
    padding-top: 0.85rem;
    font-size: 0.92rem;
  }

  /* Terminal mobile */
  .hero-terminal {
    min-height: 18rem;
  }
  .terminal-body {
    font-size: 0.76rem;
    padding: 1.1rem 1.15rem;
    line-height: 1.7;
  }

  /* Proof carousel tighter */
  .proof-gallery .proof-phone {
    flex: 0 0 90%;
    max-width: 90%;
  }
  .proof-phone img {
    max-height: 460px;
  }
}
