/* ==========================================================================
   ZeroDayITServices LLC — Shared Design System
   Modern tech: deep navy + electric blue
   ========================================================================== */

:root {
  --navy-900: #0a1128;
  --navy-800: #0f1b3d;
  --navy-700: #16265a;
  --navy-600: #1e3474;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --white: #ffffff;
  --amber: #f59e0b;
  --green: #10b981;

  --grad-hero: linear-gradient(135deg, #0a1128 0%, #16265a 55%, #1e3474 100%);
  --grad-accent: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);

  --shadow-sm: 0 1px 3px rgba(10, 17, 40, 0.12);
  --shadow-md: 0 8px 24px rgba(10, 17, 40, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 17, 40, 0.18);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Inter is self-hosted, not loaded from fonts.googleapis.com: a third-party font
   CDN leaks every visitor's IP to Google on each page load and forces a looser
   CSP. Serving it ourselves keeps style-src and font-src at 'self'.
   Source: rsms/inter (SIL Open Font License 1.1). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/inter-variable.woff2') format('woff2-variations');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate-700);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }
a { color: var(--blue-500); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan-400); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--blue-500);
  margin-bottom: 14px;
}
.lead { font-size: 1.18rem; color: var(--slate-600); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.text-white { color: var(--white); }
.text-white h1, .text-white h2, .text-white h3 { color: var(--white); }
.muted-light { color: var(--slate-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700;
  font-size: 1rem; cursor: pointer; border: none; transition: all .22s ease;
  text-decoration: none;
}
.btn-primary { background: var(--grad-accent); color: var(--white); box-shadow: 0 8px 22px rgba(37,99,235,.35); }
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37,99,235,.45); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { color: var(--white); background: var(--navy-700); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; background: var(--grad-hero);
  display: grid; place-items: center; color: var(--white); font-weight: 800;
  font-size: 1.05rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.logo-mark::after {
  content: '★'; position: absolute; top: 3px; right: 5px; font-size: .55rem; color: var(--cyan-400);
}
.brand-sub { font-size: .66rem; letter-spacing: .12em; color: var(--slate-400); text-transform: uppercase; font-weight: 600; display: block; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--slate-700); font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-500); }
.nav-cta { padding: 10px 20px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); color: var(--white); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(34,211,238,.22) 0%, transparent 68%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -40%; left: -8%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lead { color: var(--slate-300); margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.3); color: var(--cyan-300); padding: 7px 16px;
  border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 22px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; }
.hero-stats .num { font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stats .lbl { font-size: .85rem; color: var(--slate-400); }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(6px);
}
/* h2 as well as h3: the hero card sat directly under the page <h1>, so an <h3>
   there skipped a level. Same size, correct level. */
.hero-card h3, .hero-card h2 { color: var(--white); margin-bottom: 18px; font-size: 1.1rem; }
.hcrow { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hcrow:last-child { border-bottom: none; }
.hcrow .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-accent); display: grid; place-items: center; flex-shrink: 0; font-size: 1.05rem; }
.hcrow .t { color: var(--white); font-weight: 700; font-size: .95rem; }
.hcrow .s { color: var(--slate-400); font-size: .82rem; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 32px 28px; transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.25); }
.card .ic-box {
  width: 54px; height: 54px; border-radius: 13px; background: var(--grad-accent);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; color: var(--white);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate-600); font-size: .96rem; margin-bottom: 0; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { padding-left: 26px; position: relative; font-size: .93rem; color: var(--slate-600); margin-bottom: 8px; }
.card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.feature { text-align: center; padding: 26px 20px; }
.feature .ic-box { margin: 0 auto 16px; }

/* ---------- Alt sections ---------- */
.bg-light { background: var(--slate-100); }
.bg-navy { background: var(--grad-hero); color: var(--white); }
.bg-navy p { color: var(--slate-300); }

