:root { color-scheme: light; scroll-behavior: smooth; }
:root.dark { color-scheme: dark; }
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bui-color-background-full);
  color: var(--bui-color-text-primary);
  font-family: var(--exfinix-font-sans);
  font-size: 15px;
  line-height: 1.65;
  font-weight: var(--exfinix-weight-message);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--exfinix-panel-ground);
  backdrop-filter: blur(var(--exfinix-panel-blur));
  -webkit-backdrop-filter: blur(var(--exfinix-panel-blur));
  border-bottom: 1px solid var(--exfinix-edge);
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--exfinix-weight-title);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand svg { width: 26px; height: 26px; flex-shrink: 0; }

.brand-badge {
  font-size: 12px;
  font-weight: var(--exfinix-weight-text);
  color: var(--bui-color-text-secondary);
  padding: 2px 10px;
  border-radius: var(--exfinix-radius-button);
  border: 1px solid var(--exfinix-edge);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  padding: 6px 13px;
  border-radius: var(--exfinix-radius-button);
  font-size: 14px;
  font-weight: var(--exfinix-weight-text);
  color: var(--bui-color-text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--exfinix-fill-hover);
  color: var(--bui-color-text-primary);
}

.nav a.nav-cta {
  color: var(--bui-color-text-primary);
  border: 1px solid var(--exfinix-composer-border);
}

.hero {
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--exfinix-edge);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--exfinix-radius-button);
  border: 1px solid var(--exfinix-edge);
  background: var(--exfinix-surface-card);
  font-size: 12px;
  color: var(--bui-color-text-secondary);
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

h1 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: var(--exfinix-weight-title);
}

.lead {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--bui-color-text-secondary);
  max-width: 540px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--exfinix-radius-button);
  font-size: 14px;
  font-weight: var(--exfinix-weight-title);
  border: 1px solid var(--exfinix-composer-border);
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--bui-color-text-primary);
  color: var(--bui-color-background-full);
  border-color: var(--bui-color-text-primary);
}

.btn-primary:hover { opacity: 0.88; }
.btn-secondary:hover { background: var(--exfinix-fill-hover); }

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--bui-color-text-secondary);
}

.studio-window {
  border: 1px solid var(--exfinix-composer-border);
  border-radius: 14px;
  background: var(--exfinix-surface-card);
  overflow: hidden;
}

.studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--exfinix-edge);
  font-size: 12px;
  color: var(--bui-color-text-secondary);
}

.window-dots { display: flex; gap: 6px; }
.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--exfinix-composer-border);
}

.studio-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-card {
  border: 1px solid var(--exfinix-edge);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bui-color-background-full);
}

.node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.node-kind {
  font-family: var(--exfinix-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--exfinix-edge);
  color: var(--bui-color-text-secondary);
}

.node-title {
  font-weight: var(--exfinix-weight-title);
  font-size: 13px;
}

.node-desc {
  font-size: 12.5px;
  color: var(--bui-color-text-secondary);
  margin: 0;
}

.node-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  font-size: 11.5px;
  color: var(--bui-color-text-secondary);
}

.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--exfinix-edge);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: var(--exfinix-weight-title);
}

.section-head p {
  margin: 0;
  color: var(--bui-color-text-secondary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.card {
  border: 1px solid var(--exfinix-edge);
  border-radius: 12px;
  padding: 22px;
  background: var(--exfinix-surface-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-tag {
  font-family: var(--exfinix-font-mono, ui-monospace, monospace);
  font-size: 11.5px;
  color: var(--bui-color-text-secondary);
}

.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: var(--exfinix-weight-title);
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--bui-color-text-secondary);
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--bui-color-text-secondary);
  font-size: 14px;
}

.list li { margin-bottom: 6px; }

.price-amount {
  font-size: 32px;
  font-weight: var(--exfinix-weight-title);
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}

.price-unit {
  font-size: 13px;
  font-weight: var(--exfinix-weight-text);
  color: var(--bui-color-text-secondary);
}

.entity-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  border: 1px solid var(--exfinix-edge);
  border-radius: 14px;
  padding: 28px;
  background: var(--exfinix-surface-card);
}

.kv-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--exfinix-edge);
  font-size: 13.5px;
}

.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-key { color: var(--bui-color-text-secondary); }
.kv-val { font-weight: var(--exfinix-weight-title); text-align: right; }

.prose {
  max-width: 760px;
  padding: 56px 0;
}

.prose h1 { font-size: 32px; margin-bottom: 10px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--bui-color-text-secondary); font-size: 14.5px; }

footer {
  margin-top: auto;
  padding: 28px 0;
  font-size: 13px;
  color: var(--bui-color-text-secondary);
}

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

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--bui-color-text-primary);
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2, .entity-box { grid-template-columns: 1fr; }
  h1 { font-size: 31px; }
}

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--exfinix-edge);
}

.page-hero h1 {
  font-size: 36px;
  margin-bottom: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--exfinix-edge);
  border-radius: 12px;
  background: var(--exfinix-surface-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--exfinix-edge);
}

.compare-table th {
  font-weight: var(--exfinix-weight-title);
  color: var(--bui-color-text-primary);
  background: var(--bui-color-background-full);
}

.compare-table td {
  color: var(--bui-color-text-secondary);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  color: var(--bui-color-text-primary);
  font-weight: var(--exfinix-weight-text);
}
