/* ===== GB Pavilion — dark theme (matches Munaf's house style) ===== */
:root {
  --bg-0: #0f172a;        /* slate-900 */
  --bg-1: #111c33;        /* slightly lighter */
  --bg-2: #1a2540;
  --line: #25324c;
  --text: #f8fafc;
  --muted: #94a3b8;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --green: #22c55e;
  --red: #ef4444;
  --blue: #38bdf8;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-2); }
img { max-width: 100%; height: auto; display: block; }
code {
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--amber-2);
}

/* ===== Layout ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Sticky top nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text);
}
.brand-logo {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--amber), #b45309);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--bg-0); font-weight: 800;
  font-size: 13px;
}
.nav-links {
  margin-left: auto; display: flex; gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  padding: 7px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at top left, rgba(245, 158, 11, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(56, 189, 248, 0.08), transparent 50%),
    var(--bg-0);
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--amber-soft);
  color: var(--amber);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin: 22px 0 16px;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--amber); }
.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 32px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.meta-cell {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.meta-cell .k { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.meta-cell .v { font-size: 16px; font-weight: 600; color: var(--text); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--amber);
  color: #1a1206;
}
.btn-primary:hover { background: var(--amber-2); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-2); }

/* ===== Sections ===== */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-head .num {
  color: var(--amber);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 760px; margin: 0; }

/* ===== Cards ===== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.card p { margin: 0; color: var(--muted); }
.card .icon {
  width: 44px; height: 44px;
  background: var(--amber-soft);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--amber);
  font-size: 22px;
  margin-bottom: 16px;
}

.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid-4 {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ===== KPI strip ===== */
.kpi-strip {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.kpi-strip .kpi { text-align: left; }
.kpi-strip .kpi .num {
  font-size: 32px; font-weight: 800;
  color: var(--amber); letter-spacing: -0.5px;
  display: block;
}
.kpi-strip .kpi .lbl {
  font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
}

/* ===== Funnel ===== */
.funnel {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}
.funnel .stage {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.funnel .stage.s2 { border-left-color: #fbbf24; }
.funnel .stage.s3 { border-left-color: #facc15; }
.funnel .stage.s4 { border-left-color: #84cc16; }
.funnel .stage.s5 { border-left-color: #22c55e; }
.funnel .stage.s6 { border-left-color: #14b8a6; }
.funnel .stage.s7 { border-left-color: #38bdf8; }
.funnel .stage .name {
  font-weight: 700; font-size: 17px;
}
.funnel .stage .desc {
  color: var(--muted); font-size: 14px;
}

/* ===== Timeline / phases ===== */
.phases {
  display: grid; gap: 12px;
}
.phase {
  display: grid;
  grid-template-columns: 60px 100px 1fr 130px;
  gap: 18px; align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.phase .id { font-size: 26px; font-weight: 800; color: var(--amber); }
.phase .dates { color: var(--muted); font-size: 13px; }
.phase .name { font-weight: 700; font-size: 16px; }
.phase .owner { color: var(--muted); font-size: 13px; text-align: right; }

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border-radius: var(--radius);
  overflow: hidden;
}
table th, table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table th {
  background: var(--bg-2);
  color: var(--amber);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
table tr:last-child td { border-bottom: 0; }
table tr:hover td { background: rgba(245, 158, 11, 0.04); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ===== Pills / badges ===== */
.pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--bg-2); color: var(--muted);
  border: 1px solid var(--line);
}
.pill.green { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.pill.amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(245, 158, 11, 0.3); }
.pill.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.pill.red { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }

/* ===== Quote ===== */
.quote {
  background: var(--bg-1);
  border-left: 4px solid var(--amber);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}
.quote p { margin: 0 0 12px; font-size: 18px; font-style: italic; color: var(--text); }
.quote cite { color: var(--muted); font-size: 14px; font-style: normal; }

/* ===== Tabs / accordions ===== */
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.tab-btn {
  background: transparent; border: 0; color: var(--muted);
  padding: 12px 18px; cursor: pointer;
  font-size: 15px; font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--amber); border-bottom-color: var(--amber); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Modules grid (system modules) ===== */
.modules {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.module {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  transition: border-color 0.2s ease;
}
.module:hover { border-color: var(--amber); }
.module .code {
  font-size: 11px; color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.module .name { font-size: 17px; font-weight: 700; margin: 6px 0 8px; }
.module .desc { color: var(--muted); font-size: 14px; }
.module .tag {
  position: absolute; top: 18px; right: 18px;
}

/* ===== Footer ===== */
footer {
  padding: 50px 0 30px;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer .row {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 18px; align-items: center;
}
footer a { color: var(--amber); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .phase {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 18px;
  }
  .phase .owner { text-align: left; }
  .nav-links { display: none; }
  .hero { padding: 60px 0 40px; }
  section { padding: 50px 0; }
}
