/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #FFFFFF;
  background-color: #0A1F44;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 300ms ease-out, background-color 300ms ease-out, border-color 300ms ease-out;
}

a:hover {
  color: #00FF88;
}

a:focus-visible {
  outline: 2px solid #00FF88;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

button:focus-visible {
  outline: 2px solid #00FF88;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== CSS Variables ===== */
:root {
  --color-primary: #0A1F44;
  --color-accent: #00FF88;
  --color-secondary: #1A3A6B;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0B4D0;
  --color-text-dark: #0A1F44;
  --color-background-light: #F5F7FA;
  --color-divider: #2A4A7A;
  --color-data-1: #00FF88;
  --color-data-2: #FF6B6B;
  --color-data-3: #FFD166;
  --color-data-4: #4A90D9;

  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-data: 'JetBrains Mono', 'Fira Code', monospace;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;

  --border-radius-sm: 6px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.25);

  --transition: 300ms ease-out;
  --transition-slow: 500ms ease-out;

  --max-width: 1200px;
  --header-height: 72px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #FFFFFF;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }

body, p, li, blockquote {
  font-family: var(--font-base);
  font-weight: 400;
  line-height: 1.6;
  color: #FFFFFF;
}

.data-text {
  font-family: var(--font-data);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.caption {
  font-size: 0.875rem;
  color: #A0B4D0;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background-color: #00FF88;
  color: #0A1F44;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 6px 0;
  transition: top 300ms ease-out;
}

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

/* ===== Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #00FF88, #00FF88);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
  transition: width 100ms ease-out;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    transition: none;
  }
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 31, 68, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 74, 122, 0.4);
  padding: 0 var(--spacing-lg);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  position: relative;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.site-logo::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00FF88;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: super;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.site-logo:hover {
  color: #00FF88;
}

/* ===== Navigation Toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  z-index: 3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(42, 74, 122, 0.4);
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
}

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

/* ===== Navigation Container ===== */
.nav-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #A0B4D0;
  border-radius: 100px;
  transition: color 300ms ease-out, background 300ms ease-out;
  white-space: nowrap;
}

.nav-list a:hover {
  color: #FFFFFF;
  background: rgba(0, 255, 136, 0.08);
}

.nav-list a[aria-current="page"] {
  color: #00FF88;
  background: rgba(0, 255, 136, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 136, 0.2);
}

.nav-cta {
  flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: background 300ms ease-out, color 300ms ease-out, box-shadow 300ms ease-out, transform 300ms ease-out;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid #00FF88;
  outline-offset: 2px;
}

.btn-primary {
  background: #00FF88;
  color: #0A1F44;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
  background: #00d974;
  color: #0A1F44;
  box-shadow: 0 0 32px rgba(0, 255, 136, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #00FF88;
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: #00FF88;
  transform: translateY(-1px);
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ===== Section ===== */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: #00FF88;
  margin-right: 0.75rem;
  vertical-align: middle;
  border-radius: 2px;
}

/* ===== Card ===== */
.card {
  background: rgba(26, 58, 107, 0.5);
  border: 1px solid rgba(42, 74, 122, 0.3);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 300ms ease-out, box-shadow 300ms ease-out, border-color 300ms ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 255, 136, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

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

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

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
  color: #A0B4D0;
}

.breadcrumb a {
  color: #A0B4D0;
  transition: color 300ms ease-out;
}

.breadcrumb a:hover {
  color: #00FF88;
}

.breadcrumb .separator {
  color: rgba(42, 74, 122, 0.6);
  font-size: 0.75rem;
}

.breadcrumb .current {
  color: #FFFFFF;
  font-weight: 500;
}

/* ===== Tag ===== */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #00FF88;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Site Footer ===== */
.site-footer {
  background: #0A1F44;
  border-top: 1px solid rgba(42, 74, 122, 0.3);
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(42, 74, 122, 0.2);
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.footer-logo::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #00FF88;
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: super;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.footer-tagline {
  font-size: 0.9rem;
  color: #00FF88;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.footer-trust {
  font-size: 0.85rem;
  color: #A0B4D0;
  line-height: 1.7;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #00FF88;
  border-radius: 1px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link-list a {
  color: #A0B4D0;
  font-size: 0.875rem;
  transition: color 300ms ease-out, padding-left 300ms ease-out;
}

.footer-link-list a:hover {
  color: #00FF88;
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-contact-list li {
  font-size: 0.875rem;
  color: #A0B4D0;
  line-height: 1.6;
}

.footer-contact-list a {
  color: #A0B4D0;
  transition: color 300ms ease-out;
}

.footer-contact-list a:hover {
  color: #00FF88;
}

.contact-note {
  font-size: 0.8rem;
  color: rgba(160, 180, 208, 0.6);
  margin-top: var(--spacing-sm);
  font-style: italic;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  font-size: 0.8rem;
  color: rgba(160, 180, 208, 0.5);
}

.copyright,
.icp {
  color: rgba(160, 180, 208, 0.5);
}

/* ===== Responsive: Tablet & Mobile ===== */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }

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

  .footer-trust {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 var(--spacing-md);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 31, 68, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
    gap: var(--spacing-lg);
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(42, 74, 122, 0.2);
  }

  .nav-container[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: var(--spacing-xs);
  }

  .nav-list a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

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

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .nav-container {
    transition: none;
  }

  .site-logo::after {
    animation: none;
  }
}
