/* ============================================
   Bluecoat Foundry — Investor Site v3
   Theme: restrained prime-contractor idiom
   (Boeing / Lockheed / Northrop / Rocket Lab reference)
   Big numbers, plain type, real photography placeholders,
   minimal chrome. No illustrative/sci-fi graphics.
   ============================================ */

:root {
  --ink-950: #08090c;
  --ink-900: #0d0f14;
  --ink-800: #14171f;
  --ink-700: #23272f;
  --steel-500: #6b7178;
  --steel-300: #a7acb3;
  --brand-red: #cf101f;
  --brand-navy: #021941;
  --white: #ffffff;
  --off-white: #eef0f3;
  --success: #5fbf82;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 2px;
  --logo-height: 42px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-950);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: 3.1rem; line-height: 1.08; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--steel-300); }

a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--brand-red); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 0.9em;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-red);
  letter-spacing: 0.08em;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Header */
header.site-header {
  border-bottom: 1px solid var(--ink-700);
  padding: 24px 0;
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: baseline; }
.brand img.logo { height: var(--logo-height); width: auto; display: block; }
.auth-card .brand img.logo { height: 40px; margin: 0 auto; }
.portal-sidebar .brand img.logo { height: 22px; }
.tm-mark { font-size: 0.7em; color: var(--paper-50); margin-left: 3px; position: relative; top: -0.4em; }
.btn-nav { padding: 9px 18px; font-size: 0.78rem; margin-left: 22px; }

nav a {
  color: var(--steel-300);
  font-size: 0.85rem;
  margin-left: 30px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
nav a:hover { color: var(--white); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--white); color: var(--ink-950); text-decoration: none; }

.btn-solid { background: var(--brand-red); border-color: var(--brand-red); color: var(--white); }
.btn-solid:hover { background: #e2222f; border-color: #e2222f; color: var(--white); }
.btn-full { width: 100%; text-align: center; }

/* Hero */
/* Hero slider */
.hero { position: relative; padding: 0; border-bottom: 1px solid var(--ink-700); overflow: hidden; height: clamp(560px, 45vw, 760px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; z-index: 0; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide > video, .hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.hero-slide > img.contain { object-fit: contain; background: var(--ink-950); }
.hero-slide > img.crop-top { object-fit: cover; object-position: center 15%; }
.hero-slide .hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,9,12,0.65) 0%, rgba(8,9,12,0.55) 40%, rgba(8,9,12,0.92) 100%); }
.hero-slide .hero-scrim-light { background: linear-gradient(180deg, rgba(8,9,12,0.15) 0%, rgba(8,9,12,0.1) 40%, rgba(8,9,12,0.35) 100%); }
.hero-slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 60px; }
.hero-h { font-family: var(--font-display); font-weight: 600; color: var(--white); letter-spacing: -0.015em; font-size: 3.1rem; line-height: 1.08; margin: 0 0 0.5em; max-width: 760px; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.32); cursor: pointer; border: none; padding: 0; }
.hero-dot.active { background: var(--white); }
.hero h1 { max-width: 760px; }
.hero .lede { max-width: 600px; font-size: 1.15rem; color: var(--steel-300); }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; }

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-700);
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--ink-700);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-500);
}

.figure { margin: 0; }
.figure img { width: 100%; display: block; border-radius: var(--radius); }

/* Sections */
section { padding: 72px 0; border-bottom: 1px solid var(--ink-700); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 32px; background: var(--ink-700); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 24px; background: var(--ink-700); }
.grid-2 .figure, .grid-3 .figure { background: var(--ink-900); margin: 0; }
.grid-2 .figure img, .grid-3 .figure img { border-radius: 0; }

