@import url("./tokens.css");

@font-face {
  font-family: "GPSKAM Display";
  src: url("/assets/fonts/Roboto/static/Roboto_Condensed-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "GPSKAM Display";
  src: url("/assets/fonts/Roboto/static/Roboto_Condensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins/Poppins-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins/Poppins-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-main);
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
summary {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, black 0, transparent 82%);
  opacity: 0.3;
}

.page-width {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section-border {
  border-top: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 6, 6, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
}

.footer-brand {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.brand-logo-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-divider {
  width: 1px;
  height: 21px;
  background: var(--border-light);
  transform: rotate(18deg);
}

.brand-product {
  color: var(--accent);
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.06em;
  transition: color 180ms ease;
}

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

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.desktop-nav a,
.header-store-link,
.mobile-nav summary,
.mobile-nav-panel a,
.site-footer nav a {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.header-store-link:hover,
.header-store-link:focus-visible,
.mobile-nav summary:hover,
.mobile-nav summary:focus-visible,
.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--text-primary);
}

.header-store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.header-store-link:hover,
.header-store-link:focus-visible {
  border-color: var(--accent-dark);
  background: rgba(255, 196, 0, 0.08);
  color: var(--accent-hover);
}

.header-store-link svg {
  width: 16px;
  height: 16px;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.mobile-nav[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 17px);
  right: 0;
  display: grid;
  gap: 18px;
  min-width: 195px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-elevated);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: 32px;
  min-height: min(860px, calc(100svh - var(--header-height)));
  padding-top: 42px;
  padding-bottom: 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 610px;
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.05em;
}

.hero-wordmark {
  display: block;
  font-weight: 900;
  color: var(--text-primary);
  font-size: clamp(72px, 8.5vw, 122px);
  line-height: 0.82;
}

.hero-title-line {
  display: block;
  max-width: 560px;
  margin-top: 31px;
  color: var(--text-primary);
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 455px;
  margin: 25px 0 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 34px;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 18px 12px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-main);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.play-button:hover,
.play-button:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  box-shadow: 0 10px 26px rgba(255, 196, 0, 0.16);
  transform: translateY(-1px);
}

.play-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.arrow-mark {
  width: 17px;
  height: 17px;
  margin-left: 3px;
}

.hero-platform,
.download-platform {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.1);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  min-width: 0;
  min-height: 760px;
  text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.7);
}

.hero-phone-frame {
  position: relative;
  z-index: 1;
  width: clamp(320px, 29vw, 370px);
  aspect-ratio: 921 / 2048;
  overflow: hidden;
  border: 8px solid #1b2026;
  border-radius: 44px;
  background: #020304;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: rotate(1.2deg);
}

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

.hero-app-icon {
  position: absolute;
  top: 22%;
  left: 8%;
  z-index: 3;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
  transform: rotate(-5deg);
}

.hero-telemetry {
  position: absolute;
  top: 28%;
  right: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  min-width: 154px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 196, 0, 0.42);
  color: var(--text-muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.telemetry-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.telemetry-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.1);
}

.telemetry-coordinates {
  display: grid;
  gap: 4px;
  color: var(--text-secondary);
}

.telemetry-location {
  color: var(--text-muted);
  font-size: 12px;
}

.telemetry-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.telemetry-clock {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.hero-scan-line {
  position: absolute;
  bottom: 0%;
  left: 4%;
  width: 84%;
  height: 1px;
  transform: rotate(1deg);
  background: linear-gradient(to right, transparent, rgba(255, 196, 0, 0.38), transparent);
  opacity: 0.7;
}

.product-strip {
  border-bottom: 1px solid var(--border);
}

.product-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 88px;
}

.product-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.11em;
}

.product-strip-item+.product-strip-item {
  border-left: 1px solid var(--border);
}

.product-strip-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.features {
  padding-top: clamp(82px, 9vw, 120px);
  padding-bottom: clamp(88px, 9vw, 124px);
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.section-intro h2,
.showcase-heading h2,
.download-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.section-intro h2,
.showcase-heading h2 {
  font-size: clamp(43px, 5vw, 62px);
}

.section-intro p,
.showcase-heading>div>p {
  max-width: 360px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-item {
  min-width: 0;
  padding: 34px 34px 0;
  border-right: 1px solid var(--border);
}

.feature-item:first-child {
  padding-left: 0;
}

.feature-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.05em;
}

.feature-rule {
  width: 38px;
  height: 1px;
  background: var(--accent-dark);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-top: 38px;
  color: var(--icon-muted);
  transition: color 180ms ease;
}

.feature-item:hover .feature-icon {
  color: var(--accent);
}

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

.feature-item h3 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.feature-item p {
  max-width: 240px;
  margin: 13px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.showcase {
  padding-top: clamp(88px, 9vw, 120px);
  padding-bottom: clamp(88px, 9vw, 122px);
}

.showcase-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-kicker {
  margin: 0 0 13px !important;
  color: var(--accent) !important;
  font-family: var(--display);
  font-size: 14px !important;
  letter-spacing: 0.08em;
  text-align: left !important;
  text-transform: uppercase;
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
}

.showcase-status {
  margin-right: 8px;
  color: var(--text-secondary);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.showcase-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.showcase-button:hover:not(:disabled),
.showcase-button:focus-visible:not(:disabled) {
  border-color: var(--accent);
  background: rgba(255, 196, 0, 0.08);
  color: var(--accent);
}

.showcase-button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.showcase-button svg {
  width: 19px;
  height: 19px;
}

.showcase-viewport {
  margin-top: 44px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.showcase-viewport::-webkit-scrollbar {
  display: none;
}

.showcase-track {
  display: flex;
  gap: 20px;
  width: max-content;
  transition: padding 180ms ease;
}

.showcase-slide {
  position: relative;
  flex: 0 0 clamp(320px, 31vw, 470px);
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-section);
  scroll-snap-align: center;
  opacity: 0.38;
  transform: scale(0.92);
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease), opacity 400ms var(--ease), transform 400ms var(--ease);
}

.showcase-slide.is-active {
  border-color: rgba(255, 196, 0, 0.66);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 196, 0, 0.08);
  opacity: 1;
  transform: scale(1);
}

.showcase-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 1085;
  object-fit: cover;
}

