/* ===== Reset & Tokens ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: #1A1A1A;
  background: #F5F2EB;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

a {
  color: inherit;
}

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

:root {
  --color-primary: #0B1F3A;
  --color-primary-deep: #08172B;
  --color-primary-light: #16335C;
  --color-accent: #FF6B2C;
  --color-accent-dark: #E5541A;
  --color-gold: #F5B301;
  --color-stone: #D8D2C0;
  --color-cream: #F5F2EB;
  --color-moss: #4A7C59;
  --color-terracotta: #C1683D;
  --color-charcoal: #1A1A1A;
  --color-gray: #8A8A8A;
  --color-white: #FFFFFF;

  --font-headline: 'Noto Sans SC', 'Source Han Sans CN', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-caption: 'JetBrains Mono', monospace;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 6px 24px rgba(11, 31, 58, 0.10);
  --shadow-card-hover: 0 16px 40px rgba(11, 31, 58, 0.16);
  --shadow-header: 0 4px 20px rgba(8, 23, 43, 0.25);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.2s;

  --container: 1280px;
  --header-height: 76px;
}

/* ===== Base & Focus ===== */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-gold);
}

#main-content {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

body {
  animation: page-fade 0.4s var(--ease) both;
}

@keyframes page-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== Accessibility ===== */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1.25rem;
  z-index: 999;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1.25rem;
}

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

/* ===== Container & Section ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4.5rem 0;
}

.section--dark {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
}

.section--cream {
  background: var(--color-cream);
}

.section--stone {
  background: var(--color-stone);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.overline {
  display: inline-block;
  font-family: var(--font-caption);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.section--dark .overline {
  color: var(--color-gold);
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.section--dark .section-title {
  color: var(--color-white);
}

.section-desc {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--color-gray);
  max-width: 60ch;
}

.section--dark .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.grid-gap-lg {
  gap: 2rem;
}

.grid-align-center {
  align-items: center;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-header);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-gold) 40%, rgba(245, 179, 1, 0) 100%);
  z-index: 2;
}

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 3;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-white);
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--color-primary);
  line-height: 1;
}

.brand-text {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-gold);
  background-color: rgba(245, 179, 1, 0.12);
}

.nav-list a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-gold);
  font-weight: 700;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 107, 44, 0.4);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header-action:hover,
.header-action:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 44, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 10px;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background-color: rgba(245, 179, 1, 0.12);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-white);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Nav ===== */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 1.25rem;
    gap: 1rem;
  }

  .header-action {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    background: var(--color-primary-deep);
    padding: 1rem 1.25rem 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 24px 48px rgba(8, 23, 43, 0.4);
  }

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

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

  .nav-list a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-list a[aria-current="page"] {
    color: var(--color-gold);
    background: rgba(245, 179, 1, 0.12);
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }

  .brand-text {
    font-size: 1rem;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-deep));
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4rem;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-gold) 45%, rgba(245, 179, 1, 0) 100%);
}

.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand--footer .brand-mark {
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
}

.brand--footer {
  margin-bottom: 1rem;
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
  max-width: 40ch;
  margin-bottom: 1.25rem;
}

.footer-trust {
  font-family: var(--font-caption);
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  border-left: 3px solid var(--color-gold);
  padding-left: 0.85rem;
  max-width: 42ch;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 1.1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

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

.footer-contact li {
  display: flex;
  gap: 0.5rem;
  line-height: 1.7;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
  word-break: break-all;
}

.footer-contact-label {
  flex-shrink: 0;
  min-width: 3ch;
  font-family: var(--font-caption);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-caption);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
  margin: 0;
}

.footer-icp {
  letter-spacing: 0.04em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255, 107, 44, 0.35);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 44, 0.4);
}

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

.btn-gold:hover,
.btn-gold:focus-visible {
  background: #FFC31F;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-outline--light {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--color-white);
}

