/* =============================================================
   State of the Sector — IIR Portal
   ============================================================= */

:root {
  --primary:     #1e3a8a;
  --primary-mid: #2563eb;
  --amber:       #d97706;
  --amber-mid:   #f59e0b;
  --amber-light: #fef3c7;
  --text:        #0f172a;
  --text-body:   #334155;
  --text-muted:  #64748b;
  --bg:          #f8fafc;
  --border:      #e2e8f0;
  --white:       #ffffff;
  --r:           14px;
  --shadow-lg:   0 20px 60px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }

/* ── Nav ──────────────────────────────────────────────────── */
.p-nav {
  background: #0f172a; height: 64px; padding: 0 2rem;
  display: flex; align-items: center;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.p-nav-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.p-brand { display: flex; align-items: center; gap: .65rem; }
.p-brand-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--amber), var(--amber-mid));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: .85rem;
}
.p-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem; font-weight: 700; color: white; line-height: 1;
}
.p-brand-sub { font-size: .65rem; color: #64748b; line-height: 1; margin-top: 2px; }
.p-nav-right  { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.p-nav-links {
  display: flex; align-items: center; gap: .25rem;
  flex: 1; justify-content: center;
}
.p-nav-a {
  font-size: .84rem; color: #94a3b8; font-weight: 500;
  padding: .4rem .75rem; border-radius: 8px; transition: color .15s, background .15s;
}
.p-nav-a:hover { color: white; background: rgba(255,255,255,.06); }
.p-nav-a.active { color: white; background: rgba(217,119,6,.25); font-weight: 600; }
.p-tag {
  font-size: .73rem; font-weight: 600; color: #fef3c7;
  background: rgba(217,119,6,.22); border: 1px solid rgba(217,119,6,.35);
  padding: .3rem .75rem; border-radius: 100px;
  display: flex; align-items: center; gap: .4rem;
}
.p-back {
  font-size: .84rem; color: #94a3b8; font-weight: 500;
  display: flex; align-items: center; gap: .4rem; transition: color .15s;
}
.p-back:hover { color: white; }

/* ── Main ─────────────────────────────────────────────────── */
.p-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 4rem 1.5rem;
}

/* ── Portal Card ──────────────────────────────────────────── */
.p-card {
  background: var(--white); border-radius: 20px;
  border: 1px solid var(--border); padding: 3rem;
  max-width: 500px; width: 100%;
  box-shadow: var(--shadow-lg); text-align: center;
}
.p-icon-wrap {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, var(--amber), var(--amber-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: white; margin: 0 auto 1.75rem;
}
.p-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e; border: 1px solid #fcd34d;
}
.p-card h1 { font-size: 1.8rem; color: var(--text); margin-bottom: .75rem; }
.p-lead    { font-size: .95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.p-divider {
  width: 40px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-mid));
  margin: 1.5rem auto;
}

/* Feature list */
.p-features { list-style: none; text-align: left; display: flex; flex-direction: column; gap: .75rem; margin: 1.75rem 0; }
.p-features li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; color: var(--text-body); }
.p-features li i { color: var(--amber); margin-top: .15rem; flex-shrink: 0; }

/* Error state */
.p-error-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: #fef2f2; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #ef4444; margin: 0 auto 1.5rem;
}
code {
  background: var(--bg); border: 1px solid var(--border);
  padding: .15rem .45rem; border-radius: 5px; font-size: .85rem; font-family: monospace;
}

/* ── Footer ───────────────────────────────────────────────── */
.p-footer {
  border-top: 1px solid var(--border); padding: 1.25rem 2rem;
  text-align: center; font-size: .8rem; color: var(--text-muted);
  background: var(--white);
  display: flex; flex-direction: column; gap: .3rem;
}
.p-footer a { color: var(--amber); font-weight: 500; }
.p-footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .p-card  { padding: 2rem 1.5rem; }
  .p-nav-right .p-tag { display: none; }
  .p-nav-links { display: none; }
}
