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

:root {
  /* Backgrounds */
  --bg: #f7f8f9;                /* very soft, crisp neutral—airy and modern */
  --soft: #e9ecef;              /* light cool grey-blue for sections and panels */
  
  /* Text */
  --text: #1f2126;              /* deep charcoal—serious, authoritative, readable */
  --muted: #6b7280;             /* calm grey for secondary info */
  --highlight: #9ca3af;         /* soft steel-blue for subtle emphasis */
  
  /* Accents */
  --green: #2d9d78;             /* vibrant yet grounded teal-green—signals growth, trust, action */
  --orange: #f29c52;            /* warm accent for calls-to-action, buttons, highlights */
  
  /* Lines & borders */
  --line: #d1d5db;              /* subtle neutral divider for structure */
  
  /* Panels & nodes */
  --panel-gradient-start: #e4f0f2; 
  --panel-gradient-end: #cfe5e8; 
  --node-bg: rgba(255, 255, 255, 0.95);       /* crisp translucent layer for layering */
  --node-core-bg: rgba(245, 252, 250, 0.95);  /* gentle mint-teal for core elements */
  --node-hover-bg: #d0f0ed;                  /* lively hover feedback */
  
  /* Buttons */
  --btn-text: #ffffff;           /* clean white for maximum contrast on accent buttons */
  --btn-bg: var(--green);        /* primary call-to-action buttons */
  --btn-hover: #248968;          /* darker teal on hover for subtle interaction cue */
}

/* BASE */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1120px;
  margin: auto;
}

.center { text-align: center; }

/* HEADER */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(243,245,242,0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 42px;
  height: 28px;
  background: var(--green);
  color: var(--btn-text);
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-weight: 600;
}

/* NAV */
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.2s;
}

.nav a:hover {
  color: var(--text);
}

/* ACTIVE SCROLLSPY STATE */
.nav a.active {
  background: var(--green);
  color: var(--btn-text) !important;
  padding: 6px 10px;
  border-radius: 8px;
}

/* TYPOGRAPHY */
h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin: 24px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.body {
  color: var(--muted);
  max-width: 60ch;
  margin: auto;
}

/* EYEBROW */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--highlight);
}

/* SECTIONS */
.section {
  padding: 96px 0;
}

.soft {
  background: var(--soft);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* PANELS */
.panel {
  height: 500px;
  border-radius: 12px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* PANEL GRADIENT OPTION */
.panel-gradient {
  background: linear-gradient(135deg, var(--panel-gradient-start), var(--panel-gradient-end));
}

/* INNER GRID */
.panel-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CORE NODE */
.node.core {
  background: var(--node-core-bg);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* LAYERS */
.layer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* MODULE NODES */
.node {
  flex: 1;
  background: var(--node-bg);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text);
}

.node.small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.node:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
  background: var(--node-hover-bg);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
  margin-top: 48px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
}

/* LINKS */
a {
  color: var(--green);
}

/* BUTTONS */
.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--green);
  color: var(--btn-text);
  border-radius: 8px;
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.btn.small {
  margin-top: 0;
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 48px;
  margin-top: 48px;
}

.value {
  font-size: 2rem;
  color: var(--green);
}

.label {
  color: var(--muted);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  color: var(--highlight);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid,
  .cards,
  .stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
  }
}

html {
  scroll-behavior: auto; /* we replace with JS easing */
}

.hero {
  padding: 80px 0 80px; /* increased top + bottom spacing */
}
/* NOSCRIPT FALLBACK */
.noscript-content {
  display: block;
  padding: 2rem;
  background: var(--soft);
  color: var(--text);
  line-height: 1.6;
}

.noscript-content h1,
.noscript-content h2,
.noscript-content h3 {
  margin-bottom: 1rem;
}

.noscript-content p,
.noscript-content ul,
.noscript-content li {
  margin-bottom: 0.75rem;
}

.noscript-content ul {
  padding-left: 1.25rem;
}

.js-enabled .noscript-content {
  display: none;
}
