:root {
  color-scheme: light;
  --morning-canvas: #f7efe5;
  --warm-paper: #fff8ef;
  --soft-ivory: #fffcf6;
  --road-charcoal: #33261e;
  --pit-shadow: #47362a;
  --burnt-orange: #d9611e;
  --orange-veil: #fbe1cf;
  --carbon-ink: #261d17;
  --muted-taupe: #75675c;
  --warm-line: #e5d4c3;
  --cream-text: #fff7ea;
  --soft-shadow: 0 22px 70px rgba(51, 38, 30, 0.12);
  --deep-shadow: 0 34px 90px rgba(38, 29, 23, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#app,
#sorties,
#garage,
#contact {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--morning-canvas);
  color: var(--carbon-ink);
  font-family: "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0;
}

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

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

.site-header,
.brand,
.site-header nav,
.hero-actions,
.hero-facts,
.phone-status,
.intro-band,
.organize-grid,
footer {
  display: flex;
  align-items: center;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 16px;
  left: 50%;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 40px));
  min-height: 58px;
  padding: 8px 10px 8px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(229, 212, 195, 0.76);
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(51, 38, 30, 0.08);
}

.brand {
  gap: 10px;
  color: var(--carbon-ink);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 14px;
  background: var(--road-charcoal);
  color: var(--cream-text);
  font-variant-numeric: tabular-nums;
}

.site-header nav {
  gap: 24px;
  color: var(--muted-taupe);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-header nav a,
.header-action,
.primary-action,
.secondary-action {
  transition:
    transform 180ms ease-out,
    border-color 180ms ease-out,
    background-color 180ms ease-out,
    color 180ms ease-out;
}

.site-header nav a:hover {
  color: var(--burnt-orange);
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-weight: 800;
}

.header-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--warm-line);
  background: rgba(255, 252, 246, 0.72);
}

.header-action:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action {
  padding: 0 20px;
  border: 0;
  background: var(--burnt-orange);
  color: var(--warm-paper);
}

.secondary-action {
  padding: 0 20px;
  border: 1px solid var(--warm-line);
  background: rgba(255, 248, 239, 0.16);
}

.secondary-action.dark {
  color: var(--cream-text);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background: var(--road-charcoal);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(38, 29, 23, 0.84), rgba(38, 29, 23, 0.38) 46%, rgba(38, 29, 23, 0.12)),
    linear-gradient(180deg, rgba(38, 29, 23, 0.42), rgba(38, 29, 23, 0.02) 42%, rgba(247, 239, 229, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: 170px 0 142px;
  color: var(--cream-text);
}

.hero-content p:not(.section-kicker) {
  max-width: 54ch;
  color: rgba(255, 247, 234, 0.86);
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.intro-band,
.app-showcase,
.image-story,
.garage-section,
.organize-section,
.launch-card,
footer {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.intro-band {
  justify-content: space-between;
  gap: 20px;
  margin-top: -42px;
  margin-bottom: 82px;
  padding: 18px 22px;
  border: 1px solid var(--warm-line);
  border-radius: 24px;
  background: var(--warm-paper);
  box-shadow: var(--soft-shadow);
}

.intro-band span {
  flex: 0 0 auto;
  color: var(--burnt-orange);
  font-weight: 800;
}

.intro-band p {
  margin-bottom: 0;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--burnt-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 3.2rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.16;
  letter-spacing: 0;
}

p {
  max-width: 65ch;
  color: var(--muted-taupe);
  line-height: 1.6;
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  gap: 32px;
  align-items: center;
  padding: 18px 0 92px;
}

.showcase-copy {
  position: sticky;
  top: 118px;
  align-self: start;
}

.hero-facts {
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.hero-facts div {
  min-width: 156px;
  padding: 14px 16px;
  border: 1px solid var(--warm-line);
  border-radius: 18px;
  background: rgba(255, 248, 239, 0.74);
}

.hero-facts dt {
  margin-bottom: 4px;
  color: var(--carbon-ink);
  font-weight: 800;
}

.hero-facts dd {
  margin-bottom: 0;
  color: var(--muted-taupe);
  font-size: 0.92rem;
}

.product-visual {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--warm-line);
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(51, 38, 30, 0.95), rgba(71, 54, 42, 0.92)),
    var(--road-charcoal);
  box-shadow: var(--soft-shadow);
}

.product-visual::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -130px;
  height: 360px;
  transform: rotate(-5deg);
  border-radius: 50% 50% 0 0;
  background: var(--morning-canvas);
}

.phone-frame {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 247, 234, 0.24);
  border-radius: 34px;
  box-shadow: var(--deep-shadow);
}

.main-phone {
  top: 58px;
  left: 56px;
  width: 330px;
  min-height: 550px;
  padding: 18px;
  background: var(--warm-paper);
}

.side-phone {
  right: 52px;
  bottom: 72px;
  width: 236px;
  min-height: 330px;
  padding: 18px;
  background: var(--road-charcoal);
  color: var(--cream-text);
}

.phone-status {
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted-taupe);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.phone-status strong {
  color: var(--carbon-ink);
}

.app-search {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--warm-line);
  border-radius: 18px;
  background: var(--soft-ivory);
}

.app-search span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--orange-veil);
}

.app-search p {
  margin-bottom: 0;
  color: var(--muted-taupe);
}

