/* ============================================
   LEAGUE RUN — F1-Inspired Sport League Design
   IP of Race Up Work Co., Ltd. | league.run
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --red: #E31E24;
  --red-glow: #FF2D32;
  --red-deep: #B41217;

  /* Dark Surface */
  --bg: #050505;
  --bg-elev: #0E0E0E;
  --bg-card: #141414;
  --bg-soft: #1C1C1C;
  --line: #2A2A2A;
  --line-soft: #1F1F1F;

  /* Accent */
  --gold: #FFD200;
  --green: #00E676;
  --blue: #18A0FB;
  --silver: #B8B8B8;

  /* Text */
  --text: #FFFFFF;
  --text-mute: #B0B0B0;
  --text-dim: #707070;
  --text-faint: #4A4A4A;

  /* Layout */
  --container: 1320px;
  --radius: 4px;
  --radius-lg: 12px;

  /* Type */
  --font-display: 'Bebas Neue', 'Oswald', 'Anton', 'Kanit', sans-serif;
  --font-body: 'Inter', 'Kanit', 'Prompt', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-snap: cubic-bezier(.85,0,.15,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* Selection */
::selection { background: var(--red); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-deep); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
p { color: var(--text-mute); }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* Eyebrow / kicker */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px; background: var(--red);
  display: inline-block;
}

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Top Bar (LiveStrip) ---------- */
.top-strip {
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 100;
}
.top-strip-track {
  display: inline-block;
  animation: ticker 35s linear infinite;
  padding-left: 100%;
}
.top-strip-track span { padding: 0 2rem; }
.top-strip-track span::before { content: '●'; padding-right: .8rem; opacity: .6; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(5,5,5,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: padding .3s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--text);
}
.brand-logo {
  width: 40px; height: 40px; flex-shrink: 0;
}
.brand-text strong { color: var(--red); }

.nav-menu { display: flex; gap: 6px; align-items: center; }
.nav-menu a {
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
  padding: 10px 14px;
  position: relative;
  transition: color .2s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a.active::after,
.nav-menu a:hover::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red);
}

.nav-cta { display: flex; gap: 8px; align-items: center; }
.lang-toggle {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-mute);
  letter-spacing: .1em;
  transition: all .2s var(--ease);
}
.lang-toggle button.active {
  background: var(--red); color: #fff;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 0;
  position: relative;
  transition: all .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-glow);
  transform: translateX(2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  clip-path: none;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-arrow::after {
  content: '→'; font-family: var(--font-body); font-size: 1rem;
  transition: transform .2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

.hamburger { display: none; }

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .hamburger {
    display: flex; flex-direction: column; gap: 4px;
    width: 32px; height: 32px;
    justify-content: center; align-items: center;
  }
  .hamburger span {
    width: 22px; height: 2px; background: #fff;
    transition: all .3s var(--ease);
  }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 0;
  }
  .nav-menu.open a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 102px);
  background: var(--bg);
  overflow: hidden;
  display: flex; align-items: center;
  padding: 80px 0 120px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(227,30,36,.30) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(227,30,36,.12) 0%, transparent 60%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
