:root {
  --primary-bg: #0A1F44;
  --secondary-bg: #0D2A5E;
  --accent-green: #39FF14;
  --accent-orange: #FF6A00;
  --text-primary: #FFFFFF;
  --text-secondary: #B0C4DE;
  --text-muted: #6B7A8F;
  --border-line: #1F3B6E;
  --section-alt: #081730;
  --highlight-bg: rgba(57, 255, 20, 0.1);

  --font-headline: Impact, 'Arial Black', 'PingFang SC', sans-serif;
  --font-body: Roboto, 'Helvetica Neue', 'PingFang SC', sans-serif;
  --font-mono: 'Courier New', 'Roboto Mono', monospace;

  --header-width: 280px;
  --header-mobile-height: 64px;
  --content-max-width: 1200px;
  --space-unit: 8px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: break-word;
}

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

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

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

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

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

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--section-alt);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-orange);
  color: var(--primary-bg);
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 0;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--primary-bg);
  background: var(--accent-green);
}

.btn:active {
  transform: scale(0.98);
}

.breadcrumb {
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--accent-green);
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--secondary-bg);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

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

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-orange);
  color: var(--primary-bg);
  padding: 8px 16px;
  z-index: 10000;
  font-family: var(--font-headline);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-width);
  height: 100vh;
  background: var(--primary-bg);
  border-right: 1px solid var(--border-line);
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, transparent 70%, rgba(255, 106, 0, 0.08) 100%);
  pointer-events: none;
}

.header-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headline);
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent-green);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  transform: skewX(-10deg);
  flex-shrink: 0;
}

.brand-word {
  display: inline-block;
}

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

.brand-word-hot {
  color: var(--accent-orange);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--text-primary);
  transition: background 0.2s ease;
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--accent-green);
}

.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 1rem;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--highlight-bg);
  border-left-color: var(--accent-green);
}

.nav-link[aria-current="page"] {
  color: var(--text-primary);
  border-left-color: var(--accent-orange);
  background: linear-gradient(90deg, var(--highlight-bg), transparent);
  font-weight: 700;
}

.nav-cta {
  display: block;
  padding: 12px 20px;
  background: var(--accent-green);
  color: var(--primary-bg);
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-top: auto;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-orange);
  color: #fff;
}

.reading-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent-green);
  z-index: 1100;
}

.site-footer {
  background: var(--section-alt);
  border-top: 1px solid var(--border-line);
  padding: 40px 24px 16px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.footer-brand .brand {
  font-size: 1.6rem;
}

.footer-statement {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.footer-links li,
.footer-contact-list li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact-list a {
  color: var(--text-secondary);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover,
.footer-contact-list a:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

.footer-contact-list {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-bottom {
  max-width: var(--content-max-width);
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-icp {
  font-family: var(--font-mono);
}

@media (min-width: 768px) {
  body {
    margin-left: var(--header-width);
  }
}

@media (max-width: 767px) {
  body {
    margin-left: 0;
    padding-top: var(--header-mobile-height);
    padding-bottom: 60px;
  }

  .site-header {
    width: 100%;
    height: var(--header-mobile-height);
    border-right: 0;
    border-bottom: 1px solid var(--border-line);
    overflow: visible;
  }

  .header-inner {
    height: 100%;
    padding: 0 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-top {
    margin-bottom: 0;
    width: 100%;
  }

  .brand {
    font-size: 1.4rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    background: var(--secondary-bg);
    border-top: 2px solid var(--accent-orange);
    padding: 12px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-height: calc(100vh - var(--header-mobile-height));
    overflow-y: auto;
    flex-direction: column;
    gap: 8px;
  }

  .site-nav[data-open] {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .nav-link {
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .nav-link[aria-current="page"] {
    border-left: 0;
    border-bottom-color: var(--accent-orange);
    background: transparent;
  }

  .nav-cta {
    margin: 8px auto 0;
    width: 100%;
    max-width: 240px;
  }

  .reading-progress {
    bottom: 0;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
