/* ============================================
   Fibonacci Labs - Shared Styles
   ============================================ */

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

:root {
  --color-bg: #080d14;
  --color-bg-lighter: #0c1220;
  --color-grid: rgba(80, 160, 220, 0.06);
  --color-grid-major: rgba(80, 160, 220, 0.1);
  --color-primary: #50a0dc;
  --color-primary-bright: #7fccff;
  --color-accent-pink: rgba(255, 100, 180, 0.5);
  --color-accent-cyan: rgba(100, 220, 255, 0.6);
  --color-accent-green: rgba(0, 255, 120, 0.5);
  --color-terminal-green: #00ff7f;
  --color-text: #e4f0f8;
  --color-text-dim: rgba(228, 240, 248, 0.5);
  --color-text-dimmer: rgba(228, 240, 248, 0.35);
  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Space Grotesk", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================
   Background Effects
   ============================================ */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      var(--color-grid-major) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, var(--color-grid-major) 1px, transparent 1px),
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  z-index: -2;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      ellipse at 80% 30%,
      var(--color-accent-cyan) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      var(--color-accent-pink) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 60% 70%,
      var(--color-accent-green) 0%,
      transparent 40%
    );
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

#spiral-canvas,
#wave-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#spiral-canvas {
  opacity: 0.7;
}

/* ============================================
   Site Header (shared across all pages)
   ============================================ */
.site-header {
  position: relative;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0;
  opacity: 1;
  animation: none;
}

.site-header .logo-mark {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

.site-header .logo-text {
  font-size: 1.1rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

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

.nav-link.active {
  color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.3);
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-terminal-green);
}

/* ============================================
   Logo & Branding
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideIn 0.6s ease-out 0.4s forwards;
}

.logo-mark {
  width: 50px;
  height: 50px;
  border: 1.5px solid var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-primary-bright);
  background: rgba(80, 160, 220, 0.05);
  backdrop-filter: blur(10px);
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ============================================
   Typography
   ============================================ */
h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
}

/* Larger headline on tall screens */
@media (min-height: 800px) {
  .hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 5rem);
  }
}

/* Even larger headline on very tall screens */
@media (min-height: 1000px) {
  .hero h1 {
    font-size: clamp(3.4rem, 7.5vw, 6rem);
  }
}

h1 .line {
  display: block;
  overflow: hidden;
}

h1 .line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

h1 .line:nth-child(1) span {
  animation-delay: 0.5s;
}
h1 .line:nth-child(2) span {
  animation-delay: 0.65s;
}

h1 .highlight {
  color: var(--color-primary-bright);
  text-shadow: 0 0 40px rgba(127, 204, 255, 0.4);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-bright);
  box-shadow: 0 0 30px rgba(80, 160, 220, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--color-terminal-green);
  color: var(--color-terminal-green);
}

.cta-button {
  margin-top: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-bright);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeSlideIn 0.6s ease-out 1.4s forwards;
}

.cta-button:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 30px rgba(80, 160, 220, 0.3);
}

.cta-button .arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: clamp(1rem, 8vh, 12vh);
  overflow: hidden;
}

.hero-main {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 2rem;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 1.5rem 2rem 1.5rem 0;
  max-width: 750px;
  margin-left: 6%;
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-terminal-green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeSlideIn 0.6s ease-out 0.2s forwards;
  text-shadow: 0 0 10px rgba(0, 255, 120, 0.5);
}

.terminal-tag::before {
  content: ">";
  color: var(--color-terminal-green);
  opacity: 0.8;
}

.terminal-tag .blink {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--color-terminal-green);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px rgba(0, 255, 120, 0.6);
}

.tagline {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-text-dim);
  padding-left: 1rem;
  border-left: 2px solid var(--color-terminal-green);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideIn 0.6s ease-out 1s forwards;
}

.tagline em {
  color: var(--color-text);
  font-style: normal;
}

.hero-description {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-text-dim);
  line-height: 1.8;
  max-width: 500px;
  opacity: 0;
  animation: fadeSlideIn 0.6s ease-out 1.2s forwards;
}

