/* ============================================================
   Motonia — landing page
   Clean, professional. Black background, ready for video.
   ============================================================ */

/* Self-hosted fonts (variable; no external requests) */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/sora.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2");
}

:root {
  --bg:        #000000;
  --ink:       #FFFFFF;
  --muted:     #A7B0B5;
  --muted-dim: #6E777C;
  --teal:      #21A7D2;
  --green:     #6FC04D;
  --card:      rgba(255,255,255,0.05);
  --card-brd:  rgba(255,255,255,0.16);
  --card-hov:  rgba(255,255,255,0.10);
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* one screen, no scrolling — ever */
body { overflow: hidden; }

.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--green);
  color: #04130a;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 50;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100vh;           /* fallback */
  height: 100svh;
  height: 100dvh;          /* exactly one screen → no scroll, fills any size */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* background layer (black now; video-ready) */
.bg { position: absolute; inset: 0; z-index: -1; background: #000; }
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* darkening + central scrim so the white text stays legible over the footage */
.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 62% at 50% 44%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0) 82%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.22) 32%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.66) 100%);
}

/* ===================== CONTENT ===================== */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(16px, 4vh, 44px) 24px;
  max-width: 720px;
  margin: 0 auto;
  animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both;
}

/* circular glow via pseudo-element (NOT filter:drop-shadow — that paints a
   rectangular box over <video> on iOS Safari). */
.logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  margin-bottom: clamp(12px, 3vh, 26px);
}
.logo-wrap::after {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,167,210,0.45) 0%, rgba(33,167,210,0) 68%);
  z-index: -1;
  pointer-events: none;
}
.logo {
  width: clamp(72px, 14vh, 140px);
  height: auto;
  display: block;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  letter-spacing: 0.18em;
  margin: 0 0 12px;
  line-height: 1;
  /* nudge to optically center the letter-spacing */
  padding-left: 0.18em;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  color: var(--teal);
  letter-spacing: 0.06em;
  margin: 0 0 22px;
}

.subtag {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 40px;
}

/* ===================== STORE BUTTONS ===================== */
.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 20px;
  min-width: 215px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--card-brd);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), border-color .22s, background .22s;
}
.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-3px);
  background: var(--card-hov);
  border-color: rgba(255,255,255,0.34);
  outline: none;
}
.store-btn:focus-visible { box-shadow: 0 0 0 3px rgba(33,167,210,0.45); }
.store-btn svg { flex: none; }
.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
}
.store-btn-text small {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.store-btn-text strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
}

.microcopy {
  font-size: 0.85rem;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ===================== COPYRIGHT (over the video, no black band) ===================== */
.copyright {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 2;
  text-align: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ===================== ANIMATIONS ===================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 560px) {
  .logo { width: 108px; height: 108px; }
  .logo-wrap { margin-bottom: 18px; }
  .store-btn { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .hero-content { padding: 34px 20px; }
  .tagline { margin-bottom: 16px; }
  .subtag { margin-bottom: 26px; }

  /* stronger darkening so the zoomed-in footage stays readable behind text */
  .bg-overlay {
    background:
      radial-gradient(86% 50% at 50% 42%, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.34) 55%, rgba(0,0,0,0.12) 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 38%, rgba(0,0,0,0.68) 100%);
  }
  /* favor the bike body over the empty floor in the portrait crop */
  .bg-video { object-position: 50% 42%; }
}

/* Short viewports (landscape phones, small windows): compact so it still
   fits one screen without scrolling. */
@media (max-height: 640px) {
  .logo { width: clamp(54px, 12vh, 96px); }
  .logo-wrap { margin-bottom: 10px; }
  .wordmark { font-size: clamp(1.7rem, 6.5vh, 2.8rem); }
  .tagline { font-size: 0.95rem; margin-bottom: 8px; }
  .subtag { display: none; }            /* drop the description to save height */
  .store-buttons { margin-bottom: 12px; }
  .store-btn { padding: 10px 18px; }
  .microcopy { font-size: 0.76rem; }
  .copyright { font-size: 0.66rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 6px); }
}

/* ===================== ACCESSIBILITY ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
