/* AAFx marketing home — v3
   Scoped to the two home pages so the existing guide pages retain their styling. */

:root {
  color-scheme: dark;
  --aafx-bg: #08090d;
  --aafx-bg-raised: #0d1017;
  --aafx-surface: rgba(18, 22, 31, .78);
  --aafx-surface-solid: #11151e;
  --aafx-surface-2: #171c27;
  --aafx-line: rgba(196, 208, 230, .13);
  --aafx-line-strong: rgba(206, 217, 240, .23);
  --aafx-text: #f2f4f8;
  --aafx-dim: #a7b1c2;
  --aafx-faint: #748095;
  --aafx-violet: #8b6dff;
  --aafx-violet-light: #b9a9ff;
  --aafx-blue: #62a0ff;
  --aafx-pink: #ff93cc;
  --aafx-green: #63d5af;
  --aafx-amber: #f2b85d;
  --aafx-serif: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --aafx-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --aafx-ease: cubic-bezier(.22, 1, .36, 1);
  --aafx-shadow: 0 34px 80px -34px rgba(0, 0, 0, .92);
  --aafx-shadow-deep: 0 52px 100px -42px rgba(0, 0, 0, .96);
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.home {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--aafx-bg);
  color: var(--aafx-text);
  font-family: var(--aafx-serif);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.home::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(72rem 42rem at 73% -9%, rgba(106, 81, 232, .21), transparent 63%),
    radial-gradient(46rem 36rem at -8% 34%, rgba(64, 133, 255, .09), transparent 64%),
    #08090d;
}

body.home::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .38;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

body.home a { color: inherit; }

body.home img { max-width: 100%; height: auto; }

body.home :focus-visible {
  outline: 3px solid var(--aafx-violet-light);
  outline-offset: 3px;
}

.home .container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.home .skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 9px;
  color: #fff;
  background: var(--aafx-violet);
  text-decoration: none;
  transition: transform .16s var(--aafx-ease);
}

.home .skip-link:focus { transform: translateY(0); }

.home .site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(196, 208, 230, .08);
  background: rgba(8, 9, 13, .72);
  backdrop-filter: blur(18px) saturate(1.3);
}

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

.home .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.home .brand-icon {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 8px 12px rgba(86, 92, 246, .28));
}

.home .brand-wordmark {
  width: 92px;
  height: auto;
}

.home .brand-version {
  padding: 3px 7px;
  border: 1px solid var(--aafx-line);
  border-radius: 6px;
  color: var(--aafx-faint);
  font: 600 10px/1 var(--aafx-mono);
  letter-spacing: .045em;
}

.home .desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.home .desktop-nav .nav-link,
.home .language-link {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--aafx-dim);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: color .16s var(--aafx-ease), background .16s var(--aafx-ease);
}

.home .desktop-nav .nav-link:hover,
.home .language-link:hover {
  color: var(--aafx-text);
  background: rgba(255,255,255,.055);
}

.home .nav-download,
.home .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--aafx-serif);
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  transition: transform .16s var(--aafx-ease), filter .16s var(--aafx-ease), background .16s var(--aafx-ease), border-color .16s var(--aafx-ease);
}

.home .nav-download {
  margin-left: 7px;
  padding: 10px 13px;
  color: #fff;
  background: linear-gradient(150deg, #9d82ff, #674ee8);
  box-shadow: 0 13px 24px -14px rgba(123, 92, 255, .85);
  font-size: 12.5px;
}

.home .nav-download:hover,
.home .button-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.home .button { min-height: 48px; padding: 0 18px; }

.home .button-primary {
  color: #fff;
  background: linear-gradient(160deg, #a48aff 0%, #7359eb 50%, #6546df 100%);
  box-shadow: 0 17px 30px -15px rgba(125, 91, 255, .9);
}

.home .button-primary svg { width: 17px; height: 17px; }

.home .button-secondary {
  border-color: var(--aafx-line-strong);
  color: var(--aafx-text);
  background: rgba(255, 255, 255, .026);
}

.home .button-secondary:hover {
  border-color: rgba(205, 216, 244, .46);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.home .mobile-nav { display: none; }

.home main { position: relative; }

.home .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
  min-height: 672px;
  padding: 78px 0 82px;
}

.home .hero::before {
  position: absolute;
  z-index: -1;
  top: 25px;
  left: -16vw;
  width: 62vw;
  height: 530px;
  content: "";
  opacity: .9;
  background: radial-gradient(closest-side, rgba(124, 89, 255, .12), transparent);
  filter: blur(8px);
}

.home .eyebrow,
.home .section-kicker {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--aafx-violet-light);
  font: 650 11px/1.2 var(--aafx-mono);
  letter-spacing: .105em;
  text-transform: uppercase;
}

.home .eyebrow::before,
.home .section-kicker::before {
  width: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--aafx-violet), var(--aafx-pink));
}