.hero-description em {
  color: var(--color-text);
  font-style: normal;
}

.corner-annotation {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.8;
  color: var(--color-primary);
  opacity: 0.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 20;
}

.corner-annotation.top-right {
  top: 1.5rem;
  right: 1.5rem;
  text-align: right;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 2rem;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  opacity: 0;
  animation: fadeSlideIn 0.6s ease-out 1.6s forwards;
}

.scroll-hint .arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--color-terminal-green);
  border-bottom: 1.5px solid var(--color-terminal-green);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
  box-shadow: 2px 2px 4px rgba(0, 255, 120, 0.3);
}

/* ============================================
   Hero Whisper Feed
   ============================================ */
.hero-whisper-feed {
  position: relative;
  width: 380px;
  margin-top: 145px;
  margin-right: 4%;
  text-align: right;
  text-decoration: none;
  display: block;
  cursor: pointer;
  opacity: 0;
  animation: fadeSlideIn 0.8s ease-out 1.8s forwards;
  z-index: 15;
  flex-shrink: 0;
}

.hero-whisper-feed:hover .whisper-link {
  color: var(--color-primary-bright);
  text-shadow: 0 0 8px rgba(80, 160, 220, 0.5);
}

.hero-whisper-feed .feed-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.hero-whisper-feed .feed-item.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.whisper-category {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 1rem;
}

.whisper-quote {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-terminal-green);
  line-height: 1.7;
  margin: 0;
  text-shadow: 0 0 15px rgba(0, 255, 120, 0.2);
}

.whisper-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Responsive adjustments for whisper feed */
@media (max-width: 1200px) {
  .hero-whisper-feed {
    width: 320px;
  }
}

@media (max-width: 1024px) {
  .hero-whisper-feed {
    display: none;
  }
}

/* ============================================
   Hero FAQ Strip (Inside Hero)
   ============================================ */
.hero-faq-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  z-index: 20;
  opacity: 0;
  animation: fadeSlideIn 0.6s ease-out 1.6s forwards;
}

.hero-faq-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-faq-search {
  display: flex;
  width: 100%;
  max-width: 500px;
}

.hero-faq-search input {
  flex: 1;
  padding: 0.65rem 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.hero-faq-search input::placeholder {
  color: var(--color-text-dimmer);
}

.hero-faq-search input:focus {
  outline: none;
  border-color: var(--color-terminal-green);
  box-shadow: 0 0 15px rgba(0, 255, 120, 0.15);
}

.hero-faq-search button {
  padding: 0.65rem 1.1rem;
  background: rgba(0, 255, 127, 0.15);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: 0 4px 4px 0;
  color: var(--color-terminal-green);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-faq-search button:hover {
  background: rgba(0, 255, 127, 0.25);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.5);
}

.hero-faq-suggestions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-faq-suggestions a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-dimmer);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-faq-suggestions a::before {
  content: "> ";
  color: var(--color-terminal-green);
  opacity: 0.5;
}

.hero-faq-suggestions a:hover {
  color: var(--color-terminal-green);
}

.hero-faq-suggestions a:hover::before {
  opacity: 1;
  text-shadow: 0 0 6px rgba(0, 255, 120, 0.5);
}

@media (max-width: 768px) {
  .hero-faq-strip {
    gap: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .hero-faq-label {
    font-size: 0.65rem;
  }

  .hero-faq-search {
    max-width: 90%;
  }

  .hero-faq-search input {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .hero-faq-suggestions {
    gap: 1rem;
  }

  .hero-faq-suggestions a {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero-faq-suggestions {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  .hero-faq-suggestions a {
    font-size: 0.65rem;
  }
}

/* ============================================
   Sections
   ============================================ */
section {
  position: relative;
  z-index: 10;
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--color-primary-bright);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--color-terminal-green);
  box-shadow: 0 0 8px rgba(0, 255, 120, 0.5);
}

/* ============================================
   Offerings Section
   ============================================ */
.offerings {
  display: grid;
  gap: 1.5rem;
}

.offering {
  padding: 1.5rem;
  background: rgba(80, 160, 220, 0.03);
  border-left: 2px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.offering:hover {
  background: rgba(80, 160, 220, 0.08);
  transform: translateX(8px);
  border-left-color: var(--color-terminal-green);
}

.offering h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.offering p {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  font-weight: 300;
}

/* ============================================
   Approach Section
   ============================================ */
.approach-text {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-dim);
  line-height: 1.9;
}

.approach-text em {
  color: var(--color-text);
  font-style: normal;
}

.approach-text .green {
  color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.3);
}

.principles-terminal {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
}

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

.principle-line .green {
  color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.4);
}

