:root {
  color-scheme: light;
  --ink: #101319;
  --muted: #667085;
  --soft: #eef2f6;
  --line: #d8dee8;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --accent: #1f5eff;
  --accent-dark: #1746bd;
  --green: #0f766e;
  --gold: #b7791f;
  --shadow: 0 22px 60px rgba(16, 19, 25, .10);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(#f8fafc 1px, transparent 1px),
    linear-gradient(90deg, #f8fafc 1px, transparent 1px),
    #ffffff;
  background-size: 56px 56px;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(31, 94, 255, .22);
  outline-offset: 3px;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(216, 222, 232, .9);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: #111827;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .18);
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav a,
nav button {
  font: inherit;
  color: #475467;
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 650;
}

nav a:hover,
nav button:hover { color: var(--ink); }

.site-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #475467;
}

.hero {
  padding: 76px 0 44px;
}

.hero-enterprise {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 760px; }

.eyebrow {
  color: var(--green);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  margin: 0 0 14px;
}

h1 {
  margin: 0 0 22px;
  font-size: 60px;
  line-height: .98;
  letter-spacing: 0;
}

h2 { margin: 0 0 12px; }

.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.55;
  margin: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 94, 255, .18);
}

.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.button.secondary,
.button.small {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover,
.button.small:hover {
  background: #f8fafc;
  border-color: #b8c2d2;
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
}

.transfer-console {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: #475467;
  font-weight: 700;
}

.console-top strong {
  color: var(--green);
  position: relative;
  padding-left: 14px;
}

.console-top strong::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--green);
}

.console-meter {
  height: 12px;
  margin: 26px 0;
  border-radius: 999px;
  background: #e7edf5;
  overflow: hidden;
}

.console-meter span {
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.console-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.console-grid span,
.grid span,
.trust-strip span,
.plan-meta,
.page-head p {
  color: var(--muted);
}

.console-grid span,
.console-grid strong {
  display: block;
}

.console-grid strong {
  margin-top: 10px;
  font-size: 20px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: white;
  overflow: hidden;
}

.trust-strip div {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,.14);
}

.trust-strip div:last-child { border-right: 0; }

.trust-strip strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.trust-strip span { color: #cbd5e1; }

.grid,
.plans,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.grid > div,
.plan,
.panel,
.auth,
.resource,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 32px rgba(16, 19, 25, .05);
}

.feature-grid strong {
  display: block;
  font-size: 18px;
}

.grid span {
  display: block;
  margin-top: 10px;
  line-height: 1.5;
}

.page-head {
  margin-bottom: 32px;
  max-width: 760px;
}

.page-head-wide { max-width: 920px; }

.page-head h1 {
  font-size: 54px;
  line-height: 1;
}

.page-head p {
  line-height: 1.55;
  font-size: 18px;
}

.plans { align-items: stretch; }

.early-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -8px 0 36px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 94, 255, .18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  color: var(--ink);
}

.early-pricing strong {
  font-size: 15px;
  white-space: nowrap;
}

.early-pricing span {
  color: var(--muted);
  line-height: 1.45;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan.featured {
  border-color: rgba(31, 94, 255, .45);
  box-shadow: 0 20px 46px rgba(31, 94, 255, .12);
}

.plan-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1746bd;
  background: #e8efff;
  font-size: 12px;
  font-weight: 850;
}

.price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.standard-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.standard-price del {
  color: #667085;
  text-decoration-thickness: 2px;
}

.price {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  margin: 0;
}

.save-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #11613a;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 850;
}

.plan-limit {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan form,
form { margin: 0; }

.plan .button,
.plan form .button { width: 100%; }

.auth {
  max-width: 460px;
  margin: 26px auto 0;
}

.auth h1 { font-size: 42px; }

.resource-shell {
  max-width: 840px;
  margin: 24px auto 0;
  padding: 38px;
}

.account-head {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(16, 19, 25, .05);
}

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

label {
  display: block;
  font-weight: 700;
  margin: 14px 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  background: white;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input[type="file"] {
  padding: 10px;
}

.notice {
  margin: 16px 0;
  color: var(--muted);
}

.notice.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.verify-notice {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -18px 0 30px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(16, 19, 25, .04);
}

.admin-tabs a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #475467;
  text-decoration: none;
  font-weight: 800;
}

.admin-tabs a:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-grid div {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
  box-shadow: 0 12px 30px rgba(16, 19, 25, .04);
}

.stat-grid span,
.muted,
.detail-list dt {
  color: var(--muted);
}

.stat-grid strong {
  display: block;
  margin-top: 14px;
  font-size: 32px;
  line-height: 1;
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
}

.filters input,
.filters select {
  max-width: 320px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 850;
}

.pill.ok {
  color: #0f766e;
  border-color: #99f6e4;
  background: #ecfdf5;
}

.pill.danger {
  color: #991b1b;
  border-color: #fecaca;
  background: #fff1f2;
}

.danger-button {
  background: #b91c1c;
  border-color: #b91c1c;
}

.danger-button:hover {
  background: #991b1b;
  border-color: #991b1b;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.inline-form {
  margin-top: 18px;
}

.detail-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-list dt {
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .92em;
  word-break: break-all;
}

.policy-shell {
  max-width: 940px;
  margin: 0 auto;
}

.policy-hero {
  margin: 16px 0 28px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 94, 255, .07), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 44px rgba(16, 19, 25, .06);
}

.policy-hero h1 {
  font-size: 54px;
  line-height: 1;
  margin-bottom: 16px;
}

.policy-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.policy-hero span {
  color: #475467;
  font-weight: 700;
}

.policy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 32px rgba(16, 19, 25, .05);
  overflow: hidden;
}

.policy-card section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
}

.policy-card section:last-child {
  border-bottom: 0;
}

.policy-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.policy-card p,
.policy-card li {
  color: #475467;
  line-height: 1.68;
}

.policy-card p {
  margin: 0;
}

.policy-card a {
  color: var(--accent);
  font-weight: 750;
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.policy-card li + li {
  margin-top: 8px;
}

.partner-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.partner-panel p,
.partner-contact p {
  color: #475467;
  line-height: 1.62;
}

.partner-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.partner-contact h2 {
  font-size: 30px;
}

.partner-contact p {
  max-width: 720px;
  margin: 0;
}

.partner-contact a:not(.button) {
  color: var(--accent);
  font-weight: 750;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  min-width: 620px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .hero-enterprise {
    grid-template-columns: 1fr;
  }

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

  .partner-brief {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 48px; }
}

@media (max-width: 680px) {
  .topbar {
    height: auto;
    padding: 14px 16px;
    align-items: flex-start;
    gap: 12px;
  }

  .brand { white-space: normal; }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
  }

  .site-main {
    width: min(100% - 28px, 1180px);
    padding: 30px 0 48px;
  }

  .site-footer {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 32px;
  }

  .hero { padding: 42px 0 28px; }

  h1,
  .page-head h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .lead,
  .page-head p { font-size: 17px; }

  .early-pricing {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .early-pricing strong { white-space: normal; }

  .transfer-console,
  .resource-shell,
  .account-head,
  .auth,
  .policy-hero,
  .policy-card section {
    padding: 22px;
  }

  .policy-hero h1 { font-size: 36px; }

  .console-grid,
  .trust-strip,
  .partner-contact,
  .filters {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .filters input,
  .filters select { max-width: none; }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  .trust-strip div:last-child { border-bottom: 0; }
}
