/* ============================================================
   Umut Arduç — Speedometer landing site
   Design tokens
   ============================================================ */
:root {
  /* Color: dashboard-at-night palette, sampled from the app's own HUD glow and gauge icon */
  --bg: #0a0c0f;
  --bg-elevated: #12151b;
  --bg-elevated-2: #191d24;
  --hairline: rgba(245, 247, 243, 0.09);
  --hairline-strong: rgba(245, 247, 243, 0.16);

  --hud-green: #3cf28c;
  --hud-green-dim: #23a868;
  --gauge-amber: #ffb020;
  --gauge-red: #ff4757;

  --text-primary: #f5f7f3;
  --text-muted: #98a1a3;
  --text-faint: #616a6d;

  /* Type */
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-instrument: "Chakra Petch", sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --motion-ok: 1; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--hud-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Nameplate / instrument label ---------- */
.nameplate {
  font-family: var(--font-instrument);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hud-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nameplate::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hud-green);
  box-shadow: 0 0 8px 1px var(--hud-green);
  flex: none;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(10, 12, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(10, 12, 15, 0.92);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav__links a:hover { color: var(--text-primary); }

@media (max-width: 760px) {
  .site-nav__links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--hud-green);
  color: #06110b;
  box-shadow: 0 0 0 0 rgba(60, 242, 140, 0.5);
}

.btn--primary:hover {
  box-shadow: 0 0 26px 2px rgba(60, 242, 140, 0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--hairline-strong);
}

.btn--ghost:hover { border-color: var(--hud-green); color: var(--hud-green); }

.btn--sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- App Store badge ---------- */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  background: #f5f7f3;
  color: #0a0c0f;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appstore-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(245, 247, 243, 0.35);
}

.appstore-badge svg { width: 26px; height: 26px; flex: none; }

.appstore-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.appstore-badge__eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.appstore-badge__name {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: 72px 96px;
  position: relative;
  overflow: hidden;
}

.hero__intro {
  max-width: 640px;
}

.hero__eyebrow { margin-bottom: 22px; }

.hero__title {
  font-size: clamp(44px, 6.4vw, 84px);
  text-transform: uppercase;
  max-width: 13ch;
}

.hero__title--plain {
  font-size: clamp(36px, 5vw, 56px);
  text-transform: none;
  max-width: none;
}

.hero__title em {
  font-style: normal;
  color: var(--hud-green);
}

.hero__subtitle {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- HUD signature panel ---------- */
.hud-panel {
  position: relative;
  aspect-ratio: 9 / 11;
  max-width: 380px;
  margin-inline: auto;
  border-radius: 32px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(60, 242, 140, 0.14), transparent 60%),
    linear-gradient(180deg, #0d1015 0%, #060708 100%);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 26px 22px;
}

.hud-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hud-panel__gauge-ring {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--hud-green), var(--gauge-amber), var(--gauge-red) 55%, transparent 58%);
  opacity: 0.12;
  filter: blur(2px);
}

.hud-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hud-panel__status {
  font-family: var(--font-instrument);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-panel__status .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--hud-green);
  box-shadow: 0 0 6px var(--hud-green);
}

.hud-panel__readout {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-block: auto;
}

.hud-panel__number {
  font-family: var(--font-instrument);
  font-weight: 600;
  font-size: clamp(84px, 18vw, 118px);
  color: var(--hud-green);
  text-shadow: 0 0 18px rgba(60, 242, 140, 0.55), 0 0 46px rgba(60, 242, 140, 0.3);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hud-panel__unit {
  font-family: var(--font-instrument);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--hud-green-dim);
  margin-top: 6px;
}

.hud-panel__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hud-panel__stat {
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}

.hud-panel__stat-label {
  font-family: var(--font-instrument);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.hud-panel__stat-value {
  font-family: var(--font-instrument);
  font-size: 15px;
  color: var(--text-primary);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.hud-panel__road {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(60, 242, 140, 0.05), transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  mask-image: linear-gradient(to top, black, transparent);
  pointer-events: none;
  overflow: hidden;
}

.hud-panel__road::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20%;
  width: 2px;
  height: 140%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(60, 242, 140, 0.5) 0,
    rgba(60, 242, 140, 0.5) 16px,
    transparent 16px,
    transparent 34px
  );
  transform: translateX(-50%) perspective(200px) rotateX(35deg);
  animation: road-move 1.1s linear infinite;
}

@keyframes road-move {
  from { background-position-y: 0; }
  to { background-position-y: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .hud-panel__road::before { animation: none; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding-block: 96px; }

.section__head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section__head .nameplate { margin-bottom: 18px; }

.section__title {
  font-size: clamp(32px, 4vw, 46px);
  text-transform: uppercase;
}

.section__lede {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 54ch;
}

.divider {
  border: none;
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* ============================================================
   Scroll-reveal utility
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Featured app card
   ============================================================ */
.app-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 44px;
}

@media (max-width: 940px) {
  .app-feature { grid-template-columns: 1fr; padding: 30px; }
}

.app-feature__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-feature__icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  flex: none;
  border: 1px solid var(--hairline-strong);
}

.app-feature__name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  text-transform: uppercase;
}

.app-feature__tagline {
  font-family: var(--font-instrument);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

.app-feature__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 52ch;
}

.app-feature__chips {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-feature__chips li {
  font-family: var(--font-instrument);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-elevated-2);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 7px 14px;
}

.app-feature__actions { margin-top: 30px; }

/* ============================================================
   About
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

.about__card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 30px;
}

.about__row {
  display: flex;
  justify-content: space-between;
  padding-block: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
}
.about__row:first-of-type { border-top: none; }

.about__row dt {
  font-family: var(--font-instrument);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-size: 11.5px;
}
.about__row dd { margin: 0; color: var(--text-primary); text-align: right; }

.about__title {
  font-size: clamp(30px, 3.4vw, 40px);
  text-transform: uppercase;
}

.about__body {
  margin-top: 20px;
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 58ch;
}

.about__body + .about__body { margin-top: 14px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 56px 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 700px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__brand-line {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 34ch;
}

.footer__heading {
  font-family: var(--font-instrument);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__links a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--hud-green); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ============================================================
   Legal pages (terms / privacy)
   ============================================================ */
.legal {
  padding-block: 64px 100px;
}

.legal__header {
  max-width: 680px;
  margin-bottom: 48px;
}

.legal__updated {
  margin-top: 14px;
  font-family: var(--font-instrument);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.legal__title { font-size: clamp(34px, 5vw, 54px); text-transform: uppercase; }

.legal__body {
  max-width: 720px;
}

.legal__body h2 {
  font-size: 22px;
  text-transform: uppercase;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--hud-green);
}

.legal__body h2:first-child { margin-top: 0; }

.legal__body p,
.legal__body li {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal__body p + p { margin-top: 14px; }

.legal__body ul,
.legal__body ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal__body li + li {
  margin-top: 8px;
}

.legal__body a { color: var(--hud-green); text-decoration: underline; text-underline-offset: 2px; }

.legal__body strong { color: var(--text-primary); }