.principle-line em {
  font-style: normal;
  color: var(--color-text);
}

/* ============================================
   Logo Marquee
   ============================================ */
.logo-marquee-wrapper {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
}

.logo-marquee {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.logo-marquee img {
  max-height: 40px;
  max-width: 200px;
  width: auto;
  filter: invert(1) grayscale(100%) brightness(0.7) opacity(0.6);
  transition: all 0.4s ease;
}

.logo-marquee img:hover {
  filter: invert(1) grayscale(100%) brightness(1) sepia(100%)
    hue-rotate(160deg) saturate(300%) opacity(1)
    drop-shadow(0 0 12px rgba(80, 160, 220, 0.6));
}

.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 10;
  pointer-events: none;
}

.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--color-bg, #080d14) 0%,
    transparent 100%
  );
}

.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(
    -90deg,
    var(--color-bg, #080d14) 0%,
    transparent 100%
  );
}

.edge-glow {
  position: absolute;
  z-index: 11;
  pointer-events: none;
}

.edge-glow.left,
.edge-glow.right {
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(80, 160, 220, 0.6);
  box-shadow: 0 0 12px 2px rgba(80, 160, 220, 0.4),
    0 0 25px 5px rgba(80, 160, 220, 0.2);
}

.edge-glow.left {
  left: 0;
}

.edge-glow.right {
  right: 0;
}

.edge-glow.top,
.edge-glow.bottom {
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(80, 160, 220, 0.6) 0%,
    transparent 8%,
    transparent 92%,
    rgba(80, 160, 220, 0.6) 100%
  );
  box-shadow: 0 0 8px 1px rgba(80, 160, 220, 0.25);
}

.edge-glow.top {
  top: 0;
}

.edge-glow.bottom {
  bottom: 0;
}

/* ============================================
   Background Section
   ============================================ */
.background-content {
  display: grid;
  gap: 2rem;
}

.been-there {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0rem;
}

.been-there strong {
  color: var(--color-primary-bright);
  font-weight: 500;
}

.been-there strong.green {
  color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.3);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.number-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: rgba(80, 160, 220, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.number-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-terminal-green)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.number-card:hover::before {
  opacity: 1;
}

.number-card:hover {
  background: rgba(80, 160, 220, 0.08);
  transform: translateY(-4px);
}

.number-big {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.number-card:hover .number-big {
  color: var(--color-terminal-green);
  text-shadow: 0 0 20px rgba(0, 255, 120, 0.4);
}

.number-label {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  font-weight: 300;
}

.number-label .highlight {
  color: var(--color-primary-bright);
  font-weight: 400;
}

.asterisk-notes {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.asterisk-note {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

.asterisk-note .asterisk {
  color: var(--color-terminal-green);
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.5);
}

.asterisk-note em {
  color: var(--color-text);
  font-style: normal;
}

.closing-statement {
  margin-top: 4rem;
  text-align: center;
}

.closing-statement p {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  display: inline-block;
}

.closing-statement p::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-terminal-green),
    transparent
  );
}

/* ============================================
   Recent Posts Section (Homepage)
   ============================================ */
.recent-posts {
  display: grid;
  gap: 1.5rem;
}

.recent-posts .section-intro {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
}

