/* =============================================================================
   Parallel World — Landing page styles
   Alternating cinematic full-bleed sections + clean editorial sections
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pw-paper);
  color: var(--pw-fg);
  font-family: var(--pw-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { min-height: 100vh; }

img { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; }

/* =============================================================================
   LIQUID GLASS — header + footer chrome, form CTAs
   ~25% opacity surface, backdrop blur, 1px border, soft top-edge highlight
   ============================================================================= */

.lg {
  position: relative;
  background-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(0, 0, 0, 0.02);
}

/* dark-context glass: pulls down the background, white type on top */
.lg--dark {
  background-color: rgba(20, 20, 24, 0.32);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(0, 0, 0, 0.06);
}

/* light-context glass: pulls up to white, dark type on top */
.lg--light {
  background-color: rgba(255, 255, 255, 0.62);
  border-color: rgba(26, 26, 26, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(26, 26, 26, 0.04),
    0 1px 0 rgba(26, 26, 26, 0.03);
}

/* Header gets a lighter touch of frost — less "opaque pane", more glass */
.site-header.lg {
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}
.site-header.lg--dark  { background-color: rgba(20, 20, 24, 0.22); }
.site-header.lg--light { background-color: rgba(255, 255, 255, 0.42); }

/* =============================================================================
   HEADER
   ============================================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  color: var(--pw-white);
}

.site-header--dark { color: var(--pw-white); }
.site-header--light { color: var(--pw-off-black); }

.site-header__inner {
  max-width: var(--pw-container);
  margin: 0 auto;
  padding: 14px var(--pw-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pw-space-8);
}

/* ---- Logo variants — swap based on which section is behind the header ---- */
.site-header__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: -0.01em;
  height: 22px;
  width: auto;
}

.site-header__logo .logo-variant {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0;
  pointer-events: none;
}
.site-header__logo .logo-variant:first-child { position: relative; pointer-events: auto; }
.site-header__logo .logo-variant:not(:first-child) { position: absolute; left: 0; top: 0; }

.site-header[data-logo="white"]         .logo-variant[data-variant="white"]         { opacity: 1; }
.site-header[data-logo="twotone-light"] .logo-variant[data-variant="twotone-light"] { opacity: 1; }
.site-header[data-logo="twotone-dark"]  .logo-variant[data-variant="twotone-dark"]  { opacity: 1; }
.site-header[data-logo="black"]         .logo-variant[data-variant="black"]         { opacity: 1; }

.site-header__cta {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-semibold);
  font-size: var(--pw-fs-13);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 0;
  border: 1px solid currentColor;
}

.site-header--dark .site-header__cta {
  border-color: rgba(255, 255, 255, 0.45);
}
.site-header--dark .site-header__cta:hover {
  background: var(--pw-white);
  color: var(--pw-off-black);
  border-color: var(--pw-white);
}

.site-header--light .site-header__cta {
  border-color: rgba(26, 26, 26, 0.6);
}
.site-header--light .site-header__cta:hover {
  background: var(--pw-off-black);
  color: var(--pw-white);
  border-color: var(--pw-off-black);
}

.site-header__cta .arr { font-family: var(--pw-font-display); font-weight: var(--pw-fw-regular); }

/* =============================================================================
   SECTIONS — base
   ============================================================================= */

section { position: relative; }

.bleed {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--pw-ink-900);
}

.bleed__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bleed__veil {
  /* subtle vignette to keep type legible without a heavy overlay */
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.clean {
  background: var(--pw-paper);
  color: var(--pw-fg);
  padding: clamp(96px, 14vh, 168px) var(--pw-gutter);
}

.clean__container {
  max-width: 1180px;
  margin: 0 auto;
}

/* =============================================================================
   1 — HERO (crosswalk)
   ============================================================================= */

.hero { color: var(--pw-white); }

.hero__img {
  /* desktop = landscape rotated crosswalk; crop tight to centre diagonal */
  object-position: 50% 50%;
}

.hero__veil {
  /* darken top-left (headline) and bottom-right (CTA) zones */
  background:
    radial-gradient(80% 60% at 18% 22%, rgba(0,0,0,0.55), rgba(0,0,0,0) 70%),
    radial-gradient(70% 55% at 82% 86%, rgba(0,0,0,0.55), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.22));
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100vh;
  min-height: 720px;
  max-width: var(--pw-container);
  margin: 0 auto;
  padding: calc(80px + var(--pw-space-12)) var(--pw-gutter) var(--pw-space-12);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
}

