/**
 * FAST Homepage Premium — 95+ layer
 * Extends home.css · tokens only
 */

.fast-home .fast-reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
}

.fast-home .fast-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .fast-home .fast-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Hero premium ─── */
.fast-hero {
  min-height: 90vh;
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-16);
}

.fast-hero__grid {
  align-items: stretch;
}

.fast-site.fast-home {
  overflow-x: clip;
}

.fast-hero__copy {
  gap: var(--space-5);
  justify-content: center;
  max-width: 32rem;
  min-width: 0;
}

.fast-hero__eyebrow {
  font-size: var(--text-overline);
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.fast-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--color-text-primary);
}

.fast-hero__lead {
  max-width: 42ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.fast-hero__trust {
  max-width: 44ch;
  font-size: var(--text-caption);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.fast-hero__visual {
  display: flex;
  align-items: stretch;
}

.fast-hero-dashboard {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: clamp(380px, 50vw, 620px);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-bg-surface);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 80px rgba(37, 99, 235, 0.08);
  overflow: hidden;
}

.fast-hero-dashboard .fast-vignette--operations {
  height: 100%;
  padding: var(--space-5);
  font-size: clamp(10px, 0.85vw, 13px);
}

.fast-hero-dashboard .fast-vignette__title {
  font-size: 1.15em;
}

.fast-hero-dashboard .fast-metric {
  padding: var(--space-3);
}

.fast-hero-dashboard .fast-metric__label {
  font-size: 0.75em;
}

.fast-hero-dashboard .fast-metric__value {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
}

.fast-hero-dashboard .fast-chart--compact .fast-chart__bars {
  height: 72px;
  background: repeating-linear-gradient(
    to top,
    transparent,
    transparent calc(25% - 1px),
    var(--color-border-divider) calc(25% - 1px),
    var(--color-border-divider) 25%
  );
}

.fast-hero-dashboard .fast-vignette__ops-feed {
  background: var(--color-bg-raised);
  border-radius: var(--radius-sm);
}

.fast-hero-dashboard .fast-live__row {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.fast-hero-dashboard .fast-live__row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 1024px) {
  .fast-hero__grid {
    grid-template-columns: 36fr 64fr;
    gap: var(--space-8);
  }
}

@media (max-width: 1023px) {
  .fast-hero {
    min-height: auto;
  }

  .fast-hero__title {
    font-size: clamp(2.5rem, 10vw, 2.875rem);
  }

  .fast-hero__actions {
    flex-direction: column;
  }

  .fast-hero__actions .fast-btn {
    width: 100%;
    justify-content: center;
  }

  .fast-hero-dashboard {
    min-height: clamp(340px, 88vw, 480px);
  }

  .fast-hero-dashboard .fast-vignette__metrics--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Trust strip ─── */
.fast-trust--strip {
  padding-block: var(--space-16);
}

.fast-trust--strip .fast-home-section__header {
  display: none;
}

.fast-trust__grid--premium {
  gap: var(--space-6);
}

.fast-trust__item--premium {
  min-height: auto;
  padding: var(--space-6) var(--space-4);
  background: transparent;
}

.fast-trust__item--premium .fast-trust__value {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

@media (min-width: 768px) {
  .fast-trust__grid--premium {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ─── Compare cinematic ─── */
.fast-compare--cinematic .fast-compare__panel {
  min-height: 320px;
  padding: var(--space-10);
  border-color: transparent;
  background: var(--color-bg-surface);
}

.fast-compare--cinematic .fast-compare__panel--problem {
  background: var(--color-bg-raised);
}

.fast-compare--cinematic .fast-compare__panel--solution {
  background: var(--color-brand-primary-muted);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.fast-compare__bridge--line {
  display: none;
}

@media (min-width: 1024px) {
  .fast-compare__bridge--line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 64px;
  }

  .fast-compare__bridge-line {
    width: 1px;
    height: 48px;
    background: var(--color-border-default);
  }

  .fast-compare__bridge-label {
    font-family: var(--font-display);
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
  }
}

/* ─── Core value (4) ─── */
.fast-values__grid {
  display: grid;
  gap: var(--space-6);
}

.fast-value-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 220px;
  padding: var(--space-8);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-bg-surface);
}

.fast-value-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
}

.fast-value-card__icon svg {
  width: 100%;
  height: 100%;
}

.fast-value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fast-value-card p {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .fast-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .fast-values__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ─── Product line ─── */
.fast-product-line__grid {
  display: grid;
  gap: var(--space-4);
}

.fast-product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 160px;
  padding: var(--space-6);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-bg-surface);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.fast-product-card:hover {
  border-color: var(--color-border-default);
}

.fast-product-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.fast-product-card__head h3 {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
}

.fast-product-card__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}

.fast-product-card p {
  flex: 1;
  font-size: var(--text-body-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.fast-product-card__link {
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .fast-product-line__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fast-product-line__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ─── Industry premium ─── */
.fast-industry__card--scenario {
  min-height: 180px;
  padding: var(--space-8);
  border-color: transparent;
  background: var(--color-bg-surface);
}

.fast-industry__card--scenario h3 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 600;
}

.fast-industry__stats {
  font-family: var(--font-mono);
  font-size: var(--text-body-sm);
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
}

.fast-industry__ref-link {
  margin-top: var(--space-10);
  text-align: center;
}

.fast-industry__ref-link a {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .fast-industry__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .fast-industry__card--scenario:nth-child(1),
  .fast-industry__card--scenario:nth-child(2) {
    grid-column: span 3;
  }

  .fast-industry__card--scenario:nth-child(3),
  .fast-industry__card--scenario:nth-child(4),
  .fast-industry__card--scenario:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 1023px) {
  .fast-industry__grid {
    grid-template-columns: 1fr;
  }

  .fast-industry__card--scenario:nth-child(n) {
    grid-column: auto;
  }
}

/* ─── Integration architecture (HTML layout) ─── */
.fast-arch-diagram {
  display: grid;
  gap: var(--space-4);
  align-items: stretch;
  max-width: 1120px;
  margin-inline: auto;
  padding: var(--space-8);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-bg-surface);
  overflow: hidden;
}

.fast-arch-diagram__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-8);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
}

