/* Codex Twin's hero uses the owner's original AI-core artwork, without recoloring. */
body.twin-page {
  position: relative;
  isolation: isolate;
  background: #07051b;
}

body.twin-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto;
  height: max(980px, 56.288vw);
  background-image:
    linear-gradient(180deg, #07051b00 45vw, #07051b 56.288vw),
    url("/assets/codex-twin-ai-core-background-20261014.png?v=20261014-core2");
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% auto;
  background-position: center top;
  animation: none;
  transform: none;
  opacity: 1;
}

.twin-page .nav,
.twin-page .hero {
  max-width: 1240px;
}

.twin-page .nav {
  min-height: 96px;
  height: auto;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom-color: #c8adff25;
}

.twin-page .nav .brand {
  flex-shrink: 0;
}

.twin-page .nav .brand,
.twin-page .nav nav a {
  text-shadow: 0 2px 12px #0009;
}

.twin-page .hero {
  display: block;
  min-height: 0;
  padding-top: 70px;
  padding-bottom: 74px;
}

.twin-page .hero-copy {
  width: 51%;
  max-width: 600px;
  min-width: 0;
}

.twin-page .hero .promo-scene {
  display: none;
}

.twin-page .hero h1 {
  font-size: clamp(48px, 5.15vw, 74px);
  line-height: 1.16;
  letter-spacing: -2px;
  margin-top: 25px;
  text-shadow: 0 3px 24px #0005;
}

.twin-page .hero .hero-lead {
  font-size: 22px;
  color: #faf5ff;
}

.twin-page .hero-copy .highlights-heading {
  margin-top: 22px;
  color: #e7cdff;
}

.twin-page .hero-highlights {
  padding-left: 22px;
  margin: 15px 0 25px;
  font-size: 14px;
  line-height: 1.8;
  color: #d2c8e3;
  text-shadow: 0 2px 12px #07051b99;
}

.twin-page .hero-highlights li {
  margin: 12px 0;
}

.twin-page .hero-highlights strong {
  color: #f4eaff;
}

.twin-page .hero-actions {
  margin-top: 29px;
}

.twin-page .hero .platform-note {
  color: #d7cae9;
}

.twin-page .hero-footnote {
  max-width: 560px;
  color: #bfb2d1;
}

.twin-page .features {
  border-top-color: #8f6bba3b;
}

@media (min-width: 1700px) {
  .twin-page .hero {
    min-height: 980px;
    padding-top: 90px;
    padding-bottom: 85px;
  }
}

@media (max-width: 1000px) and (min-width: 701px) {
  .twin-page .nav nav {
    gap: 12px 23px;
  }
  .twin-page .hero { padding-top: 52px; }
  .twin-page .hero-copy { width: 55%; }
  .twin-page .hero h1 { font-size: 50px; }
  .twin-page .hero .hero-lead { font-size: 19px; }
  .twin-page .hero-highlights { font-size: 13px; }
  .twin-page .hero-actions { gap: 16px; }
}

@media (max-width: 700px) {
  body.twin-page::before { display: none; }
  .twin-page .nav {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .twin-page .nav nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .twin-page .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 42px;
    padding-bottom: 28px;
  }
  .twin-page .hero-copy {
    order: 0;
    width: 100%;
    max-width: none;
  }
  .twin-page .hero h1 {
    font-size: clamp(42px, 10.7vw, 61px);
    letter-spacing: -1.5px;
  }
  .twin-page .hero .hero-lead { font-size: 19px; }
  .twin-page .hero-highlights {
    max-width: 100%;
    font-size: 14px;
    color: #d3c8e3;
  }
  .twin-page .hero-footnote { max-width: 100%; }
  .twin-page .hero::after {
    content: "";
    display: block;
    order: 1;
    flex: none;
    pointer-events: none;
    width: calc(100% + 40px);
    height: clamp(300px, 90vw, 500px);
    margin: 24px -20px 0;
    background-image:
      linear-gradient(180deg, #07051b 0%, #07051b00 20%, #07051b00 78%, #07051b 100%),
      url("/assets/codex-twin-ai-core-background-20261014.png?v=20261014-core2");
    background-repeat: no-repeat;
    background-size: 100% 100%, cover;
    background-position: center, right center;
  }
}