.post-card {
  display: block;
  padding: 1.5rem 2rem;
  background: rgba(80, 160, 220, 0.03);
  border: 1px solid rgba(80, 160, 220, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-card:hover {
  background: rgba(80, 160, 220, 0.08);
  border-color: rgba(80, 160, 220, 0.25);
  transform: translateY(-2px);
}

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.3);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.post-card-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-primary-bright);
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-arrow {
  transform: translateX(4px);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-primary-bright);
  text-decoration: none;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--color-terminal-green);
}

.view-all-link .arrow {
  transition: transform 0.3s ease;
}

.view-all-link:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
}

.cta-section .section-title {
  justify-content: center;
  font-size: 2.5rem;
}

.cta-section .section-title::before {
  display: none;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  color: var(--color-text-dimmer);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.phi-footer {
  color: var(--color-terminal-green);
  opacity: 0.5;
  margin-top: 0.5rem;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(6px) rotate(45deg);
  }
  60% {
    transform: translateY(3px) rotate(45deg);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   Blog Index Styles
   ============================================ */
.blog-index-container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.blog-index-container h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
}

.blog-index-intro {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.topic-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid rgba(80, 160, 220, 0.3);
  border-radius: 100px;
  color: var(--color-text-dim);
  cursor: pointer;
  transition: all 0.3s ease;
}

.topic-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-bright);
}

.topic-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 15px rgba(80, 160, 220, 0.3);
}

.blog-card.hidden {
  display: none;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card {
  display: block;
  padding: 1.75rem 2rem;
  background: rgba(80, 160, 220, 0.03);
  border: 1px solid rgba(80, 160, 220, 0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-card:hover {
  background: rgba(80, 160, 220, 0.08);
  border-color: rgba(80, 160, 220, 0.25);
  transform: translateY(-2px);
}

.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.3);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.blog-card-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-primary-bright);
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
  transform: translateX(4px);
}

/* ============================================
   Article Styles
   ============================================ */
.article-container {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-meta .category {
  color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.3);
}

.article-container h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.article-container h1 .subtitle {
  display: block;
  font-size: 0.6em;
  font-weight: 300;
  color: var(--color-text-dim);
  margin-top: 0.5rem;
  letter-spacing: 0;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--color-text-dim);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary-bright);
  margin: 3rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-content h2::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--color-terminal-green);
  box-shadow: 0 0 8px rgba(0, 255, 120, 0.5);
}

.article-content h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 2rem 0 1rem;
}

.article-content strong {
  color: var(--color-text);
  font-weight: 500;
}

.article-content em {
  color: var(--color-text);
  font-style: normal;
}

.article-content a {
  color: var(--color-primary-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 204, 255, 0.3);
  transition: all 0.2s ease;
  position: relative;
}

.article-content a:hover {
  color: var(--color-terminal-green);
  border-bottom-color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.3);
}

/* Cross-link tooltips */
.article-content a[data-tooltip] {
  cursor: pointer;
}

.article-content a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--color-bg-lighter);
  border: 1px solid rgba(0, 255, 120, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-dim);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 120, 0.1);
  pointer-events: none;
}

.article-content a[data-tooltip]::before {
  content: "→";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(2px);
  color: var(--color-terminal-green);
  font-size: 0.7rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  text-shadow: 0 0 6px rgba(0, 255, 120, 0.5);
}

.article-content a[data-tooltip]:hover::after,
.article-content a[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

.article-content a[data-tooltip]:hover::after {
  transform: translateY(-50%) translateX(20px);
}

.article-content a[data-tooltip]:hover::before {
  transform: translateY(-50%) translateX(8px);
}

@media (max-width: 900px) {
  .article-content a[data-tooltip]::after,
  .article-content a[data-tooltip]::before {
    display: none;
  }
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 2px solid var(--color-terminal-green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text);
}

.stat-highlight {
  font-family: var(--font-mono);
  color: var(--color-primary-bright);
  font-weight: 500;
}

/* Big stat callouts */
.stat-callout {
  border-left: 3px solid var(--color-terminal-green);
  box-shadow: 0 0 15px rgba(0, 255, 120, 0.1);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(0, 255, 120, 0.03);
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-text);
}

.stat-callout .stat-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-terminal-green);
  text-shadow: 0 0 10px rgba(0, 255, 120, 0.4);
}