.home .hero h1 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(42px, 5.45vw, 76px);
  font-weight: 710;
  letter-spacing: -.057em;
  line-height: .99;
}

.home .hero h1 .gradient-text {
  display: inline;
  color: transparent;
  background: linear-gradient(100deg, #cdbdff 0%, #8daeff 50%, #ffadd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home .hero-lede {
  max-width: 565px;
  margin: 26px 0 0;
  color: var(--aafx-dim);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.54;
}

.home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.home .trial-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--aafx-faint);
  font: 500 12px/1.5 var(--aafx-mono);
}

.home .trial-note::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--aafx-green);
  box-shadow: 0 0 0 4px rgba(99, 213, 175, .09);
}

.home .hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 585px;
  margin: 42px 0 0;
  border-top: 1px solid var(--aafx-line);
}

.home .hero-fact {
  min-width: 0;
  padding: 15px 14px 0 0;
}

.home .hero-fact + .hero-fact {
  padding-left: 16px;
  border-left: 1px solid var(--aafx-line);
}

.home .hero-fact strong {
  display: block;
  color: var(--aafx-text);
  font: 690 14px/1.26 var(--aafx-mono);
  letter-spacing: -.035em;
}

.home .hero-fact span {
  display: block;
  margin-top: 5px;
  color: var(--aafx-faint);
  font-size: 12px;
  line-height: 1.35;
}

.home .product-stage {
  position: relative;
  isolation: isolate;
  max-width: 665px;
  margin: 0 0 0 auto;
}

.home .product-stage::before {
  position: absolute;
  z-index: -1;
  inset: 12% -10% -12%;
  content: "";
  background: radial-gradient(ellipse at 50% 50%, rgba(125, 94, 255, .28), transparent 66%);
  filter: blur(18px);
}

.home .app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 255, .18);
  border-radius: 17px;
  background: #0d1016;
  box-shadow: var(--aafx-shadow-deep), 0 0 0 1px rgba(255,255,255,.025) inset;
  transform: perspective(1500px) rotateY(-3deg) rotateX(1.2deg);
  transform-origin: 57% 50%;
}

.home .app-window::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.14), transparent 18%, transparent 67%, rgba(136, 103, 255, .1));
  mix-blend-mode: screen;
}

.home .window-topbar {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 31px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(10,12,18,.86);
  backdrop-filter: blur(9px);
}

.home .window-topbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #566074;
}

.home .window-topbar span {
  margin-left: 7px;
  color: #9199a8;
  font: 10px/1 var(--aafx-mono);
}

.home .app-window img {
  display: block;
  width: 100%;
  aspect-ratio: 1.162;
  object-fit: cover;
  object-position: top center;
}

.home .metric-card {
  position: absolute;
  z-index: 3;
  min-width: 145px;
  padding: 11px 12px;
  border: 1px solid rgba(221, 228, 255, .15);
  border-radius: 10px;
  background: rgba(18, 22, 31, .88);
  box-shadow: 0 19px 34px -20px rgba(0,0,0,.96);
  backdrop-filter: blur(16px) saturate(1.2);
}

