/* Turbo Torque — static landing page */

:root {
  --bg: #0d0d0f;
  --bg-card: #16161a;
  --border: #2a2a30;
  --text: #e4e4e7;
  --muted: #71717a;
  --orange: #ff6b00;
  --yellow: #e8f20a;
}

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

html {
  scroll-behavior: smooth;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::selection {
  background: rgba(255, 107, 0, 0.35);
  color: #fff;
}

.text-orange {
  color: var(--orange);
}

.text-yellow {
  color: var(--yellow);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Hero */
.hero {
  position: relative;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  overflow-x: clip;
  overflow-y: visible;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(255, 107, 0, 0.18),
      transparent 55%
    ),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  animation: fadeUp 650ms ease-out 80ms forwards;
}

.hero__title-main {
  display: inline-flex;
  align-items: baseline;
  /* px gap: avoids subpixel overlap where italic O meets T (em rounding was too tight) */
  gap: 14px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.25rem, 8vw, 4.25rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  filter: drop-shadow(0 0 22px rgba(255, 107, 0, 0.35));
  isolation: isolate;
}

/*
  Gradient text + adjacent solid word: the next span can paint over the tail of italic "O".
  Extra horizontal room + Turbo above Torque (z-index) keeps the full O visible.
*/
.hero__title-accent {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding-right: 12px;
  margin-right: 2px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__title-yellow {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding-left: 4px;
  color: var(--yellow);
}

.hero__title-sub {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1rem, 4vw, 1.65rem);
  color: #d4d4d8;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero__tagline {
  position: relative;
  z-index: 1;
  margin: 1.25rem auto 0;
  max-width: 22rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-style: italic;
  color: #a1a1aa;
  opacity: 0;
  animation: fadeUp 650ms ease-out 180ms forwards;
}

.hero__stores {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 650ms ease-out 280ms forwards;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge--active:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 6px;
}

.store-badge__img {
  height: 3.25rem;
  width: auto;
}

.store-badge__img--apple {
  filter: invert(1);
  opacity: 0.92;
  height: 2.75rem;
}

@media (min-width: 640px) {
  .store-badge__img {
    height: 3.75rem;
  }
  .store-badge__img--apple {
    height: 3.25rem;
  }
}

.store-badge--soon {
  position: relative;
  pointer-events: none;
  user-select: none;
}

.store-badge--soon .store-badge__img--apple {
  filter: invert(1) blur(5px);
  opacity: 0.42;
}

.store-badge__soon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .store-badge__soon {
    font-size: 0.85rem;
  }
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
  border-top: 1px solid rgba(42, 42, 48, 0.9);
  opacity: 0;
  animation: fadeUp 700ms ease-out 360ms forwards;
}

.section__title {
  margin: 0;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  text-transform: uppercase;
}

.section__lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0.75rem 0 2.5rem;
}

.features {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature {
  padding: 1.5rem 1.25rem;
  opacity: 0;
  animation: fadeUp 650ms ease-out forwards;
}

.features .feature:nth-child(1) {
  animation-delay: 430ms;
}

.features .feature:nth-child(2) {
  animation-delay: 520ms;
}

.features .feature:nth-child(3) {
  animation-delay: 610ms;
}

.feature.card--yellow {
  border-color: rgba(232, 242, 10, 0.25);
}

.feature__title {
  margin: 0 0 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  font-style: italic;
  text-transform: uppercase;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: #a1a1aa;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  background: var(--bg);
  opacity: 0;
  animation: fadeUp 650ms ease-out 700ms forwards;
}

.footer__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer__brand {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-style: italic;
  color: #a1a1aa;
  letter-spacing: 0.02em;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.35;
}

.footer__studio {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__studio-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 0, 0.45);
}

.footer__studio-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.footer__copy {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #52525b;
}

@media (max-width: 380px) {
  .hero__title-main {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__tagline,
  .hero__stores,
  .section,
  .feature,
  .footer {
    opacity: 1;
    animation: none;
  }
}
