/* Revision polish: theme surfaces */
:root {
  --color-section-alt: #edf3f5;
  --color-feature-strip: #fbfcfd;
  --color-cta-surface: #f0f5f7;
  --color-footer-surface: #08131b;
}

:root[data-theme="dark"] {
  --color-background: #071017;
  --color-surface: #0b1720;
  --color-surface-elevated: #11222d;
  --color-surface-soft: #0d1d27;
  --color-border: #213743;
  --color-border-strong: #385462;
  --color-section-alt: #09141c;
  --color-feature-strip: #0a1821;
  --color-cta-surface: #0e202b;
  --color-footer-surface: #050d13;
}

/* Shared site chrome */
@media (min-width: 68.01rem) {
  :root {
    --header-height: 5.7rem;
  }

  .site-header .brand__wordmark {
    font-size: clamp(1.9rem, 1.5rem + 0.55vw, 2.2rem);
  }

  .site-header .brand__wordmark::after {
    width: 2.85rem;
  }

  .site-header .brand__tagline {
    font-size: 0.59rem;
    letter-spacing: 0.2em;
  }
}

.site-footer {
  padding-top: 3.25rem;
  background: var(--color-footer-surface);
}

.site-footer .brand__wordmark {
  font-size: 1.75rem;
}

.site-footer__base {
  margin-top: 2.5rem;
}

/* Homepage */
.home-hero__media img {
  object-position: 51% center;
}

.home-hero__copy {
  width: min(100%, 36.5rem);
}

.home-hero h1 {
  max-width: 10.4ch;
  margin-bottom: 1.65rem;
  font-size: clamp(3.2rem, 4.65vw, 5.2rem);
  line-height: 0.99;
}

.home-hero__lead {
  max-width: 34rem;
}

.home-features {
  border-top: 1px solid color-mix(in srgb, var(--color-accent) 20%, var(--color-border));
  background: var(--color-feature-strip);
  box-shadow: 0 0.8rem 2.25rem color-mix(in srgb, var(--color-dark-surface) 7%, transparent);
}

.feature-item {
  padding-block: 2.1rem;
}

.feature-item__icon {
  width: 3.35rem;
  height: 3.35rem;
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
  border-radius: 1rem;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  box-shadow: 0 0.45rem 1.15rem color-mix(in srgb, var(--color-dark-surface) 8%, transparent);
}

.feature-item__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature-item h3 {
  font-weight: var(--font-weight-semibold);
}

.feature-item:not(:last-child)::after {
  inset-block: 22%;
}

.page-home .product-showcase {
  padding-block: clamp(4.75rem, 7vw, 6rem);
  background: var(--color-surface);
}

.product-showcase__grid {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.3fr) minmax(13rem, 0.5fr);
  gap: clamp(2rem, 4.25vw, 4.5rem);
}

.product-showcase__copy {
  max-width: 31rem;
}

.product-showcase__visual img {
  transform: scale(1.025);
}

.mini-feature-list svg {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0.42rem;
  border: 1px solid color-mix(in srgb, var(--color-accent) 24%, var(--color-border));
  border-radius: 0.65rem;
  background: var(--color-accent-soft);
}

.about-band {
  min-height: 28rem;
}

.about-band__shade {
  background:
    linear-gradient(90deg, rgba(4, 12, 18, 0.91) 0%, rgba(4, 12, 18, 0.73) 40%, rgba(4, 12, 18, 0.14) 76%),
    linear-gradient(180deg, rgba(4, 12, 18, 0.08), rgba(4, 12, 18, 0.48));
}

.about-band__copy h2 {
  max-width: 18ch;
}

.about-band__statement {
  padding-block: 0.35rem;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.25rem);
}

.home-cta {
  border-top: 1px solid var(--color-border);
  background: var(--color-cta-surface);
}

.home-cta__inner {
  justify-content: space-between;
}

.home-cta__copy {
  flex: 1;
  margin-left: min(8vw, 7rem);
}

.home-cta__inner > .button {
  margin-left: auto;
}

/* Secondary pages */
.page-hero {
  padding-block: clamp(4.25rem, 6.5vw, 6.25rem);
  background:
    radial-gradient(circle at 82% 28%, color-mix(in srgb, var(--color-accent) 22%, transparent) 0, transparent 28rem),
    linear-gradient(135deg, var(--color-surface-soft), var(--color-background));
}

body:not(.page-home):not(.legal-page) main > .section {
  padding-block: clamp(4rem, 5.5vw, 4.75rem);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
}

body:not(.page-home):not(.legal-page) main > .section:nth-of-type(odd) {
  background: var(--color-section-alt);
}

.card-grid > .card,
.value-grid > .card {
  height: 100%;
}

.card {
  box-shadow: 0 0.55rem 1.6rem color-mix(in srgb, var(--color-dark-surface) 7%, transparent);
}

.page-becatv .page-hero__grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(24rem, 1.18fr);
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
}

