:root {
  --canvas: #f8f9f7;
  --surface: #ffffff;
  --surface-muted: #f3f5f2;
  --ink: #18181b;
  --muted: #71717a;
  --line: #dde2dc;
  --accent: #1f6f5b;
  --accent-soft: #e4f1ed;
  --amber: #b45309;
  --red: #b42318;
  --sidebar: #211f1a;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-panel: 0 24px 70px rgba(15, 23, 42, 0.07);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 91, 0.055), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--canvas) 46%, #f4f6f3 100%);
  color: var(--ink);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

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

code {
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1400px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  background: rgba(248, 249, 247, 0.86);
  border-bottom: 1px solid rgba(221, 226, 220, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark,
.provider-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--sidebar);
  color: #d4f2e9;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: #3f3f46;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
}

.site-nav a:hover {
  background: var(--surface-muted);
}

.nav-cta {
  background: var(--ink);
  color: #ffffff;
}

.site-nav .nav-cta:hover {
  background: #2b2b31;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
}

.section-shell {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(620px, 1.18fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding-top: 52px;
}

.section-kicker,
.tiny-label {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.safety-panel h2,
.deploy-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero h1 {
  margin-top: 18px;
  max-width: 10ch;
}

.hero-text {
  max-width: 560px;
  margin: 22px 0 0;
  color: #52525b;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: #195b4a;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #c8d0c7;
  background: var(--surface-muted);
}

.product-frame {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.preview-sidebar {
  background: var(--sidebar);
  color: #ffffff;
  padding: 18px;
}

.sidebar-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.sidebar-label {
  margin: 0 0 18px;
  color: #9ad6c6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sidebar-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.sidebar-card span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.6;
}

.sidebar-link {
  margin-top: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-link.active,
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.preview-main {
  background: var(--canvas);
  padding: 22px;
}

.preview-topbar,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preview-topbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.preview-topbar strong,
.table-toolbar strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}

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

.metrics-strip div,
.deploy-card div,
.safety-rules div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 16px;
}

.metrics-strip span,
.deploy-card span,
.table-toolbar span,
.copy-feedback {
  color: var(--muted);
  font-size: 12px;
}

.metrics-strip strong {
  display: block;
  margin-top: 8px;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.table-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow-x: auto;
}

.table-toolbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  padding: 14px 16px;
}

.mini-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.mini-table th,
.mini-table td {
  border-bottom: 1px solid rgba(221, 226, 220, 0.72);
  overflow: hidden;
  padding: 13px 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-table th:nth-child(1), .mini-table td:nth-child(1) { width: 90px; }
.mini-table th:nth-child(2), .mini-table td:nth-child(2) { width: 145px; }
.mini-table th:nth-child(3), .mini-table td:nth-child(3) { width: 150px; }
.mini-table th:nth-child(4), .mini-table td:nth-child(4) { width: 145px; }
.mini-table th:nth-child(5), .mini-table td:nth-child(5) { width: 96px; }

.mini-table th {
  color: #52525b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.success {
  border-color: rgba(31, 111, 91, 0.22);
  background: var(--accent-soft);
  color: #185545;
}

.status-pill.warning {
  border-color: rgba(180, 83, 9, 0.24);
  background: #fff7ed;
  color: var(--amber);
}

.status-pill.danger {
  border-color: rgba(180, 35, 24, 0.2);
  background: #fff1f2;
  color: var(--red);
}

.status-pill.neutral {
  background: var(--surface-muted);
  color: #52525b;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.mini-button.muted {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.split-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 36px;
  align-items: start;
}

.section-heading h2,
.safety-panel h2,
.deploy-copy h2 {
  font-size: clamp(34px, 4vw, 56px);
}

.section-heading p,
.safety-copy p,
.deploy-copy p {
  max-width: 65ch;
  margin: 18px 0 0;
  color: #52525b;
  font-size: 16px;
  line-height: 1.7;
}

.feature-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 20px;
}

.feature-row.large,
.feature-row.wide {
  grid-column: span 2;
  min-height: 168px;
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}

.feature-index {
  color: var(--accent);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.feature-row h3,
.timeline-step h3,
.provider-card h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.feature-row p,
.timeline-step p,
.provider-card p,
.check-list {
  margin: 10px 0 0;
  color: #52525b;
  font-size: 14px;
  line-height: 1.65;
}

.workflow-section {
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 30px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-step {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px;
}

.timeline-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--sidebar);
  color: #ffffff;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

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

.provider-card {
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
}

.sepay-card {
  background: linear-gradient(145deg, var(--surface), #eef7f3);
}

.misa-card {
  background: linear-gradient(145deg, var(--surface), #f8f6ef);
}

.provider-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding-left: 18px;
}

.check-list li::marker {
  color: var(--accent);
}

.safety-panel,
.deploy-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 32px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.safety-rules {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.safety-rules div {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  gap: 12px;
  align-items: center;
}

.safety-rules code {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.safety-rules span {
  color: #52525b;
  font-size: 14px;
}

.deploy-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-panel);
}

.deploy-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.deploy-card code {
  color: var(--ink);
  font-weight: 900;
}

.copy-feedback {
  min-height: 18px;
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
}

.footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 13px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .hero,
  .split-section,
  .safety-panel,
  .deploy-section {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .product-frame {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 28px, 1400px);
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    padding: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .section-shell {
    width: min(100% - 28px, 1400px);
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero h1,
  .section-heading h2,
  .safety-panel h2,
  .deploy-copy h2 {
    font-size: clamp(36px, 12vw, 48px);
    line-height: 1;
  }

  .product-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-main {
    padding: 16px;
  }

  .metrics-strip,
  .provider-grid,
  .feature-board {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row.large,
  .feature-row.wide {
    grid-column: auto;
  }

  .mini-table {
    min-width: 760px;
  }

  .table-card {
    overflow-x: auto;
  }

  .safety-rules div,
  .deploy-card div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .deploy-card div {
    display: grid;
  }

  .site-footer {
    width: min(100% - 28px, 1400px);
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .preview-topbar,
  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
