/* Local marketing workspace — glass hero on the live marketing scaffold. */

/* Page system shared by every section below the hero. */
.marketing-local {
  --ml-gutter: 1.5rem;
  --ml-section-y: clamp(3.5rem, 6vw, 5rem);
  --ml-radius-media: 0.75rem;
  --ml-h2-size: clamp(2.25rem, 4.4vw, 3.5rem);
  --ml-h2-tracking: -0.035em;
  --ml-lead-size: 1.125rem;
}

html[data-theme="dark"]:has(> body.marketing-local) {
  --alt-bg: #070a0d;
  background: var(--alt-bg);
}

/* Very fine grain across the full page background. */
html:has(> body.marketing-local)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

html[data-theme="light"]:has(> body.marketing-local)::before {
  opacity: 0.055;
  mix-blend-mode: multiply;
}

@media (min-width: 1024px) {
  .marketing-local { --ml-gutter: 2rem; }
}

/* One content rail. Hero stays full-bleed. */
.marketing-local .alt-trust,
.marketing-local .alt-footer {
  width: min(100%, 80rem);
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: var(--ml-gutter);
  padding-right: var(--ml-gutter);
}

/* —— Linear-style sitewide footer —— */
.marketing-local .alt-footer {
  padding-bottom: 3.5rem;
}

.marketing-local .alt-footer-shell {
  margin-top: 0;
  padding-top: 3.25rem;
  border-top: none;
}

/* CTA above footer: extra air, no full-width hairline under the card */
.marketing-local .alt-footer-cta + .alt-footer-shell {
  padding-top: 0;
}

.marketing-local .alt-footer-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

/* Linear: emblem in a left column; link grid fills the rest.
   Outer gutter to the logo (left) matches outer gutter past the
   last column cell (right) — both come from .alt-footer padding. */
@media (min-width: 900px) {
  .marketing-local .alt-footer-shell {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 3.5rem;
    align-items: start;
  }

  .marketing-local .alt-footer-inner {
    display: contents;
  }

  .marketing-local .alt-footer-bottom {
    grid-column: 2;
  }
}

.marketing-local .alt-footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 2rem;
  height: 2rem;
  color: var(--alt-fg-strong);
  opacity: 0.92;
}

.marketing-local .alt-footer-brand:hover {
  opacity: 1;
}

.marketing-local .alt-footer-brand img {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.marketing-local .alt-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  padding: 0;
  border-top: none;
  width: 100%;
}

@media (min-width: 720px) {
  .marketing-local .alt-footer-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }
}

.marketing-local .alt-footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--alt-fg-strong);
  font-weight: 510;
}

.marketing-local .alt-footer-col a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--alt-muted);
  text-decoration: none;
}

.marketing-local .alt-footer-col a:hover {
  color: var(--alt-fg-strong);
}

.marketing-local .alt-footer-bottom {
  margin-top: 3rem;
  padding-top: 0;
}

.marketing-local .alt-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  margin-bottom: 1.25rem;
}

.marketing-local .alt-footer-legal a {
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--alt-muted) 88%, transparent);
  text-decoration: none;
}

.marketing-local .alt-footer-legal a:hover {
  color: var(--alt-fg-strong);
}

.marketing-local .alt-copyright {
  padding-top: 0;
  margin: 0;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--alt-muted) 62%, transparent);
}

.marketing-local .alt-copyright-legal {
  padding-top: 0.3rem;
}

.marketing-local .alt-disclaimer {
  margin-top: 1rem;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--alt-muted) 48%, transparent);
  max-width: 52rem;
}

.marketing-local .alt-trust {
  padding-top: var(--ml-section-y);
  padding-bottom: var(--ml-section-y);
}

.marketing-local .alt-trust-intro h2,
.marketing-local .alt-footer-cta h2,
.marketing-local .steep-reveal h2,
.marketing-local .aim-section .aim-copy h2 {
  font-family: var(--alt-font-sans);
  font-size: var(--ml-h2-size);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: var(--ml-h2-tracking);
  color: var(--alt-fg-strong);
}

