@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* --- CUSTOM PROPERTIES --- */
:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #121212;
  --bg-tertiary: #1A1A1A;
  --fg-primary: #EAEAEA;
  --fg-secondary: #A0A0A0;
  --fg-muted: #666666;
  --accent-red: #FF2A2A;
  --accent-green: #00FF66;
  --border-color: #222222;
  --border-active: #444444;
  --font-sans: 'Archivo', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --grid-line: 1px solid var(--border-color);
}

/* --- RESET & ACCESSIBILITY --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  /* Managed by Lenis */
  background-color: var(--bg-primary);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  line-height: 1.5;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.9;
  color: #FFFFFF;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

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

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

/* --- STRUCTURAL BLUEPRINT GRID --- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
}

.border-bottom {
  border-bottom: var(--grid-line);
}

.border-top {
  border-top: var(--grid-line);
}

.border-right {
  border-right: var(--grid-line);
}

.border-left {
  border-left: var(--grid-line);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: var(--grid-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 24px;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  list-style: none;
  height: 100%;
}

.nav-links li {
  height: 100%;
  border-left: var(--grid-line);
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 100%;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-secondary);
  transition: background-color 0.2s, color 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-red);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-red);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #E01b1b;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  border-color: var(--fg-primary);
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 500px;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  position: relative;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
}

.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 0.95;
}

.hero-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-primary);
  z-index: 5;
}

@media (max-width: 1024px) {
  .hero-content {
    padding: 3rem 1.5rem;
  }
}

.hero-eyebrow {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-slide-text-wrapper {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0.5rem 0;
}

.hero-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  max-width: 48ch;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Slider indicators styling */
.hero-slider-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: var(--grid-line);
}

.slider-arrow {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.slider-arrow:hover {
  color: var(--accent-red);
}

.slider-dots {
  display: flex;
  gap: 1rem;
}

.slider-dot {
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s;
  position: relative;
}

.slider-dot.active {
  color: var(--accent-red);
  font-weight: bold;
}

.hero-image-container {
  position: relative;
  background-color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
}

/* Left-side fade gradient for seamless merge with the text panel */
.hero-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-primary), transparent);
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-image-container::before {
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
  }
}

@media (max-width: 1024px) {
  .hero-image-container {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .hero-image-container {
    height: 280px;
  }
}

.hero-slider-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: contrast(1.1) brightness(0.95) grayscale(0.1);
  transition: opacity 0.8s ease, transform 1.2s ease;
  transform: scale(1.03);
}

.hero-slide-img.active {
  opacity: 1.0;
  transform: scale(1);
  z-index: 1;
}

/* Telemetry overlays */
.telemetry-overlay {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  pointer-events: none;
  z-index: 5;
}

.telemetry-overlay-right {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  pointer-events: none;
  z-index: 5;
  text-align: right;
}

/* --- SECTION GENERAL --- */
section {
  border-bottom: var(--grid-line);
  position: relative;
}

.section-padding {
  padding: 6rem 3rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 1.5rem;
  }
}

/* --- BENEFIT CARDS & DECOMPOSITION SECTION (SECTION 2 REDESIGN) --- */
.decomp-layout-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-top: var(--grid-line);
  position: relative;
}

.decomp-left {
  border-right: var(--grid-line);
  position: relative;
  background-color: var(--bg-primary);
}

@media (min-width: 1025px) {
  .decomp-left {
    position: sticky;
    top: 64px; /* fixed header height */
    height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
  }
  
  .decomp-sticky-inner {
    width: 90%;
    margin: 0 auto;
  }
}

.decomp-sticky-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.decomp-telemetry {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-secondary);
}

.decomp-telemetry-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #0d0d0d;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#decomp-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Preloader styling inside canvas container */
#decomp-preloader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.preloader-text {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-red);
}

.preloader-bar-bg {
  width: 200px;
  height: 4px;
  background-color: var(--border-color);
  position: relative;
}

#preloader-bar-fill {
  width: 0%;
  height: 100%;
  background-color: var(--accent-red);
  transition: width 0.1s linear;
}

#preloader-pct {
  font-size: 0.85rem;
  color: var(--fg-secondary);
}

.decomp-right {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}

.benefit-card {
  padding: 8rem 3rem; /* Expanded padding for longer scroll distance */
  border-bottom: var(--grid-line);
  transition: background-color 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  opacity: 0.35;
  transform: scale(0.97);
  transform-origin: left center;
}

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

.benefit-card.active {
  opacity: 1;
  transform: scale(1.0);
  background-color: rgba(18, 18, 18, 0.3);
}

.benefit-card.active .benefit-num {
  color: var(--accent-red);
}

.benefit-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.benefit-title {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #FFFFFF;
}

