@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  --c-primary: #99ffcc;
  --c-accent: #00ff41;
  --c-dark: #001e3c;
  --c-dark2: #002a52;
  --c-dark3: #003668;
  --c-text: #d4f5e9;
  --c-text-dim: #7ab8a0;
  --c-border: rgba(153,255,204,0.15);
  --c-glow: rgba(0,255,65,0.25);
  --c-glow2: rgba(153,255,204,0.12);
  --nav-w: 240px;
  --radius-card: 4px;
  --radius-blob: 60% 40% 55% 45% / 45% 55% 40% 60%;
  --font-main: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--c-dark);
  color: var(--c-text);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LAYOUT SHELL ===== */
.site-shell {
  display: flex;
  min-height: 100vh;
}

.main-wrap {
  flex: 1;
  margin-left: var(--nav-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== SIDE NAV ===== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: rgba(0, 20, 45, 0.97);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  z-index: 100;
  overflow-y: auto;
  backdrop-filter: blur(12px);
}

.side-nav::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--c-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: breathe 4s ease-in-out infinite;
}

.side-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.side-nav__tagline {
  font-size: 0.68rem;
  color: var(--c-text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.5;
}

.side-nav nav p {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.side-nav nav a {
  display: block;
  padding: 0.65rem 0.9rem;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-card);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.side-nav nav a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-right: 0.6rem;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.side-nav nav a:hover {
  background: rgba(153, 255, 204, 0.08);
  color: var(--c-primary);
  box-shadow: inset 2px 0 0 var(--c-accent);
}

.side-nav nav a:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--c-accent);
}

.side-nav__pulse {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
  animation: pulse-glow 2s ease-in-out infinite;
  flex-shrink: 0;
}

.pulse-label {
  font-size: 0.72rem;
  color: var(--c-text-dim);
  letter-spacing: 0.06em;
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-media {
  flex: 0 0 48%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-dark2);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c-dark2) 0%, var(--c-dark3) 100%);
}

.hero-blob {
  position: absolute;
  border-radius: var(--radius-blob);
  filter: blur(2px);
  animation: morph 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob--1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(0,255,65,0.18) 0%, transparent 70%);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hero-blob--2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(153,255,204,0.14) 0%, transparent 70%);
  bottom: 15%;
  right: 8%;
  animation-delay: -4s;
}

.hero-bg-text {
  position: absolute;
  bottom: -0.1em;
  left: -0.05em;
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(153,255,204,0.08);
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-main);
  line-height: 1;
}

.hero-copy {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 3.5rem 4rem 3rem;
  position: relative;
}

.hero-copy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(153,255,204,0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: breathe 5s ease-in-out infinite;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
}

.hero-copy h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
  border-radius: 2px;
  margin-top: 0.75rem;
  box-shadow: 0 0 12px var(--c-accent);
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-text-dim);
  margin-bottom: 2rem;
  max-width: 420px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-item strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  font-family: var(--font-mono);
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.75rem;
  color: var(--c-text-dim);
  letter-spacing: 0.06em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-card);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-dark);
  border-color: var(--c-accent);
  box-shadow: 0 0 18px rgba(0,255,65,0.35);
}

.btn--primary:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  box-shadow: 0 0 28px rgba(153,255,204,0.45);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--c-primary);
  box-shadow: 0 0 16px var(--c-glow2);
  color: #fff;
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
}

article {
  width: 100%;
}

section.content-section {
  display: flex;
  gap: 2rem;
  padding: 4rem 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* scroll-margin for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* ===== CONTENT BODY ===== */
.content-body {
  flex: 1;
  min-width: 0;
}

.content-body h2,
.content-body h3 {
  color: var(--c-primary);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.content-body h2:first-child,
.content-body h3:first-child {
  margin-top: 0;
}

.content-body h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  border-left: 3px solid var(--c-accent);
  padding-left: 0.9rem;
}

.content-body h3 {
  font-size: 1.1rem;
  color: var(--c-text);
}

.content-body p {
  margin-bottom: 1.1rem;
  color: var(--c-text);
  font-size: 0.97rem;
  line-height: 1.8;
}

.content-body ul,
.content-body ol {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--c-text);
  font-size: 0.97rem;
  line-height: 1.8;
}

.content-body li {
  margin-bottom: 0.4rem;
}

.content-body a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.content-body a:hover {
  color: var(--c-accent);
}

.content-body strong {
  color: var(--c-primary);
  font-weight: 600;
}

.content-body section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.content-body section:last-child {
  border-bottom: none;
}

.content-body section::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--c-glow2), transparent);
  pointer-events: none;
}

/* ===== ASIDE ===== */
.content-aside {
  flex: 0 0 220px;
  position: sticky;
  top: 1.5rem;
}

.aside-inner {
  background: rgba(0, 42, 82, 0.7);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.aside-inner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--c-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

.aside-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.aside-title span {
  position: relative;
}

.aside-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.aside-links li a {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  color: var(--c-text-dim);
  text-decoration: none;
  border-radius: var(--radius-card);
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-links li a:hover {
  background: rgba(153,255,204,0.07);
  color: var(--c-primary);
}

.aside-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--c-text-dim);
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-border);
}

.notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
  margin-top: 0.35em;
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 15, 35, 0.95);
  border-top: 1px solid var(--c-border);
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(0,255,65,0.06) 0%, rgba(153,255,204,0.04) 100%);
  border-bottom: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.footer-cta__text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 0;
}

.footer-cta__text span {
  color: var(--c-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 3rem;
  flex-wrap: wrap;
}

.footer-address {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--c-text-dim);
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li a {
  font-size: 0.8rem;
  color: var(--c-text-dim);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition);
}

.footer-links li a:hover {
  color: var(--c-primary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--c-text-dim);
  margin: 0;
  opacity: 0.7;
  margin-left: auto;
}

/* ===== H2 SPAN DECORATION ===== */
h2 > span,
h3 > span {
  position: relative;
  display: inline;
}

/* ===== ANIMATIONS ===== */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
  33% { border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%; }
  66% { border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px var(--c-accent); opacity: 1; }
  50% { box-shadow: 0 0 16px var(--c-accent), 0 0 28px var(--c-accent); opacity: 0.75; }
}

@keyframes stagger-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* stagger list on scroll */
.content-body section {
  animation: stagger-in 0.5s ease both;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --nav-w: 200px; }
  .hero-copy { padding: 3rem 2rem; }
  section.content-section { padding: 3rem 2rem; }
  .footer-cta, .footer-bottom { padding: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-w: 0px; }

  .site-shell { flex-direction: column; }

  .main-wrap { margin-left: 0; }

  .side-nav {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
  }

  .side-nav::before { display: none; }

  .side-nav__brand {
    margin-bottom: 0.5rem;
  }

  .side-nav__tagline {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .side-nav nav p {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .side-nav nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    min-height: 40px;
  }

  .side-nav__pulse { display: none; }

  .hero-section {
    flex-direction: column;
    min-height: auto;
  }

  .hero-media {
    flex: none;
    height: 50vw;
    min-height: 200px;
    width: 100%;
  }

  .hero-copy {
    flex: none;
    padding: 2.5rem 1.5rem;
    align-items: flex-start;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  section.content-section {
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 1.5rem;
  }

  .content-aside {
    flex: none;
    width: 100%;
    position: static;
    order: -1;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }

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

  .footer-copy { margin-left: 0; }

  .hero-bg-text { font-size: 5rem; }
}

@media (max-width: 480px) {
  .hero-copy h1 { font-size: 1.5rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .stat-item strong { font-size: 1.1rem; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
