
:root {
  --bg:        #09090b;
  --bg2:       #111113;
  --surface:   #16161a;
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.11);
  --accent:    #c8bfa8;
  --accent-hi: #e8dfc8;
  --blue:      #7a9eb5;
  --muted:     #6b7280;
  --dim:       #3a3f4a;
  --text:      #d4d4d8;
  --white:     #f4f4f5;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.9);
  backdrop-filter: blur(14px);
}
.nav-logo {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.1rem; letter-spacing: 0.08em;
  color: var(--accent-hi); text-decoration: none;
}
.nav-logo span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; color: var(--muted);
  text-decoration: none; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-hi); }
.nav-cta {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: none; border: 1px solid var(--border2);
  color: var(--text); padding: 0.4rem 1.1rem;
  cursor: pointer; transition: all 0.2s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent-hi); }

/* ─── PAGES ─── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 8rem 3rem 5rem;
  position: relative; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,191,168,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,191,168,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 60%, rgba(0,0,0,0.6) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.22em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.92; letter-spacing: -0.03em;
  text-transform: uppercase; max-width: 16ch;
  color: var(--white); margin-bottom: 2.5rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 44ch; line-height: 1.75; margin-bottom: 3rem;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-block; border: none;
}
.btn-solid {
  background: var(--accent); color: #0a0a0c;
  padding: 0.85rem 2.2rem; font-weight: 500;
}
.btn-solid:hover { background: var(--accent-hi); }
.btn-outline {
  background: none; border: 1px solid var(--border2);
  color: var(--text); padding: 0.85rem 2.2rem;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hi); }
.hero-meta {
  display: flex; gap: 4rem; margin-top: 5rem;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.meta-val {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2rem; color: var(--accent-hi); line-height: 1;
}
.meta-label {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── SECTION COMMONS ─── */
section { padding: 6rem 3rem; }
.s-tag {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.2em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.s-tag::before { content:''; display:block; width:16px; height:1px; background:var(--accent); }
.s-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 0.95; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.2rem;
}
.s-sub {
  font-size: 0.95rem; color: var(--muted);
  max-width: 50ch; line-height: 1.75; margin-bottom: 3.5rem;
}

/* ─── SYSTEMS OVERVIEW ─── */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
}
.sys-card {
  background: var(--bg); padding: 2.5rem;
  cursor: pointer; transition: background 0.25s;
  position: relative; overflow: hidden;
}
.sys-card:hover { background: var(--surface); }
.sys-num {
  font-family: var(--font-head); font-size: 5rem; font-weight: 800;
  color: rgba(255,255,255,0.025); position: absolute;
  top: 1rem; right: 1.5rem; line-height: 1;
}
.sys-domain {
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.18em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.sys-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.9rem; text-transform: uppercase;
  color: var(--white); letter-spacing: 0.02em;
  line-height: 1; margin-bottom: 0.3rem;
}
.sys-class {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--dim); letter-spacing: 0.08em; margin-bottom: 1rem;
}
.sys-preview {
  width: 100%; height: 140px; margin: 1.2rem 0;
  overflow: hidden; position: relative;
  border: 1px solid var(--border);
}
.sys-preview img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(60%) brightness(0.7) contrast(1.1);
  transition: filter 0.4s;
}
.sys-card:hover .sys-preview img { filter: grayscale(30%) brightness(0.8) contrast(1.1); }
.sys-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.sys-link {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; color: var(--accent);
  text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.sys-link::after { content: '→'; }

/* ─── SYSTEM DETAIL PAGE ─── */
.detail-hero {
  padding: 8rem 3rem 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.detail-back {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; color: var(--muted);
  text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem; cursor: pointer;
  background: none; border: none; padding: 0;
  transition: color 0.2s;
}
.detail-back:hover { color: var(--accent); }
.detail-back::before { content: '←'; }
.detail-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.detail-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  line-height: 0.9; color: var(--white);
}
.detail-name em { color: var(--accent); font-style: normal; display: block; }
.detail-tagline {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.1em;
  margin-top: 0.8rem; text-transform: uppercase;
}
.detail-summary { font-size: 0.95rem; color: var(--muted); line-height: 1.75; }

.detail-image-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  margin: 0; 
}
.detail-photo {
  height: 400px; overflow: hidden; position: relative;
}
.detail-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(50%) brightness(0.75) contrast(1.15);
  transition: filter 0.4s;
}
.detail-photo:hover img { filter: grayscale(20%) brightness(0.85); }
.detail-photo-label {
  position: absolute; bottom: 1rem; left: 1.2rem;
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.14em; color: var(--muted);
  text-transform: uppercase;
}
.detail-blueprint-wrap {
  height: 400px; display: flex; align-items: center;
  justify-content: center; padding: 2rem;
  background: var(--bg2);
}