.btn-outline--light:hover,
.btn-outline--light:focus-visible {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===== Cards ===== */
.card {
  background: var(--color-cream);
  border: 1px solid rgba(216, 210, 192, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

a.card {
  text-decoration: none;
  color: inherit;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.card-text {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ===== Tags & Notice ===== */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(245, 179, 1, 0.14);
  color: var(--color-gold);
  border: 1px solid rgba(245, 179, 1, 0.35);
  font-family: var(--font-caption);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill-tag--accent {
  background: rgba(255, 107, 44, 0.14);
  color: var(--color-accent);
  border-color: rgba(255, 107, 44, 0.35);
}

.pill-tag--moss {
  background: rgba(74, 124, 89, 0.14);
  color: var(--color-moss);
  border-color: rgba(74, 124, 89, 0.35);
}

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--color-cream);
  border: 1px solid rgba(216, 210, 192, 0.7);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-charcoal);
}

.notice--warn {
  border-left-color: var(--color-terracotta);
}

.notice--success {
  border-left-color: var(--color-moss);
}

/* ===== Stats ===== */
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  min-height: 130px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(245, 179, 1, 0.14);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.stat-value {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.stat-card--gold .stat-value {
  color: var(--color-gold);
}

.stat-label {
  margin-top: 0.5rem;
  font-family: var(--font-caption);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

/* ===== Skill-Tree Path ===== */
.path-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.path-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--color-cream);
  border: 1px solid rgba(216, 210, 192, 0.55);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.path-item:hover,
.path-item:focus-within {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-card);
}

.path-node {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-gold);
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1rem;
}

.path-content {
  flex: 1;
}

.path-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.path-desc {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* ===== Image Frames ===== */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-stone), var(--color-cream));
  aspect-ratio: 16 / 10;
}

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

.image-frame--wide {
  aspect-ratio: 21 / 9;
}

.image-frame--square {
  aspect-ratio: 1 / 1;
}

.image-frame img,
.image-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(11, 31, 58, 0.045) 0 10px, transparent 10px 20px),
    linear-gradient(145deg, var(--color-stone), var(--color-cream));
  color: var(--color-gray);
  font-family: var(--font-caption);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-caption);
  font-size: 0.85rem;
  color: var(--color-gray);
}

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

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.breadcrumbs-sep {
  color: var(--color-stone);
}

.breadcrumbs-current {
  color: var(--color-charcoal);
}

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

.breadcrumbs--on-dark .breadcrumbs-current {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs--on-dark .breadcrumbs-sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Page Head ===== */
.page-head {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  color: var(--color-white);
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.22), transparent 70%);
}

.page-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-gold) 50%, transparent 100%);
}

.page-head-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
}

.page-subtitle {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 60ch;
}

/* ===== Prose ===== */
.prose {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-charcoal);
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  color: var(--color-primary);
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--color-primary);
}

.prose p {
  margin-bottom: 1.2rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--color-primary);
}

/* ===== Table ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(216, 210, 192, 0.7);
  background: var(--color-cream);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(216, 210, 192, 0.5);
  white-space: nowrap;
}

.table-wrapper th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-headline);
  font-weight: 700;
}

.table-wrapper tr:last-child td {
  border-bottom: 0;
}

.table-wrapper tbody tr {
  transition: background-color 0.2s var(--ease);
}

.table-wrapper tbody tr:hover {
  background: rgba(245, 179, 1, 0.08);
}

/* ===== Decorative ===== */
.clip-tilt {
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.speed-line {
  position: relative;
  overflow: hidden;
}

.speed-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-accent) 0 6px,
    transparent 6px 12px,
    var(--color-gold) 12px 18px,
    transparent 18px 24px
  );
}

/* ===== Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal="shown"] {
  opacity: 1;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  .container,
  .container--narrow {
    padding: 0 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }

  .page-head {
    padding: 2.5rem 0 2rem;
  }

  .page-head-inner {
    padding: 0 1.25rem;
  }

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

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

/* ===== Reduced Motion ===== */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