/* ---------- Certification pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.pill {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 999px;
  padding: 10px 22px; font-weight: 600; font-size: .92rem; color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.bg-navy .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--white); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .n {
  counter-increment: step; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: var(--grad-accent); color: var(--white); display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
}
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 5px; }
.step p { margin-bottom: 0; color: var(--slate-600); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}
.quote p { font-size: 1.02rem; color: var(--slate-700); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-hero); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.quote .who .nm { font-weight: 700; color: var(--navy-900); font-size: .95rem; }
.quote .who .rl { font-size: .82rem; color: var(--slate-500); }
.stars { color: var(--amber); margin-bottom: 12px; letter-spacing: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-accent); color: var(--white); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 12px auto 26px; }
.cta-band .btn-primary { background: var(--white); color: var(--navy-800); }
.cta-band .btn-primary:hover { color: var(--navy-900); background: var(--slate-100); }

/* ---------- Pricing ---------- */
.price-card { position: relative; text-align: center; }
.price-card.featured { border: 2px solid var(--blue-500); box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-accent); color: var(--white); font-size: .74rem; font-weight: 700; padding: 5px 16px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--navy-900); margin: 8px 0; }
.price span { font-size: .95rem; font-weight: 600; color: var(--slate-500); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.field input, .field select, .field textarea {
  padding: 13px 15px; border: 1.5px solid var(--slate-300); border-radius: 10px;
  font-family: var(--font); font-size: .96rem; color: var(--navy-900); transition: border .2s ease; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .84rem; color: var(--slate-500); margin-top: 8px; }
.form-success { display: none; background: rgba(16,185,129,.1); border: 1px solid var(--green); color: #065f46; padding: 16px 18px; border-radius: 10px; font-weight: 600; margin-bottom: 18px; }

/* ---------- Info list / contact ---------- */
.info-row { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.info-row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--slate-100); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.info-row .t { font-weight: 700; color: var(--navy-900); }
.info-row .s { color: var(--slate-600); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--slate-200); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 0; font-size: 1.08rem; font-weight: 700; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font); }
.faq-q .ind { color: var(--blue-500); font-size: 1.5rem; transition: transform .25s ease; flex-shrink: 0; }
.faq-q.open .ind { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 22px; color: var(--slate-600); margin: 0; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .av { width: 92px; height: 92px; border-radius: 50%; background: var(--grad-hero); color: var(--white); display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto 16px; }
.team-card .role { color: var(--blue-500); font-weight: 600; font-size: .9rem; }
.team-card .certs { font-size: .82rem; color: var(--slate-500); margin-top: 6px; }

/* ---------- Page header ---------- */
.page-head { background: var(--grad-hero); color: var(--white); padding: 70px 0 64px; text-align: center; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; top: -30%; right: 5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(34,211,238,.18) 0%, transparent 70%); }
.page-head h1 { color: var(--white); position: relative; }
.page-head p { color: var(--slate-300); max-width: 640px; margin: 14px auto 0; position: relative; }
.crumb { font-size: .85rem; color: var(--slate-400); margin-bottom: 14px; position: relative; }
.crumb a { color: var(--cyan-300); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: var(--slate-400); padding: 62px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
/* Footer column headings are <h2>, not <h4>: they follow page <h2> content, and
   jumping straight to h4 skips a level. Sized here so the semantics changed but
   the design did not. */
.footer h4, .footer-grid h2 { color: var(--white); font-size: .95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.footer a { color: var(--slate-400); display: block; margin-bottom: 9px; font-size: .93rem; }
.footer a:hover { color: var(--cyan-300); }
.footer .brand { color: var(--white); margin-bottom: 14px; }
.footer .brand:hover { color: var(--white); }
.footer .desc { font-size: .92rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; }

/* Trademark attribution. Small, but present on every page the marks appear on —
   which is every page — rather than buried in the policies alone. */
.footer-trademark {
  margin: 16px 0 0; font-size: .74rem; line-height: 1.6; color: var(--slate-500);
  max-width: 980px;
}
.footer-trademark a { color: var(--slate-400); text-decoration: underline; }
.footer-trademark a:hover { color: var(--cyan-300); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- Sample-content marker ----------
   Wraps figures and quotes that are placeholders, NOT verified facts. The
   banner must stay visible for as long as the content is unverified: shipping
   invented stats or testimonials as fact is false advertising. scripts/check-sample.ps1
   fails the build if [data-sample] survives into a production bundle. */
[data-sample] { position: relative; outline: 2px dashed var(--amber); outline-offset: 10px; border-radius: 6px; }
[data-sample]::before {
  content: '⚠ Sample content — not verified';
  position: absolute; top: -13px; left: 0; z-index: 2;
  background: var(--amber); color: #3d2a00;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.sample-note {
  background: rgba(245,158,11,.12); border: 1px solid var(--amber); color: #7c4a03;
  border-radius: 10px; padding: 12px 16px; font-size: .88rem; font-weight: 600;
  margin: 0 auto 26px; max-width: 720px; text-align: center;
}

/* Standing informational callout — terms, caveats, things a buyer must not miss.
   Like .alert-error, kept separate from .sample-note so the deploy guard only
   ever flags real placeholder content. */
.notice {
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.35); color: var(--navy-800);
  border-radius: 10px; padding: 14px 18px; font-size: .9rem; line-height: 1.55;
}
.notice strong { color: var(--navy-900); }

/* An unmade legal or business decision inside a draft policy page. Rendered
   visibly rather than as a code comment so it is impossible to publish these
   pages without noticing; scripts/check-legal.ps1 blocks the deploy regardless. */
.legal-todo {
  display: inline; background: rgba(245,158,11,.18); border-bottom: 2px dotted var(--amber);
  color: #7c4a03; font-weight: 600; padding: 1px 4px; border-radius: 3px;
}

/* Runtime error messages. Visually similar to .sample-note but a separate class
   on purpose: scripts/check-sample.ps1 greps for placeholder markers, and
   reusing .sample-note here made working error UI trip the deploy guard. */
.alert-error {
  background: rgba(245,158,11,.12); border: 1px solid var(--amber); color: #7c4a03;
  border-radius: 10px; padding: 12px 16px; font-size: .88rem; font-weight: 600;
}

/* ---------- Course catalog ---------- */
.course-card { display: flex; flex-direction: column; height: 100%; }
.course-card .vendor {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: 8px;
}
.course-card .code { font-size: .82rem; color: var(--slate-500); font-weight: 600; }
.course-card .apps { list-style: none; margin-top: 16px; flex-grow: 1; }
.course-card .apps li { padding-left: 24px; position: relative; font-size: .9rem; color: var(--slate-600); margin-bottom: 7px; }
.course-card .apps li::before { content: '▸'; position: absolute; left: 0; color: var(--cyan-400); font-weight: 800; }
.course-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--slate-200); }
.course-card .amount { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); }
.course-card .amount span { font-size: .82rem; font-weight: 600; color: var(--slate-500); }