/* Speed lines */
.hero-speed {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-speed::before, .hero-speed::after {
  content: '';
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
  animation: speed 6s linear infinite;
  opacity: .5;
}
.hero-speed::before { top: 30%; width: 60%; left: -60%; }
.hero-speed::after { top: 65%; width: 40%; left: -40%; animation-delay: 2s; animation-duration: 4s; }
@keyframes speed {
  to { left: 110%; }
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
}
.hero-title {
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: .9;
  letter-spacing: -.01em;
}
.hero-title .red { color: var(--red); }
.hero-title .stroke {
  -webkit-text-stroke: 2px var(--red);
  color: transparent;
}
.hero-tagline {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 24px 0 32px;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

/* Hero stat block */
.hero-stat-card {
  background: linear-gradient(135deg, rgba(227,30,36,.15) 0%, var(--bg-card) 60%);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.hero-stat-card::before {
  content: 'LIVE EVENT';
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .25em;
  background: var(--red);
  padding: 4px 10px;
  color: #fff;
}
.hero-stat-card::after {
  content: '';
  position: absolute; top: 12px; right: 16px;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

.hero-stat-card h4 {
  font-size: 1rem;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.hero-stat-card .event-name {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.hero-stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero-stat-grid div span {
  display: block;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-stat-grid div strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin-top: 4px;
  display: block;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex; gap: 8px; margin-top: 20px;
}
.countdown-cell {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 8px;
  text-align: center;
  position: relative;
}
.countdown-cell::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px; background: var(--red);
}
.countdown-cell strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  display: block;
  line-height: 1;
}
.countdown-cell span {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ---------- Section base ---------- */
section { position: relative; }
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px; flex-wrap: wrap;
}
.section-header h2 { max-width: 700px; }
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  margin: 0;
}

/* Stats Bar */
.stats-bar {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 40px 0;
}
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 768px) {
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}
.stats-bar-grid .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--red);
  line-height: 1;
}
.stats-bar-grid .stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ---------- Pillars (3 cards) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
@media (max-width: 768px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 40px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease);
}
.pillar:last-child { border-right: none; }
@media (max-width: 768px) {
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
}
.pillar:hover { background: var(--bg-card); }
.pillar-num {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--red);
  opacity: .25;
  line-height: 1;
  position: absolute;
  top: 16px; right: 24px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { font-size: .95rem; }

/* ---------- Format Strip ---------- */
.format-strip {
  background: var(--bg-elev);
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg);
}
.format-item {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.format-item:last-child { border-right: none; }
.format-item .num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--red);
  line-height: 1;
}
.format-item .label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-top: 8px; display: block;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
  transition: all .3s var(--ease);
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}
.card-corner {
  position: absolute; top: 0; right: 0;
  width: 32px; height: 32px;
  background: var(--red);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* ---------- Prize Section ---------- */
.prize-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) { .prize-grid { grid-template-columns: 1fr; } }
.prize-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.prize-card.champion {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(227,30,36,.18) 0%, var(--bg-card) 80%);
}
.prize-card.champion::before {
  content: 'CHAMPION';
  position: absolute; top: 0; left: 0;
  background: var(--red); color: #fff;
  font-family: var(--font-mono);
  font-size: .65rem; letter-spacing: .25em;
  padding: 4px 12px;
}
.prize-rank {
  font-family: var(--font-mono);
  font-size: .8rem; color: var(--text-dim);
  letter-spacing: .2em;
}
.prize-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text);
  line-height: 1;
  margin: 12px 0 8px;
}
.prize-card.champion .prize-amount { color: var(--red); }
.prize-detail {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-mute);
  letter-spacing: .1em;
}

/* ---------- Sponsor Strip ---------- */
.sponsor-strip {
  padding: 60px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
}
.sponsor-strip h4 {
  text-align: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-weight: 400;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sponsor-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dim);
  letter-spacing: .15em;
  transition: all .2s var(--ease);
}
.sponsor-cell:hover { background: var(--bg-card); color: var(--text); }
.sponsor-cell.tba { font-family: var(--font-mono); font-size: .75rem; color: var(--text-faint); }

