/* WheelBase marketing page.
   Dark, product-led, automotive. Gold is the accent, never the surface. */

:root {
  color-scheme: dark;

  --bg: #08070a;
  --bg-2: #0e0c11;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .10);
  --line-warm: rgba(255, 185, 19, .22);

  --text: #f6f1e8;
  --muted: rgba(246, 241, 232, .60);
  --muted-2: rgba(246, 241, 232, .42);

  --gold: #ffb913;
  --gold-2: #ffd76f;

  --radius: 18px;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:where(a, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 14px; top: 14px; z-index: 60;
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: #14100a;
  font-weight: 800; text-decoration: none;
}

/* ================================================================== header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 7, 10, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: var(--shell);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  flex: none;
}

.brand img { border-radius: 9px; }
.brand.small { font-size: 15px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a { text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }

/* Sign in sits at the far right, on its own. */
.nav-account { flex: none; }

/* ================================================================= buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #17110a;
  box-shadow: 0 8px 26px rgba(255, 185, 19, .22);
}
.btn-primary:hover { background: var(--gold-2); }

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.2); }

/* Apple's badge proportions: black, ~10px radius, hairline border, logo left
   of a two-line lockup. Drawn rather than loaded so it stays sharp. */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 18px 0 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .36);
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.appstore:hover { border-color: #fff; transform: translateY(-1px); }

.appstore-logo { width: 26px; height: 30px; fill: currentColor; flex: none; }

.appstore-text { display: grid; gap: 1px; text-align: left; }
.appstore-text small {
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: .01em;
  opacity: .92;
}
.appstore-text strong {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* ==================================================================== hero */

.hero {
  position: relative;
  padding: clamp(40px, 5vw, 72px) 0 clamp(44px, 5vw, 80px);
  background:
    radial-gradient(900px 620px at 78% 18%, rgba(255, 185, 19, .10), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(255, 255, 255, .05), transparent 65%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  overflow: hidden;
}

.hero-inner {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  background: rgba(255, 185, 19, .07);
  color: var(--gold-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 185, 19, .18);
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 50ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16.5px, 1.25vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.trust strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.trust span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.45;
}

/* ============================================================== the device */

.showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  perspective: 1800px;
}

/* Warm bloom behind the phone, so it lifts off the black. */
.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 185, 19, .20), rgba(255, 185, 19, .05) 45%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.device {
  position: relative;
  z-index: 1;
  width: min(360px, 88%);
  transform: rotateY(-19deg) rotateX(5deg) rotateZ(-1.5deg);
  transform-style: preserve-3d;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateY(-19deg) rotateX(5deg) rotateZ(-1.5deg) translateY(0); }
  50%      { transform: rotateY(-16deg) rotateX(4deg) rotateZ(-1deg) translateY(-14px); }
}

/* The frame is the titanium band; the screen sits inside it with a real bezel.
   The generous inset is deliberate: with a thin bezel the app's own card
   borders ran straight into the edge of the phone, which never happens on a
   real device and read as a rendering mistake. */
.device-frame {
  position: relative;
  padding: 13px;
  border-radius: 54px;
  background: linear-gradient(150deg, #6e6e73 0%, #2a2a2e 22%, #131316 50%, #3a3a3f 78%, #6e6e73 100%);
  box-shadow:
    0 2px 2px rgba(255, 255, 255, .22) inset,
    0 -2px 2px rgba(0, 0, 0, .5) inset,
    0 60px 90px -30px rgba(0, 0, 0, .85),
    0 30px 60px -20px rgba(0, 0, 0, .6);
}

.device-screen {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
  /* Inner bezel: a few px of black between glass edge and content. */
  border: 5px solid #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset;
}

.device-screen img {
  width: 100%;
  height: auto;
  border-radius: 38px;
}

.device-island {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}

.device-btn {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #5a5a5f, #232326);
}
.device-btn-power { right: -3px; top: 168px; height: 76px; }
.device-btn-up    { left: -3px;  top: 132px; height: 52px; }
.device-btn-down  { left: -3px;  top: 196px; height: 52px; }

/* ================================================================ sections */

.section {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(48px, 5.5vw, 88px) 0;
}

.section-head { max-width: 640px; margin-bottom: 38px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 800;
}

.section-lede {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* =================================================================== cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, .02));
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.card:hover {
  border-color: var(--line-warm);
  background: linear-gradient(180deg, rgba(255, 185, 19, .07), rgba(255, 255, 255, .02));
  transform: translateY(-3px);
}

.card-num {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.card h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ================================================================= gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.gallery figure { margin: 0; }

/* Same reasoning as the hero device: real bezel, so the app's own borders
   never touch the edge of the frame. */
/* Same reasoning as the hero device: real bezel, so the app's own borders
   never touch the edge of the frame. */
.shot {
  padding: 8px;
  border-radius: 30px;
  background: linear-gradient(150deg, #5c5c61, #1a1a1d 45%, #46464b);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .8);
  transition: transform .18s ease;
}

.gallery figure:hover .shot { transform: translateY(-4px); }

.shot img {
  width: 100%;
  height: auto;
  border-radius: 23px;
  border: 3px solid #000;
  background: #000;
}

.gallery figcaption {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 13.5px;
  text-align: center;
}

.gallery figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

/* ===================================================================== cta */

.cta {
  padding: clamp(38px, 6vw, 72px) clamp(24px, 5vw, 60px);
  border-radius: 26px;
  border: 1px solid var(--line-warm);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 185, 19, .16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 800;
}

.cta p { margin: 14px auto 0; max-width: 52ch; color: var(--muted); font-size: 17px; }
.cta .hero-actions { justify-content: center; margin-top: 30px; }
.cta-note { font-size: 14px !important; color: var(--muted-2) !important; margin-top: 18px !important; }

/* ================================================================== footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.copy { color: var(--muted-2); font-size: 13.5px; }

/* ============================================================== responsive */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}

@media (max-width: 900px) {
  :root { --shell: min(1180px, calc(100% - 32px)); }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  /* The device leads on desktop; on a phone the words do. */
  .showcase {
    order: -1;
    min-height: 440px;
    margin-bottom: 8px;
  }
  .device { width: min(260px, 62%); }
  .glow { width: 360px; height: 360px; }

  .trust { grid-template-columns: 1fr; gap: 16px; margin-top: 38px; }
}

@media (max-width: 720px) {
  /* Links wrap to their own row rather than vanishing: this page is mostly
     read on a phone, so hiding the navigation there made no sense. */
  .nav {
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px 0 14px;
    row-gap: 12px;
  }
  .nav-account { margin-left: auto; order: 2; }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
  }

  .cards, .gallery { grid-template-columns: 1fr; }
  .gallery figure { max-width: 340px; margin: 0 auto; }

  .hero-actions { gap: 12px; }
  .hero-actions .appstore,
  .hero-actions .btn { width: 100%; justify-content: center; }

  .footer-inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .device { animation: none; }
  * { transition: none !important; }
}
