/* ============================================================
   ITC ENERGY™ — Shared Design System v3
   Deep Slate / Copper / Teal / Off-White
   Institutional Infrastructure Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* ── Design Tokens ── */
:root {
  /* Copper — premium accents and primary CTAs only */
  --copper-dark:   #92400E;
  --copper:        #B45309;
  --copper-mid:    #D97706;
  --copper-light:  #F59E0B;
  --copper-glow:   rgba(180,83,9,0.14);

  /* Teal — technology cues and subtle highlights only */
  --teal-dark:     #0F766E;
  --teal:          #0D9488;
  --teal-mid:      #14B8A6;
  --teal-light:    #5EEAD4;
  --teal-glow:     rgba(13,148,136,0.10);

  /* Slate — the foundation */
  --slate-950:     #020617;
  --slate-900:     #0F172A;
  --slate-850:     #141B28;
  --slate-800:     #1E293B;
  --slate-750:     #243044;
  --slate-700:     #334155;
  --slate-600:     #475569;
  --slate-500:     #64748B;
  --slate-400:     #94A3B8;
  --slate-300:     #CBD5E1;
  --slate-200:     #E2E8F0;
  --slate-100:     #F1F5F9;
  --slate-50:      #F8FAFC;

  /* Backgrounds */
  --bg:            #F8FAFC;
  --bg-raised:     #F1F5F9;
  --bg-card:       #FFFFFF;
  --bg-panel:      #F1F5F9;
  --bg-dark:       #0F172A;
  --bg-darkest:    #020617;

  /* Text */
  --text-primary:  #0F172A;
  --text-secondary:#334155;
  --text-muted:    #64748B;
  --text-faint:    #94A3B8;

  /* Borders */
  --border:        rgba(15,23,42,0.08);
  --border-md:     rgba(15,23,42,0.12);
  --border-strong: rgba(15,23,42,0.20);

  /* Typography */
  --font-head: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --section-pad: clamp(128px,15vw,200px);
  --inner-max:   1200px;
  --inner-wide:  1400px;
  --radius-sm:   2px;
  --radius:      4px;
  --radius-lg:   8px;
  --ease:        cubic-bezier(0.4,0,0.2,1);
  --dur:         200ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--teal); color: #fff;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  border-radius: var(--radius); z-index: 9999;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,250,252,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,23,42,0.10);
  height: 76px;
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease);
}
.nav-inner {
  width: 100%; max-width: var(--inner-wide);
  margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0; text-decoration: none;
}
.nav-logo-img {
  height: 38px; width: auto; display: block;
  flex-shrink: 0;
}
.nav-logo-wordmark {
  display: flex; flex-direction: column; gap: 2px;
}
.nav-logo-name {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-900); line-height: 1;
}
.nav-logo-name sup {
  font-size: 8px; font-weight: 600;
  letter-spacing: 0; vertical-align: super;
  opacity: 0.5;
}
.nav-logo-tagline {
  font-family: var(--font-mono);
  font-size: 7.5px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--copper-mid); line-height: 1;
  opacity: 0.85;
}
.nav-links {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: center;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate-600);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease);
  min-height: 44px; display: flex; align-items: center;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--slate-900);
}
.nav-cta {
  font-family: var(--font-head) !important;
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: 0.18em !important; text-transform: uppercase !important;
  color: #ffffff !important;
  background: var(--copper) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm) !important;
  min-height: 42px; display: flex; align-items: center;
  transition: background var(--dur) var(--ease) !important;
  white-space: nowrap;
  border: none !important;
}
.nav-cta:hover { background: var(--copper-mid) !important; }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 10px; min-height: 44px; min-width: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.nav-toggle:hover { background: rgba(15,23,42,0.05); }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--slate-600);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  min-height: 52px;
  transition: all var(--dur) var(--ease);
  cursor: pointer; white-space: nowrap;
  border: none;
}
/* PRIMARY — copper, white text */
.btn-copper {
  background: var(--copper);
  color: #ffffff;
  border: 1px solid var(--copper);
}
.btn-copper:hover {
  background: var(--copper-mid);
  border-color: var(--copper-mid);
  color: #ffffff;
}
/* SECONDARY — transparent, dark border */
.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border: 1px solid rgba(15,23,42,0.25);
}
.btn-ghost:hover {
  border-color: var(--slate-700);
  color: var(--slate-900);
}
/* TEAL — used sparingly */
.btn-teal {
  background: var(--teal);
  color: #ffffff;
  border: 1px solid var(--teal);
}
.btn-teal:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  color: #ffffff;
}
/* Aliases */
.btn-primary {
  background: var(--copper); color: #ffffff; border: 1px solid var(--copper);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 40px; border-radius: var(--radius-sm); min-height: 52px;
  transition: all var(--dur) var(--ease); cursor: pointer; white-space: nowrap;
}
.btn-primary:hover { background: var(--copper-mid); border-color: var(--copper-mid); }
.btn-outline {
  background: transparent; color: rgba(226,232,240,0.75); border: 1px solid rgba(226,232,240,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 40px; border-radius: var(--radius-sm); min-height: 52px;
  transition: all var(--dur) var(--ease); cursor: pointer; white-space: nowrap;
}
.btn-outline:hover { border-color: rgba(226,232,240,0.55); color: rgba(241,245,249,0.95); }
.btn-outline-teal {
  background: transparent; color: var(--teal-mid); border: 1px solid rgba(20,184,166,0.35);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 40px; border-radius: var(--radius-sm); min-height: 52px;
  transition: all var(--dur) var(--ease); cursor: pointer; white-space: nowrap;
}
.btn-outline-teal:hover { background: rgba(20,184,166,0.07); }

/* ── Section Scaffolding ── */
.sec { padding: var(--section-pad) 0; }
.sec-inner { max-width: var(--inner-max); margin: 0 auto; padding: 0 48px; }
.sec-inner-wide { max-width: var(--inner-wide); margin: 0 auto; padding: 0 48px; }
.sec-alt { background: var(--bg-raised); }
.sec-panel { background: var(--bg-card); }
.sec-dark { background: var(--slate-950); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 28px;
}
.eyebrow-copper { color: var(--copper-mid); }

/* ── Section Headings ── */
.sec-h {
  font-family: var(--font-head);
  font-size: clamp(40px,5vw,76px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.02;
  color: var(--text-primary); margin-bottom: 32px;
}
.sec-h-lg { font-size: clamp(44px,6vw,88px); }
.sec-sub {
  font-size: clamp(18px,1.7vw,22px); font-weight: 400;
  line-height: 1.75; color: var(--slate-600); max-width: 640px;
}

/* ── Divider ── */
.rule { width: 32px; height: 1px; background: var(--teal); margin-bottom: 36px; opacity: 0.6; }
.rule-copper { background: var(--copper); }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  color: var(--text-secondary);
  transition: border-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-md); }