/* ---------- Tables ---------- */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.standings-table th {
  text-align: left;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.standings-table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9rem;
}
.standings-table tr:hover td { background: var(--bg-card); }
.standings-table .pos {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text);
  width: 60px;
}
.standings-table .pos-1 { color: var(--gold); }
.standings-table .pos-2 { color: var(--silver); }
.standings-table .pos-3 { color: #CD7F32; }
.standings-table .team-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---------- Schedule Cards ---------- */
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.schedule-row {
  display: grid;
  grid-template-columns: 110px 1.5fr 1fr 120px;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 20px 24px;
  transition: all .3s var(--ease);
}
.schedule-row:hover {
  border-color: var(--red);
  background: var(--bg-soft);
}
@media (max-width: 768px) {
  .schedule-row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
}
.schedule-date {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.schedule-date small {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .2em;
  color: var(--text-dim); margin-top: 4px;
}
.schedule-event h4 { font-size: 1.2rem; }
.schedule-event small {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .2em;
  color: var(--text-dim); text-transform: uppercase;
}
.schedule-tier {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 6px 10px;
  display: inline-block;
}
.tier-national { background: var(--red); color: #fff; }
.tier-regional { background: var(--gold); color: #000; }
.tier-provincial { background: var(--bg-soft); color: var(--text-mute); border: 1px solid var(--line); }

.schedule-status {
  text-align: right;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.status-open { color: var(--green); }
.status-soon { color: var(--gold); }
.status-closed { color: var(--text-faint); }

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}
.team-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}
.team-card .team-num {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--red);
  opacity: .3;
  line-height: 1;
  position: absolute;
  top: 8px; right: 16px;
}
.team-card h3 { font-size: 1.6rem; margin-bottom: 8px; position: relative; z-index: 1; }
.team-card .team-meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.team-card .team-roster {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; gap: 4px;
  flex-wrap: wrap;
}
.team-card .team-roster span {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-mute);
}

/* ---------- Sponsor Tiers (Sponsors page) ---------- */
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
}
.tier-presenting {
  border-color: var(--red);
  background: linear-gradient(135deg, rgba(227,30,36,.12) 0%, var(--bg-card) 80%);
}
.tier-presenting::before {
  content: 'PRESENTING';
  position: absolute; top: -1px; left: -1px;
  background: var(--red); color: #fff;
  font-family: var(--font-mono);
  font-size: .65rem; letter-spacing: .25em;
  padding: 6px 14px;
}
.tier-card h3 { color: var(--red); }
.tier-presenting h3 { color: var(--text); }
.tier-card .tier-price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text);
  line-height: 1;
  margin: 16px 0;
}
.tier-card .tier-price small {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  display: block; margin-bottom: 4px;
}
.tier-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9rem;
  color: var(--text-mute);
  display: flex; align-items: center; gap: 8px;
}
.tier-card ul li::before {
  content: '▸'; color: var(--red); font-weight: bold;
}

/* ---------- News Cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all .3s var(--ease);
}
.news-card:hover { border-color: var(--red); transform: translateY(-4px); }
.news-cover {
  height: 200px;
  background:
    linear-gradient(135deg, var(--red-deep) 0%, var(--bg) 80%),
    var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.news-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(0,0,0,.15) 10px, rgba(0,0,0,.15) 20px);
}
.news-card-body { padding: 24px; }
.news-meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.news-card h4 { margin-bottom: 12px; line-height: 1.2; }
.news-card p { font-size: .9rem; }

/* ---------- Forms (Register CTA section) ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.03) 2px, transparent 2px, transparent 30px);
}
.cta-band-content {
  position: relative; z-index: 1;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-band .btn-primary {
  background: #fff; color: var(--red); font-size: .9rem;
  padding: 16px 32px;
}
.cta-band .btn-primary:hover { background: #000; color: #fff; }

/* ---------- Footer ---------- */
footer {
  background: #000;
  border-top: 1px solid var(--line);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a {
  color: var(--text-mute);
  font-size: .9rem;
  transition: color .2s var(--ease);
}
.footer-grid ul a:hover { color: var(--red); }
.footer-brand p {
  margin-top: 16px; font-size: .9rem; max-width: 380px;
}
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.social-row a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.show { opacity: 1; transform: translateY(0); }

/* Stagger */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  background: var(--bg-elev);
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(227,30,36,.12) 0%, transparent 60%);
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(3rem, 8vw, 6rem); }
.page-header .breadcrumb {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-header .breadcrumb a:hover { color: var(--red); }

/* Anchor offset under sticky nav */
section[id] { scroll-margin-top: 80px; }

/* ---------- Utility ---------- */
.text-red { color: var(--red); }
.text-mute { color: var(--text-mute); }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }

/* Lang visibility — driven by <html lang="..."> attribute */
[data-lang] { display: none; }
html[lang^="th"] [data-lang="th"],
html[lang^="en"] [data-lang="en"] { display: revert; }
