:root {
  --bg: #f5f5f7;
  --white: #ffffff;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --text-on-dark: #f5f5f7;
  --text-on-dark-soft: rgba(245, 245, 247, 0.78);
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(251, 251, 253, 0.78);
  --accent-link: #ff6a00;
  --accent-link-hover: #e45f00;
  --hero-black: #000000;
  --hero-dark: #101113;
  --hero-silver: #fbfbfd;
  --surface: #ffffff;
  --surface-muted: #fafafc;
  --surface-sand: linear-gradient(180deg, #f8f1e7 0%, #fbfbfd 100%);
  --surface-blue: linear-gradient(180deg, #eaf3ff 0%, #f7fbff 100%);
  --radius: 28px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 38px 90px rgba(0, 0, 0, 0.28);
  --container: min(1440px, calc(100vw - 32px));
  --content: min(1120px, calc(100vw - 40px));
  --nav-height: 52px;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Helvetica Neue", Arial, sans-serif;
  --transition: 260ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(24px);
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.global-nav-inner {
  width: var(--content);
  min-height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.download-cta,
.menu a,
.menu-toggle {
  font-size: 0.75rem;
  letter-spacing: -0.01em;
}

.download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-link);
  color: #ffffff;
  font-weight: 600;
  transition: background-color var(--transition), transform var(--transition);
}

.download-cta:hover,
.download-cta:focus-visible {
  background: var(--accent-link-hover);
  transform: translateY(-1px);
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  color: var(--text);
  opacity: 0.88;
  transition: opacity var(--transition);
}

.menu a:hover,
.menu a:focus-visible {
  opacity: 1;
}

.menu-toggle {
  display: none;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

main {
  display: grid;
  gap: 12px;
  padding: 12px 12px 0;
}

.hero,
.promo-grid-section,
.platform-section {
  border-radius: 30px;
  overflow: hidden;
}

.hero {
  min-height: min(92vh, 980px);
  padding: 72px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.theme-dark {
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 116, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #0d0e11 0%, #000000 100%);
  color: var(--text-on-dark);
}

.theme-light {
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  color: var(--text);
}

.theme-silver {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: var(--text);
}

.hero-primary {
  padding-top: 86px;
}

.hero-secondary,
.hero-tertiary {
  padding-bottom: 48px;
}

.hero-compact {
  min-height: 540px;
  justify-content: center;
  padding: 82px 0;
}

.hero-copy,
.platform-copy {
  width: min(980px, calc(100vw - 48px));
  margin: 0 auto;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-logo img {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.theme-dark .eyebrow {
  color: rgba(245, 245, 247, 0.82);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(3.6rem, 9vw, 6.9rem);
}

h2 {
  font-size: clamp(2.8rem, 7vw, 5.3rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.subhead,
.card-copy,
.context-card p,
.site-footer p,
.automation-line strong,
.automation-steps p {
  font-size: clamp(1.05rem, 1.9vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.subhead {
  max-width: 840px;
  margin: 16px auto 0;
  color: var(--text-soft);
}

.theme-dark .subhead {
  color: var(--text-on-dark-soft);
}

.link-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.product-link {
  color: var(--accent-link);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.3;
}

.product-link::after {
  content: " ›";
}

.product-link:hover,
.product-link:focus-visible {
  color: var(--accent-link-hover);
}

.device-stage {
  width: min(1180px, calc(100vw - 72px));
  margin: 54px auto 0;
  padding-bottom: 44px;
}

.stage-screen {
  position: relative;
  min-height: 600px;
  border-radius: 34px 34px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #1d222d 0%, #0f1217 100%);
  box-shadow: var(--shadow-deep);
}

.stage-window {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.window-back {
  inset: 72px auto auto 56px;
  width: min(420px, 38vw);
  transform: rotate(-4deg);
}

.window-front {
  inset: 46px 50px 42px auto;
  width: min(720px, 62vw);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.9);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}

.window-body-sheet {
  padding: 26px;
  background: linear-gradient(180deg, #f5f8fc 0%, #e8edf6 100%);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #4a4f58;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sheet-grid span {
  display: block;
  height: 58px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.overlay-shell {
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f8 100%);
  color: var(--text);
}

.overlay-shell-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: #7b7c80;
}

.chat-bubble {
  max-width: 88%;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.45;
}

.chat-bubble.user {
  margin-left: auto;
  background: #0071e3;
  color: #ffffff;
}

.chat-bubble.assistant {
  background: #f1f1f4;
}

.tool-pills,
.logo-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tool-pills {
  justify-content: flex-start;
  margin-top: 16px;
}

.tool-pills span,
.voice-chip,
.logo-band span {
  border-radius: 999px;
  white-space: nowrap;
}

.tool-pills span {
  padding: 8px 12px;
  background: #eef1f6;
  color: #4f5562;
  font-size: 0.85rem;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #ffffff;
  color: #86868b;
  text-align: left;
}

.input-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06c;
}

.voice-chip {
  margin-left: auto;
  padding: 8px 12px;
  background: #eef5ff;
  color: #06c;
  font-size: 0.82rem;
}

.context-strip {
  width: var(--content);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.context-card {
  min-height: 280px;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: left;
}

.context-card.emphasis {
  background: linear-gradient(180deg, #111214 0%, #1b1d20 100%);
  color: var(--text-on-dark);
}

.context-card.emphasis p {
  color: var(--text-on-dark-soft);
}

.context-label,
.automation-line span {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

.context-card.emphasis .context-label {
  color: rgba(245, 245, 247, 0.72);
}

.context-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}

.context-card p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.automation-stage {
  width: var(--content);
  margin: 54px auto 0;
  padding: 0 0 24px;
}

.automation-line {
  max-width: 920px;
  margin: 0 auto 24px;
}

.automation-line strong {
  display: block;
  color: var(--text-on-dark);
  font-weight: 500;
}

.automation-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.automation-steps article {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  text-align: left;
}

.automation-steps span {
  display: block;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: rgba(245, 245, 247, 0.62);
}

.automation-steps h3 {
  font-size: 1.45rem;
}

.automation-steps p {
  margin-top: 10px;
  color: var(--text-on-dark-soft);
  font-size: 1rem;
  line-height: 1.52;
}

.promo-grid-section {
  padding: 0 0 0;
}

.grid-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.promo-card {
  min-height: 600px;
  padding: 58px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.promo-card.theme-white {
  background: #ffffff;
  color: var(--text);
}

.promo-card.theme-black {
  background: linear-gradient(180deg, #000000 0%, #151517 100%);
  color: var(--text-on-dark);
}

.promo-card.theme-sand {
  background: var(--surface-sand);
  color: var(--text);
}

.promo-card.theme-blue {
  background: var(--surface-blue);
  color: var(--text);
}

.promo-card .eyebrow {
  margin-bottom: 8px;
}

.promo-card.theme-black .eyebrow,
.promo-card.theme-black .card-copy {
  color: var(--text-on-dark-soft);
}

.promo-card h3 {
  max-width: 14ch;
}

.card-copy {
  max-width: 24ch;
  margin-top: 14px;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.platform-section {
  padding: 92px 0 74px;
}

.logo-band {
  width: var(--content);
  margin: 48px auto 0;
}

.logo-band span {
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #4f4f53;
}

.site-footer {
  padding: 18px 0 40px;
}

.footer-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 18px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.site-footer p + p {
  margin-top: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1068px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .stage-screen {
    min-height: 520px;
  }

  .window-back {
    left: 24px;
    width: min(320px, 38vw);
  }

  .window-front {
    right: 24px;
    width: min(620px, 64vw);
  }

  .context-strip,
  .automation-steps,
  .grid-shell {
    grid-template-columns: 1fr;
  }

  .promo-card {
    min-height: 420px;
  }
}

@media (max-width: 834px) {
  .menu-toggle {
    display: inline-block;
  }

  .menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 20px;
    background: rgba(251, 251, 253, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  main {
    padding: 8px 8px 0;
  }

  .hero,
  .promo-grid-section,
  .platform-section {
    border-radius: 24px;
  }

  .device-stage {
    width: calc(100vw - 32px);
  }

  .stage-screen {
    min-height: auto;
    padding: 20px;
    display: grid;
    gap: 16px;
  }

  .stage-window {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .promo-card {
    padding: 40px 24px;
  }
}

@media (max-width: 734px) {
  .hero-copy,
  .platform-copy,
  .context-strip,
  .automation-stage,
  .logo-band,
  .footer-inner {
    width: calc(100vw - 40px);
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .download-cta {
    min-height: 30px;
    padding: 0 12px;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .hero-logo img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .subhead {
    font-size: 1.16rem;
    line-height: 1.42;
  }

  .context-card,
  .automation-steps article {
    min-height: auto;
  }

  .link-row {
    gap: 16px;
  }

  .product-link {
    font-size: 1.08rem;
  }

  .site-footer {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