.hero__headline {
  max-width: 18ch;
  margin: 0;
  font-family: var(--pw-font-display);
  font-weight: var(--pw-fw-regular);
  font-size: clamp(40px, 5.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--pw-white);
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.hero__headline em {
  font-style: normal;
  color: var(--pw-violet);
}

.hero__cta-wrap {
  justify-self: end;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.hero__cta-meta {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-medium);
  font-size: var(--pw-fs-12);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* =============================================================================
   LIQUID-GLASS EMAIL FORM
   ============================================================================= */

.glass-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  height: 56px;
}

/* base glass treatment — inherits .lg + .lg--dark on dark contexts */
.glass-form .glass-form__input,
.glass-form .glass-form__btn {
  height: 100%;
  border: none;
  background: transparent;
  font-family: var(--pw-font-sans);
  font-size: var(--pw-fs-15);
  color: inherit;
  outline: none;
}
.glass-form__input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  letter-spacing: 0.01em;
}

.glass-form__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--pw-fw-regular);
}

.glass-form--light .glass-form__input::placeholder {
  color: rgba(26, 26, 26, 0.5);
}

.glass-form__btn {
  flex-shrink: 0;
  padding: 0 22px;
  font-weight: var(--pw-fw-semibold);
  font-size: var(--pw-fs-14);
  letter-spacing: 0.02em;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pw-off-black);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--pw-dur-base) var(--pw-ease), color var(--pw-dur-base) var(--pw-ease);
}

.glass-form__btn:hover { background: var(--pw-violet); }

.glass-form--light .glass-form__btn {
  background: var(--pw-off-black);
  color: var(--pw-white);
  border-left: 1px solid rgba(26, 26, 26, 0.1);
}
.glass-form--light .glass-form__btn:hover { background: var(--pw-violet-700); color: var(--pw-white); }

.glass-form__btn .arr { font-family: var(--pw-font-display); font-weight: var(--pw-fw-regular); font-size: 18px; line-height: 1; }

/* =============================================================================
   2 — EXPLAINER (clean editorial)
   ============================================================================= */

.explainer {
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.explainer__container { max-width: 1180px; margin: 0 auto; width: 100%; }

.explainer__num {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-semibold);
  font-size: var(--pw-fs-12);
  letter-spacing: var(--pw-tracking-section-num);
  text-transform: uppercase;
  color: var(--pw-ink-500);
  margin-bottom: var(--pw-space-12);
}

/* The two-bar brand symbol set inline with the lead headline */
.explainer__symbol {
  display: inline-block;
  vertical-align: baseline;
  height: 0.86em;
  width: auto;
  margin-right: 0.34em;
  transform: translateY(0.06em);
  user-select: none;
}

/* Follow-line variant: symbol spans the full two-line block height,
   with both lines of text indented to a single column on the right. */
.explainer__follow--with-symbol {
  display: flex;
  align-items: stretch;
  gap: 22px;
}
.explainer__follow--with-symbol .explainer__symbol {
  /* Use line-height as the visual lock — the symbol matches the rendered
     block height of two lines of the follow text. */
  height: calc(2 * 1.2em);
  width: auto;
  margin: 0;
  transform: none;
  align-self: stretch;
  flex-shrink: 0;
}
.explainer__follow-text {
  display: block;
  flex: 1;
}

.explainer__lead {
  font-family: var(--pw-font-display);
  font-weight: var(--pw-fw-regular);
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--pw-off-black);
  margin: 0 0 var(--pw-space-12);
  max-width: 22ch;
  text-wrap: balance;
}

.explainer__lead .ink-violet { color: var(--pw-violet-700); }

.explainer__follow {
  font-family: var(--pw-font-display);
  font-weight: var(--pw-fw-light);
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--pw-ink-700);
  margin: var(--pw-space-12) 0 0;
  max-width: 28ch;
}

/* =============================================================================
   3 — LOGO MOMENT (US at night)
   ============================================================================= */

.logo-moment .bleed__img { object-position: 50% 50%; }

.logo-moment__veil {
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(0,0,0,0) 0%, rgba(8,12,32,0.35) 100%);
}

.logo-moment__inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--pw-gutter);
}

.logo-moment__stamp {
  width: clamp(320px, 70vw, 980px);
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.4));
}

/* tiny caption beneath, subtle */
.logo-moment__caption {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-semibold);
  font-size: var(--pw-fs-12);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  z-index: 2;
}

/* =============================================================================
   4 — CONSUMER SIGNUP
   ============================================================================= */

.signup { padding-bottom: clamp(64px, 10vh, 120px); }

.signup__num { /* reuse explainer__num */ }

.signup__heading {
  font-family: var(--pw-font-display);
  font-weight: var(--pw-fw-regular);
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--pw-off-black);
  margin: 0 0 var(--pw-space-6);
  max-width: 20ch;
  text-wrap: balance;
}

.signup__heading .ink-violet { color: var(--pw-violet-700); }

.signup__subline {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-regular);
  font-size: var(--pw-fs-18);
  line-height: 1.4;
  color: var(--pw-ink-500);
  margin: 0 0 var(--pw-space-10);
  max-width: 44ch;
}

