/* IMPORT FONTS FROM GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Force strict sharp corners */
}

:root {
  /* Design Tokens from DESIGN.md */
  --bg-primary: #ffffff;
  --bg-secondary: #000000;
  --bg-container: #eeeeee;
  --bg-container-low: #f3f3f3;
  --text-primary: #000000;
  --text-inverse: #ffffff;
  --text-muted: #5e5e5e;
  
  --accent: #E8341A; /* Vermillion Red */
  --border-width-thin: 1px;
  --border-width-thick: 2px;
  --border-color: #000000;
  
  --margin-page: 5vw;
  --gutter: 24px;
  --section-gap: 160px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Source Serif 4', Georgia, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* CUSTOM BRUTALIST SCROLLBAR */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-left: var(--border-width-thick) solid var(--border-color);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* TYPOGRAPHY UTILITIES */
.font-display-xl {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30vw; /* Using slightly adjusted vw to keep in bounds */
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.font-headline-lg {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px;
  font-weight: 400;
  line-height: 100px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.font-headline-md {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 48px;
  text-transform: uppercase;
}

.font-body-lg {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 32px;
}

.font-body-md {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.font-label-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.font-caption {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* CUSTOM CURSOR */
.custom-cursor {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background-color: transparent;
  mix-blend-mode: difference;
  display: none;
}

body:hover .custom-cursor {
  display: block;
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* LAYOUT & GRID SYSTEM */
.page-container {
  width: 100%;
  padding-left: var(--margin-page);
  padding-right: var(--margin-page);
}

header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  z-index: 100;
  border-bottom: var(--border-width-thin) solid var(--border-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0s;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-logo-image {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border: var(--border-width-thick) solid var(--border-color);
  background-color: var(--bg-primary);
  transition: transform 0.1s ease-in-out, border-color 0.1s ease-in-out;
}

.nav-logo:hover .nav-logo-image {
  transform: scale(1.05);
  border-color: var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--stack-lg, 48px);
  list-style: none;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.15s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent);
  transition: color 0.1s ease-out;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  transition: all 0s; /* Binary transitions */
}

.btn-primary {
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--text-inverse);
}

.btn-secondary {
  background-color: transparent;
  border: var(--border-width-thick) solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 26px; /* Offset for border width */
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-inverse);
}

.btn-accent:hover {
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
}

/* SECTION STRUCTURE */
.section-wrapper {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
  border-bottom: var(--border-width-thin) solid var(--border-color);
}

.section-wrapper:last-of-type {
  border-bottom: none;
}

.section-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--gutter);
}

.section-meta {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm, 8px);
  position: sticky;
  top: 120px;
  height: fit-content;
}

.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* HERO SECTION & TOP DUMMY AREA */
.hero-wrapper {
  padding-top: 60px;
  padding-bottom: 100px;
  border-bottom: var(--border-width-thin) solid var(--border-color);
}

.hero-grid-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  border-bottom: var(--border-width-thin) solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.hero-title-block {
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9.5vw;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hero-accent-text {
  color: var(--accent);
}

.hero-subtitle {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8vw;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  letter-spacing: 0.05em;
  border-top: var(--border-width-thin) solid var(--border-color);
  padding-top: 16px;
}

.hero-content-block {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-subtext {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  line-height: 38px;
  color: var(--text-primary);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* SECTION 0.5 - INTRO */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.intro-text-block {
  grid-column: 4 / span 9;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px;
  line-height: 44px;
  color: var(--text-primary);
}

.intro-highlight {
  color: var(--accent);
  font-weight: 500;
}

/* SECTION 01 - BLACK QUOTE BLOCK */
.section-dark {
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
}

.section-dark .section-number,
.section-dark .section-label {
  color: var(--text-inverse);
  opacity: 0.6;
}

.quote-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.quote-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 54px;
  line-height: 72px;
  font-style: italic;
  max-width: 900px;
}

.quote-highlight {
  color: var(--accent);
  font-style: italic;
  display: block;
  margin-top: 10px;
}

.quote-subtext {
  margin-top: 80px;
  color: var(--text-inverse);
  opacity: 0.6;
}

/* SECTION 02 - PARADIGM SHIFT */
.shift-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.shift-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.shift-card {
  padding: var(--gutter);
  border: var(--border-width-thin) solid var(--border-color);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.shift-card.card-dark {
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
  border-color: var(--bg-secondary);
}

.card-title-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-bottom: 20px;
  border-bottom: var(--border-width-thin) solid var(--border-color);
}

.shift-card.card-dark .card-title-mono {
  border-color: #333333;
}

.card-list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.card-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card-list-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.card-list-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 26px;
}

.shift-metric-block {
  margin-top: 60px;
  border-top: var(--border-width-thin) solid var(--border-color);
  padding-top: 40px;
}

.shift-metric-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 32px;
  line-height: 48px;
  font-style: italic;
  max-width: 800px;
}

.shift-metric-source {
  margin-top: 16px;
}

