:root {
  --c1: #132a13;
  --c2: #31572c;
  --c3: #4f772d;
  --c4: #90a955;
  --c5: #ecf39e;
  --bg: #0f1b10;
  --text: #eef4de;
  --muted: #bfd0ad;
  --card: rgba(19, 42, 19, 0.72);
  --stroke: rgba(236, 243, 158, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #091109 0%, #101f11 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, li { color: #edf2df; }
.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(10, 19, 11, 0.88);
  border-bottom: 1px solid rgba(236, 243, 158, 0.08);
}
.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--c4), var(--c2));
  color: var(--c1);
  box-shadow: var(--shadow);
}
.brand-text strong { display: block; font-size: 0.98rem; }
.brand-text small { color: var(--muted); display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.25s ease;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--c5);
  background: rgba(236, 243, 158, 0.08);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(236, 243, 158, 0.2);
  border-radius: 16px;
  width: 52px;
  height: 52px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--c5);
}
.section {
  padding: 5rem 0;
  position: relative;
}
.section-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(144,169,85,0.15), transparent 35%),
    linear-gradient(180deg, rgba(10, 17, 10, 0.3), rgba(10, 17, 10, 0.78));
}
.section-bg > .container { position: relative; z-index: 1; }
.hero, .subhero { padding: 7rem 0 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c5);
  font-weight: 700;
}
h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.12;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; }
.hero-copy.narrow, .narrow { max-width: 760px; }
.hero-copy { font-size: 1.08rem; color: #f5f8ea; max-width: 700px; }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.8rem 0 2rem;
}
.btn {
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--c4), var(--c5));
  color: var(--c1);
}
.btn-secondary {
  border: 1px solid rgba(236, 243, 158, 0.25);
  background: rgba(255,255,255,0.03);
  color: var(--c5);
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.mini-stats article,
.feature-card,
.mini-card,
.timeline-card,
.glass-card,
.feature-card,
.screenshot-card,
.report-shell,
.architecture-card,
.compact-resume-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.mini-stats article {
  padding: 1.2rem;
}
.mini-stats strong { font-size: 1.8rem; display: block; }
.mini-stats span { color: var(--muted); font-size: 0.95rem; }
.glass-card { padding: 1.5rem; }
.card-title { color: var(--c5); font-weight: 700; margin-top: 0; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.tag-row span,
.skill-chip-grid span,
.node-pill,
.severity {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
}
.tag-row span,
.skill-chip-grid span,
.node-pill {
  background: rgba(236, 243, 158, 0.1);
  color: var(--c5);
  border: 1px solid rgba(236, 243, 158, 0.12);
}
.check-list,
.bullet-list {
  padding-left: 1.1rem;
}
.check-list li,
.bullet-list li { margin-bottom: 0.7rem; }
.compact li { margin-bottom: 0.45rem; }
.quote-card { display: flex; flex-direction: column; justify-content: center; }
.quote { font-size: 1.18rem; font-weight: 600; margin: 0 0 1rem; }
.quote-meta strong { display: block; }
.quote-meta span, .muted { color: var(--muted); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.reverse-on-mobile { align-items: start; }
.section-head {
  margin-bottom: 2rem;
}
.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.card-grid {
  display: grid;
  gap: 1.25rem;
}
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card, .mini-card, .timeline-card {
  padding: 1.45rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.screenshot-card {
  overflow: hidden;
}
.screenshot-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #20361e;
}
.screenshot-card.tall img { height: 340px; }
.screenshot-card figcaption {
  padding: 1rem 1.1rem 1.15rem;
  color: var(--muted);
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.architecture-card .flow-stack {
  display: grid;
  gap: 0.8rem;
}
.architecture-card .flow-stack div,
.architecture-card .flow-stack span {
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 18px;
}
.architecture-card .flow-stack div {
  background: rgba(236, 243, 158, 0.08);
}
.skill-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.responsive-table {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(19, 42, 19, 0.65);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th, td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(236, 243, 158, 0.08);
}
th {
  color: var(--c5);
  background: rgba(236, 243, 158, 0.04);
}
.proof-card,
.compact-resume-card,
.resume-block,
.resume-skills-lines,
.report-shell {
  padding: 1.5rem;
}
.report-shell {
  background: rgba(8, 15, 9, 0.84);
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(236, 243, 158, 0.08);
}
.severity.medium {
  background: rgba(144, 169, 85, 0.2);
  color: var(--c5);
}
.resume-skills-lines p,
.report-body p { margin: 0 0 0.85rem; }
.site-footer {
  padding: 2rem 0 2.6rem;
  background: #0a140b;
  border-top: 1px solid rgba(236, 243, 158, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-grid p { color: var(--muted); margin-bottom: 0; }

/* =========================
   HOME PAGE SECTION STYLES
   ========================= */
.hero-index {
  background-image: url('assets/img/bg-home.svg');
}
.section-index-summary {
  background-image: url('assets/img/bg-summary.svg');
}
.section-index-highlights {
  background-image: url('assets/img/bg-highlights.svg');
}
.section-index-gallery {
  background-image: url('assets/img/bg-gallery.svg');
}

/* =========================
   LAB PAGE SECTION STYLES
   ========================= */
.hero-lab {
  background-image: url('assets/img/bg-lab-hero.svg');
}
.section-lab-architecture {
  background-image: url('assets/img/bg-architecture.svg');
}
.section-lab-process {
  background-image: url('assets/img/bg-process.svg');
}
.section-lab-skills {
  background-image: url('assets/img/bg-skills.svg');
}

/* =============================
   DETECTIONS PAGE SECTION STYLES
   ============================= */
.hero-detections {
  background-image: url('assets/img/bg-detect-hero.svg');
}
.section-detections-grid {
  background-image: url('assets/img/bg-detect-grid.svg');
}
.section-detections-table {
  background-image: url('assets/img/bg-detect-table.svg');
}
.section-detections-proof {
  background-image: url('assets/img/bg-detect-proof.svg');
}

/* ==========================
   REPORTS PAGE SECTION STYLES
   ========================== */
.hero-reports {
  background-image: url('assets/img/bg-report-hero.svg');
}
.section-reports-layout {
  background-image: url('assets/img/bg-report-layout.svg');
}
.section-reports-sample {
  background-image: url('assets/img/bg-report-sample.svg');
}
.section-reports-evidence {
  background-image: url('assets/img/bg-report-evidence.svg');
}

/* =========================
   RESUME PAGE SECTION STYLES
   ========================= */
.hero-resume {
  background-image: url('assets/img/bg-resume-hero.svg');
}
.section-resume-profile {
  background-image: url('assets/img/bg-resume-profile.svg');
}
.section-resume-lab {
  background-image: url('assets/img/bg-resume-lab.svg');
}
.section-resume-skills {
  background-image: url('assets/img/bg-resume-skills.svg');
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .three-up,
  .four-up,
  .gallery-grid,
  .timeline-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .split-head { flex-direction: column; align-items: start; }
  .mini-stats { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 1rem;
    width: min(340px, calc(100% - 2rem));
    padding: 0.7rem;
    background: rgba(11, 20, 12, 0.97);
    border: 1px solid rgba(236, 243, 158, 0.1);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 14px; }
}

@media (max-width: 640px) {
  .hero, .subhero { padding: 6.2rem 0 4rem; }
  .section { padding: 4rem 0; }
  .container { width: min(100% - 1.2rem, 1180px); }
  h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