.stat-callout .stat-source {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.stat-callout .stat-source a {
  color: var(--color-primary-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

.stat-callout .stat-source a:hover {
  color: var(--color-terminal-green);
  text-decoration: underline;
}

/* ============================================
   TL;DR Box (Terminal Style)
   ============================================ */
.tldr {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
}

.tldr::before {
  content: "TL;DR";
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background: var(--color-bg);
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-terminal-green);
  text-shadow: 0 0 10px rgba(0, 255, 120, 0.5);
}

.tldr p {
  margin: 0;
  color: var(--color-text);
}

.tldr .faq-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tldr .faq-link:hover {
  color: var(--color-terminal-green);
}

.tldr .faq-link::before {
  content: "↓ ";
}

/* ============================================
   FAQ Section (Terminal Style)
   ============================================ */
.faq-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-section h2 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-terminal-green);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 120, 0.3);
}

.faq-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 127, 0.2);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary-bright);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.faq-question::before {
  content: "Q:";
  color: var(--color-terminal-green);
  font-weight: 600;
  flex-shrink: 0;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  padding-left: 1.5rem;
}

.faq-answer::before {
  content: "A: ";
  font-family: var(--font-mono);
  color: var(--color-text-dim);
  font-weight: 500;
}

/* FAQ Cross-link */
.faq-browse-all {
  margin-top: 0.75rem;
  text-align: center;
}

.faq-browse-all a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-dimmer);
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-browse-all a:hover {
  color: var(--color-terminal-green);
}

.faq-browse-all .arrow {
  transition: transform 0.2s ease;
}

.faq-browse-all a:hover .arrow {
  transform: translateX(3px);
}

/* Author Box */
.author-box {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-box p {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  font-style: italic;
  line-height: 1.7;
}

.author-box strong {
  color: var(--color-text);
  font-weight: 500;
  font-style: normal;
}

/* CTA Box */
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(80, 160, 220, 0.05);
  border: 1px solid rgba(80, 160, 220, 0.2);
  border-radius: 8px;
  text-align: center;
}

.article-cta p {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.article-cta .btn {
  background: transparent;
  color: var(--color-primary-bright);
  border: 1px solid var(--color-primary);
}

.article-cta .btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 30px rgba(80, 160, 220, 0.3);
}

/* Takeaways Box */
.takeaways {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 255, 120, 0.03);
  border: 1px solid rgba(0, 255, 120, 0.15);
  border-radius: 8px;
}

.takeaways h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-terminal-green);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.takeaways ul {
  margin: 0;
  padding-left: 1.25rem;
}

.takeaways li {
  margin-bottom: 0.75rem;
  color: var(--color-text-dim);
}

/* ============================================
   Journey Items
   ============================================ */
.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

.journey-item {
  padding: 0.6rem 1.2rem;
  background: rgba(80, 160, 220, 0.08);
  border: 1px solid rgba(80, 160, 220, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-dim);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.journey-item:hover {
  border-color: var(--color-terminal-green);
  color: var(--color-terminal-green);
}

.journey-arrow {
  color: var(--color-terminal-green);
  font-size: 1.2rem;
  text-shadow: 0 0 6px rgba(0, 255, 120, 0.5);
}

.years-text {
  font-size: 1rem;
  color: var(--color-text-dimmer);
  font-family: var(--font-mono);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
  .hero-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .closing-statement p {
    font-size: 1.5rem;
  }

  .journey {
    flex-direction: column;
    align-items: flex-start;
  }

  .journey-arrow {
    transform: rotate(90deg);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .logo-marquee-wrapper::before,
  .logo-marquee-wrapper::after {
    width: 60px;
  }

  .edge-glow.left {
    left: 50px;
  }

  .edge-glow.right {
    right: 50px;
  }

  .edge-glow.top,
  .edge-glow.bottom {
    left: 40px;
    right: 40px;
  }

  .logo-marquee {
    gap: 3rem;
  }

  .logo-marquee img {
    height: 30px;
  }

  .article-container,
  .blog-index-container {
    padding: 2rem 1.5rem 4rem;
  }

  .site-header {
    padding: 1rem 1.5rem;
  }

  .header-nav {
    gap: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .blog-card {
    padding: 1.25rem 1.5rem;
  }

  .blog-card-title {
    font-size: 1.2rem;
  }
}

/* ============================================
   Contact Modal
   ============================================ */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 13, 20, 0.95);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  background: linear-gradient(
    135deg,
    rgba(12, 18, 32, 0.98) 0%,
    rgba(8, 13, 20, 0.98) 100%
  );
  border: 1px solid rgba(80, 160, 220, 0.15);
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(80, 160, 220, 0.08);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.contact-modal.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-bright);
  background: rgba(80, 160, 220, 0.1);
}

