@font-face {
  font-family: "Obviously";
  src: url("./assets/fonts/ObviouslyDemo-Medium.otf") format("opentype");
  font-style: normal;
}

@font-face {
  font-family: "ObviouslyNarrowBlack";
  src: url("./assets/fonts/ObviouslyDemo-NarrowBlack.otf") format("opentype");
  font-style: normal;
}

:root {
  --color-black: #333333;
  --color-grey-1: #3b3232;
  --color-grey-2: #423939;
  --color-grey-3: #d1cbd9;
  --color-red: #e60000;
  --color-yellow: #ffb100;
  --color-beige: #fff1dc;
  --color-beige-soft: #fff0db;
  --color-white: #ffffff;

  --radius-xlg: 8px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.18);
  --shadow-subtle: 0 12px 30px rgba(0, 0, 0, 0.12);
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

p {
  margin: 0;
  padding: 0;
  line-height: 1;
}

body {
  min-height: 100vh;
  background-color: var(--color-beige-soft);
  color: var(--color-grey-1);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family:
    "ObviouslyNarrowBlack",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.05;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.15;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.btn {
  border: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn-primary {
  background: var(--color-yellow);
  color: var(--color-black);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-red);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  padding: 0 3.5vw;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  padding-top: 5vh;
}

.logo-mark {
  width: 20%;
}

.header-cta {
  text-decoration: none;
  background: var(--color-yellow);
  color: #444444;
  font-family:
    "ObviouslyNarrowBlack",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 5.5vw, 24px);
  line-height: 1;
  padding: 0.55rem 1.6rem;
}

.header-cta-label {
  display: inline-block;
  transform: translateY(-0.1em);
}

/* ── Hero ── */

.hero {
  background: linear-gradient(
    to bottom,
    var(--color-beige) 0%,
    var(--color-beige) 90%,
    var(--color-red) 90%,
    var(--color-red) 100%
  );
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner-title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 8vh;
}

.hero-welcome-tramfam {
  width: 80%;
}

.hero-loyalty-badge {
  width: 20%;
  position: relative;
  margin-left: 70%;
  margin-top: -5%;
}

.hero-body {
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Obviously";
  line-height: 1.6;
  color: var(--color-grey-1);
  padding: 1rem 2rem;
}

.hero-body-text {
  text-align: center;
  font-size: 14px;
}

.hero-cta {
  text-decoration: none;
  margin-top: 1.75rem;
  padding: 0.55rem 1.6rem;
  background: var(--color-red);
  color: var(--color-white);
}

.hero-cta-label {
  font-family: "ObviouslyNarrowBlack";
  display: inline-block;
  transform: translateY(-0.1em);
  font-size: clamp(16px, 1.4rem, 28px);
}

.hero-spub-bros-img {
  align-self: flex-end;
  margin-top: 5%;
  width: 60%;
}

/* ── How It Works ── */

.how-it-works {
  background: var(--color-grey-1);
  padding: 56px 2.5vw;
}

.how-it-works-title {
  text-align: center;
  font-size: 24px;
  font-family: ObviouslyNarrowBlack;
  color: var(--color-white);
  padding: 0 3vw;
}

.how-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 32px;
}