.home .metric-card .metric-label {
  display: block;
  color: var(--aafx-faint);
  font: 600 9.5px/1.2 var(--aafx-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home .metric-card strong {
  display: block;
  margin-top: 5px;
  color: var(--aafx-text);
  font-size: 14px;
  line-height: 1.2;
}

.home .metric-card.analysed { top: 68px; left: -28px; }
.home .metric-card.roles { right: -26px; bottom: 108px; }
.home .metric-card.ready { bottom: 26px; left: 19px; }

.home .metric-card .good {
  color: var(--aafx-green);
  font: 700 12px/1 var(--aafx-mono);
}

.home .stage-caption {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px 7px 0;
  color: var(--aafx-faint);
  font: 500 10.5px/1.4 var(--aafx-mono);
  letter-spacing: .04em;
}

.home .stage-caption::before { content: "PRE-FLIGHT"; color: var(--aafx-violet-light); }

.home .proof-strip {
  border-top: 1px solid var(--aafx-line);
  border-bottom: 1px solid var(--aafx-line);
  background: rgba(8,9,13,.42);
}

.home .proof-strip-inner {
  display: grid;
  grid-template-columns: .84fr 1.1fr 1fr 1fr;
  min-height: 98px;
  align-items: stretch;
}

.home .proof-label,
.home .proof-item {
  display: flex;
  align-items: center;
}

.home .proof-label {
  padding-right: 24px;
  color: var(--aafx-faint);
  font: 600 10.5px/1.5 var(--aafx-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home .proof-item {
  gap: 12px;
  padding: 18px 23px;
  border-left: 1px solid var(--aafx-line);
}

.home .proof-mark {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(152, 128, 255, .35);
  border-radius: 8px;
  color: var(--aafx-violet-light);
  font: 700 14px/1 var(--aafx-mono);
  background: rgba(139, 109, 255, .09);
}

.home .proof-item strong { display: block; font-size: 13px; line-height: 1.25; }
.home .proof-item span { display: block; margin-top: 3px; color: var(--aafx-faint); font-size: 11.5px; line-height: 1.3; }

.home .section {
  padding: 126px 0;
}

.home .section-tight { padding: 92px 0; }

.home .film-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--aafx-line);
  border-bottom: 1px solid var(--aafx-line);
  background:
    radial-gradient(43rem 30rem at 85% 50%, rgba(111, 84, 238, .15), transparent 67%),
    radial-gradient(27rem 20rem at 10% 87%, rgba(65, 139, 255, .09), transparent 72%);
}

.home .film-layout {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  gap: clamp(38px, 6vw, 88px);
  align-items: center;
}

.home .film-copy h2 {
  max-width: 515px;
  margin: 0;
  font-size: clamp(33px, 4.35vw, 57px);
  font-weight: 710;
  letter-spacing: -.054em;
  line-height: 1.04;
}

.home .film-copy > p:not(.section-kicker) {
  max-width: 505px;
  margin: 21px 0 0;
  color: var(--aafx-dim);
  font-size: 16px;
  line-height: 1.62;
}

.home .film-points {
  display: grid;
  gap: 9px;
  margin-top: 25px;
  color: var(--aafx-faint);
  font-size: 13px;
}

.home .film-points span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.home .film-points span::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: var(--aafx-violet-light);
  box-shadow: 0 0 0 4px rgba(139, 109, 255, .1);
}

.home .film-points b {
  color: var(--aafx-text);
  font: 650 11.5px/1.2 var(--aafx-mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}

.home .film-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(210, 219, 247, .25);
  border-radius: 18px;
  background: #10131c;
  box-shadow: 0 42px 82px -42px rgba(0, 0, 0, .96), 0 0 0 1px rgba(255,255,255,.03) inset;
}

.home .film-frame::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .54;
  background: linear-gradient(112deg, rgba(255,255,255,.11), transparent 18%, transparent 69%, rgba(143,112,255,.11));
  mix-blend-mode: screen;
}

.home .film-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.home.video-page .video-page-hero {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
  min-height: 620px;
  padding: 78px 0 92px;
}

.home.video-page .video-page-copy h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(43px, 5.4vw, 73px);
  font-weight: 710;
  letter-spacing: -.057em;
  line-height: .99;
}

.home.video-page .video-page-copy > p:not(.eyebrow) {
  max-width: 530px;
  margin: 25px 0 0;
  color: var(--aafx-dim);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.54;
}

.home.video-page .video-runtime {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--aafx-faint);
  font: 500 11.5px/1.45 var(--aafx-mono);
}

.home.video-page .video-runtime::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--aafx-pink);
  box-shadow: 0 0 0 4px rgba(255, 147, 204, .1);
}

.home.video-page .video-page-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(210, 219, 247, .27);
  border-radius: 20px;
  background: #10131c;
  box-shadow: var(--aafx-shadow-deep), 0 0 0 1px rgba(255,255,255,.035) inset;
}

.home.video-page .video-page-frame::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .56;
  background: linear-gradient(112deg, rgba(255,255,255,.12), transparent 18%, transparent 68%, rgba(143,112,255,.12));
  mix-blend-mode: screen;
}

.home.video-page .video-page-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.home.video-page .video-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 44px;
}

.home.video-page .video-explainer article {
  min-height: 184px;
  padding: 24px;
  border: 1px solid var(--aafx-line);
  border-radius: 14px;
  background: rgba(16,19,28,.72);
}