.marketing-local .alt-trust-intro p,
.marketing-local .steep-platform-lead,
.marketing-local .aim-section .aim-copy p {
  font-size: var(--ml-lead-size);
  line-height: 1.6;
  color: var(--alt-muted);
}

.marketing-local .alt-trust-intro { max-width: 46rem; padding: 0; }
.marketing-local .alt-trust-intro p { margin-top: 1rem; }

/* Section eyebrows share the hero eyebrow: dot, caps, wide tracking. */
.marketing-local .steep-platform-eyebrow,
.marketing-local .aim-kicker,
.marketing-local .aim-eyebrow,
main > .polaris-releases > .polaris-releases-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--alt-font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alt-muted);
}

.marketing-local .steep-platform-eyebrow::before,
.marketing-local .aim-kicker::before,
.marketing-local .aim-eyebrow::before,
main > .polaris-releases > .polaris-releases-label::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--alt-fg-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--alt-fg) 12%, transparent);
}

.marketing-local .alt-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-top: 8rem;
  margin-bottom: 8rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

html[data-theme="light"] .marketing-local .alt-footer-cta {
  background: transparent;
  box-shadow: none;
}

@media (min-width: 768px) {
  .marketing-local .alt-footer-cta {
    margin-top: 10rem;
    margin-bottom: 10rem;
    padding: 0;
  }
}

.marketing-local .alt-footer-cta h2 {
  margin: 0;
  max-width: 11.5ch;
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 510;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-align: center;
  color: var(--alt-fg-strong);
}

.marketing-local .alt-footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.marketing-local .alt-footer-cta-primary,
.marketing-local .alt-footer-cta .alt-btn.alt-footer-cta-primary {
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  background: #e5e5e6;
  color: #08090a;
  border-color: #e5e5e6;
  font-size: 1rem;
  font-weight: 510;
  letter-spacing: -0.01em;
}

.marketing-local .alt-footer-cta-primary:hover,
.marketing-local .alt-footer-cta .alt-btn.alt-footer-cta-primary:hover {
  background: #f3f3f4;
  border-color: #f3f3f4;
  color: #08090a;
}

.marketing-local .alt-footer-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #f7f8f8;
  border: none;
  font-size: 1rem;
  font-weight: 510;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.15s ease;
}

.marketing-local .alt-footer-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

html[data-theme="light"] .marketing-local .alt-footer-cta-primary,
html[data-theme="light"] .marketing-local .alt-footer-cta .alt-btn.alt-footer-cta-primary {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

html[data-theme="light"] .marketing-local .alt-footer-cta-primary:hover,
html[data-theme="light"] .marketing-local .alt-footer-cta .alt-btn.alt-footer-cta-primary:hover {
  background: #0b1220;
  border-color: #0b1220;
  color: #fff;
}

html[data-theme="light"] .marketing-local .alt-footer-cta-secondary {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
}

html[data-theme="light"] .marketing-local .alt-footer-cta-secondary:hover {
  background: rgba(17, 24, 39, 0.1);
  color: #111827;
}

.marketing-local .alt-hero-glass {
  cursor: grab;
}

/* In-page nav: clear the sticky header */
.marketing-local #platform,
.marketing-local #polaris,
.marketing-local #ai-modes,
.marketing-local #trust {
  scroll-margin-top: calc(var(--alt-header-h, 4rem) + 0.85rem);
}

/* ——— x.ai–style header menus ——— */
.marketing-local .ml-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

/* Desktop nav needs more room after x.ai IA (Prediction Models, Resources).
   Below this width the absolute-centered links collide with Login / Get Started
   and the right side of the header looks cut off. */
@media (max-width: 1099px) {
  .marketing-local .ml-nav,
  .marketing-local .alt-nav-desktop {
    display: none !important;
  }

  .marketing-local .alt-menu-toggle {
    display: inline-flex !important;
  }
}

