@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-4.001-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --font: Inter, Arial, sans-serif;
  --body-size: 1.125rem;
  --hero-size: 3.25rem;
  --section-size: 2.25rem;
  --white: #fff;
  --light-blue: #98c3ea;
  --accent: #69a9e8;
  --dark: #1a2347;
  --navy: #040a21;
  --gradient-blue: #152b46;
  --divider: #294566;
  --features-gradient: linear-gradient(var(--navy) 33%, #070f29 64%, #102443 82%, var(--gradient-blue));
  --how-gradient: linear-gradient(var(--gradient-blue), #0f213f 28%, #070f28 55%, var(--navy) 84%);
  --canvas-max-width: 1200px;
  --canvas-surround: #030610;
  --content-width: 920px;
  --wide-content-width: 1020px;
  --wide-content-gutter: clamp(24px, max(100cqw / 13.5, (100cqw - 120px) / 12), 90px);
  --gutter: clamp(24px, 7.407vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas-surround); color: var(--white); font: 400 var(--body-size)/1.23 var(--font); }
h1, h2, h3, p, ul { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: var(--section-size); line-height: 1.06; }
h1 span, h2 span, h3 { color: var(--accent); }
h3 { font-size: inherit; font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 4px; }
[hidden] { display: none !important; }

.page-canvas {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: var(--canvas-max-width);
  margin-inline: auto;
  background: var(--navy);
}

.wrap { width: min(var(--content-width), 100% - 2 * var(--gutter)); margin-inline: auto; }

.site-header .wrap,
.features .wrap,
.how .wrap,
.site-footer {
  --content-width: var(--wide-content-width);
  /* 80px at the reference width, rising to 90px at the 1200px canvas cap. */
  --gutter: var(--wide-content-gutter);
}

.skip-link { position: fixed; z-index: 4; top: 12px; left: 12px; padding: 12px; background: var(--dark); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 2; inset: 0 0 auto; padding-block: 37px; }
.site-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site-bar img { width: 163px; }
.site-bar ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 32.5px; padding: 0; list-style: none; color: var(--light-blue); letter-spacing: -.025em; }
.site-bar nav a { text-decoration: none; }
.site-bar nav a:hover { text-decoration: underline; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark) url("assets/car-interior-rhd-2560w-q90.webp") 65% 0 / max(100%, 1250px) auto no-repeat;
}
.hero-inner { min-height: 648px; padding-top: 102px; }
.hero-copy {
  position: relative;
  z-index: 1;
  margin-inline-start: auto;
  padding: 39px 25px 40px 32px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -34px -62px -20px -34px;
  background:
    radial-gradient(
      ellipse 31% 28% at 32% 71%,
      rgb(0 0 8 / 70%) 48%,
      rgb(0 0 8 / 50%) 70%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 50% 50% at center,
      rgb(0 0 8 / 74%) 32%,
      rgb(0 0 8 / 63%) 58%,
      rgb(0 0 8 / 30%) 80%,
      transparent 100%
    );
  pointer-events: none;
}

.hero h1 { font-size: var(--hero-size); line-height: .94; }
.hero p { margin-top: 15px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.028em; }

