:root {
  --font-primary: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-secondary: "Inter", "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: #0f1f33;
  --surface-strong: #142943;
  --surface-light: #f6f8ff;
  --text: #eef5ff;
  --text-muted: #a7b6cc;
  --text-dark: #101828;
  --muted-dark: #526072;
  --line: rgba(176, 201, 255, 0.18);
  --line-dark: rgba(15, 31, 51, 0.12);

  --primary: #7c5cff;
  --primary-dark: #5b3ce6;
  --primary-soft: rgba(124, 92, 255, 0.16);
  --accent: #14d7c7;
  --accent-strong: #09aFA7;
  --accent-soft: rgba(20, 215, 199, 0.14);
  --warning: #ffcc66;
  --warning-soft: rgba(255, 204, 102, 0.14);
  --success: #7bf1a8;
  --danger: #ff7a90;

  --button-bg: linear-gradient(135deg, var(--primary), #9b7bff 55%, var(--accent));
  --button-text: #ffffff;
  --link: #80fff4;
  --heading: #ffffff;
  --card-bg: rgba(15, 31, 51, 0.78);
  --card-bg-light: #ffffff;
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.26);
  --shadow-card: 0 16px 44px rgba(6, 15, 30, 0.22);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1160px;
  --gap: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.36), transparent 34rem),
    radial-gradient(circle at 82% 14%, rgba(20, 215, 199, 0.22), transparent 30rem),
    linear-gradient(180deg, var(--bg), #081525 54%, #f4f7fb 54%, #f4f7fb 100%);
  line-height: 1.65;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 62%);
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: #ffffff;
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  letter-spacing: -0.025em;
}

ul, ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 1000;
  padding: 10px 14px;
  color: #07111f;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(7, 17, 31, 0.74);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.08rem;
  flex-shrink: 0;
}

.logo img {
  width: 42px;
  height: 42px;
}

.logo span:last-child {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: clamp(58px, 9vw, 112px) 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.hero p.lead,
.lead {
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  color: #cfddf2;
  max-width: 790px;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% -2% -6% 16%;
  border-radius: var(--radius-lg);
  background: var(--button-bg);
  opacity: 0.28;
  filter: blur(36px);
}

.hero-visual img {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9e6ff;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(20, 215, 199, 0.12);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.28);
}

.button:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
  color: #ffffff;
  box-shadow: none;
}

.button.dark {
  color: #ffffff;
  background: #0d1b2d;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.metric strong {
  display: block;
  color: #ffffff;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.metric span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section-dark,
.section-light,
.section-accent {
  padding: clamp(58px, 8vw, 96px) 0;
}

.section-dark {
  color: var(--text);
  background: linear-gradient(180deg, #07111f, #0b1728);
}

.section-light {
  color: var(--text-dark);
  background: #f4f7fb;
}

.section-light h2,
.section-light h3 {
  color: var(--text-dark);
}

.section-light .section-kicker,
.section-light .muted {
  color: var(--muted-dark);
}

.section-kicker {
  max-width: 780px;
  color: #b6c7df;
  font-size: 1.08rem;
  margin-bottom: 30px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--gap);
}

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

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

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

.card,
.feature,
.module,
.resource,
.case-card,
.note-box {
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

.section-light .card,
.section-light .feature,
.section-light .module,
.section-light .resource,
.section-light .case-card,
.section-light .note-box {
  background: var(--card-bg-light);
  border-color: var(--line-dark);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.card h3,
.feature h3,
.module h3,
.resource h3,
.case-card h3 {
  margin-bottom: 0.75rem;
}

.card p:last-child,
.feature p:last-child,
.module p:last-child,
.resource p:last-child,
.case-card p:last-child,
.note-box p:last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 850;
  color: var(--accent-strong);
}

.section-dark .card-link {
  color: var(--link);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pill-list li {
  margin: 0;
  padding: 8px 11px;
  border-radius: 999px;
  color: #dfeaff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.section-light .pill-list li {
  color: #24324a;
  background: #eef2ff;
  border-color: #dfe6ff;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 76px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 10px 32px rgba(16, 24, 40, 0.06);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #07111f;
  background: var(--accent);
  font-family: var(--font-mono);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line-dark);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.timeline-item time,
.module-number,
.case-label {
  font-family: var(--font-mono);
  color: var(--primary-dark);
  font-weight: 900;
}

.check-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0;
  padding-left: 30px;
}

.check-list li + li {
  margin-top: 10px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-strong);
  font-weight: 950;
}

.quote-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(20, 215, 199, 0.12));
  border: 1px solid var(--line);
  color: #e8f1ff;
}

.section-light .quote-card {
  color: var(--text-dark);
  border-color: #d9e3f7;
  background: linear-gradient(135deg, #ffffff, #edf7ff);
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.quote-card cite {
  display: block;
  margin-top: 18px;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 800;
}

.section-light .quote-card cite {
  color: var(--muted-dark);
}

.faq details {
  border: 1px solid var(--line-dark);
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  color: var(--text-dark);
}

.faq details + details {
  margin-top: 14px;
}

.faq summary {
  cursor: pointer;
  color: var(--text-dark);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.faq p {
  margin-top: 14px;
  color: var(--muted-dark);
}

.cta-band {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 20%, rgba(20, 215, 199, 0.34), transparent 24rem),
    linear-gradient(135deg, #132642, #251752 72%, #0d2839);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.cta-band::after {
  content: "prompt → test → improve";
  position: absolute;
  right: -22px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 6vw, 5rem);
  font-weight: 900;
  white-space: nowrap;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band p {
  max-width: 740px;
  color: #cfe0f5;
}

.breadcrumbs {
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: #c7d7f0;
}

.page-hero {
  padding: 54px 0 64px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.page-hero img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  margin: 0;
}

.compact-list li:last-child {
  border-bottom: 0;
}

.form-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--line-dark);
  box-shadow: 0 20px 56px rgba(16, 24, 40, 0.1);
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #26344b;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d4deef;
  border-radius: 16px;
  font: inherit;
  color: var(--text-dark);
  background: #f9fbff;
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.footer {
  padding: 46px 0;
  color: #718097;
  background: #f4f7fb;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(160px, 0.5fr));
  gap: 28px;
  align-items: start;
  border-top: 1px solid #d9e2f2;
  padding-top: 34px;
}

.footer h2,
.footer h3 {
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer a {
  display: block;
  color: #475569;
  margin-top: 8px;
  font-weight: 700;
}

.footer a:hover {
  color: var(--primary-dark);
}

.footer .logo {
  color: var(--text-dark);
  margin-bottom: 12px;
}

.microcopy {
  color: var(--muted-dark);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(124, 92, 255, 0.28), transparent 25rem),
      linear-gradient(180deg, var(--bg), #081525 48%, #f4f7fb 48%, #f4f7fb 100%);
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .main-nav a {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.88rem;
  }

  .hero,
  .page-hero {
    padding-top: 38px;
  }

  .section-dark,
  .section-light,
  .section-accent {
    padding: 54px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

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

  .cta-band::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