@media (min-width: 1100px) {
  .marketing-local .ml-nav {
    display: flex;
  }

  .marketing-local .alt-menu-toggle {
    display: none !important;
  }
}

.marketing-local .ml-nav-item {
  position: relative;
}

.marketing-local .ml-nav-trigger,
.marketing-local .ml-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: var(--alt-header-h);
  padding: 0 0.7rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--alt-header-fg);
  cursor: pointer;
  transition: color 0.15s ease;
}

.marketing-local .ml-nav-trigger:hover,
.marketing-local .ml-nav-link:hover,
.marketing-local .ml-nav-item.is-open .ml-nav-trigger {
  color: var(--alt-fg-strong);
}

.marketing-local .ml-nav-chevron {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.65;
  transition: transform 0.18s ease;
}

.marketing-local .ml-nav-item.is-open .ml-nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.marketing-local .ml-nav-panel {
  position: absolute;
  top: calc(100% - 0.35rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 17.5rem;
  padding: 0.55rem;
  border: 1px solid color-mix(in srgb, #fff 10%, var(--alt-border));
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--alt-card) 92%, #000);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
  z-index: 120;
}

.marketing-local .ml-nav-item.is-open > .ml-nav-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.marketing-local .ml-nav-item:focus-within > .ml-nav-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.marketing-local .ml-nav-panel a {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.marketing-local .ml-nav-panel a:hover,
.marketing-local .ml-nav-panel a:focus-visible {
  background: color-mix(in srgb, #fff 6%, transparent);
}

.marketing-local .ml-nav-panel strong {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--alt-fg-strong);
}

.marketing-local .ml-nav-panel span {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--alt-muted);
}

html[data-theme="light"] .marketing-local .ml-nav-panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--alt-border);
  box-shadow: 0 18px 48px rgba(30, 49, 86, 0.12);
}

html[data-theme="light"] .marketing-local .ml-nav-panel a:hover,
html[data-theme="light"] .marketing-local .ml-nav-panel a:focus-visible {
  background: rgba(30, 49, 86, 0.05);
}

/* Mobile accordion groups */
.marketing-local .ml-mobile-group {
  border-bottom: 1px solid var(--alt-border);
}

.marketing-local .ml-mobile-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--alt-fg);
  cursor: pointer;
  text-align: left;
}

.marketing-local .ml-mobile-group-trigger::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.18s ease;
}

.marketing-local .ml-mobile-group.is-open .ml-mobile-group-trigger::after {
  transform: rotate(225deg);
  opacity: 0.9;
}

.marketing-local .ml-mobile-group-panel {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0 0.85rem 0.65rem;
}

.marketing-local .ml-mobile-group.is-open .ml-mobile-group-panel {
  display: flex;
}

.marketing-local .ml-mobile-group-panel a {
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: var(--alt-muted);
}

.marketing-local .ml-mobile-group-panel a:hover {
  color: var(--alt-fg);
}

/* Hero copy: vertically centered, nudged up and right vs live marketing. */
.marketing-local .alt-hero-glass .alt-hero-content {
  left: 12%;
  top: 50%;
  transform: translateY(-54%);
}

/* Theme + language: icon only, no chip chrome. */
.marketing-local .alt-header .theme-menu-trigger,
.marketing-local .alt-header .alt-lang-trigger {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.marketing-local .alt-header .theme-menu-trigger:hover,
.marketing-local .alt-header .alt-lang-trigger:hover {
  background: transparent !important;
}

/* Theme + language menus: same altitude brand chrome. */
.marketing-local .alt-header .theme-menu-panel,
.marketing-local .alt-header .alt-lang-panel {
  min-width: 8.5rem;
  padding: 0.35rem;
  border: 1px solid var(--alt-border) !important;
  border-radius: 0.5rem !important;
  background: var(--alt-card) !important;
  color: var(--alt-fg) !important;
  box-shadow: 0 12px 32px rgba(8, 14, 24, 0.35) !important;
  backdrop-filter: none !important;
}

.marketing-local .alt-header .theme-menu-option,
.marketing-local .alt-header .alt-lang-panel .theme-menu-option,
.marketing-local .alt-header .alt-lang-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--alt-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
}