.benefit-desc {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Tablet & Mobile responsive styles */
@media (max-width: 1024px) {
  .decomp-layout-wrapper {
    grid-template-columns: 1fr;
    display: block; /* ensure block layout for sticky content flow */
  }
  
  .decomp-left {
    border-right: none;
    border-bottom: var(--grid-line);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 64px; /* stick below the fixed header */
    z-index: 50;
    background-color: var(--bg-primary);
  }

  .decomp-sticky-inner {
    max-width: 650px;
    margin: 0 auto;
    gap: 0.75rem; /* Tighter layout for mobile screens */
  }

  .decomp-telemetry-bottom {
    display: none; /* Hide bottom telemetry on mobile to maximize canvas height */
  }

  .decomp-right {
    position: relative;
    z-index: 10;
  }
  
  .decomp-right .benefit-card {
    min-height: auto;
    padding: 6rem 1.5rem; /* Generous padding for clean vertical scrolling */
    opacity: 1; /* Keep fully visible on mobile */
    transform: none;
  }

  .decomp-right .benefit-card.active {
    background-color: transparent;
  }
}

/* --- PRODUCT CONFIGURATOR (SECTION 2A) --- */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1024px) {
  .product-showcase {
    grid-template-columns: 1fr;
  }
}

.product-selector-list {
  display: flex;
  flex-direction: column;
  border-right: var(--grid-line);
}

@media (max-width: 1024px) {
  .product-selector-list {
    border-right: none;
    border-bottom: var(--grid-line);
  }
}

.product-selector-item {
  padding: 2.5rem 3rem;
  border-bottom: var(--grid-line);
  cursor: pointer;
  background: transparent;
  transition: all 0.3s;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-selector-item:last-child {
  border-bottom: none;
}

.product-selector-item.active {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent-red);
}

.product-selector-item:hover:not(.active) {
  background-color: rgba(18, 18, 18, 0.4);
}

.product-display-panel {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0A0A0A;
}

.product-image-frame {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: #050505;
  border: var(--grid-line);
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: grayscale(0.2) contrast(1.05);
  transition: opacity 0.4s ease;
  position: relative;
  z-index: 1;

  /* Linear gradients mask applied directly to the image's physical boundaries */
  -webkit-mask-image: 
    linear-gradient(to bottom, transparent, black 30px, black calc(100% - 30px), transparent),
    linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: 
    linear-gradient(to bottom, transparent, black 30px, black calc(100% - 30px), transparent),
    linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
  mask-composite: intersect;
}

.product-info-panel h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-info-panel p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- ROI CALCULATOR --- */
.roi-section {
  background-color: #070707;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-label-row label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.slider-val {
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--accent-red);
  font-size: 1.1rem;
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-color);
  outline: none;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-red);
  cursor: pointer;
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.radio-btn {
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--fg-secondary);
  padding: 1rem;
  cursor: pointer;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.2s;
}

.radio-btn.active {
  border-color: var(--accent-red);
  background-color: rgba(255, 42, 42, 0.05);
  color: #FFFFFF;
}

.calculator-outputs {
  background-color: var(--bg-secondary);
  border: var(--grid-line);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.output-telemetry-header {
  display: flex;
  justify-content: space-between;
  border-bottom: var(--grid-line);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.output-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.output-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.output-value {
  font-size: 3rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
}

.output-value-sub {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-red);
}

.calc-cta-row {
  margin-top: 1rem;
}

.calc-cta-row .btn {
  width: 100%;
}

/* --- HPPI SIMULATOR --- */
.simulator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .simulator-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-status-box {
  background-color: var(--bg-secondary);
  border: var(--grid-line);
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-mono);
}

.sim-status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sim-status-row:last-child {
  margin-bottom: 0;
}

.simulator-screen {
  background-color: #030303;
  border: 2px solid var(--border-color);
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: var(--fg-muted);
}

.graph-area {
  flex-grow: 1;
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.graph-grid-line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.03);
}

.graph-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.curve-path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke 0.3s;
}

.ideal-corridor {
  fill: rgba(0, 255, 102, 0.05);
  stroke: rgba(0, 255, 102, 0.15);
  stroke-dasharray: 4 4;
}

.graph-label-y {
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: rotate(-90deg) translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-muted);
}

.graph-label-x {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-muted);
}

