/* ============================================================
   Trombone Champ: Unflattened — Flat2VR Studios game page
   Palette + type follow the official Trombone Champ brand guide:
   light blue is the primary scene color, black is the alternate
   scene color (used to break up consecutive blue scenes), red is
   the primary action color, yellow/orange are secondary/decorative.
   ============================================================ */

:root {
  --blue: #4ad9d9;
  --blue-deep: #22b3b3;
  --red: #f3385a;
  --yellow: #f8e71c;
  --orange: #f5a506;
  --black: #000000;
  --white: #ffffff;
  --cream: #fffdf6;
  --green: #5fd960;
  --purple: #b267f0;
  --font-display: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --shadow-stack: 2px 2px 0 #000, 4px 4px 0 rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #0a59cf;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.display-heading {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  font-size: .85rem;
  margin: 0 0 .4rem;
  text-align: center;
}

section > .display-heading,
.trailer-section .display-heading,
.features-section .display-heading,
.screenshots-section .display-heading,
.dlc-section .display-heading,
.news-section .display-heading {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* ---------- black scenes (alternate bg per brand guide) ---------- */
.on-black { background: var(--black); color: var(--cream); }
.on-black .section-eyebrow { color: var(--yellow); }

/* ---------- black UI panel (mirrors in-game HUD panels) ---------- */
.brand-panel {
  background: var(--black);
  color: var(--cream);
  border-radius: 20px;
  border: 3px solid var(--red);
  padding: 2rem clamp(1.4rem, 4vw, 2.6rem);
}

/* ---------- confetti ambiance ---------- */
.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -5%;
  width: 12px;
  height: 20px;
  opacity: .85;
  animation: confetti-fall linear infinite;
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(0,0,0,.5);
}
@keyframes confetti-fall {
  0%   { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .confetti-piece { animation: none; display: none; }
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a59cf;
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .6rem clamp(1.2rem, 4vw, 3rem);
}
.nav-brand { display: inline-flex; align-items: center; }
.brand-logo { height: 29px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: .95rem;
  color: var(--cream);
  margin-left: auto;
  text-transform: uppercase;
}
.nav-links a { opacity: .9; position: relative; padding-bottom: 2px; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 3px; width: 0;
  background: var(--yellow); transition: width .2s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 0 #9e1936;
  transition: transform .15s ease;
  text-transform: uppercase;
}
.nav-cta:hover { transform: translateY(-2px); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
  background: radial-gradient(ellipse at 50% 20%, var(--blue) 0%, var(--blue-deep) 55%, #0f5c5c 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: translateY(-20px);
}
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 320px;
  background: linear-gradient(to bottom,
    rgba(7,98,208,0) 0%,
    rgba(7,98,208,.25) 45%,
    rgba(7,98,208,.7) 75%,
    #0762d0 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
}
.hero-eyebrow {
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .85;
  font-size: .85rem;
  margin-bottom: .8rem;
}
.hero-logo-img {
  max-width: min(45vw, 280px);
  width: 100%;
  height: auto;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 10px 0 rgba(0,0,0,.25));
}
.hero-tag {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 640px;
  margin: 0 auto 1.6rem;
  color: var(--cream);
  font-weight: 700;
}
.available-now {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: .12em;
  margin-bottom: 1.4rem;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}
.buy-btn {
  display: inline-block;
  transition: transform .15s ease, filter .15s ease;
}
.buy-btn img { height: 52px; width: auto; display: block; }
.buy-btn:hover {
  transform: translateY(-5px) scale(1.06);
  filter: brightness(1.12) drop-shadow(0 8px 14px rgba(0,0,0,.4));
}
.buy-btn-fa {
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 3px solid #ccc;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.buy-btn-fa i { font-size: 1.3rem; }
.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  color: var(--yellow);
  animation: bob 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- trailer (black scene) ---------- */
.trailer-section {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  padding: 7rem 0 0;
  text-align: center;
  background: #0762d0;
}
.trailer-section .display-heading {
  padding: 0 clamp(1.2rem, 5vw, 4rem);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 1.6rem;
}
.trailer-tag {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 4rem);
  opacity: .95;
  font-size: 1.15rem;
  line-height: 1.6;
}
.trailer-frame {
  position: relative;
  width: 100%;
  margin-top: 9rem;
  overflow: hidden;
  background: #000;
}
.trailer-frame iframe { width: 100%; aspect-ratio: 16/9; background: #000; display: block; border: 0; }

/* ---------- description (blue scene, black panel) ---------- */
.description-section {
  position: relative;
  padding: 4rem clamp(1.2rem, 5vw, 4rem);
}
.description-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.description-inner p { font-size: 1.1rem; margin: 0; }

/* ---------- features (black scene) ---------- */
.features-section {
  padding: 5rem clamp(1.2rem, 5vw, 4rem);
}
.features-grid {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.feature-card {
  background: rgba(255,255,255,.03);
  border: 2px solid var(--icon-bg, var(--blue));
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  transition: transform .18s ease;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--icon-bg, var(--blue));
  margin-bottom: .9rem;
}
.feature-icon i { font-size: 24px; color: #fff; }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--icon-bg, var(--yellow));
  margin: 0 0 .5rem;
}
.feature-card p { margin: 0; font-size: .95rem; opacity: .92; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- screenshots (blue scene) ---------- */
.screenshots-section {
  position: relative;
  margin-top: -20px;
  padding: 2.5rem clamp(1.2rem, 5vw, 4rem) 5rem;
  background: #000 url("../assets/images/trombone-champ/screenshots-bg.png") center / cover no-repeat;
}
.gallery {
  max-width: 960px;
  margin: 2.5rem auto 0;
}
.gallery-main {
  border-radius: 18px;
  overflow: hidden;
}
.gallery-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-caption {
  margin: 0;
  padding: .9rem 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--cream);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .8rem;
  margin-top: 1rem;
}
.gallery-thumb {
  padding: 0;
  border: 3px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .7; transition: opacity .15s ease; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb:hover img { opacity: 1; }
.gallery-thumb.is-active { border-color: var(--yellow); }
.gallery-thumb.is-active img { opacity: 1; }

@media (max-width: 760px) {
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- clips (blue scene) ---------- */
.clips-section {
  padding: 1rem clamp(1.2rem, 5vw, 4rem) 5rem;
  text-align: center;
}
.clips-grid {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.clip-tile {
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid var(--orange);
  background: #000;
}
.clip-tile video { width: 100%; aspect-ratio: 1280/420; object-fit: cover; display: block; }

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

/* ---------- DLC (red scene) ---------- */
.dlc-section {
  background: var(--red);
  color: var(--cream);
  padding: 5rem clamp(1.2rem, 5vw, 4rem);
}
.dlc-section .section-eyebrow { color: var(--yellow); }
.dlc-grid {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.dlc-card {
  background: rgba(0,0,0,.25);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease;
}
.dlc-card:hover { transform: translateY(-5px); }
.dlc-art { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.dlc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .7rem;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
  transform: rotate(6deg);
}
.dlc-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.dlc-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--yellow);
  margin: 1rem 1.2rem .5rem;
}
.dlc-card p { margin: 0 1.2rem 1.3rem; font-size: .92rem; opacity: .92; }
.dlc-stores { display: flex; gap: .7rem; margin: 0 1.2rem 1.3rem; }
.dlc-coming-soon {
  margin: 0 1.2rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--yellow);
}
.dlc-stores a, .dlc-stores span {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--cream);
  font-size: .95rem;
  transition: transform .15s ease, background .15s ease;
}
.dlc-stores a:hover { transform: translateY(-2px); background: var(--yellow); color: var(--black); }

@media (max-width: 900px) {
  .dlc-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- news (blue scene) ---------- */
.news-section {
  position: relative;
  padding: 5rem clamp(1.2rem, 5vw, 4rem);
}
.news-grid {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
  position: relative;
}
.news-card {
  background: var(--black);
  border: 3px solid transparent;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.news-card--update { border-color: var(--green); }
.news-kicker {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 800;
  color: var(--yellow);
  margin: 0 0 .5rem;
}
.news-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin: 0 0 .6rem; color: var(--cream); }
.news-card p { font-size: .92rem; opacity: .92; margin: 0 0 .8rem; flex-grow: 1; color: var(--cream); }
.news-card a { font-weight: 800; color: var(--yellow); }
.signup-form { display: flex; gap: .5rem; margin-top: auto; }
.signup-form input {
  flex: 1;
  padding: .65rem .8rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
}
.signup-form input::placeholder { color: rgba(255,253,246,.55); }
.signup-form button {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #9e1936;
}
.signup-note { color: var(--green); font-weight: 700; margin-top: .6rem; }

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

/* ---------- community (blue scene) ---------- */
.community-section {
  position: relative;
  padding: 6rem clamp(1.2rem, 5vw, 4rem);
  overflow: hidden;
  background: #0a59cf url("../assets/images/trombone-champ/hero-rays-bg.png") center / cover no-repeat;
}
.community-heading { margin-bottom: 2.5rem; }
.community-grid {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  text-align: left;
}
.community-inner { max-width: 560px; }
.community-inner p { font-size: 1.05rem; opacity: .95; margin-bottom: 1.8rem; }
.community-art { flex-shrink: 0; width: clamp(300px, 36vw, 480px); }
.community-art img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateX(160px) scale(.9);
  will-change: opacity, transform;
}
.join-btn {
  display: inline-block;
  transition: transform .15s ease, filter .15s ease;
}
.join-btn img { height: 38px; width: auto; display: block; }
.join-btn:hover { transform: translateY(-3px); filter: brightness(1.05); }
.social-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.social-row-label {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-right: .3rem;
}
.social-row a, .social-links a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: transform .15s ease, background .15s ease;
}
.social-row a:hover, .social-links a:hover { transform: translateY(-3px); background: var(--yellow); }
.social-row i, .social-links i { font-size: 1.1rem; color: var(--cream); }
.social-row a:hover i, .social-links a:hover i { color: var(--black); }

@media (max-width: 760px) {
  .community-grid { flex-direction: column; text-align: center; }
  .community-inner { max-width: 100%; }
  .social-row { justify-content: center; }
}

/* ---------- footer (black scene) ---------- */
.site-footer {
  background: var(--black);
  padding: 2.5rem clamp(1.2rem, 5vw, 4rem) 1.8rem;
}
.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  max-width: 1080px;
  margin: 0 auto 1.8rem;
}
.footer-logo img { height: 30px; width: auto; }
.social-links { display: flex; gap: .8rem; }
.social-links a { width: 36px; height: 36px; }
.social-links i { font-size: .95rem; }
.social-links a.footer-careers-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .social-links { flex-wrap: wrap; justify-content: center; }
  .social-links a.footer-careers-link {
    position: static;
    transform: none;
    order: -1;
    width: 100%;
  }
}
.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.2rem;
}
.footer-copy { margin: 0; font-size: .8rem; opacity: .7; text-align: center; }
.footer-privacy-link { text-decoration: underline; opacity: .9; }
.footer-privacy-link:hover { opacity: 1; }
