/* /assets/site.css */
:root {
  --color-primary: #0B3D2E;
  --color-primary-dark: #083024;
  --color-gold: #D4AF37;
  --color-gold-soft: #E7C766;
  --color-red: #8B0000;
  --color-bg: #F5F7F6;
  --color-dark: #0A1A14;
  --color-text: #1A1A1A;
  --color-text-sub: #5C6F66;
  --color-line: #C9D1CF;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container-w: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 2px;
  --shadow-card: 0 14px 34px rgba(10, 26, 20, .12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  margin: 0 0 .75rem;
  line-height: 1.3;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3rem);
  color: var(--color-dark);
}

h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--color-dark);
}

h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-dark);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  padding: 0;
  margin: 0;
  list-style-position: inside;
}

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

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

::selection {
  background: var(--color-gold);
  color: var(--color-dark);
}

#main-content {
  display: block;
  outline: none;
}

.container {
  width: min(100% - 2rem, var(--container-w));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(212, 175, 55, .12);
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 1600;
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight: 700;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.ticker {
  background: var(--color-dark);
  border-bottom: 1px solid rgba(212, 175, 55, .32);
  color: rgba(255, 255, 255, .72);
  font-size: .74rem;
}

.ticker__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  overflow: hidden;
}

.ticker__label, .ticker__meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker__label {
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.ticker__meta {
  color: rgba(255, 255, 255, .62);
  flex: 1;
  text-align: center;
}

.ticker__coords {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .5);
  flex-shrink: 0;
}

.pitch-header {
  position: relative;
  background: var(--color-primary);
  color: #fff;
}

.pitch-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  width: 38%;
  height: 100%;
  background: linear-gradient(105deg, transparent 38%, rgba(212, 175, 55, .16) 42%, transparent 62%);
  pointer-events: none;
}

.pitch-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(212, 175, 55, .35) 48%, transparent 100%);
}

.pitch-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: #fff;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .05em;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
  transition: transform .25s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-4deg) skewX(-4deg);
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: .06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.match-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .15rem;
  align-items: center;
}

.match-list__item {
  margin: 0;
}

.match-list__item a {
  position: relative;
  display: block;
  padding: .65rem .75rem;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .01em;
  transition: color .2s var(--ease);
}

.match-list__item a::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .28rem;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.match-list__item a:hover {
  color: var(--color-gold);
}

.match-list__item a:hover::after {
  transform: scaleX(1);
}

.match-list__item a[aria-current="page"] {
  color: var(--color-gold);
}

.match-list__item a[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .62rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}

.btn--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.btn--gold:hover {
  background: var(--color-gold-soft);
  border-color: var(--color-gold-soft);
  color: var(--color-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, .28);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--ghost:hover {
  background: rgba(212, 175, 55, .1);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.header-login {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, .65);
  color: var(--color-gold);
  padding: .45rem .8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.2;
}

.nav-toggle:hover {
  background: rgba(212, 175, 55, .12);
}

.nav-toggle__box {
  display: grid;
  gap: 3px;
  width: 18px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .28s var(--ease), opacity .18s;
}

.nav-toggle__label {
  font-size: .78rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(212, 175, 55, .18);
  z-index: 1500;
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-gold) 100%);
}

.site-footer {
  position: relative;
  background: var(--color-dark);
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
  margin-top: 4rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(212, 175, 55, .35) 55%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding: 3rem 0 2.2rem;
}

.footer-brand {
  display: grid;
  gap: .15rem;
  align-content: start;
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: .06em;
  margin: 0 0 .4rem;
}

.footer-brand__slogan {
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 .9rem;
}

.footer-trust {
  max-width: 34em;
  font-size: .84rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .62);
  margin: 0;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: .55rem;
}

.footer-col__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(212, 175, 55, .3);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color .2s var(--ease);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-links a[aria-current="page"] {
  color: var(--color-gold);
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
}

.footer-contact li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

.footer-contact li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.15rem 0;
  font-size: .76rem;
  color: rgba(255, 255, 255, .55);
}

.footer-copyright, .footer-icp {
  margin: 0;
}

.breadcrumbs {
  padding: 1rem 0 0;
  font-size: .82rem;
  color: var(--color-text-sub);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .3rem .5rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: .5rem;
  color: var(--color-line);
}

.breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-gold);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text-sub);
}

.section {
  padding: 3.5rem 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .35rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  padding: 1.5rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(212, 175, 55, .65);
}

.card__index {
  position: absolute;
  top: -.6rem;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .2rem .55rem;
}

.card__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--color-dark);
  margin: 0 0 .5rem;
}

.card__text {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--color-text-sub);
  margin: 0 0 1rem;
}

.figure {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  aspect-ratio: 4 / 3;
}

.figure--wide {
  aspect-ratio: 16 / 9;
}

.figure--tall {
  aspect-ratio: 3 / 4;
}

.figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__index {
  position: absolute;
  top: .6rem;
  left: 0;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: .22rem .6rem;
  z-index: 1;
}

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: .9rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(10, 26, 20, .88));
  color: #fff;
  font-size: .8rem;
  z-index: 1;
}

.blueprint-grid {
  position: relative;
  background-color: var(--color-primary);
  background-image: linear-gradient(rgba(212, 175, 55, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 175, 55, .08) 1px, transparent 1px);
  background-size: 26px 26px;
}

.glass-panel {
  background: rgba(245, 247, 246, .84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .65);
}

.cut-corner {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--color-gold);
  display: grid;
  gap: 1.4rem;
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: .3rem;
  width: .55rem;
  height: .55rem;
  background: var(--color-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}

.tabs {
  border: 1px solid var(--color-line);
  background: var(--color-bg);
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  border-bottom: 1px solid var(--color-line);
  background: rgba(10, 26, 20, .04);
  padding: .4rem .4rem 0;
  margin: 0;
}

.tabs__trigger {
  border: 1px solid transparent;
  background: transparent;
  padding: .6rem 1.1rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-text-sub);
  border-radius: 2px 2px 0 0;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.tabs__trigger:hover {
  color: var(--color-primary);
}

.tabs__trigger[aria-selected="true"] {
  background: #fff;
  border-color: var(--color-line);
  border-bottom-color: #fff;
  color: var(--color-primary);
  position: relative;
  top: 1px;
}

.tabs__panel {
  padding: 1.5rem;
}

.tabs__panel[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--color-primary-dark);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border-top: 1px solid rgba(212, 175, 55, .18);
    box-shadow: 0 20px 34px rgba(10, 26, 20, .45);
    transition: max-height .45s var(--ease), opacity .3s ease, visibility .3s;
  }

  .main-nav[data-open] {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .match-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: .55rem 1rem 0;
  }

  .match-list__item a {
    padding: .9rem .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .match-list__item a::after {
    display: none;
  }

  .match-list__item a[aria-current="page"] {
    border-left: 3px solid var(--color-gold);
    padding-left: calc(.5rem + 3px);
  }

  .header-login {
    width: auto;
    margin: .9rem 1rem 1.2rem;
  }

  .ticker__meta {
    display: none;
  }

  .ticker__coords {
    display: none;
  }

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

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .ticker {
    display: none;
  }

  .section {
    padding: 2.4rem 0;
  }

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

  .grid {
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 2.4rem 0 1.8rem;
  }

  .footer-brand {
    order: -1;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .breadcrumbs {
    font-size: .76rem;
  }
}

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

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .progress, .progress__bar {
    display: none !important;
  }

  .nav-toggle__bar {
    transition: none;
  }
}