/* --- MACHINE SELECTOR --- */
.selector-wrapper {
  background-color: var(--bg-secondary);
  border: var(--grid-line);
  margin-top: 3rem;
  padding: 3rem;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.selector-header {
  border-bottom: var(--grid-line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selector-step-indicator {
  font-family: var(--font-mono);
  color: var(--accent-red);
}

.selector-question-box {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.selector-question-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.selector-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .selector-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .selector-options {
    grid-template-columns: 1fr;
  }
}

.selector-option-btn {
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--fg-secondary);
  padding: 1.5rem 1rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

.selector-option-btn:hover {
  border-color: var(--fg-primary);
  background-color: var(--bg-tertiary);
}

.selector-option-btn.active {
  border-color: var(--accent-red);
  background-color: rgba(255, 42, 42, 0.08);
  color: #FFFFFF;
}

.selector-slider-container {
  max-width: 500px;
}

.selector-nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: var(--grid-line);
  padding-top: 1.5rem;
}

.selector-result {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .selector-result {
    grid-template-columns: 1fr;
  }
}

.selector-result-img {
  width: 100%;
  aspect-ratio: 1;
  border: var(--grid-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.selector-result-img img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  filter: grayscale(0.2) contrast(1.1);
}

.selector-result-info h4 {
  font-size: 2.5rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.selector-result-spec {
  list-style: none;
  margin: 1.5rem 0;
}

.selector-result-spec li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
}

/* --- TECHNICAL SPECS & RANGES (SECTION 3 & 4) --- */
.specs-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1024px) {
  .specs-panel {
    grid-template-columns: 1fr;
  }
}

.specs-column-left {
  padding: 4rem 3rem;
  border-right: var(--grid-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .specs-column-left {
    border-right: none;
    border-bottom: var(--grid-line);
  }
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: var(--grid-line);
}

@media (max-width: 640px) {
  .specs-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }
}

.spec-item-box {
  padding: 3rem 2rem;
  border-bottom: var(--grid-line);
  border-right: var(--grid-line);
}

.spec-item-box:nth-child(2n) {
  border-right: none;
}

@media (max-width: 640px) {
  .spec-item-box {
    border-right: none;
  }
}

.spec-item-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* --- PARTNER SECTION & CONTACT FORM (SECTION 5) --- */
.partner-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 1024px) {
  .partner-section {
    grid-template-columns: 1fr;
  }
}

.partner-text-panel {
  padding: 6rem 3rem;
  border-right: var(--grid-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1024px) {
  .partner-text-panel {
    border-right: none;
    border-bottom: var(--grid-line);
  }
}

.partner-services {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-card {
  border-left: 2px solid var(--accent-red);
  padding-left: 1.5rem;
}

.service-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.contact-form-panel {
  padding: 6rem 3rem;
  background-color: #070707;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-title {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.form-subtitle {
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--fg-secondary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.field-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--fg-secondary);
}

.form-input {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  border-radius: 0;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-red);
}

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

.contact-direct {
  margin-top: 3rem;
  border-top: var(--grid-line);
  padding-top: 2rem;
}

.contact-direct p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.contact-direct a {
  color: var(--accent-red);
  text-decoration: none;
}

.contact-direct a:hover {
  text-decoration: underline;
}

/* --- FOOTER --- */
/* --- FOOTER --- */
.footer {
  padding: 4rem 3rem;
  background-color: var(--bg-primary);
  border-top: var(--grid-line);
}

.footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

.footer p strong {
  color: #FFFFFF;
}

.footer a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

.footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer__note {
  color: var(--fg-muted) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#open_preferences_center {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted) !important;
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.2s;
}

#open_preferences_center:hover {
  color: var(--accent-red) !important;
  text-decoration: underline;
}

.footer-bottom-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.footer-bottom-row a {
  color: var(--fg-muted);
}

.footer-bottom-row a:hover {
  color: var(--accent-red);
}

/* --- COMPARISON TABLE --- */
.bg-darker {
  background-color: #080808;
}

.comparison-grid {
  display: flex;
  flex-direction: column;
  border: var(--grid-line);
}

.comp-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr 1.2fr;
  border-bottom: var(--grid-line);
}

.comp-row:last-child {
  border-bottom: none;
}

.comp-row.header {
  background-color: var(--bg-secondary);
  font-weight: bold;
}

.comp-row.header .comp-col {
  color: #FFFFFF;
}

.comp-col {
  padding: 1.5rem;
  border-right: var(--grid-line);
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.comp-col:last-child {
  border-right: none;
}

.comp-col.col-feature {
  color: #FFFFFF;
}

.comp-col.col-electric {
  background-color: rgba(255, 42, 42, 0.015);
}

.font-bold {
  font-weight: bold;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-radius: 0;
}

.badge-green {
  background-color: rgba(0, 255, 102, 0.08);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 102, 0.3);
}

.badge-red {
  background-color: rgba(255, 42, 42, 0.08);
  color: var(--accent-red);
  border: 1px solid rgba(255, 42, 42, 0.3);
}

.comp-cta-btn {
  width: 100%;
  font-size: 0.75rem !important;
  padding: 0.85rem 1rem !important;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .comp-row {
    grid-template-columns: 1fr;
  }
  
  .comp-row.header {
    display: none;
  }
  
  .comp-col {
    border-right: none;
    border-bottom: var(--grid-line);
    padding: 1.25rem 1.5rem;
  }
  
  .comp-col:last-child {
    border-bottom: none;
  }
  
  .comp-col.col-feature {
    background-color: var(--bg-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: var(--grid-line);
  }

  .comp-col[data-label]::before {
    content: attr(data-label) ":";
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
}

/* --- ANIMATION ENTRANTS --- */
.trigger-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.bleed-image-container {
  width: calc(100% + 6rem);
  margin-left: -3rem;
  margin-right: -3rem;
  margin-bottom: -4rem;
  border-top: var(--grid-line);
  overflow: hidden;
  display: flex;
}

.bleed-image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.2) contrast(1.05);
  transition: transform 0.5s ease;
}

.bleed-image-container:hover img {
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .bleed-image-container {
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -3rem;
  }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .trigger-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  img {
    transition: none !important;
    transform: none !important;
  }

  .product-image-frame img, .bleed-image-container img {
    transition: none !important;
  }
}