/* ============================================================
   hero.css — Cinematic Homepage Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-20);
  padding-top: 7rem;
  overflow: hidden;
}

/* ─── Background Layers ─── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero__gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(13,31,18,0.6) 0%, transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, transparent 30%, transparent 70%, var(--ink) 100%);
}

.hero__vignette {
  position: absolute;
  inset: 0;
  /* The background property was moved to .hero::before */
}

/* ─── Coordinate Watermark ─── */
.hero__coords {
  position: absolute;
  top: calc(5rem + var(--space-8));
  right: clamp(1.25rem, 3vw, 4rem);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1.2s forwards;
}

.hero__coord-item {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ghost);
  letter-spacing: var(--tracking-wider);
}

.hero__coord-divider { color: var(--ink-4); }

/* ─── Content Grid ─── */
.hero__content {
  position: relative;
  z-index: 2;
  align-items: end;
  row-gap: var(--space-16);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hero__eyebrow { margin-bottom: var(--space-4); }

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
}

.hero__headline em {
  font-style: italic;
  color: var(--harvest);
}

.hero__subhead {
  max-width: 480px;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--mist);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
}

/* ─── Instrument Panel ─── */
.hero__instruments {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8);
  background: rgba(17, 23, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inner);
}

.instrument {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-bottom: var(--space-6);
  border-bottom: var(--border-hairline);
}

.instrument:last-child { border-bottom: none; padding-bottom: 0; }

.instrument__value {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.instrument__unit {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--mist);
}

.instrument__bar {
  height: 2px;
  background: var(--ink-4);
  border-radius: 1px;
  overflow: hidden;
  margin-top: var(--space-2);
}

.instrument__bar-fill {
  height: 100%;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, var(--harvest-muted), var(--harvest));
  border-radius: 1px;
  animation: barFill 1.5s var(--ease-out-expo) 0.8s both;
}

@keyframes barFill {
  from { width: 0; }
  to   { width: var(--fill, 0%); }
}

.instrument__status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.instrument__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DD68C;
  box-shadow: 0 0 8px rgba(61,214,140,0.6);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(61,214,140,0.6); }
  50%       { opacity: 0.4; box-shadow: 0 0 2px rgba(61,214,140,0.2); }
}

.instrument__status-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #3DD68C;
  letter-spacing: var(--tracking-wide);
}

/* ─── Scroll Cue ─── */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--harvest), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .hero__content { align-items: start; }
  .hero__instruments { margin-top: var(--space-8); }
  .hero__coords { display: none; }
}

/* ============================================================
   sections.css — Process, Stats, Comparison
   ============================================================ */

/* ─── Process Section ─── */
.process-section { border-top: var(--border-hairline); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 120px 1px 1fr;
  gap: 0 var(--space-8);
  align-items: stretch;
  padding-block: var(--space-10);
  border-bottom: var(--border-hairline);
  position: relative;
}

.process-step:last-child { border-bottom: none; }

.process-step__num {
  display: flex;
  align-items: flex-start;
  padding-top: 3px;
}

.process-step__connector {
  width: 1px;
  background: var(--ink-4);
  position: relative;
  align-self: stretch;
}

.process-step__connector::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--harvest);
  box-shadow: 0 0 8px rgba(200,131,10,0.5);
}

.process-step__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-left: var(--space-8);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--white);
  line-height: var(--leading-snug);
}

.process-step__desc {
  font-size: var(--text-base);
  color: var(--mist);
  line-height: var(--leading-relaxed);
  max-width: 480px;
}

.process-step__spec {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.process-step__spec span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ghost);
  letter-spacing: var(--tracking-wide);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.process-step__spec span::before {
  content: '◆';
  font-size: 0.4em;
  color: var(--harvest-muted);
}

@media (max-width: 640px) {
  .process-step {
    grid-template-columns: 80px 1px 1fr;
    gap: 0 var(--space-4);
  }
  .process-step__content { padding-left: var(--space-4); }
}

/* ─── Stats Section ─── */
.stats-section { border-top: var(--border-hairline); }

.stat-instrument {
  padding: var(--space-10) var(--space-8);
  border-right: var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stat-instrument:last-of-type { border-right: none; }

.stat-instrument__readout {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.stat-instrument__pct {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  color: var(--harvest);
  font-weight: 300;
}

.stat-instrument__label {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--fog);
  font-weight: 500;
}

.stat-instrument__sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--mist);
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 768px) {
  .stat-instrument {
    border-right: none;
    border-bottom: var(--border-hairline);
    padding: var(--space-8) 0;
  }
}

/* ─── Comparison Table ─── */
.comparison-section { border-top: var(--border-hairline); }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-12);
}

.comparison-table thead {
  border-bottom: var(--border-hairline);
}

.comparison-table th {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--mist);
}

.comparison-table th:first-child { color: var(--ghost); }
.comparison-table th.th--us { color: var(--harvest); }

.comparison-table tbody tr {
  border-bottom: var(--border-hairline);
  transition: background var(--duration-fast);
}

.comparison-table tbody tr:hover { background: rgba(255,255,255,0.015); }

.comparison-table td {
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--mist);
  vertical-align: top;
  line-height: var(--leading-base);
}

