/*
 * Cinematic landing composition.
 * This stylesheet is intentionally last so the public homepage can retain the
 * shared catalog/dialog components in styles.css without inheriting its old
 * SaaS-style hero geometry.
 */

:root {
  --cinema-blue: #1597ff;
  --cinema-blue-bright: #36adff;
  --cinema-line: rgba(142, 181, 229, 0.22);
  --cinema-ink: #02050a;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --max: 1640px;
}

body {
  background: #03060a;
  font-family: var(--sans);
  font-synthesis: none;
}

/* Reset the legacy homepage rules that load before this campaign. */
.nav .nav-links { margin-left: 0; }
.hero h1 span { color: #f5f7fa; }
footer .footer-brand + p { margin-left: 0; }

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  width: 100%;
  height: 94px;
  border-bottom: 1px solid rgba(166, 190, 221, 0.18);
  background: linear-gradient(180deg, rgba(2, 5, 10, 0.9), rgba(2, 5, 10, 0.46));
  backdrop-filter: blur(13px) saturate(120%);
}

.nav-shell {
  width: 100%;
  padding: 0 clamp(30px, 4.5vw, 76px);
  grid-template-columns: auto 1fr auto;
  gap: clamp(34px, 4vw, 74px);
}

.brand {
  gap: 17px;
  font-size: clamp(1.18rem, 1.6vw, 1.52rem);
  font-weight: 650;
  letter-spacing: 0.28em;
}

.brand img {
  width: 53px;
  height: 62px;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(36, 139, 255, 0.22));
}

.nav-links {
  gap: clamp(25px, 3.6vw, 58px);
  color: #c1cad7;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.045em;
}

.nav-links a {
  padding: 35px 0 30px;
}

.nav-links a::after {
  bottom: 23px;
  background: var(--cinema-blue-bright);
  box-shadow: 0 0 12px rgba(32, 157, 255, 0.7);
}