.marketing-local .alt-header .theme-menu-option:hover,
.marketing-local .alt-header .alt-lang-panel .theme-menu-option:hover,
.marketing-local .alt-header .alt-lang-panel button:hover {
  background: var(--alt-elevated) !important;
  color: var(--alt-fg) !important;
}

.marketing-local .alt-header .theme-menu-option.is-active,
.marketing-local .alt-header .alt-lang-panel .theme-menu-option.is-active {
  background: var(--alt-elevated) !important;
  color: var(--alt-fg) !important;
}

.marketing-local .alt-header .theme-menu-check {
  color: var(--alt-fg);
}

.marketing-local .alt-hero-glass.holding {
  cursor: grabbing;
}

.marketing-local .alt-hero-glass .alt-hero-canvas {
  pointer-events: auto;
  z-index: 0;
}

.marketing-local .alt-hero-glass .alt-hero-atmosphere {
  background:
    linear-gradient(0deg, var(--alt-bg) 0%, color-mix(in srgb, var(--alt-bg) 55%, transparent) 9%, transparent 26%),
    linear-gradient(90deg, rgba(6, 10, 14, 0.42) 0%, rgba(6, 10, 14, 0.12) 42%, transparent 68%),
    linear-gradient(180deg, rgba(4, 8, 12, 0.1), transparent 12%);
  pointer-events: none;
}

.marketing-local .alt-hero-glass.failed .alt-hero-canvas {
  display: none;
}