.card-h {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  letter-spacing: -0.025em; color: var(--text-primary); margin-bottom: 18px;
}
.card-p { font-size: 16px; line-height: 1.8; color: var(--slate-600); }
.card-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.30em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 180px 0 120px;
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: var(--inner-max); margin: 0 auto; padding: 0 48px; }
.page-hero-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.36em; text-transform: uppercase; color: var(--teal-mid); margin-bottom: 28px;
}
.page-hero-h {
  font-family: var(--font-head); font-size: clamp(48px,6.5vw,88px);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.0;
  color: var(--text-primary); margin-bottom: 36px;
}
.page-hero-sub {
  font-size: clamp(19px,1.8vw,23px); font-weight: 400;
  line-height: 1.75; color: var(--slate-600); max-width: 600px;
}

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 32px; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; gap: 8px; align-items: center; list-style: none; margin-bottom: 40px; }
.breadcrumb li {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.20em; text-transform: uppercase; color: var(--text-muted);
}
.breadcrumb li a { color: var(--text-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.breadcrumb li a:hover { color: var(--text-secondary); }
.breadcrumb li+li::before { content: "/"; margin-right: 8px; }

/* ── Tag / Badge ── */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--slate-500); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 12px;
}
.tag-teal { color: var(--teal-mid); border-color: rgba(13,148,136,0.20); background: rgba(13,148,136,0.05); }
.tag-copper { color: var(--copper-mid); border-color: rgba(180,83,9,0.20); background: rgba(180,83,9,0.05); }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate-500);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 16px; padding: 15px 18px;
  min-height: 54px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.10);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--slate-600); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
  -webkit-appearance: none; appearance: none;
}
.form-select option { background: var(--slate-800); color: var(--text-primary); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-req { color: var(--copper-mid); margin-left: 2px; }
.form-helper { font-size: 13px; color: var(--text-muted); }
.form-error { font-size: 13px; color: #F87171; display: none; }
.form-error.visible { display: block; }
.form-success {
  padding: 20px 24px;
  background: rgba(13,148,136,0.07);
  border: 1px solid rgba(13,148,136,0.20);
  border-radius: var(--radius);
  color: var(--teal-light); font-size: 15px; display: none;
}
.form-success.visible { display: block; }

/* ── Portal Overlay ── */
.portal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2,6,23,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.portal-overlay.open { opacity: 1; pointer-events: all; }
.portal-box {
  background: var(--bg-card); border: 1px solid var(--border-md);
  border-radius: var(--radius-lg); padding: 56px;
  width: 100%; max-width: 520px; position: relative;
  transform: translateY(16px); transition: transform var(--dur) var(--ease);
}
.portal-overlay.open .portal-box { transform: translateY(0); }
.portal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.portal-close:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.portal-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.30em; text-transform: uppercase; color: var(--teal-mid); margin-bottom: 18px;
}
.portal-h {
  font-family: var(--font-head); font-size: 24px; font-weight: 800;
  letter-spacing: -0.025em; color: var(--text-primary); margin-bottom: 10px;
}
.portal-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.65; }
.portal-form { display: flex; flex-direction: column; gap: 20px; }

