/*
 * Documentation
 * Docs: /Docs/Apps/Microsites/junction.md
 * Visual theme for the junction site. Defines layout, typography, colors, and component styling.
 */
/* Documentation: Base styling and layout rules.  Docs: /Docs/Apps/Microsites/junction.md */

/* ========== THE BLACK BOX PROTOCOL (REVISED) ========== */

:root {
  /* -- PALETTE -- */
  --bg-void: #050505;
  --bg-panel: #0a0a0a;
  --text-primary: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-dim: #525252;
  /* -- ACCENTS -- */
  --accent-signal: #ff3333;
  /* International Orange */
  --accent-ui: #333333;
  /* Dark Grey UI borders */
  --accent-focus: #ffffff;
  /* Pure White focus */
  /* -- TYPEFACE STACK -- */
  /* Modern, clean monospace stack */
  --font-mono: "Menlo", "Consolas", "Monaco", "Liberation Mono",
    "Lucida Console", monospace;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, serif;
}
/* Documentation: Component styling and visual treatments.  Docs: /Docs/Apps/Microsites/junction.md */

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--accent-ui);
}

body {
  margin: 0;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== UTILS ========== */
.text-white {
  color: #fff;
}

.text-dim {
  color: var(--text-secondary);
}

.small-text {
  font-size: 1rem !important;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ========== HUD NAV ========== */
.hud-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-ui);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.hud-left,
.hud-right {
  display: flex;
  gap: 2rem;
}

.hud-logo {
  font-weight: bold;
  letter-spacing: 0.1em;
}

.hud-status {
  color: var(--accent-signal);
}

.blink {
  animation: blinker 2s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.hud-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.hud-link:hover {
  color: var(--text-primary);
}

/* ========== MAIN GRID ========== */
.main-grid {
  display: grid;
  gap: 1px;
  background: var(--accent-ui);
  padding-top: 60px;
}

/* PANEL SYSTEM */
.panel {
  background: var(--bg-void);
  padding: 3.5rem 2rem;
  /* Reduced from 5rem */
  position: relative;
  overflow: hidden;
}

.panel-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.compact-panel {
  padding: 3rem 2rem;
  /* Reduced from 4rem */
}

.dark-bg {
  background: #000;
}

/* ========== HERO GRID ========== */
.hero-panel {
  /* Auto height instead of 90vh to reduce gaps */
  min-height: auto;
  padding-top: 5rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  /* Reduced from 6rem */
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 10;
}

.hero-header {
  margin-bottom: 2rem;
}

.hero-body {
  margin-bottom: 2.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 600px;
  /* Reduced from 700px */
  perspective: 2000px;
}

/* ========== TYPOGRAPHY SYSTEM ========== */
.mono-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-signal);
  margin-bottom: 1rem;
  /* Reduced from 1.5rem */
  letter-spacing: 0.1em;
}

.display-type {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  /* Reduced from 2rem */
}

.sub-display {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

.lead-text {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  /* Reduced from 1.5rem */
  border-left: 2px solid var(--accent-signal);
  padding-left: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.body-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ========== COMPONENTS ========== */

/* Terminal Form */
.terminal-form-wrapper {
  margin-top: 2.5rem;
  /* Reduced from 3rem */
  max-width: 450px;
}

.terminal-form {
  display: block;
}

.terminal-input-group {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--text-dim);
  padding-bottom: 0.5rem;
  transition: border-color 0.3s;
}

.terminal-input-group:focus-within {
  border-color: var(--accent-signal);
}

.prompt {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-signal);
  margin-right: 1rem;
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  flex: 1;
  outline: none;
}

.terminal-btn {
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.terminal-btn:hover {
  border-color: var(--accent-signal);
  color: var(--accent-signal);
}

.terminal-output {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  min-height: 1.4em;
}

.interest-status.message {
  color: var(--text-secondary);
}

.interest-status.message.pending {
  color: var(--text-dim);
}

.interest-status.message.success {
  color: #4ade80;
}

.interest-status.message.error {
  color: var(--accent-signal);
}

/* Split Sections */
.split-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  /* Reduced from 4rem */
  align-items: start;
}