html[data-theme="light"] .marketing-local .alt-hero-glass {
  background: radial-gradient(ellipse at 72% 45%, #d7e2ec 0%, #eef3f7 42%, #f7f9fb 80%);
  color: #122033;
}

html[data-theme="light"] .marketing-local .alt-hero-glass .alt-hero-atmosphere {
  background:
    linear-gradient(0deg, var(--alt-bg) 0%, color-mix(in srgb, var(--alt-bg) 55%, transparent) 9%, transparent 26%),
    linear-gradient(90deg, rgba(247, 249, 251, 0.55) 0%, rgba(247, 249, 251, 0.18) 45%, transparent 70%);
}

html[data-theme="light"] .marketing-local .alt-hero-glass h1 {
  color: #0c1624;
  text-shadow: none;
}

html[data-theme="light"] .marketing-local .alt-hero-glass .alt-hero-eyebrow,
html[data-theme="light"] .marketing-local .alt-hero-glass .alt-hero-sub {
  color: rgba(18, 32, 51, 0.62);
}

html[data-theme="light"] .marketing-local .alt-hero-glass .alt-hero-eyebrow-dot {
  background: #1e3156;
  box-shadow:
    0 0 0 3px rgba(30, 49, 86, 0.12),
    0 0 14px 2px rgba(80, 120, 180, 0.28);
}

/* Hero CTA: glass hero follows theme (override live “always-dark hero” CTA rules). */
html[data-theme="dark"] .marketing-local .alt-hero-glass a.alt-btn.alt-hero-cta,
html[data-theme="dark"] .marketing-local .alt-hero-glass .alt-hero-cta {
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  color: #0c0c0c !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(18px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3) !important;
}

html[data-theme="dark"] .marketing-local .alt-hero-glass a.alt-btn.alt-hero-cta:hover,
html[data-theme="dark"] .marketing-local .alt-hero-glass .alt-hero-cta:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #0c0c0c !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="light"] .marketing-local .alt-hero-glass a.alt-btn.alt-hero-cta,
html[data-theme="light"] .marketing-local .alt-hero-glass .alt-hero-cta {
  border: 1px solid rgba(18, 32, 51, 0.22) !important;
  background: #1e3156 !important;
  background-color: #1e3156 !important;
  color: #f7f9fb !important;
  box-shadow: 0 10px 32px rgba(30, 49, 86, 0.18) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
}

html[data-theme="light"] .marketing-local .alt-hero-glass a.alt-btn.alt-hero-cta:hover,
html[data-theme="light"] .marketing-local .alt-hero-glass .alt-hero-cta:hover {
  background: #15233f !important;
  background-color: #15233f !important;
  border-color: rgba(18, 32, 51, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 36px rgba(30, 49, 86, 0.22) !important;
}

/*
 * Live marketing keeps a dark-glass nav over an always-dark hero.
 * Here the hero follows theme, so light mode needs a dark-ink nav.
 */
html[data-theme="light"] body.marketing-local {
  --alt-header-fg: #1e3156;
  --alt-header-muted: #5a6f8c;
  --alt-header-bg-scrolled: rgba(247, 249, 251, 0.88);
  --alt-header-shadow-scrolled: 0 10px 28px rgba(30, 49, 86, 0.1);
}

html[data-theme="light"] .marketing-local .alt-header {
  color: var(--alt-header-fg);
}

html[data-theme="light"] .marketing-local .alt-nav-link,
html[data-theme="light"] .marketing-local .alt-nav-trigger,
html[data-theme="light"] .marketing-local .alt-login {
  color: var(--alt-header-fg);
}

html[data-theme="light"] .marketing-local .alt-nav-link:hover,
html[data-theme="light"] .marketing-local .alt-nav-trigger:hover,
html[data-theme="light"] .marketing-local .alt-login:hover {
  color: #0c1624;
}

html[data-theme="light"] .marketing-local .alt-header a.alt-btn,
html[data-theme="light"] .marketing-local .alt-header .alt-btn {
  border: 1px solid rgba(30, 49, 86, 0.16) !important;
  background: rgba(30, 49, 86, 0.08) !important;
  background-color: rgba(30, 49, 86, 0.08) !important;
  color: #1e3156 !important;
  box-shadow: 0 8px 24px rgba(30, 49, 86, 0.08) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
}

html[data-theme="light"] .marketing-local .alt-header a.alt-btn:hover,
html[data-theme="light"] .marketing-local .alt-header .alt-btn:hover {
  background: rgba(30, 49, 86, 0.14) !important;
  background-color: rgba(30, 49, 86, 0.14) !important;
  border-color: rgba(30, 49, 86, 0.24) !important;
  color: #1e3156 !important;
  box-shadow: 0 10px 28px rgba(30, 49, 86, 0.12) !important;
}

html[data-theme="light"] .marketing-local .alt-header .theme-menu-trigger,
html[data-theme="light"] .marketing-local .alt-header .alt-lang-trigger {
  border: 0 !important;
  background: transparent !important;
  color: #1e3156 !important;
}

html[data-theme="light"] .marketing-local .alt-header .theme-menu-trigger:hover,
html[data-theme="light"] .marketing-local .alt-header .alt-lang-trigger:hover {
  background: transparent !important;
  color: #0c1624 !important;
}

html[data-theme="light"] .marketing-local .alt-header .alt-menu-toggle span {
  background: #1e3156;
}

html[data-theme="light"] .marketing-local .alt-mobile-nav {
  background: rgba(247, 249, 251, 0.96);
  color: #1e3156;
  border-bottom: 1px solid rgba(30, 49, 86, 0.1);
}

html[data-theme="light"] .marketing-local .alt-mobile-nav a {
  color: #1e3156;
}

html[data-theme="light"] .marketing-local .alt-mobile-nav .alt-btn {
  border: 1px solid rgba(30, 49, 86, 0.16) !important;
  background: rgba(30, 49, 86, 0.08) !important;
  color: #1e3156 !important;
}

@media (max-width: 720px) {
  .marketing-local .alt-hero-glass .alt-hero-content {
    left: 6%;
    right: 6%;
    width: auto;
    top: 50%;
    transform: translateY(-52%);
  }
}

/* Steep.app section — layout and motion matched to steep.app SemanticPlatformSection. */
.steep-platform {
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--ml-section-y) 0;
  background: transparent;
  color: var(--alt-fg);
  font-family: "Satoshi", system-ui, sans-serif;
  overflow-x: clip;
  isolation: isolate;
}

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

.steep-platform-glow,
.steep-platform-noise { display: none; }

.steep-platform-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 0 var(--ml-gutter, 1.5rem);
  box-sizing: border-box;
}