.how-card {
  border-radius: var(--radius-xlg);
  width: 70%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform-origin: center;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.how-card:nth-child(2) {
  transition-delay: 0.12s;
}
.how-card:nth-child(3) {
  transition-delay: 0.24s;
}
.how-card:nth-child(4) {
  transition-delay: 0.36s;
}

.how-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.how-card-media {
  aspect-ratio: 16 / 7;
}

.how-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-card-body {
  background: var(--color-white);
  color: var(--color-black);
  padding: 0.5rem;
}

.how-card-body h3 {
  font-size: 22px;
  font-family: "ObviouslyNarrowBlack";
  line-height: 1;
}

.how-card-body p {
  font-family: "Obviously";
  font-size: 12px;
}

/* ── Rewards ── */

.rewards {
  background: var(--color-beige);
}

.rewards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rewards-section-header {
  text-align: center;
  padding: 104px 5vw;
  color: var(--color-red);
}

.rewards-section-header > label {
  font-family: ObviouslyNarrowBlack;
  font-size: 36px;
  padding-bottom: 24px;
}

.rewards-section-header > p {
  font-family: Obviously;
  font-size: 20px;
}

.rewards-section-header > p:nth-child(2) {
  margin-top: 24px;
}

.rewards-section-header > p:nth-child(3) {
  font-family: ObviouslyNarrowBlack;
  letter-spacing: 0.1ch;
  padding: 1vh 0;
  font-size: 28px;
}

.rewards-section-header > p:nth-child(4) {
  margin-top: 16px;
}

.reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 10vw;
}

.reward-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

.reward-item {
  width: 35vw;
  height: 35vw;
}

/* ── Team ── */

.team-container {
  display: flex;
  flex-direction: column;
}

.team-section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
  padding: 8vh 0;
}

.team-section-header-title,
.team-section-subtitle,
.team-container-vip-title {
  color: var(--color-red);
  font-family: ObviouslyNarrowBlack;
}

.team-section-subtitle-container {
  display: flex;
  line-height: 1;
  padding-bottom: 24px;
  flex-direction: column;
  justify-items: "center";
}

.team-section-container-text {
  color: var(--color-red);
  font-family: Obviously;
}

.team-section-subtitle-container-text {
}

.team-section-header-title {
  font-size: 36px;
  padding-bottom: 24px;
}

.team-section-subtitle {
  font-size: 28px;
}

.team-section-container-subtitle {
  font-size: 24px;
}

.team-section-text,
.team-container-vip-text {
  color: var(--color-red);
  font-family: Obviously;
}

.team-section-text {
  width: 80%;
  text-align: center;
}

.team-caroussel {
  display: flex;
  gap: 4vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 3vh 4vw;
  scroll-padding-inline: 4vw;
  -webkit-overflow-scrolling: touch;
}

.team-caroussel::-webkit-scrollbar {
  height: 6px;
}

.team-caroussel::-webkit-scrollbar-track {
  background: transparent;
}

.team-caroussel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.team-caroussel-item {
  background-color: var(--color-grey-3);
  display: flex;
  flex: 0 0 80vw;
  border-radius: 16px;
  padding: 3vh 2.5vw;
  gap: 5vw;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
}

.team-caroussel-item-image {
  width: 25vw;
  height: 25vw;
}

.team-caroussel-text-container {
  display: flex;
  flex-direction: column;
}

.team-caroussel-item-title {
  font-style: italic;
  font-family: Obviously;
  font-size: 10px;
}

.team-caroussel-item-description {
  font-family: Obviously;
  line-height: 1;
  font-size: 12px;
}

.team-container-vip {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1vh 6vw;
}

.team-container-vip-title {
  font-size: 36px;
  padding-bottom: 24px;
}

.team-container-vip-img {
  width: 40vw;
  animation: team-availability-spin 4s linear infinite;
}

.team-container-vip-text {
  font-size: 16px;
}

.team-container-availability {
  display: flex;
  align-items: center;
  padding: 3vh 2.5vw;
  gap: 5vw;
}

.team-container-availability-img {
  width: 15vw;
  height: 15vw;
}

@keyframes team-availability-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.team-container-availability-title {
  font-family: ObviouslyNarrowBlack;
  font-size: 13px;
}

.team-container-availability-text {
  font-family: Obviously;
  font-size: 11px;
}

/* ── Footer ── */

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 4vh 5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.2rem;
  font-size: 0.86rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-family: inter;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ── Desktop ── */

