/* ============================================
   SPEARLEADS - SOVEREIGN LEAD INFRASTRUCTURE
   Style: Enterprise Fintech / Glassmorphism
   ============================================ */

:root {
  /* SpearLeads Colors - Synced with spear.systems */
  --bg-deep: #030303;
  --bg-void: #030303;
  --bg-tungsten: #111111;
  --bg-glass: rgba(10, 10, 10, 0.7);
  --gold: #C5A059;
  --gold-glow: rgba(197, 160, 89, 0.4);
  --slate: #333333;
  --white: #FFFFFF;
  --white-dim: rgba(255, 255, 255, 0.5);
  --green: #00FF94;

  /* Fonts */
  --font-brand: 'Inter', sans-serif;
  --font-data: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1400px;
  --bar-height: 50px;
  --header-height: 70px;
}

/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-brand);
  line-height: 1.4;
  overflow-x: hidden;
  /* HUD Grid */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  min-height: 100vh;
  padding-bottom: 40px;
  /* Space for command bar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  letter-spacing: 0.02em;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 5px var(--green);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 2px var(--green);
  }
}

@keyframes scan-line {
  0% {
    left: -50%;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ... Logo styles ... */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-emblem {
  height: 32px;
  width: auto;
}

.logo-text {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.logo-text .gold {
  color: var(--gold);
}

/* ... Nav Center ... */
.nav-center {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-login {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--white-dim);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-login:hover {
  color: var(--white);
}

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 20px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  background: rgba(197, 160, 89, 0.05);
}

.nav-cta:hover {
  background: var(--gold-glow);
  box-shadow: 0 0 15px var(--gold-glow);
  color: var(--white);
}

/* ... Mobile Menu ... */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
}

.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 4rem) 2rem 6rem;
  position: relative;
  overflow: hidden;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-out;
}

.hero-headline {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
  max-width: 900px;
}

.hero-subheadline {
  font-family: var(--font-brand);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

.hero-cta {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 1rem 2.5rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero-cta:hover {
  background: var(--white);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.5);
  transform: translateY(-2px);
}

.hero-note {
  margin-top: 1.5rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.05em;
}

/* ================= SECTIONS ================= */
.section {
  padding: 6rem 2rem;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-decor {
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.5;
}

/* ================= ECONOMIC MODEL (Terminal Cards) ================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Base Card Styles */
.terminal-card {
  background: rgba(8, 8, 8, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.terminal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Spear Card - Premium Gold Glow */
.terminal-card.spear {
  border-color: rgba(197, 160, 89, 0.4);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.05);
  animation: breathe-gold 4s ease-in-out infinite;
}

@keyframes breathe-gold {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.05);
    border-color: rgba(197, 160, 89, 0.4);
  }

  50% {
    box-shadow: 0 0 35px rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.7);
  }
}

.terminal-card.spear .terminal-header {
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.1), rgba(197, 160, 89, 0.02));
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

/* Status Indicators */
.terminal-status {
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.terminal-status.failure {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.terminal-status.success {
  color: var(--gold);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.3);
  text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
  animation: text-pulse 3s infinite;
}

@keyframes text-pulse {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
  }

  50% {
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.8);
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 2rem;
  margin-left: 1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.card-list {
  list-style: none;
  margin-left: 1rem;
}

.card-list li {
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--white-dim);
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.4;
}

.card-list li:last-child {
  border-bottom: none;
}

/* Integrated Background Media */
.card-media {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.graph-traditional {
  opacity: 0.6;
}

.graph-spear {
  opacity: 0.9;
}

.terminal-body {
  padding: 2.5rem 2rem 2rem 2rem;
  flex: 1;
  position: relative;
  z-index: 1;
  /* Ensure text sits above the graph watermark */
}


/* ================= PRIVATE METAL (Icon Grid) ================= */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.icon-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.5);
  transition: all 0.3s;
}