.nav-cta {
  min-width: 188px;
  min-height: 52px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero {
  isolation: isolate;
  position: relative;
  width: 100%;
  max-width: none;
  min-height: max(840px, 100svh);
  margin: 0;
  padding:
    clamp(126px, 13.3vh, 155px)
    clamp(88px, 7vw, 135px)
    clamp(64px, 7vh, 84px)
    clamp(58px, 4.7vw, 90px);
  display: grid;
  grid-template-columns: clamp(390px, 26.5vw, 520px) minmax(720px, 1fr);
  gap: clamp(30px, 2vw, 38px);
  align-items: start;
  overflow: hidden;
  background: #03070d url("assets/landing-penthouse.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(1, 4, 8, 0.44) 0%, rgba(2, 5, 9, 0.28) 28%, rgba(2, 7, 14, 0.04) 64%, rgba(1, 4, 8, 0.26) 100%),
    linear-gradient(180deg, rgba(1, 4, 8, 0.2) 0%, transparent 64%, rgba(1, 4, 8, 0.88) 100%);
  filter: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 150px;
  background: linear-gradient(180deg, transparent, #03060a);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 505px;
  padding-top: clamp(42px, 5vh, 50px);
  align-self: start;
  text-shadow: 0 3px 25px rgba(0, 0, 0, 0.92);
}

.hero-copy .kicker {
  margin-bottom: 21px;
  color: #69b9ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.52em;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.78rem, 4.45vw, 5.05rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.047em;
  text-transform: uppercase;
}

.hero h1 span,
.hero h1 em {
  display: block;
  white-space: nowrap;
}

.hero h1 em {
  margin-top: 0.04em;
  color: var(--cinema-blue);
  font-style: normal;
  text-shadow: 0 0 32px rgba(19, 128, 255, 0.28), 0 3px 25px rgba(0, 0, 0, 0.92);
}

.hero-lede {
  max-width: 465px;
  margin: 24px 0 0;
  color: #d9e0e9;
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.015em;
}

.hero-actions {
  width: min(100%, 358px);
  margin-top: 27px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-actions .button {
  width: 100%;
  min-height: 59px;
  padding-inline: 25px;
  justify-content: space-between;
  border-radius: 14px;
  text-transform: uppercase;
  font-size: 0.89rem;
  letter-spacing: 0.085em;
}

.hero-actions .button-ghost {
  border-color: rgba(49, 142, 246, 0.76);
  background: rgba(3, 9, 17, 0.7);
  color: #e3eaf4;
  box-shadow: inset 0 0 0 1px rgba(6, 92, 183, 0.16);
  backdrop-filter: blur(10px);
}

.mode-explainer {
  width: min(100%, 358px);
  margin-top: 34px;
  padding-top: 0;
  border-top: 0;
}

.mode-switch {
  width: 100%;
  height: 55px;
  border-color: rgba(94, 139, 195, 0.46);
  background: rgba(3, 8, 15, 0.82);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
}

.mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
}

.mode-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-button.active {
  background: linear-gradient(180deg, rgba(8, 89, 176, 0.43), rgba(5, 34, 70, 0.68));
  box-shadow: inset 0 0 0 1px #1597ff, 0 0 22px rgba(7, 119, 245, 0.2);
}

.mode-explainer > p {
  min-height: 0;
  margin: 15px 1px 0;
  color: #9cafc7;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-product {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin-top: -36px;
  align-self: start;
}

.product-glow {
  inset: 8% -4% -5% 0;
  border-radius: 50px;
  background: radial-gradient(circle at 64% 20%, rgba(20, 132, 255, 0.26), transparent 48%);
  filter: blur(45px);
}

.product-window {
  width: 100%;
  height: clamp(680px, calc(100svh - 125px), 814px);
  min-height: 0;
  grid-template-columns: 112px minmax(0, 1fr);
  border-color: rgba(112, 145, 186, 0.55);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(12, 20, 31, 0.975), rgba(3, 8, 15, 0.985));
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(5, 13, 24, 0.86),
    inset 0 1px rgba(255, 255, 255, 0.045);
  transform: none;
}

.product-sidebar {
  padding: 20px 10px;
  border-right-color: rgba(123, 151, 187, 0.19);
  background: linear-gradient(180deg, rgba(3, 8, 14, 0.96), rgba(5, 12, 21, 0.94));
}

.product-mark {
  min-height: 60px;
  padding: 0 5px 18px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.product-mark img {
  width: 37px;
  height: 43px;
  border-radius: 0;
  object-fit: contain;
}

.product-nav {
  min-height: 47px;
  margin-bottom: 6px;
  padding: 10px 9px;
  gap: 9px;
  border-radius: 9px;
  font-size: 0.65rem;
}

.product-nav svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-nav > span {
  width: auto;
  color: inherit;
  text-align: left;
}

.product-nav.active {
  border-color: rgba(17, 130, 255, 0.56);
  background: linear-gradient(90deg, rgba(7, 80, 160, 0.39), rgba(7, 39, 78, 0.48));
  color: #76bdff;
  box-shadow: inset 3px 0 #179cff, 0 8px 18px rgba(0, 43, 98, 0.16);
}

.product-sidebar > p {
  margin: auto 9px 6px;
  color: #7b9bc3;
  font: 0.62rem/1.55 var(--sans);
  font-style: normal;
}

.product-main {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-rows: minmax(235px, 36%) minmax(0, 1fr);
  gap: 13px;
}

.cast-strip {
  height: auto;
  min-height: 0;
  gap: 12px;
}

.cast-card {
  border-color: rgba(102, 127, 158, 0.42);
  border-radius: 13px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
}

.cast-card.active {
  border-color: #279dff;
  box-shadow: 0 0 0 1px rgba(39, 157, 255, 0.25), 0 20px 42px rgba(0, 77, 159, 0.25);
}

.cast-shade {
  background: linear-gradient(to top, rgba(3, 7, 13, 0.98) 0%, rgba(3, 7, 13, 0.6) 36%, transparent 70%);
}

.cast-copy {
  inset: auto 15px 14px;
}

.cast-copy strong { font-size: 0.98rem; }
.cast-copy small { margin-top: 1px; font-size: 0.7rem; }
.cast-copy em { margin-top: 7px; font-size: 0.62rem; letter-spacing: 0.025em; }

.demo-chat {
  min-height: 0;
  height: 100%;
  margin-top: 0;
  padding: 0 16px 12px;
  border-color: rgba(102, 133, 172, 0.42);
  border-radius: 16px;
  background: radial-gradient(circle at 87% 0, rgba(11, 96, 191, 0.12), transparent 25rem), rgba(4, 10, 18, 0.94);
}

.demo-chat-head { min-height: 66px; }
.demo-identity > img { width: 43px; height: 49px; }
.demo-identity strong { font-size: 0.89rem; }
.demo-identity span { font-size: 0.64rem; }
.scene-button { padding: 9px 14px; font-size: 0.67rem; }

.demo-transcript {
  min-height: 0;
  padding: 14px 4px 8px;
  gap: 10px;
  overflow: hidden;
}

.demo-message { gap: 9px; }
.demo-message p {
  max-width: 74%;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 5px;
  font-size: clamp(0.67rem, 0.72vw, 0.77rem);
  line-height: 1.46;
}
.demo-message.user p { border-radius: 14px 14px 5px 14px; }
.demo-message-avatar { width: 34px; height: 40px; }
.user-orb { width: 35px; height: 35px; }
.demo-composer { min-height: 47px; }
.demo-status { min-height: 25px; }

.hero-side-note {
  position: absolute;
  right: 17px;
  bottom: 85px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #7fa0ca;
  font-size: 0.56rem;
  font-weight: 650;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-side-note i {
  width: 1px;
  height: 22px;
  margin-top: 7px;
  background: #347aba;
}

.privacy-ribbon {
  position: relative;
  z-index: 5;
  margin-top: 0;
  border-color: rgba(78, 123, 177, 0.32);
  background: linear-gradient(90deg, rgba(5, 12, 21, 0.96), rgba(10, 20, 33, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.43);
}

@media (max-width: 1420px) {
  .hero {
    padding-inline: 42px 62px;
    grid-template-columns: minmax(360px, 0.58fr) minmax(650px, 1.42fr);
    gap: 27px;
  }

  .hero h1 { font-size: clamp(3.45rem, 4.25vw, 4.6rem); }
  .product-window { height: clamp(640px, calc(100svh - 145px), 745px); }
  .hero-side-note { display: none; }
}

@media (max-width: 1160px) {
  .nav-shell { padding-inline: 27px; }
  .nav-links { gap: 23px; }

  .hero {
    min-height: 0;
    padding: 145px 32px 96px;
    grid-template-columns: 1fr;
    background-position: 58% top;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(1, 4, 8, 0.5), rgba(2, 5, 9, 0.28) 55%, rgba(1, 4, 8, 0.34)),
      linear-gradient(180deg, rgba(1, 4, 8, 0.08), rgba(1, 4, 8, 0.8) 56%, #03060a 100%);
  }

  .hero-copy {
    width: min(100%, 640px);
    max-width: none;
    padding-top: 15px;
  }

  .hero h1 { font-size: clamp(4rem, 8.5vw, 6.2rem); }
  .hero-product { width: min(100%, 1010px); margin: 27px auto 0; }
  .product-window { height: 750px; }
  .privacy-ribbon { margin-top: -35px; }
}

@media (max-width: 820px) {
  .nav { height: 78px; }
  .nav-shell { padding-inline: 19px; }
  .nav-links { display: none; }
  .nav-cta { min-width: 0; min-height: 43px; padding-inline: 16px; font-size: 0.72rem; }
  .brand { font-size: 1rem; letter-spacing: 0.21em; }
  .brand img { width: 42px; height: 50px; }

  .hero {
    padding: 112px 20px 82px;
    background-position: 61% top;
  }

  .hero h1 { font-size: clamp(3.5rem, 12vw, 5rem); }
  .hero-lede { font-size: 1.08rem; }
  .hero-actions, .mode-explainer { width: min(100%, 420px); }

  .product-window {
    height: 690px;
    grid-template-columns: 1fr;
    border-radius: 19px;
  }

  .product-sidebar { display: none; }
  .product-main { padding: 11px; grid-template-rows: 225px minmax(0, 1fr); }
  .cast-strip { height: auto; }
  .privacy-ribbon { margin-top: -18px; }
}

@media (max-width: 590px) {
  .nav-cta span { display: none; }
  .hero-copy { text-align: left; }

  .hero {
    padding: 106px 17px 72px;
    background-position: 68% top;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(1, 4, 8, 0.65), rgba(2, 5, 9, 0.4)),
      linear-gradient(180deg, rgba(1, 4, 8, 0.18), rgba(1, 4, 8, 0.86) 51%, #03060a 100%);
  }

  .hero-copy .kicker { font-size: 0.64rem; }
  .hero h1 { font-size: clamp(2.88rem, 14vw, 4rem); letter-spacing: -0.052em; }
  .hero-lede { margin-top: 20px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-actions .button { min-height: 55px; }
  .mode-explainer { margin-inline: 0; }

  .product-window { height: 625px; }
  .product-main { grid-template-rows: 194px minmax(0, 1fr); }
  .cast-strip {
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(170px, 72vw));
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .cast-card { scroll-snap-align: center; }
  .cast-copy em { display: none; }
  .demo-chat { padding-inline: 10px; }
  .demo-message p { max-width: 84%; font-size: 0.65rem; }
  .demo-status small { display: none; }
  .privacy-ribbon { width: calc(100% - 34px); }
}

@media (prefers-reduced-motion: reduce) {
  .product-window { transform: none; }
}