.steep-platform-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .steep-platform-stack { margin-bottom: 5rem; }
}

.steep-platform-intro { width: 100%; max-width: 37.25rem; }

.steep-platform-eyebrow {
  margin-bottom: 1.35rem;
  text-decoration: none;
}

.steep-platform-eyebrow svg {
  margin-left: -0.3rem;
  opacity: 0.45;
  transition: opacity 0.15s, transform 0.15s;
}

.steep-platform-eyebrow:hover svg {
  opacity: 0.8;
  transform: translateX(4px);
}

.steep-reveal h2 { margin: 0; }

.steep-line { display: block; }

.steep-word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.steep-platform.is-in .steep-word {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}

.steep-platform-lead {
  margin: 1.25rem 0 0;
  max-width: 36.25rem;
  transform: translateY(40px);
  opacity: 0;
}

.steep-platform.is-in .steep-platform-lead {
  transform: none;
  opacity: 1;
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.128s,
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.128s;
}

.steep-platform-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  height: 2.75rem;
  padding: 0 1.3rem;
  border-radius: var(--alt-btn-radius);
  border: 1px solid color-mix(in srgb, var(--alt-fg) 16%, transparent);
  background: color-mix(in srgb, var(--alt-fg) 8%, transparent);
  color: var(--alt-fg-strong);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(15px);
  opacity: 0;
  transition: background 0.2s, border-color 0.2s;
}

.steep-platform.is-in .steep-platform-cta {
  transform: none;
  opacity: 1;
  transition:
    transform 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.45s,
    opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.45s,
    background 0.2s;
}

.steep-platform-cta:hover {
  background: color-mix(in srgb, var(--alt-fg) 14%, transparent);
  border-color: color-mix(in srgb, var(--alt-fg) 26%, transparent);
}
.steep-platform-cta:active { background: color-mix(in srgb, var(--alt-fg) 18%, transparent); }

.steep-cta-arrow {
  position: relative;
  display: inline-block;
  width: 1rem;
  overflow: hidden;
  font-weight: 400;
  opacity: 0.25;
  transition: opacity 0.2s;
}

.steep-platform-cta:hover .steep-cta-arrow { opacity: 0.5; }

.steep-cta-arrow span { display: inline-block; }

.steep-platform-cta:hover .steep-cta-arrow span {
  animation: steep-arrow-slide 0.45s ease;
}

@keyframes steep-arrow-slide {
  0% { transform: translateX(0); }
  50% { transform: translateX(100%); }
  51% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

.steep-platform-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  margin-top: 1rem;
}

.steep-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: min(282px, 38%);
  margin: 0 1.5rem 0 0;
  justify-content: center;
  flex-shrink: 0;
}

.steep-tab {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 1.25rem 0;
  border: 0;
  background: transparent;
  color: var(--alt-fg-strong);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.steep-tab:hover,
.steep-tab.is-active {
  opacity: 1;
  color: var(--alt-fg-strong);
}

.steep-tab-label { display: block; padding-bottom: 0.125rem; }

.steep-tab-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.steep-tab.is-active .steep-tab-panel { grid-template-rows: 1fr; }

.steep-tab-panel > .steep-tab-desc {
  display: block;
  overflow: hidden;
  min-height: 0;
  max-width: 48rem;
  padding-top: 0.25rem;
  font-size: 1rem;
  line-height: 1.375;
  color: var(--alt-fg-strong);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s;
}

.steep-tab.is-active .steep-tab-desc { opacity: 0.5; }

.steep-tab-rule {
  display: block;
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--alt-fg) 12%, transparent);
}

.steep-tabs-nav,
.steep-tabs-indicator,
.steep-shared-desc { display: none; }

