/* Landing rhythm and motion. Home page only. */

html:has(body.xw-pro.page-home) {
  scroll-behavior: auto;
}

@keyframes xw-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.xw-pro.page-home .hero__copy > * {
  animation: xw-fade 0.55s var(--ease) both;
}

body.xw-pro.page-home .hero__copy > *:nth-child(2) { animation-delay: 0.04s; }
body.xw-pro.page-home .hero__copy > *:nth-child(3) { animation-delay: 0.08s; }
body.xw-pro.page-home .hero__copy > *:nth-child(4) { animation-delay: 0.12s; }
body.xw-pro.page-home .hero__copy > *:nth-child(5) { animation-delay: 0.16s; }
body.xw-pro.page-home .device {
  animation: xw-fade 0.6s var(--ease) 0.08s both;
}

@supports (animation-timeline: view()) {
  body.xw-pro.page-home :is(.section__head, .compare article, .tier, .card, .offer, .flight, .presale, .spec, .close) {
    animation: xw-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
}

@supports (animation-timeline: scroll()) {
  body.xw-pro.page-home .scroll-line {
    animation: xw-scroll-line linear;
    animation-timeline: scroll(root);
  }
}

@keyframes xw-scroll-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

body.xw-pro.page-home {
  --page-max: 1120px;
  --page-gutter: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --section-space: clamp(4.25rem, 6.5vw, 6rem);
  --col-gap: clamp(2rem, 4vw, 3.5rem);
  --stack: 0.875rem;
  --stack-lg: 1.125rem;
  --card-gap: 1rem;
  --card-pad: 1.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html:has(body.xw-pro.page-home) {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

body.xw-pro.page-home :is(#control, #transfer, #tiers, #reserve, #presale, #product, #security) {
  scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}

body.xw-pro.page-home #security {
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

body.xw-pro.page-home #security .spec {
  padding-top: 0;
  align-items: start;
}

/* One column for the bar and the page */
body.xw-pro.page-home .wrap {
  width: min(var(--page-max), calc(100% - 2 * var(--page-gutter)));
}

body.xw-pro.page-home .nav {
  min-height: 68px;
  padding-top: env(safe-area-inset-top);
  padding-bottom: 0;
  padding-inline: max(var(--page-gutter), calc((100% - var(--page-max)) / 2));
  background: #09090b !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.xw-pro.page-home.is-scrolled .nav {
  background: #09090b !important;
  box-shadow: none;
}

body.xw-pro.page-home .nav__links {
  gap: 1.65rem;
}

body.xw-pro.page-home .nav__links a {
  position: relative;
  color: rgba(244, 244, 245, 0.62);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body.xw-pro.page-home .nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

body.xw-pro.page-home .nav__links a:hover {
  color: #fafafa;
}

body.xw-pro.page-home .nav__links a:hover::after {
  transform: scaleX(1);
}

body.xw-pro.page-home .nav__links a,
body.xw-pro.page-home .foot nav a,
body.xw-pro.page-home .drawer__panel a {
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease);
}

body.xw-pro.page-home .nav__actions {
  gap: 0.5rem;
}

body.xw-pro.page-home .nav .logo {
  width: auto;
  height: auto;
}

body.xw-pro.page-home .nav .btn {
  min-height: 36px;
  height: 36px;
  padding: 0 0.95rem;
  font-size: 0.84rem;
  font-weight: 500 !important;
  line-height: 1;
  box-shadow: none !important;
}

body.xw-pro.page-home .nav .btn--quiet {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.xw-pro.page-home .nav .btn--solid:hover,
body.xw-pro.page-home .nav .btn:active {
  transform: none !important;
}

body.xw-pro.page-home .btn {
  transition:
    transform 0.45s var(--ease),
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.45s var(--ease),
    color 0.35s var(--ease);
}

body.xw-pro.page-home .btn--solid:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px -16px rgba(255, 255, 255, 0.45);
}

body.xw-pro.page-home .btn:active {
  transform: translateY(0) scale(0.98) !important;
}

body.xw-pro.page-home .btn--quiet:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
}

body.xw-pro.page-home .drawer__backdrop {
  animation: xw-fade 0.35s var(--ease);
}

body.xw-pro.page-home .drawer__panel {
  animation: xw-drawer 0.45s var(--ease);
}

@keyframes xw-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes xw-drawer {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

/* Equal space between sections — one step, not padding stacked twice */
body.xw-pro.page-home main > .hero,
body.xw-pro.page-home main > .section:not(.close) {
  padding-top: var(--section-space);
  padding-bottom: 0;
}

body.xw-pro.page-home main > .close {
  margin-top: var(--section-space);
  margin-bottom: var(--section-space);
  margin-inline: auto;
  padding: 2rem;
}

body.xw-pro.page-home .lede,
body.xw-pro.page-home .compare li,
body.xw-pro.page-home .card p,
body.xw-pro.page-home .offer-split span {
  line-height: 1.6;
  text-wrap: pretty;
}

body.xw-pro.page-home .section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
  margin: 0 0 2.75rem;
}

body.xw-pro.page-home :is(.section__head, .offer, .roadster, .spec) h2 {
  margin: 0;
}

body.xw-pro.page-home :is(.section__head, .offer, .roadster) .lede {
  margin-top: var(--stack-lg);
}

body.xw-pro.page-home .close h2 {
  margin: 0;
}

body.xw-pro.page-home .close {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.7fr);
  gap: 1.75rem 3rem;
  align-items: end;
  border-radius: 24px;
}

