:root {
  --dark: #111914;
  --dark-panel: #1a2920;
  --mint: #c3f496;
  --cream: #f1f3ec;
  --ink: #17221b;
  --muted: #4f6055;
  --line: #d3dbd0;
  --green: #24603d;
  --white: #fafff7;
  --body: 'DM Sans', system-ui, sans-serif;
  --heading: 'Space Grotesk', var(--body);
  --mono: 'IBM Plex Mono', monospace;
  color-scheme: light;
  scroll-padding-top: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--dark); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; }
a:focus-visible { outline: 2px solid #528b46; outline-offset: 4px; }
h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
h1, h2, h3, h4, h5 { font-family: var(--heading); line-height: 1.12; }
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: 8px; left: 12px; padding: 12px 16px; background: var(--mint); color: var(--dark); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid #2a3930;
  color: #d6e0d6;
  background: var(--dark);
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font: 600 .83rem/1.12 var(--heading);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.brand img { flex: none; object-fit: contain; border-radius: 8px; background: #edf1e8; }
.brand b { font-weight: 700; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3.4vw, 40px); }
.site-header nav a, .header-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { color: var(--mint); }
.header-link { padding: 8px 14px; color: var(--mint); border: 1px solid #475d4b; border-radius: 6px; }
.header-link:hover { background: #263e2e; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(295px, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
  padding-block: clamp(65px, 7.5vw, 114px);
  color: var(--white);
}
.kicker {
  font: 600 .82rem/1.4 var(--mono);
  letter-spacing: .085em;
  text-transform: uppercase;
}
.hero .kicker { margin-bottom: 20px; color: var(--mint); }
.hero h1 { max-width: 12ch; font-size: clamp(2.8rem, 6.65vw, 5.75rem); line-height: .99; letter-spacing: -.076em; }
.hero h1 span { display: block; color: var(--mint); }
.hero-description { max-width: 490px; margin: 23px 0 27px; color: #bacabc; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 7px;
  background: var(--mint);
  color: #112117;
  font-weight: 700;
  text-decoration: none;
}
.primary-link:hover { background: #d9ffb6; }
.foundations {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #4b6350;
  border-radius: 14px;
  background: #1a2a20;
}
.foundations::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(ellipse at top right, #386142b5 1%, transparent 70%), linear-gradient(#c1e6ad12 1px, transparent 1px), linear-gradient(90deg, #c1e6ad12 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  mask-image: linear-gradient(150deg, #000, #0004);
  content: '';
}
.foundations:target { border-color: var(--mint); }
.foundations-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 12px; margin-bottom: 16px; }
.foundations h2 { font-size: clamp(1.45rem, 2.3vw, 1.86rem); letter-spacing: -.045em; }
.foundation-list, .resource-list, .cert-list, .channel-list, .community-links { padding: 0; list-style: none; }
.foundation-list li + li { margin-top: 7px; }
.foundation-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid #455b49;
  border-radius: 7px;
  background: #18271fe6;
  text-decoration: none;
}
.foundation-list a:hover { border-color: var(--mint); }
.step-number { color: var(--mint); font: 500 .78rem/1 var(--mono); }
.foundation-list strong, .foundation-list small { display: block; }
.foundation-list strong { font-size: .99rem; }
.foundation-list small { color: #bccfbe; font-size: .875rem; }

.paths { padding-block: 56px 66px; background: var(--cream); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 20px; margin-bottom: 23px; }
.section-heading h2 { font-size: clamp(2.05rem, 4.3vw, 3.42rem); letter-spacing: -.065em; }
.section-heading p { color: var(--muted); }
.path-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.path-picker a {
  display: flex;
  align-items: center;
  min-height: 79px;
  gap: 13px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafff6;
  text-decoration: none;
}
.path-picker a:hover { border-color: #5b8a63; }
.path-picker a[aria-current] { border-color: #294a34; background: #1c3425; color: var(--white); }
.path-picker strong, .path-picker small { display: block; }
.path-picker strong { font-size: .97rem; line-height: 1.23; }
.path-picker small { margin-top: 4px; color: #4f6055; font-size: .875rem; line-height: 1.25; }
.path-picker a[aria-current] small { color: #c9dec7; }
.path-icon {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #bed2bf;
  border-radius: 8px;
  background: #e5eee1;
  color: #2c6341;
  font: 600 1.1rem/1 var(--mono);
}
.path-picker a[aria-current] .path-icon { border-color: #5c785e; background: #324e37; color: var(--mint); }
.icon-pentest::before { content: '⌖'; }
.icon-web::before { content: '‹›'; letter-spacing: -.17em; padding-right: .17em; }
.icon-soc::before { content: '≋'; }
.icon-dfir::before { content: '◇'; }

.path-panel { margin-top: 22px; padding: clamp(20px, 3.3vw, 42px); border: 1px solid var(--line); border-radius: 13px; background: #e8ede4; }
.path-panel + .path-panel { margin-top: 25px; }
.path-header { padding-bottom: 24px; border-bottom: 1px solid #cbd6c9; }
.path-header h3 { font-size: clamp(1.85rem, 4vw, 2.85rem); letter-spacing: -.055em; }
.path-header p { max-width: 680px; margin-top: 8px; color: var(--muted); }
.path-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: clamp(22px, 4vw, 59px); margin-top: 24px; }
.learning h4, .resource-card h4 { font-size: 1.2rem; letter-spacing: -.025em; }
.learning-list { counter-reset: learning; padding: 0; margin-top: 18px; list-style: none; }
.learning-list li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; counter-increment: learning; }
.learning-list li:not(:last-child) { padding-bottom: 24px; }
.learning-list li::before {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #acc5ad;
  border-radius: 50%;
  background: #dbead6;
  color: #285b36;
  font: 600 .8rem/1 var(--mono);
  content: counter(learning, decimal-leading-zero);
}
.learning-list li:not(:last-child)::after { position: absolute; top: 34px; bottom: 0; left: 16px; width: 1px; background: #b6c9b6; content: ''; }
.learning-list h5 { margin: 4px 0 6px; font-size: 1.08rem; }
.learning-list p { color: var(--muted); }
.learning-list a { display: inline-block; margin-top: 6px; }
.learning-list a, .resource-card a { color: var(--green); font-weight: 700; text-underline-offset: 3px; }
.learning-list a:hover, .resource-card a:hover { color: #0f3e23; }

.resources { display: grid; gap: 10px; }
.resource-card { min-width: 0; padding: 16px 18px; border: 1px solid #d0dccf; border-radius: 9px; background: #fbfdf8; }
.resource-card h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.resource-card h4 small { color: #59685d; font: 600 .84rem/1.3 var(--body); }
.resource-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 5px 10px; padding: 6px 0; }
.resource-list li + li, .cert-list li + li { border-top: 1px solid #e1e9df; }
.resource-list a, .cert-list a, .channel-list a { font-size: .94rem; }
.access { flex: none; padding: 3px 7px; border-radius: 4px; color: #4a5b50; background: #eaf0e9; font: 600 .79rem/1.35 var(--body); }
.access-free { color: #265a32; background: #def1d6; }
.foundations .access-free { color: #dff8d3; background: #35583b; }
.cert-list li { padding: 6px 0; }
.cert-list p { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.channel-list { display: flex; flex-wrap: wrap; gap: 3px 17px; }
.pricing-note { max-width: 760px; margin-top: 15px; color: #536157; font-size: .9rem; }

.community { padding-block: 56px 64px; color: var(--white); }
.community .section-heading p { color: #b9c8bc; }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.community-card { padding: 22px; border: 1px solid #3b5141; border-radius: 11px; background: var(--dark-panel); }
.community-card .kicker { margin-bottom: 6px; color: var(--mint); }
.community-card h3 { margin-bottom: 11px; font-size: 1.55rem; letter-spacing: -.04em; }
.community-card p:not(.kicker) { color: #c0d0c2; }
.community-featured { background: #203629; }
.community-featured .primary-link { margin-top: 14px; }
.community-links { display: grid; gap: 8px; }
.community-links a { color: var(--mint); font-weight: 700; text-underline-offset: 3px; }
.community-links a:hover { color: var(--white); }
.community-links span { display: block; color: #b9c9bc; font-size: .875rem; }
.referral-note { margin-top: 10px; font-size: .875rem; }
.site-footer { border-top: 1px solid #2a3930; color: #c5d0c6; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; }
.footer-inner > a:last-child { font-size: .875rem; text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .path-picker a { padding-inline: 11px; gap: 8px; }
  .path-icon { width: 30px; height: 30px; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .path-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-featured { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .hero, .path-columns { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 43px; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.8rem, 10vw, 4.1rem); }
  .hero .kicker { margin-bottom: 14px; }
  .hero-description { margin: 16px 0 19px; }
  .header-inner { flex-wrap: wrap; gap: 8px 14px; padding-block: 12px 8px; }
  .site-header nav { order: 1; width: 100%; justify-content: space-between; border-top: 1px solid #2e3e32; }
  .site-header nav a { padding: 9px 0 2px; }
  .paths, .community { padding-block: 39px; }
  .path-picker a { min-height: 70px; }
  .path-panel { margin-top: 16px; }
  .path-header { padding-bottom: 16px; }
  .path-columns { margin-top: 19px; }
  .learning-list li:not(:last-child) { padding-bottom: 19px; }
}
@media (max-width: 430px) {
  .shell { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(2.35rem, 11.5vw, 2.8rem); }
  .path-picker { gap: 7px; }
  .path-picker a { gap: 6px; padding-inline: 8px; }
  .path-picker strong { font-size: .9rem; }
  .path-picker small { font-size: .82rem; }
  .path-icon { width: 24px; height: 24px; border-radius: 5px; font-size: .95rem; }
  .resource-list li { flex-wrap: wrap; }
  .community-grid { grid-template-columns: 1fr; }
}