.split-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.split-data {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Reduced from 2rem */
}

.data-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entry-header {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--accent-ui);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.synthesis-bar {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--accent-ui);
}

.serif-highlight {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

/* Specs & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  /* Reduced from 4rem */
}

.spec-list {
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 1rem;
  line-height: 1.6;
}

.spec-list li {
  margin-bottom: 0.5rem;
}

/* Community */
.col-community {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.col-author {
  border-left: 1px solid var(--accent-ui);
  padding-left: 3rem;
  /* Reduced from 4rem */
}

.serif-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.status-box {
  margin-top: 1rem;
  border: 1px solid var(--accent-ui);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
}

.author-profile {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-bio {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.author-img {
  width: 80px;
  height: 80px;
  filter: grayscale(100%);
  border-radius: 50%;
  border: 2px solid var(--accent-ui);
  object-fit: cover;
}

/* Footer */
.terminal-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--accent-ui);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-void);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid,
  .split-layout,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    /* Reduced gap */
  }

  .hero-visual {
    order: -1;
    margin-bottom: 1rem;
    height: auto;
    min-height: 400px;
    /* Reduced min-height */
  }

  .col-author {
    border-left: none;
    padding-left: 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--accent-ui);
  }

  .panel {
    padding: 3rem 1.5rem;
  }

  .display-type {
    font-size: 3rem;
  }

  /* Scale down the book container on mobile to fit screen */
  .book-container {
    transform: scale(0.7);
  }
}

/* Confirmation page styles */
.confirmation-page {
  margin: 0;
}
.confirmation-page--success {
  background-color: #050505;
  color: #e5e5e5;
  font-family: "Menlo", "Consolas", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}
.confirmation-page--success .container {
  display: flex;
  max-width: 600px;
  width: 90%;
  padding: 3rem;
  border: 1px solid #222;
  background-color: #0a0a0a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.confirmation-page--success .status-cell {
  flex: 0 0 70px;
  font-size: 3.5rem;
  line-height: 1;
  color: #4ade80;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5px;
}
.confirmation-page--success .content-cell {
  flex: 1;
  padding-left: 1.5rem;
}
.confirmation-page--success .header {
  color: #4ade80;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}
.confirmation-page--success .msg {
  font-family: sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  color: #d4d4d4;
}
.confirmation-page--success a {
  color: #525252;
  text-decoration: none;
  font-size: 0.8rem;
  border: 1px solid #333;
  padding: 8px 12px;
  letter-spacing: 1px;
}
.confirmation-page--success a:hover {
  color: #e5e5e5;
  border-color: #e5e5e5;
}

.confirmation-page--error {
  background-color: #050505;
  color: #e5e5e5;
  font-family: "Menlo", "Consolas", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}
.confirmation-page--error .container {
  display: flex;
  max-width: 600px;
  width: 90%;
  padding: 3rem;
  border: 1px solid #222;
  background-color: #0a0a0a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.confirmation-page--error .status-cell {
  flex: 0 0 70px;
  font-size: 3.5rem;
  line-height: 1;
  color: #ff3333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5px;
}
.confirmation-page--error .content-cell {
  flex: 1;
  padding-left: 1.5rem;
}
.confirmation-page--error .header {
  color: #ff3333;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}
.confirmation-page--error .msg {
  font-family: sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  color: #d4d4d4;
}
.confirmation-page--error a {
  color: #525252;
  text-decoration: none;
  font-size: 0.8rem;
  border: 1px solid #333;
  padding: 8px 12px;
  letter-spacing: 1px;
}
.confirmation-page--error a:hover {
  color: #e5e5e5;
  border-color: #e5e5e5;
}

/* Documentation: Focus ring overrides are intentionally omitted to preserve default focus handling. */
/* Last-Modified: 2026-01-24T03:46:26.0000000Z */