:root {
  --c-primary: #0D2433;
  --c-primary-dark: #091C2B;
  --c-primary-light: #18384E;
  --c-accent: #FF5432;
  --c-accent-light: #FF7A57;
  --c-bg: #FDF8F0;
  --c-ink: #2E2A26;
  --c-secondary: #5A6C7A;
  --c-link: #A8C6E8;
  --c-highlight: #FFC857;
  --c-line: #E0D6C8;
  --font-heading: "Noto Sans SC", "Arial Black", "Impact", sans-serif;
  --font-body: "Roboto", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-panel: 8px 8px 0px 0px rgba(13, 36, 51, 0.15);
  --shadow-panel-lg: 12px 12px 0px 0px rgba(13, 36, 51, 0.2);
  --container-w: 1200px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
}

*,
*::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);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--c-bg);
  color: var(--c-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#main-content {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--c-accent-light);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  box-shadow: none;
  border-radius: 2px;
}

::selection {
  background: var(--c-accent);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--c-accent);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
  padding: 12px 24px;
  color: #fff;
  background: var(--c-accent);
  border: 2px solid var(--c-ink);
  box-shadow: 4px 4px 0 0 var(--c-ink);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--c-accent-light);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--c-ink);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
  box-shadow: 4px 4px 0 0 var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-bg);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-primary);
  border-bottom: 4px solid var(--c-accent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-highlight));
  z-index: 10;
  transition: width 0.05s linear;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--c-bg);
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 3px 3px 0 rgba(255, 84, 50, 0.8);
}

.brand-core {
  background: var(--c-accent);
  color: #fff;
  padding: 0 8px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.brand-accent {
  color: var(--c-bg);
}

.brand-tagline {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--c-link);
  text-transform: uppercase;
  margin-top: 4px;
}

.header-bottom {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 2px 0 var(--c-line);
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  flex-wrap: wrap;
}

.nav-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  background: rgba(255, 84, 50, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--c-primary);
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon::before {
  transform: translateY(-8px);
}

.nav-toggle-icon::after {
  transform: translateY(8px);
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}

[data-nav-toggle][aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-primary-dark);
  color: var(--c-bg);
  border-top: 4px solid var(--c-accent);
  position: relative;
  margin-top: var(--space-xl);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--c-accent) 0px, var(--c-accent) 10px, transparent 10px, transparent 20px);
  opacity: 0.3;
}

.footer-inner {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.footer-brand {
  margin-bottom: var(--space-lg);
}

.footer-brand .brand-name {
  font-size: 40px;
}

.footer-trust {
  max-width: 560px;
  margin-top: var(--space-sm);
  color: var(--c-link);
  font-size: 14px;
  border-left: 4px solid var(--c-highlight);
  padding-left: var(--space-md);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.footer-col {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-highlight);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
}

.footer-col-link {
  display: block;
  padding: 6px 0;
  color: var(--c-bg);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col-link:hover {
  color: var(--c-accent);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright,
.footer-legal {
  font-size: 14px;
  color: var(--c-secondary);
}

.footer-legal {
  color: var(--c-link);
  text-decoration: none;
}

.footer-legal:hover {
  color: var(--c-accent);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 48px;
  height: 48px;
  background: var(--c-primary);
  color: var(--c-bg);
  border: 2px solid var(--c-accent);
  font-size: 20px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--c-accent);
  color: #fff;
}

/* ===== PANELS & SECTION ===== */
.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c-primary);
  display: inline-block;
  padding-right: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--c-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  margin-left: var(--space-sm);
}

.section-desc {
  color: var(--c-secondary);
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.panel {
  background: var(--c-bg);
  border: 1px solid var(--c-ink);
  box-shadow: var(--shadow-panel);
  padding: var(--space-lg);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.panel-stack {
  display: grid;
  gap: var(--space-lg);
}

.panel-stack .panel:nth-child(even) {
  transform: translateX(24px) rotate(0.5deg);
}

.panel-stack .panel:nth-child(odd) {
  transform: translateX(-8px) rotate(-0.5deg);
}

/* ===== GRID & CARD ===== */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  padding: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: var(--shadow-panel);
}

.card-title {
  font-size: 18px;
  margin-bottom: var(--space-sm);
  color: var(--c-primary);
}

.card-meta {
  font-size: 13px;
  color: var(--c-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--space-lg);
}

.breadcrumb-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-secondary);
  text-decoration: none;
}

.breadcrumb-item:hover {
  color: var(--c-accent);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--c-primary);
  font-weight: 700;
}

.breadcrumb-separator {
  color: var(--c-accent);
  font-weight: 900;
}

/* ===== IMG PLACEHOLDER ===== */
.img-placeholder {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary-light) 100%);
  border: 1px solid var(--c-line);
  overflow: hidden;
}

.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.img-placeholder::after {
  content: "SPORTS DATA IMAGE";
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--c-accent);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

/* ===== TAG & LABEL ===== */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  background: var(--c-accent);
  color: #fff;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: row;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-tagline {
    display: none;
  }

  .header-nav-wrap {
    justify-content: flex-start;
    min-height: 0;
    padding: 8px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    width: 100%;
    background: var(--c-bg);
    border-top: 1px solid var(--c-line);
  }

  .header-nav[data-open] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    border-bottom: 1px solid var(--c-line);
    border-left: 4px solid transparent;
    padding: 14px 16px;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-left-color: var(--c-accent);
    border-bottom-color: var(--c-line);
    background: rgba(255, 84, 50, 0.08);
  }

  .grid-2,
  .grid-3,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .panel-stack .panel:nth-child(even),
  .panel-stack .panel:nth-child(odd) {
    transform: none;
  }

  .section-title {
    font-size: 22px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