/* Progress Indicator */
.modal-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(80, 160, 220, 0.1);
  border: 1px solid rgba(80, 160, 220, 0.2);
  color: var(--color-text-dimmer);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 20px rgba(80, 160, 220, 0.4);
}

.progress-step.completed {
  background: var(--color-terminal-green);
  border-color: var(--color-terminal-green);
  color: var(--color-bg);
  box-shadow: 0 0 15px rgba(0, 255, 120, 0.3);
}

.progress-line {
  width: 40px;
  height: 2px;
  background: rgba(80, 160, 220, 0.15);
  transition: background 0.3s ease;
}

.progress-line.completed {
  background: var(--color-terminal-green);
  box-shadow: 0 0 8px rgba(0, 255, 120, 0.3);
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeSlideIn 0.4s ease-out;
}

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

.step-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-terminal-green);
  text-shadow: 0 0 8px rgba(0, 255, 120, 0.4);
  display: block;
  margin-bottom: 0.5rem;
}

.step-header h2 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 1rem;
  color: var(--color-text-dim);
}

/* Form Fields */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.form-group .optional {
  color: var(--color-text-dimmer);
  font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
  background: rgba(80, 160, 220, 0.05);
  border: 1px solid rgba(80, 160, 220, 0.15);
  border-radius: 6px;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  transition: all 0.3s ease;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dimmer);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(80, 160, 220, 0.08);
  box-shadow: 0 0 20px rgba(80, 160, 220, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-back,
.btn-next,
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-dim);
}

.btn-back:hover {
  border-color: var(--color-text-dim);
  color: var(--color-text);
}

.btn-next,
.btn-submit {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-bg);
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--color-primary-bright);
  box-shadow: 0 0 25px rgba(80, 160, 220, 0.4);
}

.btn-next .arrow,
.btn-submit .arrow,
.btn-back .arrow {
  transition: transform 0.3s ease;
}

.btn-next:hover .arrow,
.btn-submit:hover .arrow {
  transform: translateX(3px);
}

.btn-back:hover .arrow {
  transform: translateX(-3px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success State */
.form-success-state,
.form-error-state {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success-state.active,
.form-error-state.active {
  display: block;
  animation: fadeSlideIn 0.4s ease-out;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(0, 255, 120, 0.1);
  border: 2px solid var(--color-terminal-green);
  color: var(--color-terminal-green);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 255, 120, 0.2);
}

.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.1);
  border: 2px solid #ff6b6b;
  color: #ff6b6b;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.2);
}

.form-success-state h2,
.form-error-state h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-success-state p,
.form-error-state p {
  color: var(--color-text-dim);
  margin-bottom: 2rem;
}

.form-error-state a {
  color: var(--color-primary-bright);
  text-decoration: none;
}

.form-error-state a:hover {
  color: var(--color-terminal-green);
}

.btn-close-success,
.btn-retry {
  padding: 0.875rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-bright);
}

.btn-close-success:hover,
.btn-retry:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 0 25px rgba(80, 160, 220, 0.3);
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal-container {
    margin: 1rem;
    padding: 2rem 1.5rem;
    max-height: calc(100vh - 2rem);
  }

  .step-header h2 {
    font-size: 1.5rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn-back,
  .btn-next,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .progress-line {
    width: 24px;
  }
}
