/* ============================================================
   VYNAKRO SUITE — Design System v3
   Modern enterprise · Baylor green dominant · Gold accents
   Segoe UI system stack · No cliches
   ============================================================ */

:root {
  /* ── Baylor Green (primary) ── */
  --green-950:   #051810;   /* near-black */
  --green-900:   #0A2418;
  --green-800:   #0F3A28;
  --green-700:   #154734;   /* official Baylor green */
  --green-600:   #1B5A42;
  --green-500:   #236F52;
  --green-400:   #3A8966;
  --green-300:   #6FAE8F;
  --green-200:   #A8CEB7;
  --green-100:   #D6E4DC;
  --green-50:    #EEF4F0;

  /* ── Baylor Gold (accent) ── */
  --gold-900:    #6B4A08;
  --gold-800:    #9C6F14;
  --gold-700:    #C8902E;
  --gold-600:    #E5A524;
  --gold-500:    #FFB81C;   /* official Baylor gold */
  --gold-400:    #FFCA4D;
  --gold-300:    #FFDE85;
  --gold-200:    #FFECAE;
  --gold-100:    #FFF4D1;
  --gold-50:     #FFF9E8;

  /* ── Neutrals (warm, slightly green-tinted) ── */
  --n-950:       #0D1410;
  --n-900:       #181F1A;
  --n-800:       #252B26;
  --n-700:       #383F36;
  --n-600:       #525A4D;
  --n-500:       #6F7869;
  --n-400:       #8F988A;
  --n-300:       #B5BCAE;
  --n-200:       #D5DACC;
  --n-150:       #E3E6DC;
  --n-100:       #EEF0E8;
  --n-75:        #F4F5EF;
  --n-50:        #F9FAF6;
  --n-25:        #FCFDF9;

  /* ── Semantic ── */
  --bg:              var(--green-950);
  --bg-elevated:     var(--green-900);
  --surface:         #FFFFFF;
  --surface-alt:     var(--n-50);
  --surface-warm:    var(--n-75);

  --ink:             var(--n-950);
  --ink-2:           var(--n-800);
  --ink-3:           var(--n-600);
  --ink-4:           var(--n-500);
  --ink-mute:        var(--n-400);
  --ink-inverse:     #FFFFFF;
  --ink-inverse-2:   var(--n-200);
  --ink-inverse-3:   var(--n-400);

  --line-strong:     var(--n-200);
  --line:            var(--n-150);
  --line-soft:       var(--n-100);
  --line-dark:       rgba(255,255,255,0.08);
  --line-dark-2:     rgba(255,255,255,0.14);

  /* ── Signal ── */
  --flag-500:        #C0362C;
  --flag-100:        #FBE4E2;
  --flag-900:        #7A1F19;
  --warn-500:        #D68A13;
  --warn-100:        #FCEFD4;
  --warn-900:        #6F4608;

  /* ── Typography ── */
  --font-sans:
    'Segoe UI Variable Display', 'Segoe UI Variable', 'Segoe UI',
    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-text:
    'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI',
    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:
    'Cascadia Code', 'Cascadia Mono', Consolas, 'SF Mono', 'Segoe UI Mono', Menlo, monospace;

  /* ── Motion ── */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Elevation ── */
  --shadow-xs:   0 1px 2px rgba(10, 36, 24, 0.05);
  --shadow-sm:   0 1px 3px rgba(10, 36, 24, 0.08), 0 1px 2px rgba(10, 36, 24, 0.04);
  --shadow-md:   0 4px 12px rgba(10, 36, 24, 0.08), 0 2px 4px rgba(10, 36, 24, 0.04);
  --shadow-lg:   0 12px 32px rgba(10, 36, 24, 0.10), 0 4px 8px rgba(10, 36, 24, 0.05);
  --shadow-xl:   0 24px 48px rgba(10, 36, 24, 0.14), 0 8px 16px rgba(10, 36, 24, 0.06);
  --shadow-gold: 0 8px 24px rgba(255, 184, 28, 0.25);

  /* ── Radius ── */
  --r-xs: 3px;
  --r-sm: 5px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* ── Layout ── */
  --maxw: 1280px;
  --pad:  max(24px, 4vw);
}

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