.app-card {
  padding: 18px;
  border: 1px solid var(--warm-line);
  border-radius: 24px;
  background: var(--soft-ivory);
}

.app-card h3 {
  margin: 18px 0 8px;
  font-size: 1.65rem;
}

.app-card p,
.side-phone p {
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.side-phone p {
  color: rgba(255, 247, 234, 0.76);
}

.side-phone h3 {
  margin-top: 18px;
  font-size: 2rem;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orange-veil);
  color: var(--burnt-orange);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.route-map {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255, 252, 246, 0.88), rgba(251, 225, 207, 0.84)),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(229, 212, 195, 0.48) 30px 31px),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(229, 212, 195, 0.48) 30px 31px);
}

.route-line {
  position: absolute;
  inset: 38px 34px 42px 34px;
  border: 4px solid var(--road-charcoal);
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 38px;
}

.route-line::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -4px;
  width: 78px;
  border-bottom: 4px solid var(--road-charcoal);
}

.route-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid var(--warm-paper);
  border-radius: 50%;
  background: var(--burnt-orange);
}

.route-pin.start {
  left: 28px;
  top: 30px;
}

.route-pin.end {
  right: 32px;
  bottom: 34px;
}

.car-shape {
  position: relative;
  display: block;
  width: 162px;
  height: 74px;
  margin-top: 52px;
  border-radius: 38px 44px 20px 20px;
  background: var(--burnt-orange);
}

.car-shape::before,
.car-shape::after {
  content: "";
  position: absolute;
  bottom: 38px;
  width: 34px;
  height: 34px;
  border: 8px solid var(--pit-shadow);
  border-radius: 50%;
  background: var(--road-charcoal);
}

.car-shape::before {
  left: 42px;
}

.car-shape::after {
  right: 26px;
}

.image-story,
.garage-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 76px 0;
}

.story-media,
.garage-photo {
  overflow: hidden;
  border: 1px solid var(--warm-line);
  border-radius: 32px;
  box-shadow: var(--soft-shadow);
}

.story-media img,
.garage-photo img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 900ms ease-out;
}

.story-media.is-visible img,
.garage-photo.is-visible img {
  transform: scale(1);
}

.story-copy,
.garage-copy {
  max-width: 520px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.feature-list article,
.organize-grid article,
.launch-card {
  border: 1px solid var(--warm-line);
  border-radius: 24px;
  background: var(--warm-paper);
  box-shadow: var(--soft-shadow);
}

.feature-list article {
  padding: 22px;
}

.feature-list p,
.organize-grid p,
.launch-card p {
  margin-bottom: 0;
}

.garage-section {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.garage-photo {
  order: 2;
}

.organize-section {
  padding: 72px 0;
}

.section-title {
  max-width: 650px;
  margin-bottom: 22px;
}

.organize-grid {
  align-items: stretch;
  gap: 16px;
}

.organize-grid article {
  flex: 1;
  min-height: 200px;
  padding: 24px;
}

.organize-grid span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 16px;
  background: var(--orange-veil);
  color: var(--burnt-orange);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
  padding: 34px;
}

footer {
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--warm-line);
  color: var(--muted-taupe);
}

footer span:first-child {
  color: var(--carbon-ink);
  font-weight: 900;
}

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

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 700ms ease-out,
    transform 700ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.organize-grid .reveal:nth-child(2) {
  --reveal-delay: 90ms;
}

.organize-grid .reveal:nth-child(3) {
  --reveal-delay: 180ms;
}

@media (max-width: 980px) {
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    padding-top: 140px;
  }

  h1 {
    font-size: 4.3rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .app-showcase,
  .image-story,
  .garage-section {
    grid-template-columns: 1fr;
  }

  .showcase-copy {
    position: relative;
    top: auto;
  }

  .garage-photo {
    order: 0;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero-content,
  .intro-band,
  .app-showcase,
  .image-story,
  .garage-section,
  .organize-section,
  .launch-card,
  footer {
    width: calc(100% - 40px);
  }

  .site-header {
    top: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 760px;
    border-radius: 0 0 24px 24px;
  }

  .hero-media img {
    object-position: 56% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(38, 29, 23, 0.82), rgba(38, 29, 23, 0.54)),
      linear-gradient(180deg, rgba(38, 29, 23, 0.38), rgba(247, 239, 229, 0.9));
  }

  .hero-content {
    padding: 128px 0 118px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .hero-facts,
  .intro-band,
  .organize-grid,
  .launch-card,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .intro-band {
    margin-bottom: 52px;
  }

  .app-showcase,
  .image-story,
  .garage-section {
    padding: 46px 0;
  }

  .product-visual {
    min-height: 620px;
  }

  .main-phone {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .side-phone {
    right: 16px;
    bottom: 24px;
    width: 190px;
    min-height: 230px;
  }

  .side-phone h3 {
    font-size: 1.45rem;
  }

  .car-shape {
    width: 132px;
    height: 58px;
    margin-top: 28px;
  }

  .story-media img,
  .garage-photo img {
    min-height: 360px;
  }

  .organize-section {
    padding-top: 46px;
  }
}

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

  .reveal,
  .story-media img,
  .garage-photo img,
  .site-header nav a,
  .header-action,
  .primary-action,
  .secondary-action {
    transition: none;
  }

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