/* SECTION 03 - WHAT WE DO */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 40px 0;
  border-bottom: var(--border-width-thin) solid var(--border-color);
  align-items: center;
  transition: background-color 0s;
  cursor: pointer;
}

.service-item:first-of-type {
  border-top: var(--border-width-thin) solid var(--border-color);
}

.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  color: #c6c6c6;
  transition: color 0s;
}

.service-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  transition: color 0s;
}

.service-item:hover {
  background-color: var(--bg-container-low);
}

.service-item:hover .service-num {
  color: var(--accent);
}

.service-item:hover .service-text {
  color: var(--accent);
}

/* INTERACTIVE AI CITATION SIMULATOR WIDGET */
.simulator-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-bottom: var(--border-width-thin) solid var(--border-color);
}

.simulator-header {
  margin-bottom: 60px;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

.simulator-dashboard {
  border: var(--border-width-thick) solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
}

.dashboard-bar {
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
  padding: 12px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--border-width-thick) solid var(--border-color);
}

.dashboard-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dashboard-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-inverse);
}

.dot.red { background-color: var(--accent); }

.simulator-controls {
  padding: var(--gutter);
  border-bottom: var(--border-width-thin) solid var(--border-color);
  background-color: var(--bg-container-low);
  display: flex;
  gap: var(--gutter);
  flex-wrap: wrap;
  align-items: flex-end;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.control-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

.control-input {
  height: 48px;
  border: var(--border-width-thick) solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  width: 100%;
}

.control-select {
  height: 48px;
  border: var(--border-width-thick) solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  width: 100%;
  cursor: pointer;
}

.control-input:focus, .control-select:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-scan {
  height: 48px;
  padding: 0 32px;
}

/* SIMULATOR SCREEN & OUTPUTS */
.simulator-body {
  min-height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* LOADING / SCANNING STATE OVERLAY */
.simulator-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  gap: 16px;
}

.loader-terminal {
  width: 80%;
  max-width: 500px;
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 18px;
  border: var(--border-width-thick) solid var(--border-color);
}

.loader-line {
  margin-bottom: 4px;
}

.loader-line.red {
  color: var(--accent);
}

.loader-spinner {
  width: 24px;
  height: 24px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* SIMULATOR RESULTS WRAPPER */
.simulator-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-grow: 1;
}

.result-panel {
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  border-right: var(--border-width-thin) solid var(--border-color);
}

.result-panel:last-child {
  border-right: none;
  background-color: #fafafa;
}

.panel-header {
  border-bottom: var(--border-width-thick) solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
}

.panel-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.panel-status.secure {
  color: #00843d;
}

/* ENGINE CHAT DISPLAY */
.chat-window {
  border: var(--border-width-thin) solid var(--border-color);
  background-color: var(--bg-primary);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.chat-query-box {
  padding: 12px;
  background-color: var(--bg-container-low);
  border-bottom: var(--border-width-thin) solid var(--border-color);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
}

.chat-response {
  padding: 16px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 24px;
  flex-grow: 1;
}

.citation-mark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  width: 14px;
  height: 14px;
  vertical-align: super;
  margin-left: 2px;
  cursor: pointer;
  transition: all 0.1s;
}

.citation-mark:hover {
  background-color: var(--accent);
}

.panel-metric-footer {
  margin-top: 20px;
  border-top: var(--border-width-thin) solid var(--border-color);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.metric-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1;
}

.metric-val.high {
  color: #00843d;
}

.metric-val.low {
  color: var(--accent);
}

/* SECTION 04 - ONBOARDING FORM */
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.onboarding-intro {
  grid-column: 1 / span 5;
}

.onboarding-form-container {
  grid-column: 7 / span 6;
}

.onboarding-intro p {
  margin-top: 30px;
  font-size: 20px;
  line-height: 32px;
}

.brutalist-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.form-input {
  border: none;
  border-bottom: var(--border-width-thick) solid var(--border-color);
  background-color: transparent;
  padding: 12px 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: border-color 0s;
}

.form-select {
  border: none;
  border-bottom: var(--border-width-thick) solid var(--border-color);
  background-color: transparent;
  padding: 12px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
}

.form-error {
  position: absolute;
  bottom: -22px;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  display: none;
}

.form-group.has-error .form-input {
  border-color: var(--accent);
}

.form-group.has-error .form-error {
  display: block;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gutter);
  margin-top: 20px;
}

.form-subtext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 16px;
  text-align: right;
  max-width: 250px;
}

/* FORM SUCCESS SCREEN */
.form-success-container {
  display: none;
  border: var(--border-width-thick) solid var(--border-color);
  padding: 48px;
  background-color: var(--bg-primary);
  text-align: left;
}

.success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 24px;
}

.success-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 30px;
}

.success-details {
  background-color: var(--bg-container-low);
  padding: 24px;
  border-left: 4px solid var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 20px;
}

/* EDITORIAL FOOTER */
.editorial-footer {
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
  padding-top: 80px;
  padding-bottom: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: var(--border-width-thin) solid #333333;
  padding-bottom: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--text-inverse);
}

