/* ==================== HOME PAGE — Industrial ==================== */

/* HERO TERMINAL */
.hero-terminal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 49px,
      rgba(51, 51, 51, 0.15) 49px,
      rgba(51, 51, 51, 0.15) 50px
    );
  pointer-events: none;
}

.terminal-badge {
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.terminal-heading {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: var(--light);
}

.terminal-heading .line-num {
  color: var(--border);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-right: 16px;
  vertical-align: top;
  display: inline-block;
  margin-top: 1.8rem;
}

.terminal-heading .hl {
  color: var(--primary);
}

.terminal-sub {
  color: var(--gray);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.terminal-prompt {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 16px 20px;
  margin-bottom: 40px;
  max-width: 640px;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--light);
  min-height: 1.5em;
}

.prompt-symbol {
  color: var(--primary);
  font-weight: 700;
}

.prompt-text {
  color: var(--light);
}

.cursor-blink {
  color: var(--primary);
  animation: cursorBlink 1s step-end infinite;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* METRICS BAR */
.metrics-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.metric:last-child {
  border-right: none;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* SECTION HEADERS */
.section-header {
  margin-bottom: 50px;
}

.section-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* SPECS SECTION */
.specs-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.specs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

.spec-block {
  display: flex;
  gap: 20px;
  padding: 32px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--darker);
  transition: background 0.2s;
}

.spec-block:hover {
  background: var(--dark);
}

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

.spec-block:nth-last-child(-n+2) {
  border-bottom: none;
}

.spec-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.spec-content h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--light);
}

.spec-content p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-tags span {
  padding: 3px 10px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-block:hover .spec-tags span {
  border-color: rgba(194, 149, 74, 0.3);
  color: var(--primary);
}

/* COMPARISON MATRIX */
.matrix-section {
  padding: 100px 0;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}

.matrix-table-wrap {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.matrix-table th,
.matrix-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.matrix-table th {
  background: var(--surface);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  color: var(--gray);
}

.matrix-table td {
  color: var(--gray);
  background: var(--darker);
}

.matrix-table th.matrix-hl {
  color: var(--primary);
  background: rgba(194, 149, 74, 0.08);
}

.matrix-table td.matrix-hl {
  color: var(--light);
  background: rgba(194, 149, 74, 0.06);
  font-weight: 600;
}

/* PROCESS SECTION */
.process-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 50px;
}

.process-step {
  padding: 32px;
  border-right: 1px solid var(--border);
  background: var(--darker);
}

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

.step-marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.step-content h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--light);
}

.step-content p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.7;
}

.process-code {
  border: 1px solid var(--border);
  background: var(--darker);
}

.code-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 1px;
  background: var(--surface);
}

.process-code pre {
  padding: 24px;
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

.process-code code {
  color: #c0c0c0;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* PRICING STRIP */
.pricing-strip {
  padding: 100px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.tier-block {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  background: var(--darker);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-block:last-child {
  border-right: none;
}

.tier-featured {
  background: var(--dark);
}

.tier-flag {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--darker);
  text-align: center;
  padding: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.tier-featured .tier-header {
  margin-top: 20px;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.tier-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tier-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.tier-price small {
  font-size: 0.7rem;
  color: var(--gray);
  font-weight: 400;
}

.tier-specs {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.tier-specs li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.5);
  font-size: 0.8rem;
}

.tier-specs li:last-child {
  border-bottom: none;
}

.spec-key {
  color: var(--gray);
}

.spec-val {
  color: var(--light);
  font-weight: 500;
}

.tier-block .btn {
  width: 100%;
  text-align: center;
}

/* STATUS SECTION */
.status-section {
  padding: 100px 0;
}

.status-panel {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.status-header {
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot-live {
  width: 8px;
  height: 8px;
  background: var(--primary);
  display: inline-block;
  animation: cursorBlink 2s step-end infinite;
}

.status-body {
  padding: 0;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

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

.status-key {
  color: var(--gray);
}

.status-val {
  color: var(--light);
  font-weight: 500;
}

.val-live {
  color: var(--success);
}

.val-progress {
  color: var(--primary);
}

.val-dev {
  color: var(--gray);
}

.status-cta {
  padding: 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.status-cta p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
  .terminal-heading {
    font-size: 3rem;
  }

  .terminal-heading .line-num {
    margin-top: 1.2rem;
  }

  .specs-layout {
    grid-template-columns: 1fr;
  }

  .spec-block {
    border-right: none;
  }

  .spec-block:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .spec-block:last-child {
    border-bottom: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

  .tiers-grid {
    grid-template-columns: 1fr;
  }

  .tier-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .tier-block:last-child {
    border-bottom: none;
  }

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

  .metric:nth-child(2) {
    border-right: none;
  }

  .metric:nth-child(1),
  .metric:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .hero-terminal {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .terminal-heading {
    font-size: 2rem;
  }

  .terminal-heading .line-num {
    font-size: 0.8rem;
    margin-top: 0.8rem;
    margin-right: 10px;
  }

  .terminal-sub {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .specs-section,
  .matrix-section,
  .process-section,
  .pricing-strip,
  .status-section {
    padding: 60px 0;
  }
}

@media (max-width: 380px) {
  .terminal-heading {
    font-size: 1.5rem;
  }

  .terminal-heading .line-num {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .metric:last-child {
    border-bottom: none;
  }
}