.fast-arch-diagram__col--core {
  background: var(--color-brand-primary-muted);
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.fast-arch-diagram__title {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.fast-arch-diagram__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fast-arch-diagram__list li {
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.fast-arch-diagram__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.fast-arch-diagram__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fast-arch-diagram__connector svg {
  width: 48px;
  height: 24px;
}

@media (min-width: 1024px) {
  .fast-arch-diagram {
    grid-template-columns: 1fr auto 1.15fr auto 1fr;
    gap: var(--space-6);
    padding: var(--space-10);
  }
}

@media (max-width: 1023px) {
  .fast-arch-diagram {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }

  .fast-arch-diagram__connector svg {
    transform: rotate(90deg);
    width: 24px;
    height: 48px;
  }
}

/* ─── Pricing premium ─── */
.fast-pricing__note {
  max-width: 52ch;
  margin: var(--space-10) auto 0;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

.fast-pricing__tier-price {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-primary);
}

.fast-pricing__tier--featured {
  position: relative;
  border: 1px solid rgba(37, 99, 235, 0.42);
  background: var(--color-brand-primary-muted);
  box-shadow: none;
}

@media (min-width: 1024px) {
  .fast-pricing__tier--featured {
    transform: translateY(-4px);
  }
}

.fast-pricing__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.2);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ─── Final CTA + form ─── */
.fast-final-cta {
  padding-block: calc(var(--section-padding-y) + var(--space-8));
}

.fast-final-cta__inner {
  max-width: 960px;
  text-align: left;
  align-items: stretch;
}

.fast-final-cta__inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.fast-final-cta__layout {
  display: grid;
  gap: var(--space-10);
}

.fast-final-cta__form-wrap {
  padding: var(--space-8);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-bg-surface);
}

.fast-form--demo .fast-form__row {
  grid-template-columns: 1fr 1fr;
}

.fast-form__status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-body-sm);
}

.fast-form__status--success {
  background: rgba(34, 197, 94, 0.12);
  color: var(--color-success);
}

.fast-form__status--error {
  background: var(--color-danger-muted);
  color: var(--color-danger);
}

@media (min-width: 1024px) {
  .fast-final-cta__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .fast-form--demo .fast-form__row {
    grid-template-columns: 1fr;
  }
}

/* ─── Footer premium ─── */
.fast-footer {
  padding-top: var(--space-30);
  padding-bottom: var(--space-16);
}

.fast-footer__grid--premium {
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

@media (min-width: 1024px) {
  .fast-footer__grid--premium {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
}

.fast-footer__credit {
  font-size: var(--text-caption);
}

.fast-footer__credit small {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.75rem;
  color: var(--color-text-disabled);
}

.fast-section-title {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.fast-section-lead {
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.fast-home-section__header--center .fast-section-lead {
  text-align: center;
}