.icon-card:hover {
  border-color: rgba(197, 160, 89, 0.3);
  background: rgba(20, 20, 20, 0.8);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.icon-wrapper svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.icon-card h3 {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.icon-card p {
  font-family: var(--font-brand);
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ================= FEEDBACK LOOP ================= */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-content h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.split-content p {
  font-family: var(--font-brand);
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 1.7;
}

.diagram-container {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--slate);
  padding: 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.diagram-container svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Feedback Loop Animations */
@keyframes dash-flow {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes pulse-gold {

  0%,
  100% {
    stroke-opacity: 0.5;
    stroke-width: 2;
  }

  50% {
    stroke-opacity: 1;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px var(--gold));
  }
}

@keyframes node-pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
  }
}

.feedback-svg .node {
  animation: node-pulse 3s infinite ease-in-out;
}

.feedback-svg .flow-path {
  stroke-dasharray: 5 5;
  animation: dash-flow 1s linear infinite;
  opacity: 0.6;
}

.feedback-svg .return-path {
  animation: pulse-gold 2s infinite ease-in-out;
}

.feedback-svg .arrow-head.gold {
  fill: var(--gold);
  filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.5));
}


/* ================= SPEARFORGE SHOWCASE ================= */
.showcase-section {
  background: rgba(5, 5, 5, 0.95);
  border-top: 1px solid var(--slate);
  border-bottom: 1px solid var(--slate);
}

.showcase-mockup {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--slate);
  padding: 1rem;
  margin-bottom: 3rem;
}

.mockup-placeholder {
  background: linear-gradient(135deg, rgba(20, 20, 20, 1), rgba(30, 30, 30, 1));
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--slate);
  border: 1px dashed var(--slate);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  padding: 1.5rem;
  border-left: 2px solid var(--gold);
}