.detail-specs-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; padding: 5rem 3rem; align-items: start;
  border-bottom: 1px solid var(--border);
}
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid var(--border);
}
.spec-cell {
  padding: 1.2rem; border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.spec-cell:nth-child(even) { border-right: none; }
.spec-cell:nth-last-child(-n+2) { border-bottom: none; }
.spec-k {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.14em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 0.3rem;
}
.spec-v {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.2rem; color: var(--white);
}

.feat-list { display: flex; flex-direction: column; gap: 1rem; }
.feat-item {
  display: flex; gap: 1rem; padding: 1rem;
  border: 1px solid var(--border); background: var(--bg);
}
.feat-ico {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(200,191,168,0.06);
  border: 1px solid rgba(200,191,168,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--accent);
}
.feat-body h4 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.95rem; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.25rem;
}
.feat-body p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ─── ABOUT PAGE ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.about-block { margin-bottom: 2.5rem; }
.about-block h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; text-transform: uppercase;
  color: var(--accent-hi); margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}
.about-block p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 1.5rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.tl-year {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.1rem; color: var(--accent); line-height: 1;
}
.tl-body h4 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.95rem; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.2rem;
}
.tl-body p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ─── NEXUS OS PAGE ─── */
.nexus-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.nexus-features { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; }

/* ─── CONTACT PAGE ─── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-label {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.form-input, .form-select, .form-textarea {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); padding: 0.7rem 1rem;
  font-family: var(--font-body); font-size: 0.85rem;
  transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; margin-top: 1.5rem; }
.c-info-block {}
.c-info-label {
  font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem;
}
.c-info-val { font-size: 0.9rem; color: var(--text); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; letter-spacing: 0.08em; color: var(--accent);
}
.footer-logo span { color: var(--muted); font-weight: 400; }
.footer-links {
  display: flex; gap: 2rem; list-style: none;
}
.footer-links a {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--muted); text-decoration: none; letter-spacing: 0.1em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-family: var(--font-mono); font-size: 0.56rem; color: var(--dim); }

/* ─── IMAGE PLACEHOLDER ─── */
.img-placeholder {
  width: 100%; height: 100%;
  background: var(--surface);
  border: 1px dashed rgba(200,191,168,0.18);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1rem; text-align: center;
}
.img-ph-size {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; color: var(--accent);
  text-transform: uppercase;
  background: rgba(200,191,168,0.06);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(200,191,168,0.15);
}
.img-ph-desc {
  font-family: var(--font-mono); font-size: 0.55rem;
  color: var(--muted); letter-spacing: 0.06em;
  max-width: 28ch; line-height: 1.5;
}
.img-ph-icon {
  font-size: 1.1rem; color: var(--dim); margin-bottom: 0.2rem;
}

/* ─── DOMAIN CATEGORY TABS ─── */
.domain-tabs {
  display: flex; gap: 0; margin-bottom: 3rem;
  border: 1px solid var(--border2); width: fit-content;
}
.domain-tab {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.65rem 2rem; cursor: pointer;
  background: none; border: none; color: var(--muted);
  border-right: 1px solid var(--border2);
  transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem;
}
.domain-tab:last-child { border-right: none; }
.domain-tab:hover { color: var(--accent-hi); background: var(--surface); }
.domain-tab.active { color: var(--accent-hi); background: var(--surface); }
.domain-tab .tab-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dim);
}
.domain-tab.active .tab-dot { background: var(--accent); }
.domain-tab .tab-soon {
  font-size: 0.48rem; color: var(--blue);
  border: 1px solid rgba(122,158,181,0.3);
  padding: 0.1rem 0.35rem; letter-spacing: 0.1em;
}
.domain-coming-soon {
  display: none; padding: 5rem 0; text-align: center;
  border: 1px solid var(--border); flex-direction: column;
  align-items: center; gap: 1rem;
}
.domain-coming-soon.visible { display: flex; }
.coming-soon-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.22em; color: var(--blue);
  text-transform: uppercase;
}
.coming-soon-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 2.5rem; text-transform: uppercase;
  color: rgba(255,255,255,0.1);
}
.coming-soon-sub {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--muted); max-width: 36ch; line-height: 1.7;
}

