/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; font-weight: 300; font-size: 1rem; line-height: 1.7; color: #2C2C2C; background: #FFFFFF; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s, border-color 0.2s, box-shadow 0.2s; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif; font-weight: 900; font-style: italic; line-height: 1.2; }
:focus-visible { outline: 2px solid #39FF14; outline-offset: 4px; border-radius: 2px; }
::selection { background: #39FF14; color: #0A1F44; }

/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #0A1F44;
  --color-accent: #39FF14;
  --color-silver: #C0C0C0;
  --color-white: #FFFFFF;
  --color-dark: #2C2C2C;
  --color-light: #F5F5F5;
  --color-danger: #FF3355;
  --color-bg: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-light: #555;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", "Consolas", monospace;
  --site-max-width: 1280px;
  --header-height: 80px;
  --header-left-width: 30%;
  --transition-fast: 0.2s;
  --transition-med: 0.35s;
}

/* ===== SKIP LINK ===== */
.skip-link { position: absolute; top: -100px; left: 0; z-index: 1000; padding: 12px 24px; background: var(--color-primary); color: var(--color-white); font-family: var(--font-mono); font-size: 0.875rem; transition: top 0.25s; }
.skip-link:focus { top: 0; outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: var(--color-accent); z-index: 9999; transition: width 0.1s linear; pointer-events: none; }

/* ===== SITE HEADER ===== */
.site-header { display: flex; width: 100%; height: var(--header-height); background: var(--color-white); border-bottom: 2px solid var(--color-primary); position: relative; z-index: 500; }
.header-left { width: var(--header-left-width); min-width: 240px; background: var(--color-primary); display: flex; align-items: center; padding: 0 28px; position: relative; }
.header-left::after { content: ''; position: absolute; right: -20px; top: 0; width: 40px; height: 100%; background: var(--color-primary); clip-path: polygon(0 0, 100% 50%, 0 100%); pointer-events: none; z-index: 1; }
.brand-link { display: flex; flex-direction: column; gap: 2px; color: var(--color-white); z-index: 2; position: relative; }
.brand-name { font-family: var(--font-heading); font-weight: 900; font-style: italic; font-size: 1.75rem; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-tagline { font-family: var(--font-body); font-weight: 300; font-size: 0.8rem; color: var(--color-silver); letter-spacing: 0.04em; opacity: 0.85; }
.header-right { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 32px 0 40px; background: var(--color-white); position: relative; }

/* ===== NAV PRIMARY ===== */
.nav-primary { margin-bottom: 4px; }
.nav-list { display: flex; flex-wrap: wrap; gap: 0; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400; }
.nav-list li { display: flex; align-items: center; }
.nav-list li + li::before { content: '/'; color: var(--color-silver); margin: 0 10px; font-weight: 300; user-select: none; }
.nav-list a { padding: 4px 0; color: var(--color-dark); border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.nav-list a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.nav-list a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 700; }

/* ===== BREADCRUMB ===== */
.nav-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--color-text-light); border-top: 1px solid var(--color-light); padding-top: 6px; }
.breadcrumb-label { font-family: var(--font-mono); color: var(--color-silver); font-size: 0.75rem; }
.breadcrumb-list { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-dark); }
.breadcrumb-list a { color: var(--color-primary); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.breadcrumb-list a:hover { border-bottom-color: var(--color-primary); }
.breadcrumb-sep { margin: 0 6px; color: var(--color-silver); }

/* ===== NAV TOGGLE (MOBILE) ===== */
.nav-toggle { display: none; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 600; width: 40px; height: 40px; background: none; border: 2px solid var(--color-primary); border-radius: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px; transition: background 0.2s, border-color 0.2s; }
.nav-toggle:hover { border-color: var(--color-accent); }
.nav-toggle-line { display: block; width: 22px; height: 2px; background: var(--color-primary); transition: transform 0.3s, opacity 0.3s; border-radius: 1px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== NAV DRAWER (MOBILE) ===== */
.nav-drawer { position: fixed; top: var(--header-height); left: 0; width: 100%; height: calc(100vh - var(--header-height)); background: var(--color-primary); z-index: 400; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; }
.nav-drawer[data-open] { transform: translateX(0); }
.nav-drawer-list { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer-list a { display: block; padding: 14px 20px; font-family: var(--font-mono); font-size: 1rem; color: var(--color-white); border-left: 3px solid transparent; transition: border-color 0.2s, background 0.2s; }
.nav-drawer-list a:hover { border-left-color: var(--color-accent); background: rgba(57, 255, 20, 0.08); }
.nav-drawer-list a[aria-current="page"] { border-left-color: var(--color-accent); color: var(--color-accent); font-weight: 700; }

/* ===== SITE FOOTER ===== */
.site-footer { background: var(--color-primary); color: var(--color-white); padding: 56px 0 0; }
.footer-inner { max-width: var(--site-max-width); margin: 0 auto; padding: 0 32px 40px; display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { flex: 1 1 300px; min-width: 240px; }
.footer-brand-name { display: block; font-family: var(--font-heading); font-weight: 900; font-style: italic; font-size: 1.6rem; color: var(--color-white); margin-bottom: 12px; letter-spacing: 0.02em; }
.footer-brand-desc { font-size: 0.9rem; color: var(--color-silver); line-height: 1.6; margin-bottom: 12px; max-width: 360px; }
.footer-trust { font-size: 0.8rem; color: rgba(192, 192, 192, 0.65); border-left: 3px solid var(--color-accent); padding-left: 14px; }
.footer-links { flex: 1 1 200px; min-width: 160px; }
.footer-heading { font-family: var(--font-heading); font-weight: 700; font-style: italic; font-size: 1rem; color: var(--color-accent); margin-bottom: 16px; letter-spacing: 0.03em; position: relative; padding-bottom: 8px; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--color-accent); }
.footer-link-list { display: flex; flex-direction: column; gap: 10px; }
.footer-link-list a { color: var(--color-silver); font-size: 0.88rem; transition: color 0.2s, padding-left 0.2s; padding-left: 0; }
.footer-link-list a:hover { color: var(--color-accent); padding-left: 6px; }
.footer-contact { flex: 1 1 280px; min-width: 200px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li { font-size: 0.88rem; color: var(--color-silver); display: flex; flex-wrap: wrap; gap: 4px; }
.contact-label { color: rgba(192, 192, 192, 0.6); font-family: var(--font-mono); font-size: 0.78rem; min-width: 72px; }
.footer-contact-list a { color: var(--color-silver); transition: color 0.2s; border-bottom: 1px solid transparent; }
.footer-contact-list a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }

/* ===== FOOTER BOTTOM ===== */
.footer-bottom { border-top: 1px solid rgba(192, 192, 192, 0.2); padding: 20px 32px; }
.footer-bottom-inner { max-width: var(--site-max-width); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--color-silver); }
.footer-icp { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(192, 192, 192, 0.5); }
.footer-copyright { font-size: 0.8rem; color: rgba(192, 192, 192, 0.6); }

/* ===== GENERIC BUTTONS ===== */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--color-accent); color: var(--color-primary); font-family: var(--font-heading); font-weight: 700; font-style: italic; font-size: 0.95rem; border: 2px solid var(--color-accent); border-radius: 0; cursor: pointer; transition: background 0.25s, color 0.25s, box-shadow 0.25s; text-transform: uppercase; letter-spacing: 0.04em; }
.btn-primary:hover { background: transparent; color: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-accent); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: transparent; color: var(--color-primary); font-family: var(--font-mono); font-size: 0.85rem; border: 1px solid var(--color-primary); border-radius: 0; cursor: pointer; transition: background 0.25s, color 0.25s; }
.btn-ghost:hover { background: var(--color-primary); color: var(--color-accent); border-color: var(--color-primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --header-left-width: 240px; }
  .header-right { padding: 0 24px 0 32px; }
  .nav-list { font-size: 0.78rem; }
  .nav-list li + li::before { margin: 0 6px; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .site-header { flex-wrap: wrap; height: auto; min-height: var(--header-height); position: relative; }
  .header-left { width: 100%; min-width: 0; padding: 12px 56px 12px 18px; }
  .header-left::after { display: none; }
  .brand-name { font-size: 1.35rem; }
  .brand-tagline { font-size: 0.7rem; }
  .header-right { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; gap: 32px; padding: 0 20px 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
  .footer-contact-list li { flex-direction: column; gap: 2px; }
  .contact-label { min-width: 0; }
}

@media (max-width: 480px) {
  .header-left { padding: 10px 50px 10px 14px; }
  .brand-name { font-size: 1.2rem; }
  .nav-drawer { padding: 16px; }
  .nav-drawer-list a { padding: 12px 16px; font-size: 0.9rem; }
  .footer-inner { gap: 24px; }
  .footer-brand-name { font-size: 1.3rem; }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .nav-drawer { transition: none; }
  .nav-toggle-line { transition: none; }
  .scroll-progress { transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== UTILITY ===== */
.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 { max-width: var(--site-max-width); margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }
