* {
  box-sizing: border-box;
}

/* ============================================================
   PASSWORD OVERLAY
   ============================================================ */
.password-overlay {
  position: fixed;
  inset: 0;
  background: #0a0f1a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.password-overlay.hidden {
  display: none;
}

.password-container {
  text-align: center;
  max-width: 400px;
  padding: 24px;
}

.password-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.password-logo h1 {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #3dba4e;
  margin: 0;
}

.password-subtitle {
  font-size: 14px;
  color: #8a8880;
  margin: 0 0 32px 0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

#password-form {
  margin-top: 24px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  gap: 8px;
}

#password-input {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #e8e6e1;
  transition: all 0.2s ease;
  outline: none;
}

#password-input:focus {
  background: rgba(255,255,255,0.06);
  border-color: #3dba4e;
}

#password-input::placeholder {
  color: #6b6860;
}

.password-submit {
  width: 48px;
  height: 48px;
  padding: 0;
  background: linear-gradient(135deg, #3dba4e, #27a034);
  border: none;
  border-radius: 8px;
  color: #0a0f1a;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.password-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(61,186,78,0.3);
}

.password-submit:active {
  transform: translateY(0);
}

.password-error {
  font-size: 13px;
  color: #ff6b6b;
  margin: 12px 0 0 0;
  text-align: left;
  font-weight: 400;
}

.password-error.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ============================================================
   BASE & LAYOUT
   ============================================================ */
body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  background: #0a0f1a;
  color: #e8e6e1;
  min-height: 100vh;
}

.container {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.grid-texture {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.accent-glow {
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61,186,78,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  margin-bottom: 48px;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}

.header-logo-img,
.password-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.header-logo .header-subtitle {
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 20px;
  margin: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3dba4e, #27a034);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

header h1 {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #3dba4e;
  margin: 0;
}

.header-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(61,186,78,0.5);
  margin: 0 0 8px 0;
}

.header-subtitle {
  font-size: 15px;
  color: #8a8880;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.header-divider {
  margin-top: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(61,186,78,0.4), transparent 60%);
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

nav button {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  color: #6b6860;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
}

nav button:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #9a968e;
}

nav button.active {
  font-weight: 700;
  border-color: #3dba4e;
  background: rgba(61,186,78,0.1);
  color: #3dba4e;
}

/* ============================================================
   DEEP DIVE TOGGLE & PANEL
   ============================================================ */
.deep-dive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  margin-bottom: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4a4840;
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.2s ease;
}

.deep-dive-toggle:hover {
  color: #8a8880;
}

.deep-dive-toggle svg {
  transition: transform 0.2s ease;
}

.deep-dive-toggle.open {
  color: rgba(61,186,78,0.5);
}

.deep-dive-toggle.open svg {
  transform: rotate(180deg);
}

.deep-dive-panel {
  display: none;
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
}

.deep-dive-panel.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

.deep-dive-panel-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4a4840;
  margin-bottom: 12px;
}

.deep-dive-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.deep-dive-nav button {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  background: rgba(255,255,255,0.01);
  color: #4a4840;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
}

.deep-dive-nav button:hover {
  color: #8a8880;
  border-color: rgba(255,255,255,0.1);
}

.deep-dive-nav button.active {
  color: #3dba4e;
  border-color: rgba(61,186,78,0.3);
  background: rgba(61,186,78,0.05);
  font-weight: 700;
}

#deep-dive-content {
  animation: fadeIn 0.2s ease;
}

