/* Apex Solution — Infrastructure spec-sheet
   Monospace-forward. Black + white + cyan. Grid lines visible. */
:root {
  --bg: #0a0b0d;
  --bg-2: #13151a;
  --bg-3: #1b1e24;
  --line: #2a2e36;
  --line-soft: #1f232a;
  --ink: #f4f4f5;
  --ink-2: #a8aab2;
  --muted: #6c6f78;
  --cyan: #22d3ee;
  --cyan-dim: #0891a5;
  --green: #86efac;
  --warn: #fbbf24;

  --f-sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", "Fira Code", "SF Mono", ui-monospace, monospace;

  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0, rgba(0,0,0,0.05) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.3) 0, rgba(0,0,0,0.05) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 2;
}

/* ============ NAV ============ */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar .ok { color: var(--green); }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-logo {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
  border-radius: 2px;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 2px;
  font-size: 12px;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: all .15s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--line); }
.nav-links a.active { color: var(--cyan); border-color: var(--cyan); }

.nav-cta {
  padding: 8px 16px !important;
  background: var(--cyan) !important;
  color: var(--bg) !important;
  font-weight: 600;
  border: 1px solid var(--cyan) !important;
}
.nav-cta:hover { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--bg) !important; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--cyan);
  color: var(--bg);
  border: 1px solid var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all .15s;
  cursor: pointer;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--cyan); }
.btn-ghost:hover { background: var(--cyan); color: var(--bg); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ HERO ============ */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero-top {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.hero-id {
  font-size: 11px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  padding-right: 24px;
  line-height: 1.5;
}
.hero-id .label {
  display: block;
  color: var(--cyan);
  margin-bottom: 4px;
}
.hero-title {
  font-family: var(--f-sans);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 20ch;
}
.hero-title .hi { color: var(--cyan); font-weight: 600; }

/* Spec table below hero */
.spec-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}
.spec {
  background: var(--bg);
  padding: 24px 20px;
}
.spec .k {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.spec .v {
  font-family: var(--f-sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.spec .v.cyan { color: var(--cyan); }
.spec .sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

.hero-desc {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.hero-desc p {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============ SERVICES AS SPEC ROWS ============ */
.services {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.sec-head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  margin-bottom: 56px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sec-head .idx {
  font-size: 11px;
  color: var(--cyan);
  line-height: 1.5;
}
.sec-head h2 {
  font-family: var(--f-sans);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sec-head .count {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.svc-table {
  border-top: 1px solid var(--line);
}
.svc-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 100px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: all .15s;
}
.svc-row:hover { background: var(--bg-2); padding-left: 20px; padding-right: 20px; }
.svc-row .id {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}
.svc-row .name {
  font-family: var(--f-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.svc-row .desc {
  font-family: var(--f-sans);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.svc-row .stat {
  font-size: 10px;
  color: var(--green);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.svc-row .stat::before { content: "● "; color: var(--green); }

/* ============ METRICS ============ */
.metrics {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.metric {
  background: var(--bg);
  padding: 40px 32px;
}
.metric .label {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.metric .num {
  font-family: var(--f-sans);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}
.metric .desc {
  font-family: var(--f-sans);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ============ CTA ============ */
.cta {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-inner .idx { font-size: 11px; color: var(--cyan); }
.cta-inner h2 {
  font-family: var(--f-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 22ch;
}

/* ============ FOOTER ============ */
.foot {
  padding: 60px 0 24px;
  color: var(--ink-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.foot-brand .logo {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.foot-brand .logo .cyan { color: var(--cyan); }
.foot-brand p { font-size: 13px; max-width: 320px; }
.foot-col h5 {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 8px; font-size: 13px; }
.foot-col a:hover { color: var(--cyan); }
.foot-bot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 880px) {
  .hero-top { grid-template-columns: 1fr; gap: 16px; }
  .hero-id { border-right: none; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .spec-block { grid-template-columns: 1fr 1fr; }
  .hero-desc { grid-template-columns: 1fr; gap: 28px; }
  .sec-head { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .sec-head .count { text-align: left; }
  .svc-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .svc-row .stat { text-align: left; }
  .metric-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-bot { flex-direction: column; gap: 6px; }
  .nav-links a { padding: 6px 10px; font-size: 11px; }
  .nav-cta { display: none; }
}

.in { animation: in .7s cubic-bezier(.2,.6,.2,1) both; }
.in.d1 { animation-delay: .08s; }
.in.d2 { animation-delay: .16s; }
.in.d3 { animation-delay: .24s; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
