:root {
  /* Brand spectrum */
  --horizon-950: #031323;
  --horizon-900: #071e34;
  --horizon-800: #0a2d48;
  --horizon-700: #114467;
  --horizon-500: #1c6bad;
  --horizon-300: #38a3f2;
  --mint-400: #4fe0c1;
  --mint-200: #aef5e7;
  --cloud-50: #f5fbff;
  --ink-900: #08131d;
  --ink-700: #162736;
  --ink-500: #4c6072;
  --ink-300: #8ba1b6;

  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(8, 19, 35, 0.65);
  --glass-highlight: rgba(86, 198, 255, 0.18);

  --shadow-soft: 0 30px 70px rgba(5, 20, 36, 0.35);
  --shadow-card: 0 18px 40px rgba(5, 20, 36, 0.28);

  --text-primary: rgba(234, 244, 255, 0.92);
  --text-secondary: rgba(214, 232, 245, 0.82);
  --text-muted: rgba(180, 206, 226, 0.78);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --font-sans: "Lato", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Lato", ui-rounded, system-ui, sans-serif;
}

@font-face {
  font-family: "Poppins";
  src: url('/assets/fonts/poppins-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url('/assets/fonts/poppins-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url('/assets/fonts/lato-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url('/assets/fonts/lato-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--cloud-50);
  background: radial-gradient(circle at 20% -10%, rgba(72, 196, 255, 0.25), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(79, 224, 193, 0.18), transparent 55%),
              linear-gradient(160deg, var(--horizon-950), var(--horizon-800) 55%, var(--horizon-900));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
figure { margin: 0; }

a { color: var(--horizon-300); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  color: var(--cloud-50);
}

h1 { font-weight: 700; font-size: clamp(2.8rem, 5vw, 3.8rem); }
h2 { font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.6rem); }
h3 { font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }

p { margin: 0 0 1rem; color: var(--text-secondary); }

.shell { width: min(1440px, calc(100vw - 48px)); margin: 0 auto; }

.skip-link {
  position: fixed;
  left: 50%;
  transform: translate(-50%, -200%);
  top: 12px;
  background: rgba(8, 31, 49, 0.92);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  color: var(--cloud-50);
  text-decoration: none;
  z-index: 999;
  transition: transform .2s ease;
  border: 1px solid rgba(255,255,255,0.18);
}
.skip-link:focus { transform: translate(-50%, 0); }
/* Buttons */
.btn-primary,
.portal-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(140deg, rgba(56,163,242,0.85), rgba(79,224,193,0.72));
  color: rgba(8, 19, 29, 0.95);
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(6, 34, 60, 0.35);
}

.btn-secondary,
.portal-secondary-btn,
.portal-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--cloud-50);
  background: rgba(8, 31, 49, 0.45);
  border: 1px solid rgba(143, 214, 255, 0.4);
  transition: background .25s ease, border .25s ease;
}

.btn-secondary:hover,
.portal-secondary-btn:hover,
.portal-ghost-btn:hover {
  background: rgba(56,163,242,0.18);
  border-color: rgba(143,214,255,0.6);
}

/* Cards */
.card,
.portal-card {
  background: linear-gradient(160deg, rgba(8, 30, 48, 0.92), rgba(6, 22, 36, 0.88));
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(143, 214, 255, 0.12);
  box-shadow: 0 22px 40px rgba(5, 20, 36, 0.32);
  color: var(--cloud-50);
}

.card-eyebrow,
.portal-card h3 {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(174, 245, 231, 0.82);
}

.metric,
.portal-metric {
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  margin: 0;
  font-weight: 700;
}

.note,
.portal-note { color: rgba(200, 226, 245, 0.82); font-size: 0.92rem; }

.alert,
.portal-alert {
  border-radius: 14px;
  padding: clamp(12px, 2vw, 18px);
  background: rgba(253, 162, 162, 0.16);
  border: 1px solid rgba(253, 162, 162, 0.42);
  color: rgb(255, 217, 217);
  margin-bottom: 12px;
}

.alert-info,
.portal-alert--info {
  background: rgba(79, 224, 193, 0.12);
  border-color: rgba(79, 224, 193, 0.42);
  color: var(--mint-200);
}

.table-wrapper,
.portal-table-wrapper { overflow-x: auto; }

.table,
.portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.table thead,
.portal-table thead {
  background: rgba(7, 31, 49, 0.88);
  color: var(--cloud-50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.table th,
.table td,
.portal-table th,
.portal-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(143, 214, 255, 0.08);
  color: rgba(222, 239, 255, 0.9);
  font-size: 0.9rem;
}

.table tbody tr:hover,
.portal-table tbody tr:hover { background: rgba(56, 163, 242, 0.08); }

.align-right,
.portal-table td.align-right { text-align: right; }

/* Layout helpers */
.portal-section {
  background: rgba(8, 25, 42, 0.72);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 32px 60px rgba(5, 20, 36, 0.35);
  overflow: hidden;
}
.portal-section > * { padding: clamp(20px, 3vw, 32px); margin: 0; }

.portal-grid { display: grid; gap: clamp(16px, 3vw, 24px); }

.portal-chiplink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.75rem;
  background: rgba(79, 224, 193, 0.12);
  color: var(--mint-200);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  border: 1px solid rgba(79, 224, 193, 0.35);
}