.deep-dive-section-title {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.deep-dive-section-intro {
  font-size: 14px;
  line-height: 1.7;
  color: #9a968e;
  margin: 0 0 24px 0;
  font-weight: 300;
  max-width: 680px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content {
  animation: contentIn 0.25s ease;
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.content-title {
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.content-intro {
  font-size: 16px;
  line-height: 1.75;
  color: #c4c0b8;
  margin: 0 0 32px 0;
  max-width: 720px;
  font-weight: 300;
}

.content-text {
  font-size: 16px;
  line-height: 1.75;
  color: #c4c0b8;
  margin: 0 0 24px 0;
  max-width: 720px;
  font-weight: 300;
}

/* ============================================================
   HIGHLIGHT BAND
   ============================================================ */
.highlight-band {
  background: rgba(61,186,78,0.04);
  border: 1px solid rgba(61,186,78,0.12);
  border-left: 3px solid #3dba4e;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 0 0 28px 0;
}

.highlight-band-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(61,186,78,0.5);
  margin: 0 0 8px 0;
}

.highlight-band p {
  font-size: 15px;
  line-height: 1.7;
  color: #3dba4e;
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   STAT GRID
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 32px 0;
}

.stat-card {
  background: rgba(61,186,78,0.04);
  border: 1px solid rgba(61,186,78,0.12);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(61,186,78,0.25);
}

.stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  color: #3dba4e;
  line-height: 1;
  margin: 0 0 8px 0;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 12px;
  color: #c4c0b8;
  font-weight: 500;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.stat-sub {
  font-size: 11px;
  color: #6b6860;
  font-weight: 300;
  margin: 0;
}

/* ============================================================
   IMAGE PANELS
   ============================================================ */
.image-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 0 28px 0;
}

.image-panel {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
}

.image-panel-accent {
  height: 3px;
  background: linear-gradient(90deg, #3dba4e, #27a034);
}

.image-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  padding: 12px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #6b6860;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ============================================================
   TIMELINE COMPONENT
   ============================================================ */
.timeline-component {
  margin: 0 0 32px 0;
}

.timeline-track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  position: relative;
  margin-bottom: 4px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 21px;
  left: calc(16.66% + 6px);
  right: calc(16.66% + 6px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(61,186,78,0.4) 0%,
    rgba(61,186,78,0.15) 50%,
    rgba(61,186,78,0.4) 100%
  );
  z-index: 0;
}

.timeline-phase {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: #3dba4e;
  border-radius: 50%;
  margin: 15px auto 12px;
  box-shadow: 0 0 10px rgba(61,186,78,0.5);
  position: relative;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(61,186,78,0.12);
}

.timeline-phase-name {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #3dba4e;
  margin: 0 0 3px 0;
}

.timeline-phase-span {
  font-size: 11px;
  color: #6b6860;
  font-weight: 300;
  display: block;
  margin-bottom: 16px;
}

.timeline-phase-items {
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 0 4px;
}

.timeline-phase-item {
  font-size: 11px;
  color: #9a968e;
  line-height: 1.4;
  font-weight: 300;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.timeline-phase-item::before {
  content: '—';
  color: rgba(61,186,78,0.3);
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 1px;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-container {
  display: grid;
  gap: 2px;
  margin: 0 0 24px 0;
}

.step-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 24px 0;
  align-items: start;
}

.step-item:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: rgba(61,186,78,0.2);
  line-height: 1;
}

.step-phase-badge {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(61,186,78,0.35);
  text-align: center;
  line-height: 1.3;
}

.step-content h3 {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.step-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #9a968e;
  margin: 0;
  font-weight: 300;
  max-width: 620px;
}

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
  margin: 0 0 24px 0;
}

.capability-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 22px;
  transition: border-color 0.2s ease;
}

.capability-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.capability-card h3 {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3dba4e;
  margin: 0 0 14px 0;
}

.capability-items {
  display: grid;
  gap: 12px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.capability-item-bullet {
  color: rgba(61,186,78,0.35);
  font-size: 8px;
  margin-top: 5px;
  flex-shrink: 0;
}

.capability-item-text {
  font-size: 13px;
  color: #a8a49c;
  line-height: 1.5;
  font-weight: 300;
}

/* ============================================================
   ASK CARDS
   ============================================================ */
.ask-cards {
  display: grid;
  gap: 14px;
  margin: 0 0 28px 0;
}

.ask-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.2s ease;
}

.ask-card:hover {
  border-color: rgba(61,186,78,0.2);
}

.ask-card-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3dba4e, #27a034);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #0a0f1a;
  flex-shrink: 0;
}

.ask-card-body h3 {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.ask-card-body p {
  font-size: 13px;
  line-height: 1.7;
  color: #9a968e;
  margin: 0 0 10px 0;
  font-weight: 300;
}

.ask-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  background: rgba(61,186,78,0.08);
  border: 1px solid rgba(61,186,78,0.18);
  border-radius: 4px;
  color: rgba(61,186,78,0.6);
}

/* ============================================================
   CONTENT HIGHLIGHT (legacy, kept for compat)
   ============================================================ */
.content-highlight {
  border-left: 3px solid #3dba4e;
  padding-left: 20px;
  margin-top: 20px;
}

.content-highlight p {
  font-size: 15px;
  line-height: 1.7;
  color: #3dba4e;
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

footer p {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #4a4840;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 24px 16px;
  }

  .content-title {
    font-size: 22px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline-track::before {
    display: none;
  }

  .timeline-dot {
    margin: 0 0 10px 0;
  }

  .timeline-phase {
    text-align: left;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
  }

  .timeline-phase-items {
    padding: 0;
  }

  .step-item {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .step-num {
    font-size: 22px;
  }

  .ask-card {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .ask-card-badge {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 26px;
  }

  .image-panels {
    grid-template-columns: 1fr;
  }
}
