*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --border: rgba(255,255,255,0.07);
  --fg: #e8e8ed;
  --fg-muted: #7a7a8c;
  --accent: #00f0ff;
  --accent-dim: rgba(0,240,255,0.12);
  --green: #00e87a;
  --green-dim: rgba(0,232,122,0.12);
  --red: #ff4d6a;
  --orange: #ff9f43;
  --font: 'Syne', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
  --radius: 10px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 8vw;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--accent); }
}

.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  color: var(--fg);
}

.headline-accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 46ch;
  line-height: 1.7;
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,240,255,0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

.meta-sep {
  color: var(--border);
}

/* DIAGRAM */
.diagram-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.diagram-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
}

.diagram-node {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.6rem;
}

.node-icon {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.hosted .node-icon { color: var(--accent); }
.customer .node-icon { color: var(--green); }
.provider .node-icon { color: var(--orange); }

.node-text {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
}

.node-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-top: 0.15rem;
}

.diagram-arrow {
  text-align: center;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--fg-muted);
  padding: 0.3rem 0;
}

.diagram-caption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--green);
  text-align: center;
}

/* MANIFESTO */
.manifesto {
  padding: 6rem 8vw;
  border-top: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

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

.rule-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  white-space: nowrap;
}

.manifesto-statement {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--fg);
  font-weight: 500;
}

/* BOUNDARY / STEPS */
.boundary {
  padding: 6rem 8vw;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.boundary-aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.aside-card {
  background: var(--green-dim);
  border: 1px solid rgba(0,232,122,0.2);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
}

.aside-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.aside-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.aside-detail {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* COMPETITORS */
.competitors {
  padding: 6rem 8vw;
  border-top: 1px solid var(--border);
}

.competitors-header {
  margin-bottom: 2.5rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comp-table thead tr {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 500;
}

.comp-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.comp-table tbody tr:last-child {
  border-bottom: none;
}

.comp-table tbody tr:hover {
  background: var(--bg-card);
}

.comp-table td {
  padding: 1rem 1.2rem;
  color: var(--fg-muted);
  vertical-align: middle;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 160px;
}

.product-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.rr-logo {
  background: var(--accent-dim);
  border-color: rgba(0,240,255,0.3);
  color: var(--accent);
}

.product-name {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.88rem;
}

.row-highlight td {
  color: var(--fg);
}

.cell-good { color: var(--green); }
.cell-warn { color: var(--orange); }
.cell-bad { color: var(--red); }
.control-best { color: var(--accent); font-weight: 700; }

.comp-footer-note {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* CLOSING */
.closing {
  padding: 8rem 8vw;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.close-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 2rem;
}

.close-headline {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.close-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.close-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.link-item:hover {
  color: var(--accent);
}

.link-icon {
  font-size: 0.9rem;
}

/* FOOTER */
.footer {
  padding: 2rem 8vw;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,240,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--fg);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 6vw;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

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

  .boundary-aside {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .close-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 5vw;
  }

  .comp-table th:first-child,
  .comp-table td:first-child {
    min-width: 130px;
  }
}