.page-becatv .page-hero__copy > p:not(.page-hero__lead) {
  max-width: 36rem;
}

.becatv-hero__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  box-shadow: 0 2.25rem 5.5rem color-mix(in srgb, var(--color-dark-surface) 34%, transparent);
}

.becatv-hero__visual picture,
.becatv-hero__visual img {
  width: 100%;
  height: 100%;
}

.becatv-hero__visual img {
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.becatv-hero__visual figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(3, 10, 15, 0.9));
  color: #d7e1e7;
  font-size: var(--text-xs);
  text-align: right;
}

.page-becatv .text-grid {
  gap: clamp(2.5rem, 5vw, 4rem);
}

.page-becatv .section-heading,
.page-projects .section-heading,
.page-support .section-heading {
  margin-bottom: 2.25rem;
}

.page-becatv .card-grid,
.page-projects .card-grid,
.page-support .card-grid {
  gap: 1.25rem;
}

.page-becatv .value-card {
  padding: 1.7rem;
}

.page-becatv .value-card h3 {
  font-size: 1.2rem;
}

.page-becatv .value-card p {
  line-height: 1.5;
}

.page-becatv .future-panel {
  padding: clamp(2rem, 4vw, 3rem);
}

.page-becatv .faq-list summary {
  padding-block: 1rem;
}

.page-projects .project-feature {
  grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1.15fr);
}

.page-projects .project-feature__copy {
  padding: clamp(2.25rem, 4vw, 3.5rem);
}

.page-projects .project-feature__media {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.page-about .page-hero__visual img {
  aspect-ratio: 16 / 9;
}

.page-about .text-grid {
  gap: clamp(2.5rem, 5vw, 4rem);
}

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

.page-support .support-paths .card {
  min-height: 0;
}


.legal-page .section {
  padding-block: clamp(4rem, 6vw, 5rem);
}

.legal-review-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.legal-review-status strong {
  color: var(--color-text);
}

.error-page__inner .button-row {
  justify-content: center;
}

/* Responsive consolidation */
@media (max-width: 68rem) {
  .site-header .brand__wordmark {
    font-size: 1.72rem;
  }

  .product-showcase__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

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

@media (max-width: 48rem) {
  .site-header .brand__wordmark {
    font-size: 1.58rem;
  }

  .home-hero {
    min-height: 47.5rem;
  }

  .home-hero__media {
    background: #071018;
  }

  .home-hero__media img {
    inset: 0 0 auto;
    height: 57%;
    object-position: 66% center;
  }

  .home-hero__shade {
    background:
      linear-gradient(180deg, rgba(3, 9, 14, 0.08) 8%, rgba(3, 9, 14, 0.18) 34%, rgba(3, 9, 14, 0.9) 54%, #03090e 66%, #03090e 100%),
      linear-gradient(90deg, rgba(3, 9, 14, 0.45), rgba(3, 9, 14, 0.03));
  }

  .home-hero__inner {
    padding-top: calc(var(--header-height) + 15.5rem);
    padding-bottom: 2.5rem;
  }

  .home-hero__copy {
    padding-block: 2rem 0;
  }

  .home-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 11.8vw, 3.65rem);
  }

  .feature-item {
    padding: 1.65rem 0.85rem;
  }

  .feature-item__icon {
    width: 3rem;
    height: 3rem;
  }

  .product-showcase__grid,
  .page-becatv .page-hero__grid,
  .page-projects .project-feature {
    grid-template-columns: 1fr;
  }

  .product-showcase__visual img {
    transform: none;
  }

  .about-band {
    min-height: 31rem;
  }

  .about-band__shade {
    background: linear-gradient(180deg, rgba(4, 12, 18, 0.34), rgba(4, 12, 18, 0.95) 66%);
  }

  .home-cta__copy,
  .home-cta__inner > .button {
    margin-left: 0;
  }

  body:not(.page-home):not(.legal-page) main > .section,
  .legal-page .section {
    padding-block: 3.5rem;
  }

  .page-becatv .page-hero__grid {
    gap: 2.25rem;
  }

  .becatv-hero__visual figcaption {
    position: static;
    background: var(--color-dark-surface);
  }

  .page-projects .project-feature__media {
    min-height: 0;
  }

  .page-support .support-paths {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 31rem) {
  .home-features .feature-grid,
  .product-showcase .mini-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-features .feature-item {
    border-bottom: 0;
  }

  .home-features .feature-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .home-features .feature-item:nth-child(odd)::after {
    display: block;
  }

  .home-features .feature-item:nth-child(even)::after {
    display: none;
  }

  .home-hero {
    min-height: 47.5rem;
  }

  .home-hero__inner {
    padding-top: calc(var(--header-height) + 15.5rem);
  }
}

@media (max-width: 23.5rem) {
  .home-hero {
    min-height: 52rem;
  }

  .home-hero__inner {
    padding-top: calc(var(--header-height) + 18rem);
  }

  .home-hero .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero .button-row .button {
    width: 100%;
  }
}