.comparison-table td:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ghost);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.comparison-table td.td--us {
  color: var(--fog);
  font-weight: 500;
}

.comparison-table .td-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
}

.td-chip--green { background: rgba(61,214,140,0.1);  color: #3DD68C;          border: 1px solid rgba(61,214,140,0.2); }
.td-chip--amber { background: rgba(200,131,10,0.1);  color: var(--harvest-light); border: var(--border-accent); }
.td-chip--red   { background: rgba(255,80,80,0.08);  color: #FF6B6B;          border: 1px solid rgba(255,80,80,0.2); }

/* ─── Solutions Page: Datasheet Header ─── */
.page-hero {
  padding-top: 7rem;
  padding-bottom: var(--space-section);
  position: relative;
  overflow: hidden;
  border-bottom: var(--border-hairline);
}

.page-hero::before {
  content: 'VK-SERIES';
  position: absolute;
  bottom: -0.1em; right: 0;
  font-family: var(--font-mono);
  font-size: clamp(6rem, 10vw, 16rem);
  font-weight: 300;
  color: var(--ink-3);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--mist);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.breadcrumb a  { color: var(--mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--harvest); }
.breadcrumb__sep { color: var(--ghost); }

/* ─── Component Cards ─── */
.component-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-4);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 900px) { .component-grid { grid-template-columns: 1fr; } }

.component-card {
  background: var(--ink-2);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  transition: background var(--duration-base);
}

.component-card:hover { background: var(--ink-3); }

.component-card__badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--harvest);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: var(--border-accent);
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: var(--space-2);
}

.component-card__badge--core {
  color: #3DD68C;
  border-color: rgba(61,214,140,0.3);
}

.component-card__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--white);
  line-height: var(--leading-snug);
}

.component-card__desc {
  font-size: var(--text-base);
  color: var(--mist);
  line-height: var(--leading-relaxed);
  flex: 1;
}

/* ─── Spec Table ─── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  margin-top: var(--space-6);
}

.spec-table tr {
  border-bottom: var(--border-hairline);
  transition: background var(--duration-fast);
}

.spec-table tr:hover { background: rgba(255,255,255,0.02); }
.spec-table tr:last-child { border-bottom: none; }

.spec-table td {
  padding: var(--space-3) var(--space-4);
  vertical-align: top;
}

.spec-table td:first-child {
  color: var(--mist);
  width: 45%;
  padding-left: 0;
  letter-spacing: var(--tracking-wide);
}

.spec-table td:last-child {
  color: var(--fog);
  font-weight: 500;
}

/* ─── Config Tiers ─── */
.config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gutter);
}

@media (max-width: 900px) { .config-grid { grid-template-columns: 1fr; } }

.config-card {
  background: var(--ink-2);
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.config-card:hover {
  border-color: var(--ghost);
  box-shadow: var(--shadow-md);
}

.config-card--featured {
  border-color: var(--harvest-muted);
  background: var(--field);
}

.config-card--featured::before {
  content: 'Most Requested';
  position: absolute;
  top: -1px; left: var(--space-8);
  transform: translateY(-50%);
  background: var(--harvest);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-sm);
}

.config-card__tier {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--mist);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.config-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.config-card__price-amount {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: 300;
  color: var(--white);
  letter-spacing: var(--tracking-tight);
}

.config-card__price-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--mist);
  line-height: 1.3;
}

.config-card__includes-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--mist);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding-bottom: var(--space-4);
  border-bottom: var(--border-hairline);
}

.config-card__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.config-card__items li {
  font-size: var(--text-sm);
  color: var(--mist);
  display: flex;
  gap: var(--space-3);
  line-height: var(--leading-base);
}

.config-card__items li::before {
  content: '✓';
  color: var(--harvest);
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.config-card__disclaimer {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ghost);
  line-height: var(--leading-relaxed);
  padding: var(--space-4);
  background: var(--ink);
  border-radius: var(--radius-sm);
  border: var(--border-hairline);
}

/* ─── FAQ Accordion ─── */
.faq-item { border-bottom: var(--border-hairline); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--fog);
  transition: color var(--duration-fast);
}

.faq-trigger:hover { color: var(--white); }

.faq-trigger__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: var(--border-hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  transition: all var(--duration-base) var(--ease-out-expo);
  font-size: 1rem;
  line-height: 1;
}

.faq-item.is-open .faq-trigger__icon {
  background: var(--harvest);
  border-color: var(--harvest);
  color: var(--ink);
  transform: rotate(45deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-slow) var(--ease-out-expo);
}

.faq-item.is-open .faq-body { grid-template-rows: 1fr; }

.faq-body__inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding var(--duration-slow) var(--ease-out-expo);
}

.faq-item.is-open .faq-body__inner { padding-bottom: var(--space-6); }

.faq-body p {
  font-size: var(--text-base);
  color: var(--mist);
  line-height: var(--leading-relaxed);
  max-width: var(--container-text);
}

/* ─── Feature List ─── */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-8);
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--mist);
  line-height: var(--leading-base);
}

.feature-list li::before {
  content: '—';
  color: var(--harvest);
  flex-shrink: 0;
  font-family: var(--font-mono);
  margin-top: 1px;
}
