/* Fast Tracker — the app's own navy and mint, its own two typefaces. */

@font-face {
  font-family: "Sora";
  src: url("fonts/Sora_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/Sora_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0a0f1e;
  --bg-deep: #070b16;
  --card: #131b30;
  --border: #26314f;
  --track: #1e2a47;
  --text: #f4f6fb;
  --muted: #9aa6c3;
  --mint: #3cf2c8;
  --mint-soft: #10302f;
  --page: 1120px;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--mint);
}

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

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 15, 30, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 19px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.masthead nav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.kicker {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.05;
}
h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
}
h1 em,
h2 em {
  color: var(--mint);
  font-style: normal;
}

.lead {
  max-width: 32em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

/* Hero. The 3D scene (js/hero.js) fades in once its image loads. The screenshot
   in a CSS ring is the fallback: at once without scripts, after a wait if the
   scene has not come, and never on top of the scene. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero .art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}
.hero .art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(60, 242, 200, 0.14), transparent 70%),
    conic-gradient(var(--mint) 0 89%, var(--track) 89% 100%);
  -webkit-mask: radial-gradient(closest-side, #000 0 60%, transparent 60.5% 92%, #000 92.5% 100%);
  mask: radial-gradient(closest-side, #000 0 60%, transparent 60.5% 92%, #000 92.5% 100%);
  opacity: 0.35;
  pointer-events: none;
}
.hero .scene {
  position: absolute;
  inset: -40px -60px;
  width: calc(100% + 120px);
  height: calc(100% + 80px);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.js .hero .art::before,
.js .hero .art .phone {
  animation: fallback 0.4s ease 2.5s both;
}
.hero .art.is-3d .scene {
  opacity: 1;
}
.js .hero .art.is-3d::before,
.js .hero .art.is-3d .phone {
  animation: none;
  opacity: 0;
}
@keyframes fallback {
  from {
    opacity: 0;
  }
}

/* The timer card that floats over the phone and keeps on ticking. */
.live-card {
  position: absolute;
  left: -36px;
  bottom: 70px;
  z-index: 2;
  width: 250px;
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(19, 27, 48, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}
.live-card p {
  margin: 0;
}
.live-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-top span:first-child::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--mint);
  vertical-align: 1px;
  animation: pulse 2s ease-in-out infinite;
}
.live-time {
  margin-top: 8px !important;
  font-family: "Sora", sans-serif;
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.live-left {
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.live-bar {
  height: 6px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--track);
  overflow: hidden;
}
.live-bar span {
  display: block;
  height: 100%;
  width: calc(var(--progress, 0.89) * 100%);
  border-radius: inherit;
  background: var(--mint);
  transition: width 0.9s linear;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.today {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.today b {
  display: inline-block;
  min-width: 4.2em;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.today .sep {
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 8px;
  background: var(--border);
  vertical-align: middle;
}

/* A slow band of schedules between the hero and the features. */
.ticker {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  animation: ticker 40s linear infinite;
  font-family: "Sora", sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--muted);
}
.ticker-track i {
  color: var(--mint);
  font-size: 0.6em;
  font-style: normal;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Rising in on arrival, only when scripts run. */
.js .reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}
.facts li.reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.facts li.reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.facts li.reveal:nth-child(4) {
  transition-delay: 0.24s;
}
.feature .phone {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@media (prefers-reduced-motion: reduce) {
  .live-card,
  .live-top span:first-child::before,
  .ticker-track {
    animation: none;
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.badges a {
  display: block;
  line-height: 0;
}
.badges img {
  height: 52px;
  width: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* A screenshot in a plain dark phone. */
.phone {
  position: relative;
  width: min(100%, 310px);
  margin: 0 auto;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 46px;
  background: #05080f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.phone img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: 38px;
}

/* Features: text and phone, sides swapping row to row. */
.feature {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.feature:nth-of-type(odd) {
  background: var(--bg-deep);
}
.feature .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.feature:nth-of-type(odd) .copy {
  order: 2;
}
.feature p {
  max-width: 30em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.feature p + p {
  margin-top: 12px;
}
.feature strong {
  color: var(--text);
  font-weight: 600;
}

.facts {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
}
.facts li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px var(--mint-soft);
}
.facts h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: 0;
}
.facts li p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.cta {
  padding: 88px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta p {
  margin: 16px 0 0;
  color: var(--muted);
}
.cta .badges {
  justify-content: center;
}
.cta .note {
  max-width: 40em;
  margin: 40px auto 0;
  font-size: 14px;
}

footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
footer nav a:hover {
  color: var(--mint);
}
footer p {
  margin: 0;
}
footer p a {
  color: var(--muted);
}

/* The legal pages: one readable column in the same voice. */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
}
.doc h1 {
  font-size: clamp(34px, 6vw, 50px);
  margin-bottom: 12px;
}
.doc h2 {
  margin: 48px 0 12px;
  font-size: 26px;
  line-height: 1.2;
}
.doc p,
.doc li {
  color: #d9dfec;
}
.doc strong {
  color: var(--text);
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 4px;
}
/* A wide table scrolls on its own instead of widening the page. */
.doc table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.doc th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 64px;
  }
  .hero .wrap,
  .feature .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero .art {
    min-height: 560px;
  }
  .hero .art::before {
    width: 440px;
    height: 440px;
  }
  .live-card {
    left: 0;
    bottom: 24px;
    width: 220px;
  }
  .live-time {
    font-size: 28px;
  }
  .feature:nth-of-type(odd) .copy {
    order: 0;
  }
  .feature {
    padding: 60px 0;
  }
  .phone {
    width: min(100%, 270px);
  }
  .facts ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .lead {
    font-size: 17px;
  }
  .hero .art {
    min-height: 470px;
  }
  .hero .wrap {
    gap: 24px;
  }
  .today .tail {
    display: none;
  }
  .hero .art::before {
    width: 360px;
    height: 360px;
  }
  .hero .scene {
    inset: -20px -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
  }
  .facts ul {
    grid-template-columns: 1fr;
  }
}
