/* ====================
   BASE & RESET
==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0f14;
  --bg-alt: #111620;
  --bg-card: #141920;
  --fg: #e4e8f0;
  --fg-muted: #7a8499;
  --accent: #3d7eff;
  --accent-dim: rgba(61, 126, 255, 0.12);
  --amber: #e8921a;
  --amber-dim: rgba(232, 146, 26, 0.1);
  --border: rgba(255,255,255,0.06);
  --border-mid: rgba(255,255,255,0.1);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-pad: clamp(72px, 10vw, 120px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ====================
   TYPOGRAPHY
==================== */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; }

/* ====================
   HEADER
==================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-transform: uppercase;
}
.nav-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(61, 126, 255, 0.2);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ====================
   HERO
==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) clamp(48px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,126,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,126,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,126,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 64px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  border: 1px solid var(--border);
}

.stat {
  background: var(--bg-alt);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-n {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.stat-l {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ====================
   SECTION HEADER
==================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--amber);
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  max-width: 560px;
}

/* ====================
   OPERATIONS
==================== */
.operations {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.ops-card {
  background: var(--bg-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s ease;
}
.ops-card:hover { background: #181d27; }

.ops-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-dim);
}

.ops-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.ops-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ====================
   FACILITY
==================== */
.facility {
  padding: var(--section-pad) var(--gutter);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.facility-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.facility-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.facility-text p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.facility-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.pillar:last-child { border-bottom: none; }

.pillar-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.pillar h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.pillar p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ====================
   PRINCIPLES
==================== */
.principles {
  padding: 64px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.principles-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.principle { padding: 0 40px; }
.principle-divider {
  width: 1px;
  height: 60px;
  background: var(--border-mid);
}

.principle-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.principle p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ====================
   CLOSING
==================== */
.closing {
  padding: var(--section-pad) var(--gutter);
}

.closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.closing-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.closing-text p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
}

.closing-coda {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.coda-line {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.coda-line:first-child {
  color: var(--fg);
  font-size: 14px;
}

/* ====================
   FOOTER
==================== */
footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--gutter);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* ====================
   RESPONSIVE
==================== */
@media (max-width: 900px) {
  .facility-inner,
  .closing-grid { grid-template-columns: 1fr; gap: 40px; }
  .principles-inner { grid-template-columns: 1fr; gap: 32px; }
  .principle-divider { display: none; }
  .principle { padding: 0; }
}

@media (max-width: 640px) {
  .ops-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { padding: 20px 24px; }
  .ops-card { padding: 28px 24px; }
  .pillar { grid-template-columns: 36px 1fr; gap: 16px; }
}

/* ====================
   SELECTION & SCROLL
==================== */
::selection { background: rgba(61,126,255,0.3); color: var(--fg); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }