/* =========================================================================
   TRACE AI - MIDNIGHT LUXE DESIGN SYSTEM
   ========================================================================= */

:root {
  /* Colors */
  --bg-base: #07090E;
  /* Deep navy/near-black */
  --bg-surface: #0D1219;
  /* Slightly lighter glass panel */
  --bg-panel: rgba(13, 18, 25, 0.7);
  --bg-card: rgba(20, 26, 35, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-focus: rgba(0, 229, 255, 0.3);

  --text-main: #FFFFFF;
  --text-muted: #8B949E;

  --accent-cyan: #00E5FF;
  --accent-cyan-glow: rgba(0, 229, 255, 0.2);
  --accent-teal: #00BFA5;
  --accent-amber: #FFB300;
  --accent-amber-glow: rgba(255, 179, 0, 0.2);
  --accent-red: #FF5252;
  --success-green: #00E676;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --nav-height: 80px;
  --section-pad: 120px 5%;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Motion */
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-med: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-snappy: 0.15s ease-out;
}

/* =========================================================================
   GLOBAL RESET & BASE
   ========================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: var(--bg-base);
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.highlight-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px var(--accent-cyan-glow);
}

/* Ambient Glow */
.glow-bg {
  position: absolute;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 400;
}

.delay-reveal {
  opacity: 0;
  animation: revealUp 0.8s forwards;
  animation-delay: 1.5s;
}

/* Reveal Animations (Controlled via JS IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-snappy);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-base);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-panel);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  background: rgba(20, 26, 35, 0.9);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.secondary-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-med);
}

.secondary-link:hover {
  color: var(--text-main);
}

/* =========================================================================
   NAVBAR
   ========================================================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-med);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-main);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transform: translateY(-50%);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-med);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */

.hero {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-subhead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-subhead strong {
  color: var(--text-main);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.micro-proof {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border-subtle);
  padding-left: 1rem;
  max-width: 450px;
}

/* Trace Console (Hero Visual) */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.trace-console {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px inset rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform var(--transition-slow), border-color var(--transition-slow);
}

.trace-console:hover {
  transform: rotateY(0) rotateX(0);
  border-color: var(--border-focus);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px inset var(--accent-cyan-glow);
}

.console-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.6;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.console-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: max(1rem, auto);
}

.console-body {
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.user-query {
  color: var(--text-main);
  margin-bottom: 2rem;
}

.prompt {
  color: var(--accent-teal);
}

.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-cyan);
  animation: typing 2.5s steps(40, end), blink-caret .75s step-end infinite;
  display: inline-block;
  vertical-align: bottom;
  max-width: 100%;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-cyan)
  }
}

.lineage-path {
  margin-left: 0.5rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: revealUp 1s forwards;
  animation-delay: 2.6s;
}

