/* ============================================================
   Tresidio — style.css
   DARK theme · near-black body with electric CYAN accent
   ============================================================ */

:root {
  --bg: #0B0E14;
  --bg-2: #0E141D;
  --bg-3: #111927;
  --bg-4: #14202D;
  --border: #1E2A38;
  --border-strong: #164E63;
  --text: #E8EAED;
  --muted: #9AA6B5;
  --accent: #22D3EE;
  --accent-dark: #0E7490;
  --accent-light: #67E8F9;
  --accent-deep: #164E63;
  --green: #22C55E;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-light);
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}

p {
  margin: 0 0 16px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* ============================================================
   SERVER-RACK NAVIGATION
   ============================================================ */

.rack-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.rack-nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.rack-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rack-monogram {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent-deep);
  border: 2px solid var(--accent);
  color: var(--accent-light);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.rack-nameplate {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.rack-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--text);
}

.rack-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.rack-leds {
  display: flex;
  gap: 5px;
  margin-left: 2px;
}

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.led-green {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.led-cyan {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.rack-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.rack-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 4px;
}

.rack-link:hover {
  color: var(--accent-light);
  background: var(--bg-2);
  border-color: var(--border);
}

.port-marker {
  width: 7px;
  height: 7px;
  background: var(--accent-dark);
  border: 1px solid var(--accent);
  display: inline-block;
}

.rack-power {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
}

.rack-power:hover {
  background: var(--accent);
  color: var(--bg);
}

.rack-handle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 9px 8px;
  cursor: pointer;
  margin-left: auto;
}

.rack-handle span {
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.rack-status {
  max-width: 1160px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.status-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.status-right {
  color: var(--muted);
}

/* ============================================================
   ARCHITECTURE LAYER-STACK HERO
   ============================================================ */

.arch-stack {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.arch-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.arch-head h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.arch-head .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}

.arch-layers {
  position: relative;
  max-width: 820px;
}

.layer {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.layer-index {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  display: grid;
  place-items: center;
  padding: 10px 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--accent);
}

.layer-1 .layer-index { background: var(--accent-deep); color: var(--accent-light); }
.layer-2 .layer-index { background: var(--accent-dark); color: var(--text); }
.layer-3 .layer-index { background: #0A8EA8; color: var(--bg); }
.layer-4 .layer-index { background: var(--accent); color: var(--bg); }

.layer-body {
  padding: 16px 20px;
  flex: 1;
}

.layer-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.layer-1 { background: #0D1F2B; }
.layer-2 { background: #0F2836; }
.layer-3 { background: #113041; }
.layer-4 { background: #123549; }

.layer-1 .layer-title { color: var(--accent-light); }
.layer-2 .layer-title { color: var(--accent-light); }
.layer-3 .layer-title { color: var(--accent-light); }
.layer-4 .layer-title { color: #A5F3FC; }

.layer-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.layer-bullets li {
  font-size: 13px;
  color: var(--text);
  position: relative;
  padding-left: 12px;
}

.layer-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.layer-connector {
  display: block;
  width: 2px;
  height: 16px;
  background: var(--accent-dark);
  margin: 2px auto;
  position: relative;
}

.layer-connector::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent-dark);
}

.arch-metric {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-3);
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.arch-metric-num {
  display: block;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.arch-metric-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   STATEMENT ROW
   ============================================================ */

.statement-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 72px 24px;
}

.statement {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.statement::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 28px;
}

.statement-sub {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 17px;
  color: var(--muted);
}

/* ============================================================
   SECTION HEAD + SHARED SECTION SPACING
   ============================================================ */

.capabilities-section,
.compare-section,
.results-section,
.process-section,
.contact-section {
  padding: 88px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.compare-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.results-section {
  background: var(--bg);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
}

/* ============================================================
   TABBED CAPABILITY PANELS
   ============================================================ */

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.tab {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  cursor: pointer;
  position: relative;
  top: 1px;
}

.tab:hover {
  color: var(--accent-light);
}

.tab.active {
  background: var(--bg-3);
  border-color: var(--accent-dark);
  color: var(--accent);
  font-weight: 700;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: var(--accent);
  border-radius: 6px 6px 0 0;
}

.tab-panels {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 0 8px 8px 8px;
  padding: 36px 40px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-light);
}

.tab-panel p {
  color: var(--text);
}

.panel-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.panel-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 15px;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  background: var(--accent-deep);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.compare-table {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

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

.compare-head-row .compare-cell {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 16px 18px;
}

.compare-cell {
  padding: 15px 18px;
  font-size: 15px;
}

.compare-label {
  font-weight: 700;
  color: var(--text);
  background: var(--bg-3);
}

.compare-col-a {
  color: var(--muted);
  background: var(--bg-2);
}

.compare-col-b {
  color: var(--text);
  background: var(--bg-4);
  border-left: 1px solid var(--accent-dark);
}

.compare-head-row {
  background: var(--bg-3);
  border-bottom: 2px solid var(--accent-dark);
}

.compare-head-row .compare-col-b {
  color: var(--accent-light);
}

.compare-head-row .compare-col-a {
  color: var(--muted);
}

.compare-head-row .compare-label {
  background: transparent;
}

/* ============================================================
   BIG-NUMERAL STAT COLUMNS
   ============================================================ */

.stat-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  text-align: center;
  padding: 40px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
}

.stat-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.stat-suffix {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   NUMBERED DELIVERY PROCESS LIST
   ============================================================ */

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
  margin: 0 auto;
}

.process-step {
  position: relative;
  padding: 0 0 40px 96px;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 8px;
  bottom: -8px;
  width: 2px;
  background: var(--accent-dark);
}

.process-step:last-child::before {
  display: none;
}

.process-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  background: var(--bg-3);
  border: 2px solid var(--accent);
  border-radius: 6px;
}

.process-step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.process-step p {
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-deep);
}

.form-field textarea {
  resize: vertical;
}

.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--bg);
}

.btn-ghost {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent-dark);
  border-radius: 6px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #FB7185;
}

/* ============================================================
   SPLIT CTA BAND
   ============================================================ */

.cta-band {
  background: var(--accent-deep);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.cta-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px;
}

.cta-left h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-left p {
  color: #C9E7EE;
  margin: 0;
}

.cta-right {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg);
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-brand .rack-monogram {
  margin-bottom: 18px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  max-width: 260px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.footer-col a {
  color: var(--muted);
  font-size: 15px;
}

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

.footer-contact p {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .arch-stack { padding-top: 48px; }
  .arch-head h1 { font-size: 34px; }
  .arch-metric { position: static; transform: none; width: 100%; margin-top: 20px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
  .stat-columns { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-right { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .rack-handle { display: flex; }
  .rack-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-2);
    border-bottom: 1px solid var(--accent-dark);
    display: none;
    padding: 8px 16px 16px;
    gap: 2px;
    z-index: 10;
  }
  .rack-links.open { display: flex; }
  .rack-link { padding: 12px 8px; border-bottom: 1px solid var(--border); }
  .rack-power { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .panel-list { grid-template-columns: 1fr; }
  .statement { font-size: 22px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row .compare-cell { border-left: none; }
  .compare-col-a, .compare-col-b { border-top: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section-head h2 { font-size: 26px; }
  .tab-panels { padding: 28px 22px; }
}
