/* src/client/pages/Home.css */
.home {
  display: flex;
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  color: #f5f5f5;
  background: #000;
  flex-direction: column;
  font-family: Plus Jakarta Sans, -apple-system, sans-serif;
}

.home-hero, .home-trust, .home-features, .home-platform, .home-ai, .home-engine, .home-stats, .home-latest {
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
}

.home-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.home-hero-copy {
  display: contents;
}

.home-hero-rule {
  order: 0;
}

.home-hero-title {
  order: 1;
}

.home-hero-media {
  order: 2;
  margin-top: .25rem;
}

.home-hero-sub {
  order: 3;
}

.home-hero-ctas {
  order: 4;
}

@media (width >= 900px) {
  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items:  center;
    gap: 4rem;
    padding-top: 6rem;
    padding-bottom: 5rem;
  }

  .home-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 560px;
  }

  .home-hero-rule, .home-hero-title, .home-hero-sub, .home-hero-ctas, .home-hero-media {
    order: initial;
    margin-top: 0;
  }
}

.home-hero-rule {
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: -.5rem;
}

.home-hero-title {
  letter-spacing: -.026em;
  color: #f5f5f5;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

.home-hero-sub {
  color: #f5f5f5b8;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

.home-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .5rem;
}

.home-hero-ctas > * {
  width: 100%;
}

@media (width >= 640px) {
  .home-hero-ctas {
    flex-flow: wrap;
  }

  .home-hero-ctas > * {
    width: auto;
  }
}

.home-hero-media {
  justify-self: stretch;
  width: 100%;
}

.home-trust {
  background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000 50%), #000;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.home-trust-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items:  center;
  gap: 36px 24px;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
}

.home-trust-logo {
  display: flex;
  flex: 0 0 calc(50% - 12px);
  justify-content: center;
  align-items:  center;
  height: 56px;
}

@media (width >= 560px) {
  .home-trust-logos {
    max-width: 760px;
  }

  .home-trust-logo {
    flex: 0 0 calc(25% - 18px);
  }
}

@media (width >= 1024px) {
  .home-trust-logos {
    max-width: 1120px;
  }

  .home-trust-logo {
    flex: 0 0 calc(16.6667% - 20px);
  }
}

.home-trust-logo-img {
  display: block;
  object-fit: contain;
  opacity: .72;
  filter: brightness(0) invert(1);
  max-width: 100%;
  height: auto;
  max-height: 100%;
  transition: opacity .16s;
}

.home-trust-logo:hover .home-trust-logo-img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home-trust-logo-img {
    transition: none;
  }
}

.home-features {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.home-features-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
  margin: 0;
  padding: 0;
}