*::selection {
  background: var(--gold-300);
  color: var(--green-900);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

.mono, .num, [data-num] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============================================================
   TOPBAR — dark green with gold hairline
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  color: var(--ink-inverse);
  backdrop-filter: saturate(120%);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 1px 0 rgba(255, 184, 28, 0.20);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink-inverse);
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--gold-500);
  color: var(--green-900);
  border-radius: 5px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.03em;
  box-shadow: 0 2px 6px rgba(255, 184, 28, 0.35);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent 40%);
  pointer-events: none;
}

.topbar-nav {
  display: flex;
  gap: 2px;
  flex: 1;
}

.topbar-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-inverse-2);
  transition: all 0.15s var(--ease);
}

.topbar-nav a:hover {
  color: var(--ink-inverse);
  background: rgba(255,255,255,0.06);
}

.topbar-nav a.active {
  color: var(--gold-500);
}

.topbar-nav a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -21px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 1px 1px 0 0;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-inverse-3);
  padding: 5px 10px 5px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
}

.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-mute);
}

.status-dot.live {
  color: var(--gold-400);
  background: rgba(255, 184, 28, 0.08);
  border-color: rgba(255, 184, 28, 0.25);
}

.status-dot.live::before {
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.22);
  animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.22); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 184, 28, 0.10); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad) 80px;
}

.page-head {
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--green-700);
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 12px;
}
.page-eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--gold-500);
}

.page-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
}

.page-sub {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 680px;
  line-height: 1.55;
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   GRID
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }

.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ============================================================
   PANEL — refined enterprise card
   ============================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.panel:hover { border-color: var(--line-strong); }

.panel-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--n-25), var(--surface));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--green-800);
  letter-spacing: -0.005em;
}

.panel-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--gold-500);
  border-radius: 2px;
}

.panel-label {
  font-size: 10.5px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.panel-body { padding: 22px; }
.panel-body.dense { padding: 14px 22px; }

.panel-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--n-25);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   FORM
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.form-grid.one-col { grid-template-columns: 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1 / -1; }

.field > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.field > label .req { color: var(--flag-500); margin-left: 2px; }

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: all 0.15s var(--ease);
  box-shadow: var(--shadow-xs);
}
.input.mono, .textarea.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.input:hover, .select:hover, .textarea:hover {
  border-color: var(--n-300);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(21, 71, 52, 0.10), var(--shadow-xs);
}
.textarea {
  resize: vertical;
  line-height: 1.55;
  min-height: 92px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%23525A4D' d='M6 7L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--n-300);
  border-radius: var(--r);
  background: var(--n-25);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(21, 71, 52, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.dropzone:hover::before,
.dropzone:focus::before { opacity: 1; }

.dropzone:hover, .dropzone:focus {
  border-color: var(--green-700);
  background: var(--green-50);
  outline: none;
  transform: translateY(-1px);
}
.dropzone.dragover {
  border-color: var(--gold-500);
  background: var(--gold-50);
  border-style: solid;
  box-shadow: var(--shadow-gold);
}

.dropzone-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  color: var(--green-700);
  position: relative;
  z-index: 1;
}
.dropzone-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
}
.dropzone-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
}

.status-line {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--green-600);
  font-weight: 500;
}