.count-badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(37,99,235,.1);
  color: var(--blue-500); border-radius: 999px; padding: 4px 12px;
  font-size: .78rem; font-weight: 700;
}

/* ---------- Course area page ---------- */
.app-row {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  border: 1px solid var(--slate-200); border-radius: var(--radius);
  background: var(--white); margin-bottom: 14px; transition: all .22s ease;
}
.app-row:hover { border-color: rgba(37,99,235,.3); box-shadow: var(--shadow-md); transform: translateX(3px); }
.app-row .glyph {
  width: 50px; height: 50px; border-radius: 13px; background: var(--grad-accent);
  display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; color: var(--white);
}
.app-row .body { flex-grow: 1; min-width: 0; }
.app-row .body h3 { font-size: 1.05rem; margin-bottom: 3px; }
.app-row .body p { font-size: .9rem; color: var(--slate-600); margin: 0; }
.app-row .kind {
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}
.kind-game { background: rgba(34,211,238,.15); color: #0e7490; }
.kind-exam { background: rgba(37,99,235,.12); color: var(--blue-500); }
.kind-lab  { background: rgba(16,185,129,.14); color: #047857; }

.lock { flex-shrink: 0; font-size: 1.1rem; color: var(--slate-400); }

/* Progress bar — filled from server-side progress, never from localStorage alone */
.progress { height: 8px; border-radius: 999px; background: var(--slate-200); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--grad-accent); transition: width .4s ease; }
.progress-label { font-size: .78rem; color: var(--slate-500); margin-top: 6px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; }
  .app-row { flex-wrap: wrap; gap: 12px; }
  .app-row .body { flex-basis: 100%; order: 3; }
  [data-sample] { outline-offset: 6px; }
}