@media (width >= 640px) {
  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 1000px) {
  .home-features-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .home-feature {
    grid-column: span 2;
  }

  .home-feature:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .home-feature:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.home-feature {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items:  center;
  gap: .75rem;
  max-width: 340px;
  margin: 0 auto;
}

.home-feature-icon {
  display: inline-flex;
  color: var(--brand-orange);
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
}

.home-feature-title {
  letter-spacing: -.022em;
  color: #f5f5f5;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}

.home-feature-body {
  color: #f5f5f5b3;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

.home-platform {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.home-platform-card {
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff0f 0%, #fff0 100%);
  border: 1px solid #ffffff0f;
  border-radius: 32px;
  padding: 0;
}

.home-platform-divider {
  background: #ffffff0f;
  height: 1px;
  margin: 0 2rem;
}

@media (width >= 900px) {
  .home-platform-divider {
    margin: 0 3rem;
  }
}

.home-product {
  display: grid;
  grid-template-columns: 1fr;
  align-items:  center;
  gap: 2.5rem;
  padding: 3rem 2rem;
}

@media (width >= 900px) {
  .home-product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    padding: 4rem 3.5rem;
  }
}

.home-product-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 540px;
}

.home-product-title {
  letter-spacing: -.025em;
  color: var(--brand-orange);
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.home-product-sub {
  color: #f5f5f5c7;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

.home-product-features {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: .5rem 2.5rem;
  margin: .5rem 0 0;
  padding: 0;
}

.home-product-features > div {
  min-width: 0;
}

.home-product-features dt {
  color: #f5f5f5;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.home-product-features dd {
  color: #f5f5f599;
  margin: 4px 0 0;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.3;
}

.home-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #f5f5f559;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .12s, text-decoration-color .12s;
}

.home-inline-link:hover {
  color: var(--brand-orange);
  text-decoration-color: var(--brand-orange);
}

.home-inline-link:focus-visible {
  color: var(--brand-orange);
  text-decoration-color: var(--brand-orange);
}

.home-product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.home-product-media {
  width: 100%;
}

@media (width >= 900px) {
  .home-product--right .home-product-media {
    grid-column: 1;
    grid-row: 1;
  }

  .home-product--right .home-product-body {
    grid-column: 2;
    grid-row: 1;
  }
}

.home-ai {
  display: grid;
  grid-template-columns: 1fr;
  align-items:  center;
  gap: 2.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (width >= 900px) {
  .home-ai {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .home-ai-media {
    grid-column: 1;
    grid-row: 1;
  }

  .home-ai-copy {
    grid-column: 2;
    grid-row: 1;
  }
}

.home-ai-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 540px;
}

.home-ai-title {
  letter-spacing: -.025em;
  color: #f5f5f5;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.home-ai-sub {
  color: #f5f5f5b8;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

.home-ai-features {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: .5rem 2.5rem;
  margin: .5rem 0 0;
  padding: 0;
}

.home-ai-features > div {
  min-width: 0;
}

.home-ai-features dt {
  color: #f5f5f5;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.home-ai-features dd {
  color: #f5f5f599;
  margin: 4px 0 0;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.3;
}

.home-ai-ctas {
  margin-top: .5rem;
}

.home-ai-media {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.home-engine {
  display: grid;
  grid-template-columns: 1fr;
  align-items:  center;
  gap: 2.5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (width >= 900px) {
  .home-engine {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.home-engine-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 540px;
}

.home-engine-title {
  letter-spacing: -.025em;
  color: #f5f5f5;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.home-engine-sub {
  color: #f5f5f5b8;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
}

.home-engine-features {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: .5rem 2.5rem;
  margin: .5rem 0 0;
  padding: 0;
}

.home-engine-features > div {
  min-width: 0;
}

.home-engine-features dt {
  color: #f5f5f5;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.home-engine-features dd {
  color: #f5f5f599;
  margin: 4px 0 0;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.3;
}

.home-engine-ctas {
  margin-top: .5rem;
}

.home-engine-media {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.home-stats {
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(45deg, #000 0%, #1a1a1a 100%);
  align-items:  center;
  gap: 2.5rem;
  max-width: none;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.home-stats-copy, .home-stats-media {
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
}

@media (width >= 900px) {
  .home-stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 3rem;
    padding-top: 5rem;
    padding-bottom: 6rem;
  }

  .home-stats-copy, .home-stats-media {
    padding-left: 0;
    padding-right: 0;
  }

  .home-stats-copy {
    padding-left: var(--page-padding-x);
    justify-self: end;
  }

  .home-stats-media {
    padding-right: var(--page-padding-x);
    justify-self: stretch;
  }
}

.home-stats-title {
  letter-spacing: -.025em;
  color: #f5f5f5;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.home-latest {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.home-latest-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.home-latest-title {
  letter-spacing: -.025em;
  color: #f5f5f5;
  margin: 0;
  font-family: Plus Jakarta Sans, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
}

.home-latest-all {
  color: #f5f5f5b3;
  text-decoration: none;
  transition: color .12s;
  font-size: .9375rem;
  font-weight: 500;
}

.home-latest-all:hover {
  color: var(--brand-orange);
}

.home-latest-all:focus-visible {
  color: var(--brand-orange);
}

.home-latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (width >= 640px) {
  .home-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 1000px) {
  .home-latest-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (width >= 1024px) {
  .home-hero, .home-trust, .home-features, .home-platform, .home-ai, .home-engine, .home-latest, .home-stats-copy, .home-stats-media {
    padding-left: 64px;
    padding-right: 64px;
  }
}