@media (min-width: 1024px) {
  /* ─ Header ─ */
  .header-inner {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .logo-mark {
    width: 120px;
  }

  .header-cta {
    font-size: 22px;
    padding: 0.6rem 2rem;
  }

  /* ─ Hero ─ */
  .hero {
    background: linear-gradient(
      to bottom,
      var(--color-beige) 0%,
      var(--color-beige) 90%,
      var(--color-red) 90%,
      var(--color-red) 100%
    );
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    padding: 2rem 2rem 0;
    min-height: 55vh;
  }

  .hero-inner-title-container {
    grid-column: 1;
    grid-row: 1;
    padding-top: 2vh;
    align-items: flex-start;
  }

  .hero-welcome-tramfam {
    width: 100%;
    max-width: 480px;
  }

  .hero-loyalty-badge {
    width: 20%;
    margin-left: 72%;
    margin-top: -10%;
  }

  .hero-body {
    grid-column: 1;
    grid-row: 2;
    align-items: flex-start;
    max-width: 420px;
    padding: 0.5rem 0 2rem;
  }

  .hero-body-text {
    text-align: left;
    font-size: 16px;
  }

  .hero-cta {
    margin-top: 1.25rem;
  }

  .hero-spub-bros-img {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    justify-self: end;
    width: 85%;
    margin-top: 0;
  }

  /* ─ How It Works ─ */
  .how-it-works {
    padding: 6vh 4vw;
  }

  .how-it-works-title {
    font-size: 36px;
  }

  .how-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding-top: 4vh;
  }

  .how-card {
    width: calc(50% - 2rem);
    max-width: 480px;
  }

  .how-card-media {
    aspect-ratio: 16 / 9;
  }

  .how-card-body {
    padding: 0.75rem 1rem;
  }

  .how-card-body h3 {
    font-size: 26px;
  }

  .how-card-body p {
    font-size: 14px;
    line-height: 1.4;
  }

  /* ─ Rewards ─ */
  .rewards-section-header {
    padding: 3rem 2rem;
  }

  .rewards-section-header > label {
    font-size: 52px;
  }

  .rewards-section-header > p {
    font-size: 18px;
  }

  .rewards-section-header > p:nth-child(3) {
    font-size: 34px;
  }

  .reward-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
  }

  .reward-item:last-child:nth-child(odd) {
    grid-column: unset;
  }

  .reward-item {
    width: 180px;
    height: 180px;
  }

  /* ─ Team ─ */
  .team-section-header {
    padding: 6vh 0 3vh;
  }

  .team-section-header-title {
    font-size: 52px;
  }

  .team-section-subtitle-subtitle {
    font-size: 28px;
  }

  .team-section-text {
    width: 50%;
    font-size: 16px;
    line-height: 1.5;
  }

  .team-caroussel {
    gap: 1.5rem;
    padding: 3vh 3rem;
  }

  .team-caroussel-item {
    flex: 0 0 360px;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .team-caroussel-item-image {
    width: 80px;
    height: 80px;
  }

  .team-caroussel-item-title {
    font-size: 13px;
  }

  .team-caroussel-item-description {
    font-size: 14px;
    line-height: 1.3;
  }

  .team-container-vip {
    padding: 5vh 2rem;
  }

  .team-container-vip-title {
    font-size: 36px;
  }

  .team-container-vip-text {
    font-size: 18px;
    max-width: 560px;
    line-height: 1.4;
  }

  .team-container-vip-img {
    width: 160px;
  }

  .team-container-availability {
    justify-content: center;
    padding: 3vh 2rem 5vh;
    gap: 2rem;
  }

  .team-container-availability-img {
    width: 80px;
    height: 80px;
  }

  .team-container-availability-title {
    font-size: 16px;
  }

  .team-container-availability-text {
    font-size: 14px;
    line-height: 1.4;
  }

  /* ─ Footer ─ */
  .site-footer {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3vh 4vw;
    font-size: 0.9rem;
  }

  /* ─ Typography ─ */
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }
}