.footer-nav {
  display: flex;
  gap: 48px;
  list-style: none;
}

.footer-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-inverse);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #777777;
}

/* BRUTALIST FLOATING PROGRESS BAR */
.progress-sidebar {
  position: fixed;
  right: var(--margin-page);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 90;
  pointer-events: none;
}

.progress-step {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.progress-dot {
  width: 8px;
  height: 8px;
  background-color: transparent;
  border: var(--border-width-thick) solid var(--border-color);
  transition: all 0.15s ease-out;
}

.progress-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--border-color);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.15s ease-out;
}

.progress-step:hover .progress-num,
.progress-step.active .progress-num {
  opacity: 1;
  transform: translateX(0);
}

.progress-step:hover .progress-dot {
  background-color: var(--border-color);
}

.progress-step.active .progress-dot {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}


/* RESPONSIVE DESIGN - COLLAPSING GRID */
@media (max-width: 1024px) {
  :root {
    --section-gap: 100px;
  }
  
  .hero-title {
    font-size: 11vw;
  }
  
  .hero-subtext {
    font-size: 22px;
    line-height: 32px;
  }
  
  .font-headline-lg {
    font-size: 80px;
    line-height: 75px;
  }
  
  .intro-text-block {
    grid-column: 2 / span 11;
    font-size: 24px;
    line-height: 38px;
  }
  
  .quote-text {
    font-size: 40px;
    line-height: 56px;
  }
  
  .shift-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .shift-card {
    min-height: auto;
  }
  
  .simulator-results {
    grid-template-columns: 1fr;
  }
  
  .result-panel {
    border-right: none;
    border-bottom: var(--border-width-thin) solid var(--border-color);
  }
  
  .result-panel:last-child {
    border-bottom: none;
  }
  
  .onboarding-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .onboarding-intro, .onboarding-form-container {
    grid-column: 1 / -1;
  }
  
  .progress-sidebar {
    display: none; /* Hide progress track on tablets/mobile */
  }
}

@media (max-width: 768px) {
  --margin-page: 20px;
  
  .navbar {
    height: 70px;
  }
  
  .nav-links {
    display: none; /* Mobile menu collapsed for brutalist simplification, or we can use toggle */
  }
  
  .section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .section-meta {
    position: relative;
    top: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    border-bottom: var(--border-width-thin) solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
  }
  
  .font-headline-lg {
    font-size: 64px;
    line-height: 60px;
  }
  
  .hero-title {
    font-size: 13vw;
    line-height: 0.9;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-top: 16px;
    padding-top: 12px;
  }
  
  .hero-subtext {
    font-size: 18px;
    line-height: 28px;
  }
  
  .intro-text-block {
    grid-column: 1 / -1;
    font-size: 20px;
    line-height: 32px;
  }
  
  .quote-text {
    font-size: 28px;
    line-height: 40px;
  }
  
  .service-item {
    grid-template-columns: 60px 1fr;
  }
  
  .service-num {
    font-size: 40px;
  }
  
  .service-text {
    font-size: 24px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .simulator-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-scan {
    width: 100%;
  }
}

/* SIMULATOR DIAGNOSTICS */
.simulator-diagnostics {
  background-color: var(--bg-secondary);
  color: var(--text-inverse);
  padding: 20px var(--gutter);
  border-top: var(--border-width-thick) solid var(--border-color);
}

.diagnostics-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333333;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.diagnostics-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.diagnostics-mode {
  font-size: 10px;
  color: var(--text-inverse);
  opacity: 0.6;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.diag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-right: 1px solid #333333;
  padding-right: 20px;
}

.diag-item:last-child {
  border-right: none;
  padding-right: 0;
}

.diag-label {
  font-size: 11px;
  color: #999999;
}

.diag-value {
  font-size: 11px;
  font-weight: 700;
}

.diag-value.success {
  color: #00ff66;
}

.diag-value.fail {
  color: var(--accent);
}

.diag-value.warn {
  color: #ffcc00;
}

/* Adjust layout on mobile */
@media (max-width: 768px) {
  .diagnostics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .diag-item {
    border-right: none;
    border-bottom: 1px solid #333333;
    padding-right: 0;
    padding-bottom: 8px;
  }
  .diag-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* AEO ACTION PLAN */
.aeo-action-plan {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 24px var(--gutter);
  border-top: var(--border-width-thin) solid var(--border-color);
}

.plan-header {
  margin-bottom: 20px;
}

.plan-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-list li {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 24px;
  padding-left: 24px;
  position: relative;
}

.plan-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
  font-family: 'JetBrains Mono', monospace;
}

.plan-list li strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-right: 8px;
  text-transform: uppercase;
}

/* FAQ SECTION STYLING */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  border-top: var(--border-width-thin) solid var(--border-color);
}

.faq-item {
  border-bottom: var(--border-width-thin) solid var(--border-color);
  padding: 30px 0;
}

.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.faq-answer {
  max-width: 800px;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 26px;
}