.signup__form-wrap { max-width: 560px; }

.signup__fine {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-regular);
  font-size: var(--pw-fs-13);
  color: var(--pw-ink-500);
  margin-top: var(--pw-space-4);
  letter-spacing: 0.01em;
}

/* =============================================================================
   5 — AI LABS NOTE (downshifted)
   ============================================================================= */

.ailabs {
  background: var(--pw-paper);
  padding: clamp(48px, 8vh, 96px) var(--pw-gutter) clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--pw-border);
}

.ailabs__container {
  max-width: 720px;
  margin: 0 auto;
}

.ailabs__eyebrow {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-semibold);
  font-size: var(--pw-fs-12);
  letter-spacing: var(--pw-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--pw-ink-500);
  margin-bottom: var(--pw-space-4);
}

.ailabs__copy {
  font-family: var(--pw-font-display);
  font-weight: var(--pw-fw-light);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--pw-off-black);
  margin: 0 0 var(--pw-space-6);
  max-width: 30ch;
}

.ailabs__link {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-semibold);
  font-size: var(--pw-fs-15);
  letter-spacing: 0.01em;
  color: var(--pw-off-black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--pw-off-black);
  transition: color var(--pw-dur-base) var(--pw-ease), border-color var(--pw-dur-base) var(--pw-ease);
}

.ailabs__link:hover { color: var(--pw-violet-700); border-color: var(--pw-violet-700); }

.ailabs__link .arr { font-family: var(--pw-font-display); font-weight: var(--pw-fw-regular); font-size: 18px; }

/* =============================================================================
   6 — CLOSING IMAGE + FOOTER (solar)
   ============================================================================= */

.closer {
  min-height: 100vh;
  background: var(--pw-ink-900);
}

.closer__veil {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
}

.site-footer {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  color: var(--pw-white);
  padding: 28px clamp(20px, 3vw, 40px) 22px;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--pw-space-10);
  align-items: start;
}

.site-footer__brand img {
  height: 22px;
  width: auto;
  margin-bottom: var(--pw-space-4);
}

.site-footer__tagline {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-regular);
  font-size: var(--pw-fs-13);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28ch;
  margin: 0;
}

.site-footer__tagline-lead {
  display: block;
  color: var(--pw-white);
  font-weight: var(--pw-fw-semibold);
  letter-spacing: 0.005em;
  margin-bottom: 6px;
}

.site-footer__col-label {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-semibold);
  font-size: 10px;
  letter-spacing: var(--pw-tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--pw-space-4);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links a {
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-medium);
  font-size: var(--pw-fs-14);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: color var(--pw-dur-base) var(--pw-ease);
}

.site-footer__links a:hover { color: var(--pw-violet); }

.site-footer__base {
  margin-top: var(--pw-space-8);
  padding-top: var(--pw-space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--pw-space-6);
  font-family: var(--pw-font-sans);
  font-weight: var(--pw-fw-regular);
  font-size: var(--pw-fs-12);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.site-footer__base-meta { display: inline-flex; align-items: center; gap: 14px; }
.site-footer__base-meta span { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__base-dot { width: 6px; height: 6px; background: var(--pw-violet); display: inline-block; border-radius: 999px; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
  .site-header__inner { padding: 10px 18px; }
  .site-header__logo { height: 18px; }
  .site-header__logo .logo-variant { height: 18px; }
  .site-header__cta { font-size: var(--pw-fs-12); padding: 8px 12px; }

  .hero__inner {
    padding: 96px 20px 28px;
    min-height: 0;
    height: 100svh;
  }
  .hero__cta-wrap { justify-self: stretch; max-width: 100%; }
  .glass-form { height: 52px; }
  .glass-form__input { font-size: var(--pw-fs-14); padding: 0 14px; }
  .glass-form__btn { padding: 0 16px; font-size: var(--pw-fs-13); }

  .clean { padding: 96px 22px; }

  .explainer__lead { font-size: clamp(32px, 8vw, 56px); }
  .explainer__follow { font-size: clamp(20px, 4.4vw, 26px); margin-top: 44px; }

  .signup__heading { font-size: clamp(32px, 8vw, 52px); }
  .signup__subline { font-size: var(--pw-fs-16); }

  .logo-moment__stamp { width: 80vw; }
  .logo-moment__caption { bottom: 36px; font-size: 10px; }

  .ailabs { padding: 64px 22px 96px; }
  .ailabs__copy { font-size: clamp(20px, 5vw, 26px); }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--pw-space-8);
  }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer { bottom: 8px; left: 8px; right: 8px; padding: 22px 20px 18px; }
  .site-footer__base { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* entry animation removed — everything visible by default */
.fadein { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fadein { transition: none; }
}