/* ── Disclosure Strip ── */
.disclosure-strip {
  padding: 40px 0;
  background: var(--slate-950);
  border-top: 1px solid var(--border);
}
.disclosure-strip-inner { max-width: var(--inner-max); margin: 0 auto; padding: 0 48px; }
.disclosure-text { font-size: 11px; color: var(--text-faint); line-height: 1.85; }
.disclosure-text a { color: var(--slate-500); text-decoration: underline; text-underline-offset: 3px; }
.disclosure-text a:hover { color: var(--text-secondary); }

/* ── Footer ── */
.footer { background: var(--slate-950); border-top: 1px solid var(--border); padding: 100px 0 56px; }
.footer-inner { max-width: var(--inner-wide); margin: 0 auto; padding: 0 48px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 72px; }
.footer-brand-logo { height: 40px; width: auto; margin-bottom: 28px; }
.footer-logo-block {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.footer-logo-cube { height: 38px; width: auto; display: block; flex-shrink: 0; }
.footer-logo-wordmark { display: flex; flex-direction: column; gap: 3px; }
.footer-logo-name {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-primary); line-height: 1;
}
.footer-logo-name sup { font-size: 8px; font-weight: 600; letter-spacing: 0; vertical-align: super; opacity: 0.5; }
.footer-logo-sub {
  font-family: var(--font-mono);
  font-size: 7.5px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--copper-mid); line-height: 1; opacity: 0.85;
}
.footer-tagline { font-size: 15px; color: var(--slate-400); line-height: 1.75; max-width: 280px; margin-bottom: 32px; }
.footer-col-h {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.30em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px;
}
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { font-size: 15px; color: var(--slate-400); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 40px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-legal { font-size: 11px; color: var(--text-faint); line-height: 1.85; max-width: 700px; }
.footer-legal a { color: var(--slate-500); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--text-primary); }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); white-space: nowrap; }

/* ── Accessibility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  :root { --section-pad: clamp(80px,12vw,140px); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 76px; left: 0; right: 0;
    background: rgba(248,250,252,0.99);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15,23,42,0.10);
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    padding: 24px 32px 32px; gap: 4px;
  }
  .nav-links.open a { color: var(--slate-700); }
  .nav-links.open .nav-cta { display: flex; margin-top: 16px; width: 100%; justify-content: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; }
  .sec-inner, .sec-inner-wide, .page-hero-inner, .nav-inner, .footer-inner { padding: 0 24px; }
  .sec-h { font-size: clamp(34px,8vw,56px); }
  .portal-box { padding: 40px 28px; }
}

/* ── Platform Strip ── */
.platform-strip {
  background: var(--slate-950);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 24px 0;
}
.platform-strip-inner {
  max-width: var(--inner-wide); margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.strip-link {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--slate-600);
  transition: color var(--dur) var(--ease);
}
.strip-link:hover { color: var(--slate-400); }
.strip-sep {
  width: 3px; height: 3px;
  background: var(--slate-700);
  border-radius: 50%;
  flex-shrink: 0;
}