.home.video-page .video-explainer .step-label {
  margin: 0;
  color: var(--aafx-violet-light);
  font: 650 10.5px/1.2 var(--aafx-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home.video-page .video-explainer h3 {
  margin: 14px 0 0;
  font-size: 19px;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.home.video-page .video-explainer p:not(.step-label) {
  margin: 10px 0 0;
  color: var(--aafx-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.home .section-heading {
  max-width: 715px;
}

.home .section-heading h2,
.home .section-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(31px, 4vw, 53px);
  font-weight: 700;
  letter-spacing: -.047em;
  line-height: 1.05;
}

.home .section-heading p,
.home .section-copy > p {
  max-width: 670px;
  margin: 20px 0 0;
  color: var(--aafx-dim);
  font-size: 17px;
  line-height: 1.6;
}

.home .workflow {
  position: relative;
  margin-top: 58px;
}

.home .workflow-rail {
  position: absolute;
  top: 37px;
  right: 11%;
  left: 11%;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 160, 255, .25), rgba(139,109,255,.72), rgba(255,147,204,.26));
}

.home .workflow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home .workflow-step {
  position: relative;
  padding: 0 14px;
}

.home .workflow-index {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid var(--aafx-line-strong);
  border-radius: 18px;
  color: var(--aafx-violet-light);
  background: linear-gradient(145deg, rgba(40,44,64,.95), rgba(14,16,24,.97));
  box-shadow: 0 15px 25px -20px rgba(0,0,0,.86), 0 0 0 6px rgba(8,9,13,.9);
  font: 650 15px/1 var(--aafx-mono);
}

.home .workflow-step:nth-child(1) .workflow-index { color: var(--aafx-blue); }
.home .workflow-step:nth-child(3) .workflow-index { color: var(--aafx-pink); }
.home .workflow-step:nth-child(4) .workflow-index { color: var(--aafx-green); }

.home .workflow-step h3 {
  margin: 21px 0 0;
  font-size: 17px;
  letter-spacing: -.018em;
}

.home .workflow-step p {
  margin: 8px 0 0;
  color: var(--aafx-faint);
  font-size: 13.5px;
  line-height: 1.52;
}

.home .workflow-step code,
.home .home-code {
  padding: 2px 5px;
  border: 1px solid rgba(175,158,255,.2);
  border-radius: 4px;
  color: var(--aafx-violet-light);
  background: rgba(139, 109, 255, .08);
  font: 600 .84em/1.2 var(--aafx-mono);
}

.home .preflight-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(205,216,244,.08);
  border-bottom: 1px solid rgba(205,216,244,.08);
  background: linear-gradient(110deg, rgba(18,22,31,.76), rgba(9,10,15,.2));
}

.home .preflight-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .34;
  pointer-events: none;
  background: radial-gradient(44rem 31rem at 82% 46%, rgba(98,160,255,.11), transparent 70%);
}

.home .preflight-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(310px, .72fr);
  gap: clamp(35px, 6vw, 92px);
  align-items: center;
}

.home .session-image {
  overflow: hidden;
  border: 1px solid var(--aafx-line-strong);
  border-radius: 16px;
  background: #0c0f16;
  box-shadow: var(--aafx-shadow);
}

.home .session-image img { display: block; width: 100%; }

.home .section-copy h2 { max-width: 490px; }

.home .key-list {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--aafx-line);
}

.home .key-list li {
  position: relative;
  padding: 16px 0 16px 27px;
  border-bottom: 1px solid var(--aafx-line);
  color: var(--aafx-dim);
  font-size: 14px;
}

.home .key-list li::before {
  position: absolute;
  left: 0;
  top: 20px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  color: #07110d;
  background: var(--aafx-green);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}

.home .key-list b { display: block; margin-bottom: 2px; color: var(--aafx-text); font-size: 14px; }

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

.home .feature-card {
  min-height: 228px;
  padding: 26px 24px 25px;
  border: 1px solid var(--aafx-line);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(26, 31, 43, .78), rgba(13, 16, 23, .78));
  box-shadow: 0 19px 40px -34px rgba(0,0,0,.9);
  transition: border-color .2s var(--aafx-ease), transform .2s var(--aafx-ease), background .2s var(--aafx-ease);
}

.home .feature-card:hover {
  border-color: rgba(189,177,255,.34);
  background: linear-gradient(155deg, rgba(37, 42, 60, .88), rgba(15, 18, 28, .88));
  transform: translateY(-3px);
}

.home .feature-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(164,140,255,.28);
  border-radius: 10px;
  color: var(--aafx-violet-light);
  background: rgba(139,109,255,.1);
  font: 650 12px/1 var(--aafx-mono);
}