@media (min-width: 1280px) {
  .steep-tabs { margin-right: 2.5rem; width: 282px; }
}

@media (min-width: 1536px) {
  .steep-tabs { margin-right: 4rem; }
}

.steep-platform-media {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

@media (min-width: 1536px) {
  .steep-platform-media { width: min(960px, 100%); flex: 1 1 auto; }
}

.steep-media-in,
.steep-media-out {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 640;
  object-fit: cover;
  border-radius: var(--ml-radius-media);
  background: var(--alt-card);
}

.steep-media-in.is-bordered,
.steep-media-out.is-bordered,
.steep-mobile-list img.is-bordered {
  box-shadow: inset 0 0 0 1px var(--alt-border);
}

.steep-media-in {
  position: relative;
  z-index: 1;
  transform: scale(0.8);
  opacity: 0;
}

.steep-platform.is-in .steep-media-in.is-settled {
  transform: scale(1);
  opacity: 1;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.steep-media-out {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.steep-mobile-list { display: none; }

@media (max-width: 768px) {
  .steep-platform-body { display: none; }
  .steep-platform-cta { display: none; }

  .steep-mobile-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4rem;
    margin-top: 1rem;
  }

  .steep-mobile-list article { display: flex; flex-direction: column; }

  .steep-mobile-list img { margin-bottom: 1.25rem; }

  .steep-mobile-list img {
    width: 100%;
    height: auto;
    border-radius: var(--ml-radius-media);
    aspect-ratio: 960 / 640;
    object-fit: cover;
  }

  .steep-mobile-list h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--alt-fg-strong);
  }

  .steep-mobile-list p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--alt-muted);
  }
}

.steep-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2.5rem;
  color: var(--alt-fg-strong);
}

@media (min-width: 640px) {
  .steep-feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .steep-feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0 2rem;
  }
}

.steep-feature-grid article {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  padding: 0.5rem 0;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .steep-feature-grid article { padding: 1rem 0; }
}

@media (min-width: 1024px) {
  .steep-feature-grid article { flex-direction: column; }
}

@media (min-width: 1280px) {
  .steep-feature-grid article {
    padding-right: 1rem;
    border-left: 1px solid var(--alt-border);
    padding-left: 1.5rem;
  }

  .steep-feature-grid article:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

.steep-feature-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--alt-fg-strong);
}

@media (min-width: 768px) {
  .steep-feature-icon { width: 2.25rem; height: 2.25rem; }
}

.steep-feature-icon svg { width: 100%; height: 100%; }

.steep-feature-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--alt-fg-strong);
}

.steep-feature-grid p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--alt-muted);
}

/* Latest Releases — OpenAI featured row: wide cover on the left, stacked releases on the right. */
main > .polaris-releases {
  width: min(100%, 80rem);
  margin: 0 auto;
  box-sizing: border-box;
  padding: var(--ml-section-y) var(--ml-gutter, 1.5rem);
  gap: 0;
}

main > .polaris-releases > .polaris-releases-label {
  align-self: flex-start;
  margin: 0 0 1.75rem;
}

