:root {
  --space-blue: #0B1D3A;
  --electric-green: #39FF14;
  --signal-orange: #FF6B00;
  --deep-teal: #005F6A;
  --wine-red: #7B2D3E;
  --light-gray: #E8EDF2;
  --white: #FFFFFF;
  --dark-text: #12182B;
  --muted-text: #6B7A8F;
  --glass-white: rgba(255, 255, 255, 0.08);
  --font-headline: 'Playfair Display', 'Noto Serif SC', serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --container-width: 1280px;
  --header-h: 82px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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);
  background-color: var(--space-blue);
  color: var(--light-gray);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

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

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

:focus-visible {
  outline: 3px solid var(--electric-green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 9999;
  background: var(--electric-green);
  color: var(--dark-text);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s var(--ease-out);
}

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

/* Header */
.site-header {
  background-color: var(--space-blue);
  background-image:
    linear-gradient(135deg, rgba(0, 95, 106, 0.35) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent 0px, transparent 63px, rgba(57, 255, 20, 0.08) 63px, rgba(57, 255, 20, 0.08) 64px);
  border-bottom: 1px solid var(--glass-white);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.site-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--signal-orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.brand-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--muted-text);
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--light-gray);
  position: relative;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--electric-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--electric-green);
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-link[aria-current="page"]::before {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 6px;
  width: 5px;
  height: 5px;
  background: var(--signal-orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--glass-white);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--electric-green);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

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

.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: translateY(-7px) rotate(-45deg);
}

/* Footer */
.site-footer {
  background-color: var(--space-blue);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 70%),
    repeating-linear-gradient(45deg, transparent 0px, transparent 24px, rgba(255, 255, 255, 0.02) 24px, rgba(255, 255, 255, 0.02) 25px);
  border-top: 4px solid var(--wine-red);
  padding-top: 72px;
  position: relative;
  z-index: 10;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--electric-green) 0%, var(--electric-green) 85px, var(--signal-orange) 85px, var(--signal-orange) 135px, transparent 135px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--glass-white);
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted-text);
  letter-spacing: 0.05em;
}

.footer-trust {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--glass-white);
  border-left: 3px solid var(--deep-teal);
  font-size: 0.85rem;
  color: var(--light-gray);
  max-width: 380px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric-green);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 32px;
  height: 2px;
  background: var(--signal-orange);
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

.footer-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--light-gray);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s var(--ease-out);
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--signal-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--electric-green);
}

.footer-link:hover::before,
.footer-link:focus::before {
  transform: scaleX(1);
}

.footer-legal-links {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--muted-text);
}

.footer-icp {
  font-size: 0.82rem;
  color: var(--muted-text);
  letter-spacing: 0.04em;
  padding-left: 20px;
  position: relative;
}

.footer-icp::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--deep-teal);
  transform: translateY(-50%) rotate(45deg);
}

/* Generic buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--electric-green);
  color: var(--dark-text);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(57, 255, 20, 0.25);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--signal-orange);
  border: 2px solid var(--signal-orange);
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), color 0.2s;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: rgba(255, 107, 0, 0.12);
  transform: translateY(-2px);
}

/* Section titles */
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  position: relative;
  padding-left: 18px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  background: var(--electric-green);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}

.section-index {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-headline);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--signal-orange);
  letter-spacing: -0.03em;
}

.section-index small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-text);
  margin-left: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted-text);
  max-width: 560px;
  margin-top: 10px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--muted-text);
  padding: 16px 0;
  position: relative;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 2px;
}

.breadcrumb li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--signal-orange);
}

.breadcrumb a {
  color: var(--muted-text);
  transition: color 0.2s;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--electric-green);
}

.breadcrumb [aria-current="page"] {
  color: var(--light-gray);
  font-weight: 600;
}

/* Page hero layout */
.page-hero {
  background-color: var(--space-blue);
  background-image:
    radial-gradient(circle at 15% 30%, rgba(0, 95, 106, 0.5), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(123, 45, 62, 0.5), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0px, transparent 45px, rgba(255, 255, 255, 0.04) 45px, rgba(255, 255, 255, 0.04) 46px);
  padding: 72px 0 64px;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--electric-green) 0%, var(--electric-green) 34%, var(--signal-orange) 34%, var(--signal-orange) 68%, transparent 68%);
}

/* Stat panel */
.stat-panel {
  background: var(--glass-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 24px;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.stat-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--electric-green);
}

.stat-panel::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--signal-orange);
  opacity: 0.7;
}

.stat-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-orange);
  margin-bottom: 12px;
}

.stat-panel-value {
  font-family: var(--font-headline);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}

.stat-panel-desc {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-top: 8px;
}

/* Image placeholder base */
.img-placeholder {
  position: relative;
  background-color: var(--deep-teal);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%);
  background-size: 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  min-height: 200px;
}

.img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* Scroll reveal base classes */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .brand-mark {
    font-size: 1.7rem;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    flex-wrap: wrap;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 20px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--glass-white);
  }

  .nav-link {
    display: block;
    padding: 14px 8px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link::before {
    left: 8px;
    right: auto;
    width: 3px;
    height: 100%;
    bottom: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  .nav-link:hover::before,
  .nav-link:focus-visible::before,
  .nav-link[aria-current="page"]::before {
    transform: scaleY(1);
  }

  .nav-toggle {
    order: 2;
  }

  .site-brand {
    order: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-icp {
    padding-left: 0;
  }

  .footer-icp::before {
    display: none;
  }

  .page-hero {
    padding: 48px 0 44px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    font-size: 1.5rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 8px;
  }
}

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

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