.home .feature-card:nth-child(2) .feature-icon { color: var(--aafx-blue); border-color: rgba(98,160,255,.3); background: rgba(98,160,255,.09); }
.home .feature-card:nth-child(3) .feature-icon { color: var(--aafx-pink); border-color: rgba(255,147,204,.3); background: rgba(255,147,204,.08); }

.home .feature-card h3 {
  margin: 20px 0 0;
  font-size: 20px;
  letter-spacing: -.028em;
  line-height: 1.15;
}

.home .feature-card p {
  margin: 11px 0 0;
  color: var(--aafx-dim);
  font-size: 14px;
  line-height: 1.58;
}

.home .inline-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 720px;
  margin: 34px auto 0;
  padding: 15px 17px;
  border: 1px solid rgba(99,213,175,.19);
  border-radius: 10px;
  color: var(--aafx-dim);
  background: rgba(99,213,175,.045);
  font-size: 13px;
}

.home .inline-note strong { color: var(--aafx-text); }
.home .inline-note .bullet { margin-top: 6px; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--aafx-green); }

.home .aaf-repair {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(180,162,255,.17);
  border-radius: 20px;
  background:
    radial-gradient(40rem 24rem at 91% 20%, rgba(122,95,246,.15), transparent 66%),
    linear-gradient(135deg, rgba(25,23,40,.84), rgba(14,17,25,.9));
}

.home .aaf-repair-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  gap: 45px;
  align-items: center;
  padding: clamp(31px, 5vw, 58px);
}

.home .aaf-repair .section-kicker { color: #e0b8ff; }

.home .aaf-repair h2 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(29px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -.047em;
  line-height: 1.06;
}

.home .aaf-repair p { max-width: 600px; margin: 18px 0 0; color: var(--aafx-dim); font-size: 16px; }

.home .repair-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home .repair-stat {
  padding: 18px 16px;
  border: 1px solid rgba(216,208,255,.13);
  border-radius: 11px;
  background: rgba(6,7,12,.32);
}

.home .repair-stat strong { display: block; color: var(--aafx-text); font: 700 22px/1 var(--aafx-mono); letter-spacing: -.06em; }
.home .repair-stat span { display: block; margin-top: 7px; color: var(--aafx-faint); font-size: 11.5px; line-height: 1.35; }

.home .compatibility-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(40px, 7vw, 105px);
  align-items: start;
}

.home .compatibility-layout .section-copy { position: sticky; top: 108px; }

.home .support-table-wrap {
  overflow: hidden;
  border: 1px solid var(--aafx-line);
  border-radius: 14px;
  background: rgba(15,18,26,.74);
  box-shadow: var(--aafx-shadow);
}

.home .support-table { width: 100%; border-collapse: collapse; }

.home .support-table th,
.home .support-table td { padding: 15px 17px; text-align: left; }

.home .support-table th {
  border-bottom: 1px solid var(--aafx-line);
  color: var(--aafx-faint);
  background: rgba(255,255,255,.017);
  font: 650 10.5px/1.2 var(--aafx-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home .support-table td { border-bottom: 1px solid var(--aafx-line); font-size: 13.5px; line-height: 1.4; }
.home .support-table tr:last-child td { border-bottom: 0; }
.home .support-table td:first-child { width: 40%; color: var(--aafx-text); font-weight: 620; }
.home .support-table td:last-child { color: var(--aafx-dim); }

.home .support-check { color: var(--aafx-green); font-weight: 800; }

.home .support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--aafx-violet-light);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.home .support-link:hover { color: #ded6ff; text-decoration: underline; text-underline-offset: 4px; }

.home .pricing-section { border-top: 1px solid rgba(205,216,244,.08); }

.home .pricing-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.home .pricing-heading .section-heading p { margin-bottom: 0; }
.home .pricing-caption { max-width: 220px; margin: 0 0 7px; color: var(--aafx-faint); font-size: 12px; line-height: 1.5; }

.home .pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  max-width: 795px;
  margin-top: 45px;
}

.home .price-card {
  position: relative;
  display: flex;
  min-height: 364px;
  flex-direction: column;
  padding: 29px;
  border: 1px solid var(--aafx-line);
  border-radius: 15px;
  background: rgba(16,19,28,.7);
}

.home .price-card.featured {
  border-color: rgba(163,142,255,.47);
  background: radial-gradient(25rem 19rem at 100% 0%, rgba(139,109,255,.19), transparent 71%), rgba(22,20,38,.8);
  box-shadow: 0 29px 58px -45px rgba(145,108,255,.9);
}

.home .price-card .plan-tag { margin: 0; color: var(--aafx-violet-light); font: 650 11px/1.2 var(--aafx-mono); letter-spacing: .09em; text-transform: uppercase; }
.home .price-card h3 { margin: 15px 0 0; font-size: 23px; letter-spacing: -.035em; }
.home .price-card .price { margin: 25px 0 0; font-size: 43px; font-weight: 730; letter-spacing: -.065em; line-height: 1; }
.home .price-card .price span { margin-left: 7px; color: var(--aafx-faint); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.home .price-card ul { display: grid; gap: 9px; margin: 23px 0 28px; padding: 0; list-style: none; color: var(--aafx-dim); font-size: 13.5px; }
.home .price-card li { position: relative; padding-left: 20px; }
.home .price-card li::before { position: absolute; left: 0; top: 5px; width: 7px; height: 4px; content: ""; border: solid var(--aafx-green); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.home .price-card .button { margin-top: auto; }

.home .faq-layout { display: grid; grid-template-columns: .67fr 1.33fr; gap: clamp(40px, 7vw, 105px); align-items: start; }
.home .faq-list { overflow: hidden; border-top: 1px solid var(--aafx-line); }
.home .faq-list details { border-bottom: 1px solid var(--aafx-line); }
.home .faq-list summary { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: 25px; cursor: pointer; list-style: none; color: var(--aafx-text); font-size: 16px; font-weight: 630; }
.home .faq-list summary::-webkit-details-marker { display: none; }
.home .faq-list summary::after { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 1px solid var(--aafx-line-strong); border-radius: 6px; color: var(--aafx-violet-light); content: "+"; font: 500 20px/20px var(--aafx-mono); transition: transform .18s var(--aafx-ease), background .18s var(--aafx-ease); }
.home .faq-list details[open] summary::after { transform: rotate(45deg); background: rgba(139,109,255,.1); }
.home .faq-answer { max-width: 630px; padding: 0 50px 21px 0; color: var(--aafx-dim); font-size: 14px; line-height: 1.62; }
.home .faq-answer p { margin: 0; }

.home .final-cta {
  position: relative;
  overflow: hidden;
  margin: 0 0 90px;
  padding: clamp(40px, 7vw, 78px);
  border: 1px solid rgba(185,169,255,.25);
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(44rem 27rem at 50% -19%, rgba(139,109,255,.29), transparent 69%),
    linear-gradient(145deg, rgba(31,27,55,.9), rgba(13,15,22,.94));
  box-shadow: var(--aafx-shadow);
}

.home .final-cta::before,
.home .final-cta::after { position: absolute; width: 260px; height: 260px; content: ""; border: 1px solid rgba(255,255,255,.065); border-radius: 50%; }
.home .final-cta::before { top: -151px; left: -100px; }
.home .final-cta::after { right: -108px; bottom: -160px; width: 350px; height: 350px; }
.home .final-cta > * { position: relative; }
.home .final-cta .section-kicker { margin-right: auto; margin-left: auto; }
.home .final-cta h2 { max-width: 670px; margin: 0 auto; font-size: clamp(31px, 4.4vw, 57px); font-weight: 700; letter-spacing: -.054em; line-height: 1.04; }
.home .final-cta p { max-width: 570px; margin: 19px auto 0; color: var(--aafx-dim); font-size: 16px; }
.home .final-cta .hero-actions { justify-content: center; margin-top: 28px; }
.home .final-cta .trial-note { justify-content: center; }

.home .site-footer { border-top: 1px solid var(--aafx-line); }
.home .footer-inner { display: flex; min-height: 107px; align-items: center; justify-content: space-between; gap: 24px; }
.home .footer-brand { display: flex; align-items: center; gap: 10px; color: var(--aafx-faint); font: 600 11px/1 var(--aafx-mono); letter-spacing: .05em; }
.home .footer-brand img { width: 27px; height: 27px; }
.home .footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.home .footer-links a { color: var(--aafx-faint); font-size: 12.5px; text-decoration: none; }
.home .footer-links a:hover { color: var(--aafx-text); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .home .desktop-nav .nav-link { display: none; }
  .home .hero { grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 32px; }
  .home .app-window { transform: perspective(1500px) rotateY(-2deg); }
  .home .workflow-step { padding: 0 8px; }
  .home .preflight-layout,
  .home .compatibility-layout,
  .home .faq-layout { gap: 45px; }
}

@media (max-width: 780px) {
  .home .container { width: min(620px, calc(100% - 36px)); }
  .home .header-inner { min-height: 66px; gap: 12px; }
  .home .brand-icon { width: 28px; height: 28px; }
  .home .brand-wordmark { width: 77px; }
  .home .brand-version { display: none; }
  .home .desktop-nav { display: none; }
  .home .mobile-nav { position: relative; display: block; }
  .home .mobile-nav summary { display: flex; min-height: 36px; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--aafx-dim); font-size: 13px; font-weight: 650; }
  .home .mobile-nav summary::-webkit-details-marker { display: none; }
  .home .mobile-nav summary::after { content: "+"; color: var(--aafx-violet-light); font: 500 20px/1 var(--aafx-mono); }
  .home .mobile-nav[open] summary::after { transform: rotate(45deg); }
  .home .mobile-menu-panel { position: absolute; top: 48px; right: 0; display: grid; width: 218px; max-width: calc(100vw - 30px); padding: 8px; border: 1px solid var(--aafx-line-strong); border-radius: 12px; background: rgba(16,19,28,.98); box-shadow: var(--aafx-shadow); }
  .home .mobile-menu-panel a { padding: 11px 12px; border-radius: 7px; color: var(--aafx-dim); font-size: 13px; font-weight: 600; text-decoration: none; }
  .home .mobile-menu-panel a:hover { color: var(--aafx-text); background: rgba(255,255,255,.06); }
  .home .mobile-menu-panel .mobile-download { margin-top: 3px; color: #fff; background: linear-gradient(160deg, #9d82ff, #674ee8); }
  .home .hero { display: block; min-height: auto; padding: 59px 0 65px; }
  .home .hero h1 { max-width: 620px; }
  .home .hero-lede { margin-top: 20px; }
  .home .hero-facts { max-width: 620px; margin-top: 34px; }
  .home .product-stage { max-width: 620px; margin: 53px auto 0; overflow-x: clip; }
  .home .product-stage::before { right: 0; left: 0; }
  .home .app-window { transform: none; }
  .home .metric-card.analysed { left: 10px; }
  .home .metric-card.roles { right: 9px; }
  .home .proof-strip-inner { grid-template-columns: 1fr 1fr; }
  .home .proof-label { grid-column: 1 / -1; min-height: 48px; padding: 14px 0 0; }
  .home .proof-item { padding: 14px 15px 20px 0; border-left: 0; }
  .home .proof-item + .proof-item { padding-left: 15px; border-left: 1px solid var(--aafx-line); }
  .home .section { padding: 80px 0; }
  .home .section-tight { padding: 66px 0; }
  .home .workflow { margin-top: 40px; }
  .home .workflow-rail { top: 27px; bottom: 27px; left: 27px; width: 1px; height: auto; background: linear-gradient(var(--aafx-blue), var(--aafx-violet), var(--aafx-pink)); }
  .home .workflow-grid { grid-template-columns: 1fr; gap: 0; }
  .home .workflow-step { display: grid; grid-template-columns: 74px 1fr; column-gap: 20px; padding: 0 0 26px; }
  .home .workflow-step h3 { align-self: end; margin: 0; }
  .home .workflow-step p { grid-column: 2; margin-top: 6px; }
  .home .preflight-layout,
  .home .compatibility-layout,
  .home .faq-layout,
  .home .aaf-repair-inner,
  .home .film-layout,
  .home.video-page .video-page-hero { grid-template-columns: 1fr; }
  .home .film-layout { gap: 32px; }
  .home .film-frame { max-width: 620px; }
  .home.video-page .video-page-hero { min-height: auto; gap: 34px; padding: 59px 0 80px; }
  .home.video-page .video-page-copy h1 { max-width: 620px; }
  .home.video-page .video-explainer { grid-template-columns: 1fr; gap: 11px; margin-top: 34px; }
  .home.video-page .video-explainer article { min-height: 0; }
  .home .preflight-layout { gap: 38px; }
  .home .compatibility-layout .section-copy { position: static; }
  .home .compatibility-layout,
  .home .faq-layout { gap: 32px; }
  .home .feature-grid { grid-template-columns: 1fr; margin-top: 35px; }
  .home .feature-card { min-height: 0; }
  .home .aaf-repair-inner { gap: 33px; }
  .home .pricing-heading { display: block; }
  .home .pricing-caption { max-width: 500px; margin: 17px 0 0; }
  .home .pricing-grid { margin-top: 34px; }
  .home .footer-inner { min-height: 120px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .home .footer-links { justify-content: flex-start; gap: 12px 18px; }
}

@media (max-width: 540px) {
  .home .container { width: min(470px, calc(100% - 30px)); }
  .home .hero { padding-top: 46px; }
  .home .hero h1 { font-size: clamp(39px, 11vw, 53px); }
  .home .hero-lede { font-size: 16px; }
  .home .hero-actions { display: grid; grid-template-columns: 1fr; }
  .home .hero-actions .button { width: 100%; }
  .home .hero-facts { grid-template-columns: 1fr; }
  .home .hero-fact { padding: 13px 0; }
  .home .hero-fact + .hero-fact { padding-left: 0; border-top: 1px solid var(--aafx-line); border-left: 0; }
  .home .product-stage { margin-top: 40px; }
  .home .app-window { border-radius: 12px; }
  .home .window-topbar { height: 25px; padding: 0 9px; }
  .home .window-topbar span { font-size: 8px; }
  .home .metric-card { min-width: 0; padding: 8px 9px; border-radius: 8px; }
  .home .metric-card .metric-label { font-size: 7.5px; }
  .home .metric-card strong { font-size: 11px; }
  .home .metric-card.analysed { top: 47px; left: 6px; }
  .home .metric-card.roles { right: 6px; bottom: 58px; }
  .home .metric-card.ready { bottom: 9px; left: 8px; }
  .home .stage-caption { margin-right: 0; font-size: 8.5px; }
  .home .proof-strip-inner { display: block; padding: 10px 0; }
  .home .proof-label { min-height: auto; padding: 7px 0 12px; }
  .home .proof-item { padding: 11px 0; border-top: 1px solid var(--aafx-line); }
  .home .proof-item + .proof-item { padding-left: 0; border-left: 0; }
  .home .film-copy h2 { font-size: clamp(30px, 9vw, 42px); }
  .home .film-copy > p:not(.section-kicker) { font-size: 15.5px; }
  .home .film-points { gap: 10px; font-size: 12.5px; }
  .home .film-frame { border-radius: 13px; }
  .home.video-page .video-page-hero { padding: 46px 0 67px; }
  .home.video-page .video-page-copy h1 { font-size: clamp(39px, 11vw, 53px); }
  .home.video-page .video-page-copy > p:not(.eyebrow) { font-size: 16px; }
  .home.video-page .video-page-frame { border-radius: 14px; }
  .home.video-page .video-explainer article { padding: 21px; border-radius: 12px; }
  .home.video-page .video-explainer h3 { font-size: 18px; }
  .home .section-heading h2,
  .home .section-copy h2 { font-size: clamp(30px, 9vw, 42px); }
  .home .section-heading p,
  .home .section-copy > p { font-size: 15.5px; }
  .home .workflow-index { width: 58px; height: 58px; border-radius: 14px; }
  .home .workflow-rail { top: 23px; bottom: 23px; left: 21px; }
  .home .workflow-step { grid-template-columns: 58px 1fr; column-gap: 15px; }
  .home .workflow-step h3 { font-size: 16px; }
  .home .workflow-step p { font-size: 13px; }
  .home .session-image { border-radius: 11px; }
  .home .aaf-repair { border-radius: 15px; }
  .home .aaf-repair-inner { padding: 28px 22px; }
  .home .repair-stats { gap: 8px; }
  .home .repair-stat { padding: 14px 12px; }
  .home .repair-stat strong { font-size: 19px; }
  /* On a phone, each compatibility row becomes a compact card — no side-scroll table. */
  .home .support-table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .home .support-table,
  .home .support-table tbody,
  .home .support-table tr,
  .home .support-table td { display: block; width: 100%; min-width: 0; }
  .home .support-table { border-collapse: separate; border-spacing: 0; }
  .home .support-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .home .support-table tbody { display: grid; gap: 10px; }
  .home .support-table tr { overflow: hidden; border: 1px solid var(--aafx-line); border-radius: 11px; background: rgba(15,18,26,.74); }
  .home .support-table td { border: 0; }
  .home .support-table td:first-child { width: auto; padding: 13px 14px 6px; }
  .home .support-table td:last-child { padding: 0 14px 14px; }
  .home .pricing-grid { grid-template-columns: 1fr; }
  .home .price-card { min-height: 0; padding: 25px 22px; }
  .home .faq-list summary { min-height: 64px; font-size: 15px; }
  .home .faq-answer { padding-right: 2px; font-size: 13.5px; }
  .home .final-cta { margin-bottom: 63px; padding: 41px 21px; border-radius: 15px; }
}

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