.polaris-release-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.polaris-release-feature-media {
  border-radius: var(--ml-radius-media);
  overflow: hidden;
  border: 1px solid var(--alt-border);
  background: var(--alt-bg, #070a0d);
}

/* Match site shell — shared polaris-horizon.css defaults to #080b0f */
.marketing-local .polaris-horizon,
.apex-local .polaris-horizon {
  --ph-bg: var(--alt-bg, #070a0d);
  background: var(--ph-bg);
}

.marketing-local .polaris-releases-card,
.apex-local .polaris-releases-card {
  background: var(--alt-bg, #070a0d);
}

/* Grain "screen" blend was lifting the hero greyer than the page */
.marketing-local .polaris-horizon-grain,
.apex-local .polaris-horizon-grain {
  opacity: 0;
  visibility: hidden;
}

.marketing-local .polaris-horizon-glow,
.apex-local .polaris-horizon-glow {
  background: radial-gradient(
    ellipse 46% 16% at 50% 102%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(173, 186, 199, 0.07) 16%,
    rgba(88, 102, 119, 0.05) 32%,
    transparent 68%
  );
  opacity: 0.65;
}

.marketing-local .polaris-horizon-rim,
.apex-local .polaris-horizon-rim {
  border-color: rgba(203, 217, 234, 0.16);
  box-shadow: 0 -4px 20px rgba(165, 188, 215, 0.05);
}

.polaris-release-feature-media .polaris-horizon {
  min-height: 600px;
  padding: 2.6rem 8% 2rem;
}

.polaris-release-feature-media .polaris-horizon-model {
  margin-top: 1.25rem;
}

.polaris-release-feature-media .polaris-horizon-title {
  font-size: clamp(3.5rem, 6.5vw, 6.35rem);
  margin: 0.45rem 0 0.85rem;
}

.polaris-release-copy,
.polaris-release-item,
.polaris-release-more {
  color: var(--alt-fg-strong, #fff);
  text-decoration: none;
}

.polaris-release-feature-title {
  margin: 1rem 0 0.35rem;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--alt-fg-strong, #fff);
}

.polaris-release-meta {
  display: flex;
  gap: 0.7rem;
  margin: 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--alt-fg-strong, #fff);
}

.polaris-release-meta .is-muted {
  color: var(--alt-muted, rgba(255, 255, 255, 0.6));
}

.polaris-release-side {
  display: grid;
  gap: 2rem;
}

.polaris-release-item h3 {
  margin: 0.75rem 0 0.3rem;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--alt-fg-strong, #fff);
}

.polaris-release-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--ml-radius-media);
  box-shadow: inset 0 0 0 1px var(--alt-border);
  background: #10141c;
}

.polaris-release-thumb-a {
  background:
    radial-gradient(circle at 72% 28%, #6d8cff 0%, transparent 36%),
    radial-gradient(circle at 30% 78%, #1a2744 0%, transparent 46%),
    #0c1018;
}

.polaris-release-thumb-b {
  background:
    radial-gradient(circle at 50% 62%, #f2c14e 0 18%, transparent 19%),
    radial-gradient(circle at 50% 62%, transparent 0 28%, #142033 29% 100%),
    #070b12;
}

.polaris-release-thumb-c {
  background:
    linear-gradient(color-mix(in srgb, var(--alt-fg) 22%, transparent), color-mix(in srgb, var(--alt-fg) 22%, transparent)) 18% 42% / 22% 22% no-repeat,
    linear-gradient(var(--alt-fg-strong), var(--alt-fg-strong)) 62% 38% / 28% 28% no-repeat,
    var(--alt-elevated);
}

.polaris-release-item:hover .polaris-release-thumb {
  filter: brightness(1.08);
}

.polaris-release-more {
  justify-self: start;
  margin-top: -0.65rem;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

.polaris-release-more:hover {
  text-decoration: underline;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .polaris-release-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .polaris-release-more {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .polaris-release-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    column-gap: 1.75rem;
  }

  .polaris-release-feature {
    position: sticky;
    top: 5.5rem;
  }

  .polaris-release-side {
    gap: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steep-word,
  .steep-platform-lead,
  .steep-platform-cta,
  .steep-media-in {
    transform: none;
    opacity: 1;
    transition: none;
  }
}


/* —— Inner marketing pages (local apex) —— */
.apex-page .alt-header {
  background: var(--alt-header-bg-scrolled, rgba(10, 16, 24, 0.88));
  border-bottom-color: var(--alt-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.apex-page-main {
  min-height: 70vh;
  padding: calc(var(--alt-header-h, 4rem) + 3rem) var(--ml-gutter, 1.5rem) 4rem;
  max-width: 80rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.apex-page-hero h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--alt-fg-strong);
}

.apex-page-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--alt-muted);
}

.apex-page-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--alt-muted);
}

.apex-page-note {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--alt-muted);
}

.apex-page-note code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--alt-fg) 8%, transparent);
}