.showcase-slide figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.showcase-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 17px;
  margin-top: 28px;
  text-align: center;
}

.showcase-caption h3 {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.showcase-caption p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.download-section {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 10vw, 138px) 0;
  text-align: center;
}

.download-data {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  justify-content: space-between;
  width: min(1100px, 92%);
  color: rgba(167, 167, 163, 0.08);
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 108px);
  letter-spacing: 0.02em;
  pointer-events: none;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.download-icon {
  width: 92px;
  height: 92px;
  border-radius: 21px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.download-inner h2 {
  margin-top: 25px;
  font-size: clamp(56px, 6vw, 82px);
}

.download-tagline {
  margin: 12px 0 0;
  color: var(--text-primary);
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1;
}

.download-copy {
  max-width: 430px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.download-inner .play-button {
  margin-top: 29px;
}

.download-platform {
  justify-content: center;
}

.site-footer {
  padding-top: 27px;
  padding-bottom: 30px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: var(--text-primary);
}

.footer-inner p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 4px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
    gap: 15px;
  }

  .hero-telemetry {
    right: -8px;
  }

  .feature-item {
    padding-inline: 25px;
  }

  .feature-item:first-child {
    padding-left: 0;
  }

  .feature-item:last-child {
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .header-store-link {
    margin-left: auto;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding-top: 74px;
    padding-bottom: 74px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-visual {
    min-height: 690px;
  }

  .hero-phone-frame {
    width: min(356px, 68vw);
  }

  .hero-telemetry {
    right: 7%;
  }

  .hero-app-icon {
    left: 17%;
  }

  .showcase-slide {
    flex-basis: min(53vw, 420px);
  }
}

@media (max-width: 680px) {
  .page-width {
    width: min(var(--container), calc(100% - 40px));
  }

  .brand-product {
    font-size: 17px;
  }

  .header-store-link {
    padding: 8px;
    border-color: transparent;
  }

  .header-store-link span {
    display: none;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 65px;
  }

  .hero-wordmark {
    font-size: clamp(70px, 17vw, 112px);
  }

  .hero-title-line {
    margin-top: 25px;
    font-size: clamp(36px, 9.5vw, 52px);
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .play-button {
    width: 100%;
  }

  .hero-visual {
    min-height: 600px;
    margin-top: 12px;
  }

  .hero-phone-frame {
    width: min(320px, 78vw);
    border-width: 6px;
    border-radius: 36px;
  }

  .hero-app-icon {
    top: 18%;
    left: 4%;
    width: 74px;
    height: 74px;
    border-radius: 17px;
  }

  .hero-telemetry {
    display: none;
  }

  .hero-scan-line {
    bottom: -1%;
    left: 0;
    width: 100%;
  }

  .product-strip-inner {
    width: calc(100% - 40px);
    min-height: 74px;
  }

  .product-strip-item {
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .product-strip-item svg {
    width: 18px;
    height: 18px;
  }

  .features,
  .showcase {
    padding-top: 78px;
    padding-bottom: 83px;
  }

  .section-intro {
    display: block;
    padding-bottom: 24px;
  }

  .section-intro p,
  .showcase-heading>div>p {
    margin-top: 16px;
    text-align: left;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .feature-item:first-child,
  .feature-item:last-child {
    padding: 28px 0 32px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .feature-item:first-child {
    padding-top: 30px;
  }

  .feature-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .feature-icon {
    margin-top: 25px;
  }

  .showcase-heading {
    display: block;
  }

  .showcase-controls {
    justify-content: flex-end;
    margin-top: 24px;
  }

  .showcase-viewport {
    margin-top: 27px;
    margin-inline: -20px;
  }

  .showcase-slide {
    flex-basis: min(78vw, 340px);
  }

  .showcase-caption {
    display: block;
    margin-top: 23px;
  }

  .showcase-caption p {
    margin-top: 6px;
  }

  .download-section {
    padding-top: 92px;
    padding-bottom: 96px;
  }

  .download-data {
    display: none;
  }

  .download-icon {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }

  .download-inner h2 {
    margin-top: 22px;
    font-size: 60px;
  }

  .download-tagline {
    font-size: 30px;
  }

  .download-copy {
    max-width: 330px;
    font-size: 14px;
  }

  .download-inner .play-button {
    width: 100%;
    margin-top: 25px;
  }

  .footer-inner {
    display: block;
  }

  .site-footer nav {
    justify-content: flex-start;
    gap: 13px 18px;
    margin-top: 22px;
    padding-top: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}