.feature-item h4 {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.feature-item p {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.5;
}

/* ================= FILTER SECTION ================= */
.filter-section {
  background: var(--bg-tungsten);
  text-align: center;
}

.filter-section .section-container {
  max-width: 800px;
}

.filter-section h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.filter-section p {
  font-family: var(--font-brand);
  font-size: 1rem;
  color: var(--white-dim);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.filter-cta {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1rem 2rem;
  display: inline-block;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}

.filter-cta:hover {
  background: var(--gold);
  color: var(--bg-void);
}

/* ================= COMMAND BAR FOOTER ================= */
.command-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bar-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  z-index: 1000;
}

.command-left,
.command-center,
.command-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cmd-status {
  color: var(--white-dim);
  letter-spacing: 0.05em;
}

.cmd-status .green {
  color: var(--green);
}

.cmd-divider {
  color: var(--slate);
}

.cmd-link {
  color: var(--white-dim);
  transition: color 0.3s;
}

.cmd-link:hover {
  color: var(--gold);
}

.cmd-build {
  color: var(--white-dim);
  opacity: 0.6;
  margin-left: 1rem;
}

.command-center {
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Add margin to body for fixed command bar */
body {
  margin-bottom: var(--bar-height);
}

/* ================= NAV STATUS ================= */
.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-family: var(--font-data);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

/* ================= HERO DECORATIONS ================= */
.hero {
  position: relative;
}

.hero-decor-tl,
.hero-decor-br {
  position: absolute;
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--white-dim);
  opacity: 0.5;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.hero-decor-tl {
  top: calc(var(--header-height) + 2rem);
  left: 2rem;
}

.hero-decor-br {
  bottom: calc(var(--bar-height) + 3rem);
  right: 2rem;
  text-align: right;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.meta-item {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.blink-cursor {
  animation: blink 1s step-end infinite;
  color: var(--gold);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ================= CLI HEADERS ================= */
/* ================= CLI HEADERS ================= */
.cli-header {
  font-family: var(--font-data);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
  letter-spacing: 0.05em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Removed Glitch Effect as per user request */

.header-dash {
  display: inline-block;
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(197, 160, 89, 0) 100%);
  margin-left: 0;
}

/* ================= REFINERY ANIMATIONS (V2) ================= */
.refinery-core {
  filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.3));
}

/* ================= GROWTH ENGINE (V3) ================= */
.winning-source {
  animation: source-grow 2.5s infinite;
  transform-origin: 0 60px;
}

@keyframes source-grow {

  0%,
  100% {
    stroke-width: 2;
    opacity: 0.8;
  }

  50% {
    stroke-width: 4;
    opacity: 1;
    stroke: #00FF94;
  }

  /* Green flash on signal receipt */
}

.signal-cable {
  stroke: #00FF94;
  stroke-width: 1.5;
  stroke-dasharray: 4;
  opacity: 0.4;
  animation: dash-flow-reverse 2s linear infinite;
}




/* ================= OVERCLOCKED ENGINE (V9) ================= */
.plasma-cable {
  stroke: #00FF94;
  stroke-width: 2;
  stroke-dasharray: 100 200;
  /* Long plasma bolts */
  animation: plasma-flow 2s linear infinite;
  filter: drop-shadow(0 0 5px rgba(0, 255, 148, 0.5));
}

@keyframes plasma-flow {
  to {
    stroke-dashoffset: -300;
  }
}

.alpha-cassette {
  /* CLEAN SURGE: Scale and Brightness Boost */
  animation: clean-surge 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 80px 65px;
  /* Center of the cassette */
}

@keyframes clean-surge {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  15% {
    /* The Moment of Injection */
    transform: scale(1.05);
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(197, 160, 89, 0.6));
  }
}

.status-light {
  animation: blink-fast 0.5s infinite;
}

@keyframes blink-fast {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.core-pulse {
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

.dash-flow-reverse {
  stroke-dasharray: 4;
  animation: dash-flow-reverse 20s linear infinite;
}

@keyframes dash-flow-reverse {
  to {
    stroke-dashoffset: 1000;
  }
}

/* ================= MODAL ================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--bg-void);
  border: 1px solid var(--gold);
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white-dim);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gold);
}

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

.modal-title {
  font-family: var(--font-data);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--white-dim);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.form-group input,
.form-group select {
  background: transparent;
  border: 1px solid var(--slate);
  color: var(--white);
  padding: 12px;
  font-family: var(--font-data);
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input::placeholder {
  color: #555;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C5A059' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-group select option {
  background: var(--bg-void);
  color: var(--white);
}

.form-submit {
  background: var(--gold);
  color: var(--bg-void);
  border: none;
  padding: 14px 24px;
  font-family: var(--font-data);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}

.form-submit:hover {
  background: var(--white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.form-status {
  font-family: var(--font-data);
  font-size: 0.75rem;
  text-align: center;
  color: var(--white-dim);
  min-height: 1.2em;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #ff6b6b;
}

/* ================= REQUIREMENTS SECTION ================= */
.filter-section {
  background: transparent !important;
  /* Ensuring no grey background */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-cta {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1rem 2rem;
  transition: all 0.3s;
}

.filter-cta:hover {
  background: var(--gold-glow);
  color: var(--white);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

  .nav-center,
  .nav-right .nav-login {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-right {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-void);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1050;
  }

  .nav-open .nav-right {
    opacity: 1;
    visibility: visible;
  }

  .nav-open .nav-right .nav-login {
    display: block;
    font-size: 1rem;
  }

  .nav-open .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-open .menu-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-open .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-headline {
    font-size: 2rem;
  }

  .cards-grid,
  .icon-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }
}

/* ================= CONTACT PAGE ================= */

/* Combined Section - Compact */
.contact-combined-section {
  padding-top: clamp(100px, 12vh, 140px);
  padding-bottom: 2rem;
}

.contact-hero-row {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-hero-row .meta-item {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.contact-headline {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.contact-sub {
  font-size: 1rem;
  color: var(--white-dim);
  margin: 0;
}

.text-gold {
  color: var(--gold);
}

/* Terminal (Quiz Container) */
.terminal-input-zone {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--gold);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(197, 160, 89, 0.1);
}

.terminal-header {
  background: rgba(197, 160, 89, 0.15);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.control-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.8;
}

.control-dot.red {
  background: #ff5f56;
}

.control-dot.yellow {
  background: #ffbd2e;
}

.control-dot.green {
  background: #27c93f;
}

.terminal-body {
  padding: 0;
  min-height: 350px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.placeholder-content {
  text-align: center;
  font-family: var(--font-data);
  color: var(--white-dim);
}

.blink {
  animation: blink 1s infinite;
}

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

/* Trust Indicator Below Quiz */
.trust-indicator-below {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.trust-indicator-below .stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1rem;
}

.trust-label {
  font-family: var(--font-data);
  color: var(--white-dim);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.filter-note {
  text-align: center;
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.filter-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.filter-link:hover {
  border-bottom-color: var(--gold);
}

.card-eta {
  font-family: var(--font-data);
  font-size: 0.65rem;
  color: rgba(197, 160, 89, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-footer-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

/* Process Grid Section */
.process-grid-section {
  padding: 6rem 0;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.protocol-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.protocol-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.protocol-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  background: rgba(25, 25, 25, 0.9);
  transform: translateY(-5px);
}

.protocol-card:hover::before {
  transform: scaleX(1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  font-family: var(--font-data);
  color: var(--white-dim);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.step-num {
  color: var(--gold);
  font-weight: bold;
}

.card-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.card-desc {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  min-height: 3em;
}

.card-status {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.status-active {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

/* Mobile Contact Styles */
@media (max-width: 900px) {
  .process-grid-section {
    padding: 4rem 0;
  }

  .protocol-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .terminal-body {
    padding: 2rem 1rem;
    min-height: 300px;
  }

  .contact-hero .hero-headline {
    font-size: 2.5rem !important;
  }
}

/* ================= THE LETTER SECTION ================= */
.letter-section {
  padding: 6rem 2rem 8rem;
  background: var(--bg-deep);
}

.letter-container {
  max-width: 720px;
  margin: 0 auto;
}

.letter-paragraph {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.letter-paragraph.pull-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 2.5rem;
}

.letter-paragraph.highlight-text {
  color: var(--gold);
  font-weight: 600;
}

.letter-marker {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.6;
  letter-spacing: 0.1em;
  margin: 4rem 0 2rem;
}

.letter-blockquote {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  border-left: 2px solid rgba(197, 160, 89, 0.5);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.7;
}

/* ================= GLASS CARDS ================= */
.glass-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.05);
}

/* Screenshot Card */
.screenshot-card {
  padding: 0;
  overflow: hidden;
}

.screenshot-header {
  background: rgba(197, 160, 89, 0.1);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screenshot-label {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.screenshot-status {
  font-family: var(--font-data);
  font-size: 0.65rem;
  color: var(--green);
  background: rgba(0, 255, 148, 0.1);
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.screenshot-placeholder {
  padding: 2rem;
  text-align: center;
  background: var(--bg-void);
  margin: 0;
}

.screenshot-img {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.screenshot-placeholder p {
  font-family: var(--font-brand);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  max-width: 400px;
  margin: 0 auto;
}

/* Comparison Card */
.comparison-card {
  padding: 0;
  overflow: hidden;
}

.comparison-header {
  background: rgba(197, 160, 89, 0.1);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
}

.comparison-column {
  padding: 2rem;
}

.comparison-column h4 {
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-column.traditional h4 {
  color: #ff4444;
}

.comparison-column.spear h4 {
  color: var(--gold);
}

.comparison-column ul {
  list-style: none;
}

.comparison-column li {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--white-dim);
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comparison-column.traditional li .arrow {
  color: #ff4444;
}

.comparison-column.spear li .arrow {
  color: var(--green);
}

.comparison-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Outcome Card */
.outcome-card {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(197, 160, 89, 0.05));
  border-color: rgba(197, 160, 89, 0.4);
  text-align: center;
}

.outcome-text {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
}

/* CTA Card */
.cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(197, 160, 89, 0.05));
  border-color: rgba(197, 160, 89, 0.5);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 1rem;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 1.25rem 3rem;
  font-weight: 600;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cta-button:hover {
  background: var(--white);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.5);
  transform: translateY(-2px);
}

.cta-divider {
  display: block;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--white-dim);
  margin: 1.5rem 0;
}

.cta-link {
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--gold);
  transition: color 0.3s;
}

.cta-link:hover {
  color: var(--white);
}

/* ================= SIGNATURE BLOCK ================= */
.signature-block {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signature-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.signature-photo {
  flex-shrink: 0;
}

.photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(197, 160, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 0.6rem;
  color: var(--slate);
  text-align: center;
}

.signature-photo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.signature-text {
  flex: 1;
}

.signature-dash {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.signature-name {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.signature-title {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.signature-location {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--white-dim);
}

/* Centered Signature Variant */
.signature-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signature-centered .signature-photo {
  margin-bottom: 1.5rem;
}

.signature-centered .signature-photo img {
  width: 100px;
  height: 100px;
}

.signature-centered .signature-text {
  text-align: center;
}

.signature-centered .signature-dash {
  margin-bottom: 0.75rem;
}

/* ================= P.S. SECTION ================= */
.ps-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ps-text {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ps-text strong {
  color: var(--gold);
}

/* ================= LETTER RESPONSIVE ================= */
@media (max-width: 768px) {
  .letter-section {
    padding: 4rem 1.5rem 6rem;
  }

  .letter-paragraph {
    font-size: 1rem;
  }

  .letter-paragraph.pull-quote {
    padding-left: 1rem;
  }

  .glass-card {
    margin: 2rem 0;
    padding: 1.5rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-divider {
    width: 100%;
    height: 1px;
  }

  .comparison-column {
    padding: 1.5rem;
  }

  .outcome-text {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .hide-mobile {
    display: none !important;
  }

  .command-bar {
    height: auto;
    flex-direction: column;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    gap: 0.8rem;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }

  .command-left,
  .command-center,
  .command-right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ================= MODAL & POPUP ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-container {
  width: 90%;
  max-width: 500px;
  background: rgba(10, 10, 10, 0.95);
  padding: 2.5rem;
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.hidden .modal-container {
  transform: translateY(20px);
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white-dim);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close-button:hover {
  color: var(--white);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.modal-header p {
  font-family: var(--font-data);
  font-size: 0.85rem;
  color: var(--white-dim);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.hud-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  color: var(--white);
  font-family: var(--font-data);
  outline: none;
  transition: all 0.3s ease;
}

.hud-input:focus {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.05);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.upload-zone:hover,
.upload-zone.highlight {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.05);
}

.upload-icon {
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.upload-text {
  font-family: var(--font-brand);
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.upload-subtext {
  font-family: var(--font-data);
  color: var(--white-dim);
  font-size: 0.7rem;
}

.file-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
  border-radius: 4px;
}

.file-preview.hidden {
  display: none;
}

#file-name {
  font-family: var(--font-data);
  color: var(--gold);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.remove-file {
  color: var(--white-dim);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.remove-file:hover {
  color: #ff4d4d;
}

.hidden {
  display: none !important;
}

/* Modal Actions */
.form-actions {
  text-align: center;
}

.cta-button.full-width {
  width: 100%;
  display: block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.cta-button.success {
  background: rgba(46, 204, 113, 0.2);
  border-color: #2ecc71;
  color: #2ecc71;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}

.modal-divider {
  font-family: var(--font-brand);
  font-size: 0.9rem;
  color: var(--white-dim);
  margin: 1rem 0;
  font-style: italic;
}

.cta-link-secondary {
  color: var(--gold);
  font-family: var(--font-data);
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.cta-link-secondary:hover {
  border-bottom-color: var(--gold);
  letter-spacing: 0.05em;
}

.upload-status {
  height: 20px;
  margin-top: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.status-msg {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.blinking {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}