.demo {
  --bezel-width: 900px;
  --screen-right: 3.8%;
  --screen-top: 4.2%;
  --screen-radius: 13px;
  /* Leave room below the menu bar for the tallest recorded app view. */
  --video-width: clamp(840px, 110cqw, 928px);
  --video-right: clamp(-12px, 5cqw - 48px, -4px);
  --video-top: 0px;
  position: absolute;
  top: 91px;
  width: var(--bezel-width);
  aspect-ratio: 2271 / 1982;
}
.demo-bezel { position: relative; width: 100%; pointer-events: none; }
.demo-screen {
  position: absolute;
  inset: var(--screen-top) var(--screen-right) 0 0;
  overflow: hidden;
  border-top-right-radius: var(--screen-radius);
  background: #000;
}
.demo-screen video, .demo-poster {
  position: absolute;
  max-width: none;
  width: var(--video-width);
  height: auto;
  right: var(--video-right);
  top: var(--video-top);
}
.demo-toggle {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #98c3ea80;
  border-radius: 50%;
  background: #040a21c9;
  color: var(--white);
  cursor: pointer;
}
.demo-toggle span { width: 0; height: 0; margin-left: 2px; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.demo-toggle[data-playing] span { width: 9px; height: 11px; margin: 0; border: 0; border-inline: 3px solid currentColor; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.features h2, .macos h2 { overflow-wrap: anywhere; }

.features { padding: 52px 0 72px; background: var(--features-gradient); }
.features-intro { max-width: 440px; margin-top: 16px; letter-spacing: -.018em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 50px; }
.feature-grid img { width: 106.5%; max-width: none; margin-inline: -3.25%; filter: drop-shadow(0 13px 15px #0007); }
.feature-grid h3 { margin-top: 28px; }
.feature-grid p { margin-top: 8px; letter-spacing: -.018em; }

.macos {
  background:
    linear-gradient(to right, transparent calc(100% - 36px), var(--canvas-surround)),
    var(--navy) var(--macos-photo, none) 43% 87.6% / max(100%, 1420px) auto no-repeat;
}
.macos[data-load-photo] { --macos-photo: url("assets/ix3-rear-3096w-q86.webp"); }
.macos-inner { min-height: 357px; display: grid; grid-template-columns: 57% 43%; padding: 43px 0 45px; }
.macos-inner > div { grid-column: 2; }
.macos h2 { margin-top: 20px; }
.macos p { max-width: 365px; margin-top: 17px; letter-spacing: -.018em; }

.how { padding: 64px 0 63px; background: var(--how-gradient); }
.steps {
  --step-icon-size: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.steps li { display: grid; grid-template-rows: auto 1fr; gap: 12px; }
.step-icon {
  width: var(--step-icon-size);
  height: var(--step-icon-size);
  background-color: #9bc7e8;
  mask: var(--step-icon) left center / contain no-repeat;
}
.steps p { margin-top: 5px; letter-spacing: -.018em; }

.data-note {
  max-width: 570px;
  margin-top: 32px;
  color: var(--light-blue);
  font-size: .875rem;
}

.hero p,
.features-intro,
.feature-grid p,
.macos p,
.how p { line-height: 1.4; }

.story { padding-block: clamp(36px, 5cqw, 60px) clamp(48px, 5cqw, 64px); }
.story .wrap, .contact .wrap { --content-width: 640px; }
.story h2 { margin-bottom: 24px; }
.story p, .contact p { line-height: 1.55; text-wrap: pretty; }
.story p + p { margin-top: 1em; }
.story-signature { margin-top: 28px; }

.contact { padding-bottom: clamp(52px, 8cqw, 96px); }
.contact h2 { font-size: clamp(1.375rem, 2.5cqw, 1.625rem); }
.contact p { margin-top: 12px; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #9bc7e8;
  text-decoration: none;
}

.contact-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-envelope {
  position: relative;
  width: 18px;
  height: 13px;
  border: 1px solid;
  overflow: hidden;
}

.contact-envelope::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
}

.site-footer { border-top: 1px solid var(--divider); padding: 39px 0 29px; }
.site-footer .site-bar { align-items: flex-start; }
.site-footer nav { margin-top: 4px; }
.footer-brand { flex: none; }
.site-footer p { max-width: 660px; margin-top: 24px; color: var(--light-blue); font-size: .8125rem; }
.site-footer .footer-copyright { margin-top: 8px; }

@media (width >= 820px) {
  .hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 132px;
    background: linear-gradient(
      to bottom,
      rgb(0 0 8 / 53%),
      rgb(0 0 8 / 50%) 52px,
      transparent
    );
    pointer-events: none;
  }
}

@media (width >= 880px) {
  .macos-inner > div {
    position: relative;
    isolation: isolate;
  }

  .macos-inner > div::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 70px -20px -22px -28px;
    background: rgb(0 0 8 / 52%);
    mask-image:
      linear-gradient(to right, transparent, black 26px, black calc(100% - 18px), transparent),
      linear-gradient(to bottom, transparent, black 14px, black calc(100% - 20px), transparent);
    mask-composite: intersect;
    pointer-events: none;
  }
}

@media (min-width: 1000px) {
  .hero {
    --visible-bezel-width: 46cqw;
    --bezel-edge-inset: 13px;
    --hero-panel-gap: 35px;
  }

  .hero-inner {
    --content-width: var(--wide-content-width);
    --gutter: var(--wide-content-gutter);
  }

  .hero-copy {
    width: calc(100cqw - var(--visible-bezel-width) - var(--gutter) - var(--hero-panel-gap));
  }

  .demo {
    /* Keep the notch outside the canvas while revealing more of the same display. */
    --bezel-width: 930px;
    right: calc(100% - var(--visible-bezel-width) - var(--bezel-edge-inset));
  }
}

@media (1000px <= width < 1080px) {
  .hero p { font-size: 1.375rem; text-wrap: pretty; }
}

@media (max-width: 950px) {
  :root { --hero-size: clamp(2.45rem, 5.1vw, 3.25rem); --section-size: clamp(1.875rem, 3.8vw, 2.25rem); }
  .site-bar ul { column-gap: 20.8px; font-size: 1rem; }
  .feature-grid { gap: 24px; }
}

@media (width < 1000px) {
  .hero {
    background-size: cover;
    background-position: 65% center;
  }

  .hero-inner {
    min-height: 0;
    padding-bottom: clamp(20px, 4cqw, 32px);
  }

  .hero-copy {
    width: min(100%, 540px);
    margin-inline: 0;
    padding: clamp(18px, 4cqw, 32px);
  }

  .hero h1 { font-size: clamp(2rem, 5.5cqw, 3rem); }
  .hero p { font-size: clamp(1rem, 2.5cqw, 1.25rem); }

  .demo {
    /* Reveal the right side of the bezel and leave room for the full Status view. */
    --visible-display: min(86cqw, 400px);
    --bezel-width: calc(var(--visible-display) * 1.75);
    --screen-offset: calc(var(--bezel-width) * 0.037);
    --screen-top: var(--screen-offset);
    --screen-radius: clamp(6px, 2cqw, 13px);
    --video-width: calc(var(--visible-display) * 2.19);
    --video-right: -3px;
    position: relative;
    inset: auto;
    left: calc(var(--visible-display) - var(--bezel-width) * 0.9859);
    height: calc(var(--screen-offset) + var(--video-width) * 0.582);
  }

  .demo-toggle {
    left: 4px;
    bottom: 6px;
    width: clamp(28px, 8cqw, 36px);
    height: clamp(28px, 8cqw, 36px);
  }

  .demo-toggle:focus-visible { outline-offset: 2px; }
}

@media (width < 880px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps li {
    grid-template-columns: var(--step-icon-size) minmax(0, 500px);
    grid-template-rows: auto;
    align-items: start;
    gap: 16px;
  }


  .feature-grid {
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
    gap: 38px;
    margin-top: 35px;
  }

  .feature-grid img { width: 100%; margin-inline: 0; }
  .feature-grid h3 { margin-top: 16px; }

  .macos {
    --macos-photo-width: max(880px, 170cqw);
    --macos-photo-height: calc(65px + var(--macos-photo-width) * 0.172);
    position: relative;
    background: #030817;
  }

  .macos::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--macos-photo-height);
    background:
      linear-gradient(to bottom, transparent 72%, #030817 100%),
      var(--macos-photo, none)
        calc(50% + var(--macos-photo-width) * 0.2)
        calc(30px - var(--macos-photo-width) * 0.54)
        / var(--macos-photo-width) auto no-repeat;
  }

  .macos-inner {
    position: relative;
    display: block;
    min-height: 0;
    padding: var(--macos-photo-height) 0 34px;
  }

  .macos h2 { margin-top: 13px; }
}

@media (width < 820px) {
  .page-canvas { --menu-transition-duration: 220ms; }

  .page-canvas::after {
    content: "";
    position: fixed;
    z-index: 2;
    inset: 0;
    background: rgb(0 0 8 / 42%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--menu-transition-duration) ease;
  }

  .page-canvas:has(.menu-toggle[aria-expanded="true"])::after { opacity: 1; }

  .site-header {
    z-index: 3;
    position: relative;
    padding-block: 14px;
    background: var(--navy);
  }

  .site-header .site-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 16px;
    min-height: 44px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    color: var(--light-blue);
    border: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    position: relative;
    width: 22px;
    height: 2px;
    background-color: currentColor;
    transition: background-color var(--menu-transition-duration) ease;
  }

  .menu-toggle span::before,
  .menu-toggle span::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: currentColor;
    transition: transform var(--menu-transition-duration) ease;
  }

  .menu-toggle span::before { transform: translateY(-6px); }
  .menu-toggle span::after { transform: translateY(6px); }
  .menu-toggle[aria-expanded="true"] span { background-color: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

  .site-header nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    grid-template-rows: 0fr;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows var(--menu-transition-duration) ease, opacity var(--menu-transition-duration) ease, visibility 0s linear var(--menu-transition-duration);
  }

  .menu-toggle[aria-expanded="true"] + nav {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-header .site-bar ul {
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding-inline: var(--wide-content-gutter);
    min-height: 0;
    overflow: hidden;
  }

  .site-header nav li:first-child { padding-top: 8px; }
  .site-header nav li:last-child { padding-bottom: 24px; }
  .site-header nav :is(a, span) { display: block; padding-block: 9px; }

  .hero-inner { padding-top: 16px; }
}

@media (max-width: 720px) {
  .site-footer .site-bar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-footer .site-bar ul { justify-content: flex-start; }
  .features { padding-block: 48px 56px; }
  .how { padding: 46px 0 36px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-canvas::after,
  .site-header nav,
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after { transition: none; }
}