.path-step {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.path-step .icon {
  font-size: 1rem;
  opacity: 0.7;
}

.path-step .range {
  font-size: 0.7rem;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.path-step.calc {
  color: var(--accent-teal);
  font-style: italic;
}

.trace-line-vert rect {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawLine 1s forwards;
  animation-delay: calc(2.8s + var(--delay, 0s));
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.output-card {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-family: var(--font-body);
}

.variance-summary {
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.flag.alert {
  background: rgba(255, 179, 0, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.driver-bullets {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.driver-bullets li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.driver-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--border-subtle);
}

.driver-bullets strong {
  color: var(--text-main);
}

.sources-chip-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-muted);
  transition: all var(--transition-snappy);
  cursor: default;
}

.trace-console:hover .chip {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}


/* =========================================================================
   FEATURES SECTION
   ========================================================================= */

.features {
  padding: var(--section-pad);
  max-width: 1400px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

.artifact {
  height: 140px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Specific Artifact Visuals */
.table-snippet {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.table-snippet .row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-snippet .header {
  color: var(--text-muted);
  font-weight: 500;
}

.red {
  color: var(--accent-red);
}

.green {
  color: var(--success-green);
}

.variance-mini {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-chart {
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.bar {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.bar.budget {
  background: var(--text-muted);
  z-index: 1;
}

.bar.actual {
  background: var(--text-main);
  height: 12px;
  top: 6px;
  z-index: 2;
  border-right: 2px solid var(--accent-cyan);
}

.trace-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip.focused {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
}

.lock-ui {
  width: 100%;
}

.perm-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.status.on {
  color: var(--success-green);
}

.status.locked {
  color: var(--text-muted);
}

.audit-log {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.audit-log code {
  background: none;
}

.scenario-chart svg {
  width: 100%;
  height: 60px;
}

/* Hover dynamic effects for artifacts */
.feature-card:hover .artifact {
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-card:hover .bar.actual {
  width: 90% !important;
  transition: width 1s ease-in-out;
}


/* =========================================================================
   PHILOSOPHY MANIFESTO
   ========================================================================= */

.philosophy {
  padding: 8rem 2rem;
  background: radial-gradient(ellipse at center, rgba(20, 26, 35, 0.5) 0%, transparent 70%);
  text-align: center;
}

.manifesto {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

.manifesto p {
  margin-bottom: 1.5rem;
  transition: color var(--transition-slow);
}

.manifesto p:hover {
  color: var(--text-main);
}


/* =========================================================================
   PROTOCOL STICKY SCROLL
   ========================================================================= */

.protocol-section {
  padding: var(--section-pad);
  max-width: 1000px;
  margin: 0 auto;
}

.protocol-header {
  text-align: center;
  margin-bottom: 6rem;
}

.protocol-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.protocol-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.sticky-stack {
  position: relative;
}

.stack-step {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3rem;
  margin-bottom: 50vh;
  /* creates scrolling gap */
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

/* Stagger top offsets to create stacked overlapping look */
.stack-step.step-1 {
  top: calc(var(--nav-height) + 2rem);
  z-index: 1;
}

.stack-step.step-2 {
  top: calc(var(--nav-height) + 4rem);
  z-index: 2;
}

.stack-step.step-3 {
  top: calc(var(--nav-height) + 6rem);
  z-index: 3;
}

.stack-step.step-4 {
  top: calc(var(--nav-height) + 8rem);
  z-index: 4;
}

.stack-step.step-5 {
  top: calc(var(--nav-height) + 10rem);
  z-index: 5;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .stack-step {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.step-content h3 {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.step-artifact {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.connect-node {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--border-focus);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge {
  background: var(--success-green);
  color: var(--bg-base);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.calc-block code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}


/* =========================================================================
   SECURITY SPOTLIGHT
   ========================================================================= */

.security-spotlight {
  padding: var(--section-pad);
  max-width: 1200px;
  margin: 0 auto;
}

.sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  background: linear-gradient(135deg, rgba(20, 26, 35, 0.8), rgba(13, 18, 25, 0));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 4rem;
}

@media (min-width: 900px) {
  .sec-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.sec-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sec-text p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.sec-list {
  list-style: none;
}

.sec-list li {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
}

.sec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.sec-list strong {
  color: var(--text-main);
}

.sec-visual {
  display: flex;
  justify-content: center;
}

.shield-graphic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--border-focus);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}


/* =========================================================================
   MEMBERSHIP / PRICING
   ========================================================================= */

.pricing {
  padding: var(--section-pad);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: end;
}

.price-tier {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  position: relative;
  transition: transform var(--transition-med);
}

.price-tier:hover {
  transform: translateY(-8px);
}

.price-tier.highlight-tier {
  border-color: var(--border-focus);
  background: rgba(20, 26, 35, 0.8);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.05);
  padding-bottom: 4rem;
  /* Taller */
}

.tier-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: var(--bg-base);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.price-tier h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.tier-scope {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.tier-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.tier-features li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tier-features li::before {
  content: '✓';
  color: var(--text-main);
  opacity: 0.5;
}

.highlight-tier .tier-features li::before {
  color: var(--accent-cyan);
  opacity: 1;
}

.tier-cta {
  width: 100%;
}

.success-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--accent-teal);
  text-align: center;
}


/* =========================================================================
   FOOTER
   ========================================================================= */

.footer {
  background: #040508;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-brand .concept-note {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-med);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding-top: 8rem;
  }

  .hero-subhead {
    margin: 0 auto 2rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-container .secondary-link {
    display: none;
  }

  .nav-container .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .micro-proof {
    margin: 2rem auto 0;
    text-align: left;
  }

  .stack-step {
    margin-bottom: 5rem;
    top: 100px !important;
  }

  .sec-grid {
    padding: 2rem;
  }
}