/* ==========================================================================
   Design Tokens: Corporate IT Specialist (Linear / Railway Inspired)
   ========================================================================== */
:root {
  --bg-main: #0c0d12;
  --bg-surface: #12141a;
  --bg-surface-elevated: #181b24;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.22);
  --border-highlight: #3b82f6;

  --text-pure: #ffffff;
  --text-body: #9ca3af;
  --text-dim: #525866;

  --accent-blue: #3b82f6;
  --accent-blue-soft: rgba(59, 130, 246, 0.12);
  --accent-green: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'Space Mono', monospace;

  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-pure);
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Engineering Background Grid */
.grid-backdrop {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 20%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
.corp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(12, 13, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-decoration: none;
}

.brand-name {
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: 0.08em;
}

.brand-divider {
  color: var(--text-dim);
}

.brand-service {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: none;
  gap: 2.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-pure);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-header {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.btn-header:hover {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary {
  background-color: var(--text-pure);
  color: #0c0d12;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: #e5e7eb;
}

.btn-secondary {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background-color: var(--bg-surface-elevated);
}

/* ==========================================================================
   Hero Section & Telemetry
   ========================================================================== */
.hero-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6.5rem 1.5rem 4rem;
  text-align: center;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-blue-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.highlight-text {
  color: #d1d5db;
  font-weight: 600;
}

.hero-summary {
  margin: 1.5rem auto 2.5rem;
  max-width: 680px;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.telemetry-strip {
  margin-top: 4.5rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.25rem 0;
  background: rgba(18, 20, 26, 0.4);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border-right: 1px solid var(--border-subtle);
}

.telemetry-item:last-child {
  border-right: none;
}

.telemetry-item .label {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.telemetry-item .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-pure);
}

/* ==========================================================================
   Section Boilerplate
   ========================================================================== */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.section-label {
  font-size: 0.75rem;
  color: var(--accent-blue);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-body);
  margin-top: 0.4rem;
  max-width: 620px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Interactive Systems Diagram
   ========================================================================== */
.system-diagram-container {
  margin-top: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
}

.diagram-canvas {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.diagram-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.col-header {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.node-card {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.node-card.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  margin-bottom: 0.5rem;
}

.node-type {
  color: var(--accent-blue);
  font-weight: 600;
}

.node-status.live {
  color: var(--accent-green);
}

.node-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  color: var(--text-body);
}

.node-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-pure);
}

.node-desc {
  font-size: 0.8rem;
  color: var(--text-body);
  margin-top: 0.25rem;
}

/* Central Orchestrator Box */
.core-engine-box {
  background: #0f1118;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.04);
}

.core-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #93c5fd;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.engine-process-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-badge {
  font-size: 0.65rem;
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  margin-top: 0.15rem;
}

.step-body strong {
  font-size: 0.85rem;
  color: var(--text-pure);
  display: block;
}

.step-body p {
  font-size: 0.78rem;
  color: var(--text-body);
  margin-top: 0.15rem;
}

/* ==========================================================================
   Solutions Grid
   ========================================================================== */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.solution-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.solution-card:hover {
  border-color: var(--border-active);
}

.solution-icon {
  font-size: 0.8rem;
  color: var(--accent-blue);
}

.solution-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-pure);
  margin: 0.85rem 0 0.5rem;
}

.solution-text {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.6;
}

.solution-specs {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Operational Impact Grid (#roi)
   ========================================================================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.impact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2.25rem 2rem;
}

.impact-stat {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.75rem;
}

.impact-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.impact-desc {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Consultation Form
   ========================================================================== */
.consultation-wrap {
  display: flex;
  justify-content: center;
}

.consultation-box {
  width: 100%;
  max-width: 780px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3.5rem;
}

.consultation-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-col label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.corp-input {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  color: var(--text-pure);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.corp-input:focus {
  border-color: var(--accent-blue);
}

.select-input {
  color: var(--text-body);
}

.full-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem;
}

/* ==========================================================================
   Floating Scroll to Top Button
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.2s ease;
  z-index: 99;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  color: var(--text-pure);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.corp-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Responsive Queries */
@media (max-width: 900px) {
  .diagram-canvas, .systems-grid, .impact-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .telemetry-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .telemetry-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
  }
  .telemetry-item:last-child {
    border-bottom: none;
  }
  .consultation-box {
    padding: 2rem 1.5rem;
  }
  .corp-footer {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}