/* reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* tokens */
/* Space Grotesk + DM Sans — tech-neutral, editorial precision without sterility */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

:root {
  /* colors */
  --c-bg:       #0a0e1a;
  --c-surface:  #111827;
  --c-surface2: #1a2236;
  --c-border:   #1e2d45;
  --c-accent:   #00d4b4;
  --c-accent-d: #00a890;
  --c-text:     #e8eaf0;
  --c-muted:    #6b7a99;
  --c-dim:      #3a4560;

  /* typography */
  --ff-head: 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;
  --fw-reg:  400;
  --fw-med:  500;
  --fw-semi: 600;
  --fw-bold: 700;

  /* spacing */
  --sp-2:  0.125rem;
  --sp-4:  0.25rem;
  --sp-8:  0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-20: 1.25rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-40: 2.5rem;
  --sp-48: 3rem;
  --sp-64: 4rem;
  --sp-80: 5rem;
  --sp-96: 6rem;

  /* layout */
  --container-w: 1200px;
  --container-p: var(--sp-24);
  --header-h:    68px;
  --logo-w:      180px;
  --logo-h:      44px;

  /* radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  20px;
  --r-pill: 999px;

  /* shadow */
  --sh-sm:  0 1px 3px rgba(0,0,0,.4);
  --sh-md:  0 4px 16px rgba(0,0,0,.5);
  --sh-lg:  0 8px 32px rgba(0,0,0,.6);
  --sh-glow: 0 0 20px rgba(0,212,180,.15);

  /* transitions */
  --tr-fast: 150ms ease;
  --tr-base: 250ms ease;
  --tr-slow: 400ms ease;

  /* z-index */
  --z-base:   1;
  --z-card:   10;
  --z-sticky: 100;
  --z-modal:  200;
  --z-top:    999;
}

/* base */
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--c-text);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
p { margin-bottom: var(--sp-16); }
p:last-child { margin-bottom: 0; }
strong { font-weight: var(--fw-semi); }
em { font-style: italic; }
a:hover { color: var(--c-accent); }
::selection { background: var(--c-accent); color: var(--c-bg); }
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* layout */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-p);
}
main { padding-top: var(--header-h); }
.section { padding: var(--sp-80) 0; }
.section-sm { padding: var(--sp-48) 0; }
.section-label {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-12);
}
.section-heading {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-16);
}
.section-sub {
  font-size: var(--fs-md);
  color: var(--c-muted);
  max-width: 560px;
  margin-bottom: var(--sp-40);
}
.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-24);
}
.grid-2 > * { flex: 1 1 calc(50% - var(--sp-12)); min-width: 280px; }
.grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-24);
}
.grid-3 > * { flex: 1 1 calc(33.333% - var(--sp-16)); min-width: 260px; }
.text-accent { color: var(--c-accent); }
.text-muted  { color: var(--c-muted); }
.divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-48) 0;
}

/* header */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,14,26,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: var(--z-sticky);
  overflow: hidden;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: var(--sp-32);
  overflow: hidden;
}
.s4cni-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.s4cni-logo img {
  max-width: var(--logo-w);
  max-height: var(--logo-h);
  width: auto;
  height: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  margin-left: auto;
}
.nav-links a {
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  color: var(--c-muted);
  transition: color var(--tr-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--c-text); }
.nav-links a.active { color: var(--c-accent); }
.nav-actions { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: var(--r-pill);
  transition: transform var(--tr-base), opacity var(--tr-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-24);
  z-index: calc(var(--z-sticky) - 1);
  flex-direction: column;
  gap: var(--sp-4);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  font-family: var(--ff-head);
  font-size: var(--fs-md);
  font-weight: var(--fw-med);
  color: var(--c-muted);
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--c-border);
  transition: color var(--tr-fast);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--c-accent); }

/* breadcrumb */
.breadcrumb {
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--c-border);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.breadcrumb ol li { display: flex; align-items: center; gap: var(--sp-8); }
.breadcrumb ol li:not(:last-child)::after { content: '›'; color: var(--c-dim); }
.breadcrumb ol li a { color: var(--c-muted); transition: color var(--tr-fast); }
.breadcrumb ol li a:hover { color: var(--c-accent); }
.breadcrumb ol li:last-child { color: var(--c-text); }