.card { background: var(--ink-900); padding: 30px; }
.card h3 { margin-bottom: 0.5em; }
.card-tint-a { background: #1a1e22; border-top: 2px solid var(--steel-500); }
.card-tint-b { background: #201417; border-top: 2px solid var(--brand-red); }
.card-tint-c { background: #14181d; border-top: 2px solid var(--steel-300); }

/* Light "Company Overview" section */
.section-light { background: var(--off-white); color: var(--ink-900); }
.section-light h2 { color: var(--ink-900); }
.section-light p { color: #3a3f47; opacity: 1; }
.read-more-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.read-more-content.expanded { max-height: 3000px; }
.read-more-btn {
  margin-top: 20px; background: transparent; border: 1px solid var(--brand-red); color: var(--brand-red);
  font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 11px 22px; border-radius: var(--radius); cursor: pointer;
}
.read-more-btn:hover { background: var(--brand-red); color: var(--white); }

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-700);
  font-size: 0.92rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .label { color: var(--steel-500); font-family: var(--font-mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.spec-row .value { color: var(--white); }

/* Photo placeholder */
.photo-placeholder {
  border: 1px dashed var(--ink-700);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-500);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 20px;
  margin-bottom: 16px;
}

/* Auth */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--ink-900); border: 1px solid var(--ink-700); border-radius: var(--radius); padding: 42px; }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-card h2 {
  text-align: center; color: var(--white); font-size: 1rem;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 30px;
}
label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--steel-500); margin-bottom: 6px;
}
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; padding: 12px 14px; margin-bottom: 20px;
  background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: var(--radius);
  color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
}
input:focus { outline: none; border-color: var(--brand-red); }
.form-msg { font-family: var(--font-mono); font-size: 0.8rem; margin-top: 16px; min-height: 1.2em; }
.form-msg.error { color: #e2777d; }
.form-msg.ok { color: var(--success); }
.auth-toggle { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--steel-500); }

/* Portal layout */
.portal-shell { display: flex; min-height: 100vh; }
.portal-sidebar { width: 240px; flex-shrink: 0; background: var(--ink-900); border-right: 1px solid var(--ink-700); padding: 28px 0; }
.portal-sidebar .brand { padding: 0 24px 24px; border-bottom: 1px solid var(--ink-700); }
.portal-sidebar nav { display: flex; flex-direction: column; margin-top: 20px; }
.portal-sidebar nav a { padding: 12px 24px; margin-left: 0; border-left: 2px solid transparent; }
.portal-sidebar nav a.active, .portal-sidebar nav a:hover {
  border-left-color: var(--brand-red); color: var(--white); background: var(--ink-800); text-decoration: none;
}
.portal-sidebar .status-block {
  margin: 24px 24px 0; padding-top: 20px; border-top: 1px solid var(--ink-700);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--steel-500);
}
.portal-main { flex: 1; padding: 44px 48px; max-width: 900px; }

footer.site-footer { padding: 56px 0 32px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--steel-300); background: #1b1e23; border-top: 1px solid var(--ink-700); }

.contact-section { padding: 72px 0; border-bottom: 1px solid var(--ink-700); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.contact-grid .full-width { grid-column: 1 / -1; }
.contact-grid label { margin-bottom: 6px; }
.contact-grid textarea {
  width: 100%; padding: 12px 14px; background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: var(--radius); color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
  resize: vertical; min-height: 120px;
}
.contact-grid textarea:focus { outline: none; border-color: var(--brand-red); }
.contact-grid input { margin-bottom: 0; }
.footer-bottom { text-align: center; margin-top: 40px; }
.footer-grid { display: flex; align-items: flex-start; gap: 24px; text-align: left; }
.footer-grid .footer-icon { height: 48px; width: auto; flex-shrink: 0; }
.footer-links { margin-top: 16px; }
.footer-links a { color: var(--steel-300); margin-right: 16px; }
.footer-links a:last-child { margin-right: 0; }

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

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--ink-700); }
  .portal-shell { flex-direction: column; }
  .portal-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--ink-700); }
  .portal-main { padding: 28px 20px; }
  .hero { padding: 70px 0 40px; }
  h1 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
