/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #0e1a17; /* Deep Charcoal Green */
  color: #f7f7f2; /* Soft Ivory */
}

/* ========== SYSTEM LAYOUT ========== */
.system {
  display: flex;
  min-height: 100vh;
}

/* ========== CONTROL RAIL ========== */
.control-rail {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 96px;

  background: #142723; /* Graphite Teal */
  border-right: 1px solid rgba(255, 255, 255, 0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0;

  z-index: 1000;
}
.rail-logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1.5px;
  text-align: center;
  color: #f7f7f2;
  margin-bottom: 50px;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex-grow: 1;
}

.rail-nav a {
  font-size: 11px;
  letter-spacing: 2px;
  color: #9aa6a1;
  text-decoration: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.rail-nav a.active,
.rail-nav a:hover {
  color: #9be15d;
}

/* Status */
.rail-status {
  font-size: 10px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.rail-status .dot {
  width: 6px;
  height: 6px;
  background: #f2b705; /* Warm Amber */
  border-radius: 50%;
}

/* ========== SYSTEM VIEW ========== */
.system-view {
  flex: 1;
  padding: 80px 120px;
  margin-left: 96px; /* SAME as rail width */
}

/* Hero */
.system-hero {
  max-width: 640px;
}

.sys-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #9be15d;
  display: block;
  margin-bottom: 20px;
}

.system-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.system-hero p {
  font-size: 16px;
  color: #9aa6a1;
  max-width: 520px;
}

/* Metrics */
.system-metrics {
  display: flex;
  gap: 60px;
  margin-top: 80px;
}

.metric span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  color: #f2b705;
}

.metric p {
  font-size: 14px;
  color: #d1dad6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .control-rail {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 64px;

    flex-direction: row;
    justify-content: space-around;
    padding: 0 16px;
  }

  .rail-nav {
    flex-direction: row;
    gap: 0;
  }

  .rail-nav a {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 11px;
  }

  .system-view {
    margin-left: 0;
    padding: 64px 20px 120px;
  }
  .rail-logo {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
  }

  .rail-logo br {
    display: none;
  }
}

/* ========== MODULES : GAME & APP PIPELINE ========== */
.modules {
  padding: 140px 120px;
  background: #0e1a17;
}

.modules-header {
  max-width: 680px;
  margin-bottom: 100px;
}

.modules-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #9be15d; /* Muted Lime */
  display: block;
  margin-bottom: 18px;
}

.modules-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
}

.modules-header p {
  font-size: 16px;
  color: #9aa6a1;
}

/* Flow */
.modules-flow {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 900px;
}

/* Module */
.module {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.module-id {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  color: #f2b705; /* Amber */
  min-width: 60px;
}

.module-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  margin-bottom: 10px;
}

.module-content p {
  font-size: 15px;
  color: #9aa6a1;
  max-width: 520px;
  line-height: 1.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .modules {
    padding: 100px 24px;
  }

  .modules-header h2 {
    font-size: 36px;
  }

  .module {
    flex-direction: column;
    gap: 16px;
  }
}
/* ========== ABOUT : STUDIO PHILOSOPHY ========== */
.studio-about {
  padding: 160px 120px;
  background: #142723; /* Graphite Teal */
}

.studio-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
}

/* Left */
.studio-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #9be15d; /* Muted Lime */
  display: block;
  margin-bottom: 20px;
}

.studio-philosophy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 52px;
  line-height: 1.05;
  margin-bottom: 26px;
}

.studio-philosophy p {
  font-size: 16px;
  color: #9aa6a1;
  max-width: 520px;
  line-height: 1.8;
}

/* Right principles */
.studio-principles {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.principle {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.principle span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: #f2b705; /* Amber */
  min-width: 32px;
}

.principle p {
  font-size: 14.5px;
  color: #d1dad6;
  line-height: 1.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .studio-about {
    padding: 100px 24px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .studio-philosophy h2 {
    font-size: 40px;
  }
}

/* ========== CONTACT : SYSTEM LINK ========== */
.system-contact {
  padding: 160px 120px;
  background: #0e1a17; /* Deep Charcoal Green */
}

.contact-header {
  max-width: 620px;
  margin-bottom: 100px;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #9be15d; /* Muted Lime */
  display: block;
  margin-bottom: 18px;
}

.contact-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
}

.contact-header p {
  font-size: 16px;
  color: #9aa6a1;
}

/* Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 900px;
}

/* Node */
.contact-node {
  background: #142723; /* Graphite Teal */
  padding: 50px;
  border-left: 3px solid #9aa6a1;
}

.contact-node.accent {
  border-left-color: #9be15d;
}

.node-id {
  font-size: 11px;
  letter-spacing: 2px;
  color: #f2b705; /* Amber */
  display: block;
  margin-bottom: 14px;
}

.contact-node h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  margin-bottom: 14px;
}

.contact-node p {
  font-size: 14.5px;
  color: #d1dad6;
  line-height: 1.8;
}

.contact-node a {
  color: #9be15d;
  text-decoration: none;
  font-weight: 500;
}

.contact-node a:hover {
  text-decoration: underline;
}

/* ========== FOOTER : SYSTEM BASE ========== */
.system-footer {
  padding: 60px 120px;
  background: #020c0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left .footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.footer-left p {
  font-size: 13px;
  color: #9aa6a1;
}

.footer-right {
  text-align: right;
}

.footer-status {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #9be15d;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 8px;
}

.footer-status i {
  width: 6px;
  height: 6px;
  background: #9be15d;
  border-radius: 50%;
}

.footer-right p {
  font-size: 12px;
  color: #64748b;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .system-contact {
    padding: 100px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .system-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 24px;
  }

  .footer-right {
    text-align: left;
  }
}
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
}
@media (max-width: 600px) {
  .system-hero h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .system-hero p {
    font-size: 15px;
  }

  .sys-label {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 600px) {
  .system-metrics {
    flex-direction: column;
    gap: 28px;
    margin-top: 48px;
  }

  .metric span {
    font-size: 16px;
  }

  .metric p {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .modules {
    padding: 80px 20px;
  }

  .modules-header h2 {
    font-size: 32px;
  }

  .module {
    gap: 12px;
    padding-bottom: 28px;
  }

  .module-id {
    font-size: 16px;
  }

  .module-content h3 {
    font-size: 18px;
  }

  .module-content p {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .studio-about {
    padding: 80px 20px;
  }

  .studio-philosophy h2 {
    font-size: 34px;
  }

  .principle {
    gap: 16px;
  }

  .principle span {
    font-size: 16px;
  }

  .principle p {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .system-contact {
    padding: 80px 20px;
  }

  .contact-header h2 {
    font-size: 32px;
  }

  .contact-node {
    padding: 32px;
  }

  .system-footer {
    padding: 32px 20px;
  }

  .footer-left p,
  .footer-right p {
    font-size: 12px;
  }
}
