/* WW Compute — marketing site
   Design system: dark technical, mint accent, Inter + JetBrains Mono */

:root {
  --bg:        #06080B;
  --bg-2:      #0A0E13;
  --surface:   #0E141B;
  --surface-2: #131B24;
  --border:    #1B242F;
  --border-2:  #263443;

  --text:      #E9EFF5;
  --text-2:    #A3B1C0;
  --text-3:    #6B7A8B;

  --accent:    #4FE3A8;
  --accent-2:  #2BC98C;
  --accent-dim: rgba(79, 227, 168, 0.10);
  --blue:      #5B93F5;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1200px;
  --pad: 24px;
}

*, *::before, *::after { 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.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.028em; }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.35; }

p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow.muted { color: var(--text-3); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 58ch;
}

.section-intro { max-width: 62ch; }
.section-intro p { margin-top: 20px; color: var(--text-2); font-size: 1.0625rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #04120C;
}
.btn-primary:hover { background: #6BEBB8; transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--border-2);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 16px; font-size: 0.875rem; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(140deg, var(--accent) 0%, #1E9E96 100%);
  display: grid; place-items: center;
  color: #04120C;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-2);
}
.nav-links a { transition: color .16s ease; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -340px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 760px;
  background: radial-gradient(ellipse at center, rgba(79,227,168,0.13) 0%, rgba(79,227,168,0.04) 38%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.30;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(60px, 8vw, 92px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stat { background: var(--bg-2); padding: 26px 24px; }
.stat-num {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 10px;
}

/* ---------- Sections ---------- */

section { padding: clamp(76px, 10vw, 118px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 56px; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
  transition: border-color .2s ease, background .2s ease;
}
.card:hover { border-color: var(--border-2); background: var(--surface-2); }
.card-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--accent-dim);
  border: 1px solid rgba(79,227,168,0.22);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--accent);
}
.card-icon svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.62; }

/* ---------- Spec table ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 14px;
}
.spec-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.spec-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.spec-table td.num { font-family: var(--mono); font-size: 0.84rem; color: var(--accent); text-align: right; width: 1%; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.perf-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.perf-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: var(--surface);
}
.perf-row dt { color: var(--text-2); font-size: 0.9375rem; margin: 0; }
.perf-row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ---------- Compare ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.compare-col {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 30px;
  background: var(--surface);
}
.compare-col.ours { border-color: rgba(79,227,168,0.32); background: linear-gradient(160deg, rgba(79,227,168,0.05), transparent 60%), var(--surface); }
.compare-col h3 { margin-bottom: 22px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.compare-col li {
  display: flex; gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.55;
}
.tick, .cross { flex-shrink: 0; width: 17px; height: 17px; margin-top: 3px; }
.tick { color: var(--accent); }
.cross { color: #6B7A8B; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 2px solid var(--border); padding-top: 22px; }
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 0.9rem; line-height: 1.58; }

/* ---------- Location ---------- */

.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.loc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.loc-fact { background: var(--surface); padding: 24px 22px; }
.loc-fact .stat-num { font-size: 1.5rem; }

/* ---------- CTA ---------- */

.cta-box {
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: clamp(44px, 6vw, 72px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(79,227,168,0.09), transparent 62%),
    var(--surface);
}
.cta-box h2 { max-width: 20ch; margin: 0 auto; }
.cta-box .lede { margin: 22px auto 0; text-align: center; max-width: 52ch; }
.cta-box .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 52px 0 44px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-meta { color: var(--text-3); font-size: 0.8125rem; max-width: 34ch; margin-top: 16px; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-2); font-size: 0.9rem; transition: color .16s ease; }
.footer-col a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .spec-grid, .loc-grid { grid-template-columns: 1fr; gap: 44px; }
  .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --pad: 18px; }
  .steps { grid-template-columns: 1fr; }
  .loc-facts { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