/* ─── PROTOTYPE TAG ─── */
.proto-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.52rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #e8a838; border: 1px solid rgba(232,168,56,0.35);
  background: rgba(232,168,56,0.07);
  padding: 0.18rem 0.55rem; margin-bottom: 0.7rem;
}
.proto-tag::before {
  content: ''; display: block; width: 5px; height: 5px;
  border-radius: 50%; background: #e8a838;
  animation: proto-pulse 1.8s ease-in-out infinite;
}
@keyframes proto-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(0.7); }
}
.detail-proto-tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #e8a838; border: 1px solid rgba(232,168,56,0.35);
  background: rgba(232,168,56,0.07);
  padding: 0.3rem 0.8rem; margin-bottom: 1.2rem;
}
.detail-proto-tag::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: #e8a838;
  animation: proto-pulse 1.8s ease-in-out infinite;
}

/* ─── LANG SWITCHER ─── */
.lang-switcher {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border2); overflow: hidden;
}
.lang-btn {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: none; border: none; color: var(--muted);
  padding: 0.35rem 0.75rem; cursor: pointer; transition: all 0.2s;
}
.lang-btn.active { background: var(--surface); color: var(--accent-hi); }
.lang-btn:hover:not(.active) { color: var(--text); }
.lang-sep { width: 1px; background: var(--border2); height: 100%; align-self: stretch; }

/* ─── FORM SUCCESS ─── */
.form-success {
  display: none; flex-direction: column; align-items: flex-start;
  gap: 0.8rem; padding: 2rem; border: 1px solid rgba(200,191,168,0.2);
  background: rgba(200,191,168,0.04);
}
.form-success.visible { display: flex; }
.form-success-icon {
  font-size: 1.5rem; color: var(--accent);
}
.form-success h3 {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.2rem; text-transform: uppercase; color: var(--white);
}
.form-success p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.form-error {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.1em; color: #e06b6b;
  padding: 0.5rem 0.8rem; border: 1px solid rgba(224,107,107,0.25);
  background: rgba(224,107,107,0.06); display: none; margin-top: 0.3rem;
}
.form-error.visible { display: block; }
.form-input.error { border-color: rgba(224,107,107,0.5); }

/* ─── BADGE ─── */
.badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.65rem; border: 1px solid rgba(200,191,168,0.25);
  color: var(--accent); margin-top: 1rem;
}
.badge-blue {
  border-color: rgba(122,158,181,0.25); color: var(--blue);
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 0 3rem;
}

/* ─── BLUEPRINT COLORS ─── */
.bp-fill    { fill: rgba(200,191,168,0.05); stroke: rgba(200,191,168,0.35); stroke-width: 0.5; }
.bp-fill-dk { fill: rgba(0,0,0,0.35); stroke: rgba(200,191,168,0.18); stroke-width: 0.4; }
.bp-dim     { fill: rgba(200,191,168,0.02); stroke: rgba(200,191,168,0.1); stroke-width: 0.3; }
.bp-line    { stroke: rgba(200,191,168,0.4); stroke-width: 0.5; fill: none; }
.bp-thin    { stroke: rgba(200,191,168,0.14); stroke-width: 0.3; fill: none; }
.bp-ctr     { stroke: rgba(200,191,168,0.12); stroke-width: 0.3; fill: none; stroke-dasharray: 4 2 1 2; }
.bp-meas    { stroke: rgba(200,191,168,0.22); stroke-width: 0.3; fill: none; stroke-dasharray: 1 2; }
.bp-detail  { fill: rgba(122,158,181,0.07); stroke: rgba(122,158,181,0.28); stroke-width: 0.4; }
.bp-cockpit { fill: rgba(122,158,181,0.06); stroke: rgba(122,158,181,0.32); stroke-width: 0.5; }
.bp-text    { font-family: 'DM Mono', monospace; font-size: 5px; fill: rgba(200,191,168,0.5); }
.bp-text-sm { font-family: 'DM Mono', monospace; font-size: 4px; fill: rgba(200,191,168,0.32); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-in { opacity:0; animation: fadeUp 0.5s ease forwards; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  section, .detail-hero, .detail-specs-section { padding: 4rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-meta { gap: 2rem; }
  .detail-header, .detail-image-section, .detail-specs-section,
  .nexus-grid, .contact-layout, .about-grid { grid-template-columns: 1fr; }
  .detail-image-section { grid-template-columns: 1fr; }
  .detail-photo { height: 260px; }
  .detail-blueprint-wrap { height: 300px; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .systems-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