/* ============================================================
   BUTTON — refined, elevation on hover
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  position: relative;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--green-700);
  color: #fff;
  border-color: var(--green-700);
  box-shadow: 0 1px 2px rgba(10, 36, 24, 0.14), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover:not(:disabled) {
  background: var(--green-800);
  border-color: var(--green-800);
  box-shadow: 0 4px 12px rgba(10, 36, 24, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: var(--gold-500);
  color: var(--green-900);
  border-color: var(--gold-500);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(200, 144, 46, 0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-accent:hover:not(:disabled) {
  background: var(--gold-600);
  border-color: var(--gold-600);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--n-50);
  border-color: var(--n-300);
  color: var(--ink);
}

.btn-ghost-dark {
  background: rgba(255,255,255,0.05);
  color: var(--ink-inverse-2);
  border-color: var(--line-dark-2);
}
.btn-ghost-dark:hover:not(:disabled) {
  background: rgba(255,255,255,0.10);
  color: var(--ink-inverse);
  border-color: rgba(255,255,255,0.24);
}

.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-lg { padding: 13px 24px; font-size: 14.5px; }

/* Icon inside button */
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ============================================================
   PILL
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid transparent;
  letter-spacing: -0.002em;
}
.pill-pass    { background: var(--green-100); color: var(--green-800); border-color: var(--green-200); }
.pill-warn    { background: var(--gold-100);  color: var(--gold-900);  border-color: var(--gold-300); }
.pill-flag    { background: var(--flag-100);  color: var(--flag-900);  border-color: #F5C4C0; }
.pill-info    { background: #DEEAF8;  color: #1C3E70;  border-color: #B8CCE5; }
.pill-neutral { background: var(--n-100); color: var(--ink-2); border-color: var(--n-200); }

/* ============================================================
   TABLE
   ============================================================ */
.t-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.data thead th {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 10px 14px;
  background: var(--n-50);
  border-bottom: 1px solid var(--line-strong);
}
table.data tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  vertical-align: top;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: var(--n-25); }

table.data .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
table.data tr.highlight td {
  background: linear-gradient(90deg, var(--gold-50), var(--gold-100));
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--gold-300);
  border-bottom: 1px solid var(--gold-300);
}
table.data .delta-pos { color: var(--green-600); font-weight: 600; }
table.data .delta-neg { color: var(--flag-500); font-weight: 600; }

/* ============================================================
   AI OUTPUT
   ============================================================ */
.ai-out { padding: 0; }
.ai-empty {
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
}
.ai-loading {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--n-25);
  border-bottom: 1px solid var(--line-soft);
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ai-panel {
  padding: 20px 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.ai-panel strong { color: var(--ink); font-weight: 650; }
.ai-panel h1, .ai-panel h2, .ai-panel h3 {
  font-weight: 700;
  color: var(--green-800);
  margin: 18px 0 8px;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.ai-panel h1:first-child, .ai-panel h2:first-child, .ai-panel h3:first-child { margin-top: 0; }

.ai-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, var(--green-50), var(--n-25));
  font-size: 11.5px;
  color: var(--green-800);
  font-weight: 500;
}
.ai-chip {
  padding: 3px 9px;
  background: var(--green-700);
  color: var(--gold-500);
  border-radius: 3px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.alert-warn { background: var(--gold-100); color: var(--gold-900); border-color: var(--gold-300); }
.alert-flag { background: var(--flag-100); color: var(--flag-900); border-color: #F5C4C0; }
.alert-info { background: #DEEAF8;  color: #1C3E70;  border-color: #B8CCE5; }

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.checklist > div {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.checklist > div:last-child { border-bottom: none; }

.check-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--green-700);
  color: var(--gold-500);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(10, 36, 24, 0.15);
}

.ref-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  gap: 12px;
}
.ref-row:last-child { border-bottom: none; }
.ref-row strong { color: var(--green-800); font-weight: 700; }

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background: var(--surface);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* decorative architecture pattern behind hero — blueprint lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--green-50) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-50) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, black 0%, transparent 80%);
  opacity: 0.6;
  pointer-events: none;
}

/* subtle gold accent in the hero corner */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 100% 0%, rgba(255, 184, 28, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 9px;
  margin-bottom: 28px;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green-800);
  background: var(--surface);
  border: 1px solid var(--green-200);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.2);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--green-900);
  margin-bottom: 24px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-title .accent {
  background: linear-gradient(180deg, var(--gold-600) 0%, var(--gold-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stat band */
.stat-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 720px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band .stat:nth-child(2) { border-right: none; }
}

.stat {
  padding: 8px 24px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num.stat-word {
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  padding-top: 7px;
  padding-bottom: 1px;
}
.stat-num .unit {
  font-size: 18px;
  color: var(--gold-600);
  margin-left: 2px;
}
.stat-label {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Tools section ── */
.tools-section {
  padding: 96px 0 80px;
  background: var(--surface-alt);
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 var(--pad);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--green-700);
  margin-bottom: 16px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--gold-500);
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
  max-width: 20ch;
  margin: 0 auto;
}
.section-sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

/* gold corner tab that appears on hover */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 40px 40px 0;
  border-color: transparent var(--gold-500) transparent transparent;
  opacity: 0;
  transform: translate(6px, -6px);
  transition: all 0.3s var(--ease-out);
}
.tool-card:hover {
  border-color: var(--green-700);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.tool-card:hover::before {
  opacity: 1;
  transform: translate(0, 0);
}

.tool-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-700);
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  transition: all 0.2s var(--ease);
}
.tool-icon svg { width: 22px; height: 22px; }
.tool-card:hover .tool-icon {
  background: var(--green-700);
  color: var(--gold-500);
  border-color: var(--green-700);
}

.tool-kicker {
  font-size: 11px;
  color: var(--green-700);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tool-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.2;
}

.tool-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  flex: 1;
  margin-bottom: 22px;
}

.tool-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tool-meta:empty { display: none; margin-bottom: 0; }

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--green-700);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
.tool-cta .arrow { transition: transform 0.25s var(--ease-bounce); }
.tool-card:hover .tool-cta { color: var(--gold-700); }
.tool-card:hover .tool-cta .arrow { transform: translateX(4px); }

/* ── Principles section (3-col below tools) ── */
.principles {
  padding: 88px 0;
  background: var(--green-900);
  color: var(--ink-inverse);
  position: relative;
  overflow: hidden;
}
.principles::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(255, 184, 28, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 184, 28, 0.04), transparent 60%);
  pointer-events: none;
}

.principles-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}
@media (max-width: 800px) {
  .principles-grid { grid-template-columns: 1fr; gap: 32px; }
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.principle-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.principle-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-inverse-2);
}

.principles-eyebrow {
  color: var(--gold-500);
}

.principles .section-title {
  color: #fff;
  max-width: 22ch;
}

.principles .section-eyebrow::before,
.principles .section-eyebrow::after {
  background: var(--gold-500);
}

/* ── Footer ── */
.footer {
  padding: 48px var(--pad) 28px;
  background: var(--green-950);
  color: var(--ink-inverse-3);
  border-top: 2px solid var(--gold-500);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand .brand { font-size: 18px; }
.footer-tagline {
  font-size: 13px;
  color: var(--ink-inverse-3);
  max-width: 42ch;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--ink-inverse-2);
  transition: color 0.15s var(--ease);
}
.footer-col a:hover { color: var(--gold-500); }

.footer-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-inverse-3);
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom .dot { color: var(--gold-500); margin: 0 8px; opacity: 0.7; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }

.hide { display: none !important; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

/* ── Animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up { animation: fade-up 0.5s var(--ease-out) both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.12s; }
.fade-up-3 { animation-delay: 0.19s; }
.fade-up-4 { animation-delay: 0.26s; }
.fade-up-5 { animation-delay: 0.33s; }

/* Stat counter animation */
.stat-num.counting { animation: fade-in 0.4s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media print {
  .topbar, .footer, .btn, .panel-foot, .principles { display: none; }
  .panel { border: 1px solid #ccc; box-shadow: none; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 80;
  padding: 12px 18px 12px 16px;
  background: var(--green-900);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: fade-up 0.3s var(--ease-out) both;
  border-left: 3px solid var(--gold-500);
}
.toast.error { background: var(--flag-500); border-left-color: var(--flag-900); }
.toast.warn  { background: var(--gold-500); color: var(--green-900); border-left-color: var(--green-900); }