body.xw-pro.page-home .close .lede {
  margin: var(--stack-lg) 0 1.5rem;
  max-width: 36rem;
}

body.xw-pro.page-home .close__facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

body.xw-pro.page-home .close__facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.xw-pro.page-home .close__facts dt {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.92rem;
}

body.xw-pro.page-home .close__facts dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Hero */
body.xw-pro.page-home .hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: var(--col-gap);
  align-items: center;
}

body.xw-pro.page-home .hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

body.xw-pro.page-home .hero h1 {
  margin: 0;
}

body.xw-pro.page-home .hero .lede {
  margin-top: var(--stack-lg);
  max-width: 36rem;
}

body.xw-pro.page-home .hero__cold {
  display: grid;
  gap: 0.28rem;
  margin: 1.2rem 0 0;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 1px solid rgba(167, 139, 250, 0.75);
  list-style: none;
  max-width: 28rem;
}

body.xw-pro.page-home .hero__cold li {
  margin: 0;
  color: #f4f4f5;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

body.xw-pro.page-home .hero__cta {
  margin-top: 1.75rem;
  gap: 0.75rem;
}

body.xw-pro.page-home .metrics {
  width: 100%;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  gap: 1.25rem;
}

body.xw-pro.page-home .metrics dd {
  margin-top: 0.35rem;
}

body.xw-pro.page-home .stage {
  min-height: 0;
}

body.xw-pro.page-home .device__live {
  padding: 0.28rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.xw-pro.page-home .chart__days {
  font-size: 0.75rem;
}

body.xw-pro.page-home .foot__cols p {
  color: #a1a1aa;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

body.xw-pro.page-home .foot nav a {
  min-height: 44px;
}

body.xw-pro.page-home .device {
  width: min(400px, 100%);
  padding: 1.25rem 1.25rem 1.15rem !important;
  border-radius: 28px !important;
  box-shadow:
    0 28px 70px -32px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.xw-pro.page-home .stage .device__bal {
  margin-top: 0.2rem;
  font-size: clamp(2.35rem, 3vw, 2.7rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.02 !important;
}

body.xw-pro.page-home .stage .device__cents {
  display: inline-flex;
  align-items: baseline;
  margin-left: 0.02em;
  font-size: 0.62em;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: normal !important;
  color: rgba(244, 244, 245, 0.45);
}

body.xw-pro.page-home .stage .device__cents i {
  font-style: normal;
  display: inline-block;
  min-width: 0.62em;
  text-align: center;
}

body.xw-pro.page-home .stage .device__cents i:first-child {
  min-width: 0.32em;
}

body.xw-pro.page-home .clock b {
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

body.xw-pro.page-home .device__balance {
  margin-top: 1.25rem;
}

body.xw-pro.page-home .chart {
  margin: 0.5rem 0 0;
}

body.xw-pro.page-home .chart__days {
  margin: 0 0.15rem 0.4rem;
}

body.xw-pro.page-home .holdings {
  margin-top: 0.25rem;
}

body.xw-pro.page-home .holdings li {
  gap: 0.75rem;
  padding: 0.7rem 0;
}

body.xw-pro.page-home .toast {
  margin-top: 0.75rem;
}

/* Split sections share one column gap */
body.xw-pro.page-home .flight,
body.xw-pro.page-home .offer,
body.xw-pro.page-home .presale,
body.xw-pro.page-home .spec {
  gap: var(--col-gap);
  align-items: center;
}

body.xw-pro.page-home .flight__trims {
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0;
}

body.xw-pro.page-home .flight__photo {
  animation-duration: 7.5s;
}

body.xw-pro.page-home .roadster h2 {
  max-width: 11em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

body.xw-pro.page-home .roadster__free {
  margin-top: 1.5rem;
  padding: 1rem 0;
}

body.xw-pro.page-home .roadster .reserve__list {
  margin-top: 0;
}

body.xw-pro.page-home .roadster .reserve__list li {
  gap: 1rem;
  padding: 0.9rem 0;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

body.xw-pro.page-home .roadster .btn {
  margin-top: 1.5rem;
}

body.xw-pro.page-home .offer {
  padding: 0;
  border: 0;
}

body.xw-pro.page-home .offer__stats {
  gap: 1rem;
  align-items: stretch;
}

body.xw-pro.page-home .offer__stats > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 100%;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

body.xw-pro.page-home .offer__stats dd {
  margin: 0;
}

body.xw-pro.page-home .spec {
  padding: 0;
  border: 0;
  align-items: start;
}

body.xw-pro.page-home .spec ul {
  gap: 1.25rem 2rem;
}

body.xw-pro.page-home .spec li {
  gap: 0.35rem;
  padding-top: 0.9rem;
}

/* Cards */
body.xw-pro.page-home :is(.compare, .tiers, .grid-3) {
  gap: var(--card-gap);
}

body.xw-pro.page-home .compare article,
body.xw-pro.page-home .tier {
  padding: var(--card-pad);
  border-radius: 20px;
}

body.xw-pro.page-home .card {
  padding: 1.15rem var(--card-pad) var(--card-pad);
  border-radius: 20px;
}

body.xw-pro.page-home :is(.compare article, .card, .tier) {
  transition:
    border-color 0.45s var(--ease),
    background-color 0.45s var(--ease),
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
}

body.xw-pro.page-home .compare h3 {
  margin: 0;
}

body.xw-pro.page-home .compare__where {
  margin: 0.4rem 0 1rem;
  color: #a1a1aa;
  font-size: 0.92rem;
}

body.xw-pro.page-home .compare ul {
  gap: 0;
}

body.xw-pro.page-home .compare li {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

body.xw-pro.page-home .compare li:first-child {
  margin-top: 0;
}

body.xw-pro.page-home .tier {
  gap: 1rem;
}

body.xw-pro.page-home .tier ul {
  gap: 0;
}

body.xw-pro.page-home .tier li {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

body.xw-pro.page-home .tier li:first-child {
  margin-top: 0;
}

body.xw-pro.page-home .tier--diamond {
  gap: 1.25rem 2.5rem;
  padding: 1.5rem 1.75rem;
  align-items: center;
}

body.xw-pro.page-home .tier--diamond ul {
  grid-template-columns: 1fr 1fr;
  column-gap: 2.5rem;
  row-gap: 0;
  align-items: stretch;
}

body.xw-pro.page-home .tier--diamond li,
body.xw-pro.page-home .tier--diamond li:first-child {
  margin: 0;
  padding: 0.85rem 0 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.28rem;
}

body.xw-pro.page-home .tier--diamond li b,
body.xw-pro.page-home .tier--diamond li span {
  display: block;
  line-height: 1.35;
}

body.xw-pro.page-home .tier--diamond li b {
  font-weight: 500;
}

body.xw-pro.page-home .offer-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

body.xw-pro.page-home .offer-split li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.xw-pro.page-home .offer-split b {
  font-weight: 560;
  letter-spacing: -0.02em;
}

body.xw-pro.page-home .offer-split span {
  color: #a1a1aa;
  font-size: 0.92rem;
}

body.xw-pro.page-home .card h3 {
  margin: 0;
}

body.xw-pro.page-home .card p {
  margin-top: 0.5rem;
  line-height: 1.55;
}

body.xw-pro.page-home .diagram {
  height: 112px;
  margin-bottom: 0.15rem;
}

@media (hover: hover) {
  body.xw-pro.page-home :is(.compare article, .card, .tier):hover {
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.75);
  }

  body.xw-pro.page-home :is(.compare__pick, .tier--platinum):hover {
    border-color: rgba(196, 181, 253, 0.55);
  }
}

/* Presale panel */
body.xw-pro.page-home .presale {
  padding: 2rem;
  border-radius: 24px;
  grid-template-columns: 200px minmax(0, 1fr);
}

body.xw-pro.page-home .presale__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

body.xw-pro.page-home .price-row {
  gap: 1.25rem;
}

body.xw-pro.page-home .price-row strong {
  margin-top: 0.35rem;
}

body.xw-pro.page-home .presale__when {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.92rem;
}

body.xw-pro.page-home .clock,
body.xw-pro.page-home .stages {
  margin: 0;
}

body.xw-pro.page-home .clock {
  gap: 0.75rem;
}

body.xw-pro.page-home .clock div {
  padding: 0.85rem 0.4rem;
}

body.xw-pro.page-home .stages li {
  padding: 0.85rem 0;
}

body.xw-pro.page-home .foot {
  background: #09090b;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.xw-pro.page-home .foot__legal {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  body.xw-pro.page-home {
    --section-space: 3.25rem;
    --col-gap: 1.75rem;
  }

  body.xw-pro.page-home .hero {
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1fr);
  }

  body.xw-pro.page-home :is(.flight, .offer, .spec) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.xw-pro.page-home .section__head {
    margin-bottom: 1.75rem;
  }

  body.xw-pro.page-home .presale,
  body.xw-pro.page-home .price-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.xw-pro.page-home .price-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  body.xw-pro.page-home .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.xw-pro.page-home .hero__cta {
    width: 100%;
  }

  body.xw-pro.page-home .close,
  body.xw-pro.page-home .offer-split {
    grid-template-columns: 1fr;
  }

  body.xw-pro.page-home .dock:not([hidden]) {
    display: block !important;
  }

  html:has(body.xw-pro.page-home) {
    scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  body.xw-pro.page-home .foot {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  body.xw-pro.page-home .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem) !important;
  }

  body.xw-pro.page-home .offer__stats,
  body.xw-pro.page-home .spec ul,
  body.xw-pro.page-home .tier--diamond,
  body.xw-pro.page-home .tier--diamond ul {
    grid-template-columns: minmax(0, 1fr);
  }

  body.xw-pro.page-home .flight__trims {
    gap: 0.75rem;
  }

  body.xw-pro.page-home .metrics {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body.xw-pro.page-home .metrics > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.xw-pro.page-home .metrics > div:first-child {
    padding-top: 0;
    border-top: 0;
  }

  body.xw-pro.page-home .metrics dd {
    margin: 0;
    font-size: 1.25rem;
  }

  body.xw-pro.page-home .presale {
    padding: 1.15rem 1rem;
  }

  body.xw-pro.page-home .price-row {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  body.xw-pro.page-home .price-row > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.xw-pro.page-home .price-row > div:first-child {
    padding-top: 0;
    border-top: 0;
  }

  body.xw-pro.page-home .price-row strong {
    margin-top: 0;
    font-size: 1.2rem;
  }

  body.xw-pro.page-home .clock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

/* Quiet iris wash, headline emphasis, zinc focus and selection. */
body.xw-pro.page-home {
  background-color: #09090b !important;
  background-image: radial-gradient(ellipse 46% 32% at 78% -8%, rgba(139, 124, 255, 0.16), transparent 62%) !important;
}

body.xw-pro.page-home .hero h1 em {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #c4b5fd !important;
  color: #c4b5fd !important;
}

body.xw-pro.page-home .scroll-line {
  background: rgba(255, 255, 255, 0.72) !important;
}

html:has(body.xw-pro.page-home) {
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

html:has(body.xw-pro.page-home)::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.28);
}

body.xw-pro.page-home :focus-visible {
  outline-color: rgba(255, 255, 255, 0.72);
}

body.xw-pro.page-home ::selection {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
