:root {
  --ink: #15211d;
  --ink-soft: #52625c;
  --paper: #f5f3eb;
  --surface: #fffdf8;
  --surface-2: #ece9df;
  --line: #d8d5ca;
  --brand: #0c6b58;
  --brand-dark: #074a3e;
  --accent: #f0a23a;
  --accent-soft: #fff0d6;
  --danger: #b42318;
  --success: #16794d;
  --info: #315aa8;
  --shadow: 0 18px 50px rgba(25, 39, 33, .09);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(240, 162, 58, .14), transparent 26rem),
    radial-gradient(circle at 92% 16%, rgba(12, 107, 88, .13), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand); }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  padding: .7rem 1rem; background: var(--ink); color: white; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(216,213,202,.82);
  background: rgba(245,243,235,.9);
  backdrop-filter: blur(14px);
}
.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brandmark { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brandmark-symbol { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: white; box-shadow: 0 8px 18px rgba(12,107,88,.22); }
.brandmark small { display: block; color: var(--ink-soft); font-size: .69rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.primary-nav a { text-decoration: none; color: var(--ink-soft); padding: .55rem .72rem; border-radius: 10px; font-size: .92rem; font-weight: 650; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.72); }
.actor-cluster { display: flex; align-items: center; gap: .65rem; }
.actor-chip { max-width: 230px; display: flex; align-items: center; gap: .55rem; padding: .4rem .55rem; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 18px rgba(25,39,33,.05); }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.actor-chip strong, .actor-chip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actor-chip strong { font-size: .82rem; }
.actor-chip small { color: var(--ink-soft); font-size: .69rem; }

.synthetic-banner { background: #132721; color: #d8f3e9; border-bottom: 1px solid #23483c; font-size: .78rem; }
.synthetic-banner .container { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: .45rem; text-align: center; }
.synthetic-dot { width: 7px; height: 7px; border-radius: 50%; background: #58d5a8; box-shadow: 0 0 0 4px rgba(88,213,168,.12); }

main { min-height: calc(100vh - 200px); }
.section { padding: 4.5rem 0; }
.section-tight { padding: 2.3rem 0; }
.hero { padding: 6.3rem 0 4.6rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 3.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; color: var(--brand-dark); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.65rem, 6vw, 5.4rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.25rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 61ch; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.btn { border: 1px solid transparent; border-radius: 12px; min-height: 44px; padding: .72rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none; font-weight: 760; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 10px 24px rgba(12,107,88,.2); }
.btn-primary:hover { background: var(--brand-dark); color: white; }
.btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-secondary:hover { background: white; color: var(--ink); }
.btn-ghost { color: var(--ink-soft); background: transparent; border-color: transparent; }
.btn-danger { background: #fff1ef; border-color: #f3c0ba; color: var(--danger); }
.btn-small { min-height: 36px; padding: .48rem .7rem; font-size: .82rem; }

.hero-panel { position: relative; min-height: 470px; }
.orbit-card { position: absolute; border: 1px solid rgba(255,255,255,.72); background: rgba(255,253,248,.9); backdrop-filter: blur(12px); box-shadow: var(--shadow); border-radius: 22px; padding: 1.1rem; }
.orbit-card.primary { inset: 3rem 1rem 2.4rem 1rem; transform: rotate(-1.5deg); }
.orbit-card.top { top: 0; right: 0; width: 52%; transform: rotate(4deg); }
.orbit-card.bottom { bottom: 0; left: 0; width: 55%; transform: rotate(-4deg); }
.panel-kicker { color: var(--ink-soft); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.transaction-stack { display: grid; gap: .75rem; margin-top: 1rem; }
.transaction-row { display: grid; grid-template-columns: 36px 1fr auto; gap: .75rem; align-items: center; padding: .8rem; border-radius: 14px; background: var(--surface-2); }
.transaction-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: white; font-weight: 900; color: var(--brand); }
.transaction-row strong, .transaction-row small { display: block; }
.transaction-row small { color: var(--ink-soft); }
.amount { font-variant-numeric: tabular-nums; font-weight: 820; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.8rem; }
.section-heading p { color: var(--ink-soft); max-width: 60ch; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.card { background: rgba(255,253,248,.92); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 10px 32px rgba(25,39,33,.055); }
.card-link { color: inherit; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.card-footer { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .28rem .58rem; font-size: .7rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; background: var(--surface-2); color: var(--ink-soft); }
.badge-success { color: var(--success); background: #e4f5ed; }
.badge-warning { color: #835000; background: var(--accent-soft); }
.badge-info { color: var(--info); background: #e7eefc; }
.badge-danger { color: var(--danger); background: #fff0ee; }
.badge-dark { color: white; background: var(--ink); }
.tag-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag { border: 1px solid var(--line); background: white; border-radius: 999px; padding: .25rem .55rem; font-size: .72rem; color: var(--ink-soft); }
.creator-head { display: flex; gap: .9rem; align-items: center; }
.creator-head .avatar { width: 48px; height: 48px; background: var(--brand); }
.creator-head h3 { margin-bottom: .2rem; }
.creator-head p { margin: 0; font-size: .85rem; }
.price { font-size: 1.32rem; font-weight: 850; letter-spacing: -.03em; }
.metric-card strong { display: block; font-size: clamp(1.7rem,4vw,2.6rem); letter-spacing: -.05em; }
.metric-card span { color: var(--ink-soft); font-size: .85rem; }

.page-hero { padding: 3.5rem 0 2rem; }
.page-hero h1 { font-size: clamp(2.4rem,5vw,4.5rem); max-width: 18ch; }
.breadcrumbs { font-size: .8rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumbs a { color: inherit; }

.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .8rem; display: grid; grid-template-columns: 1fr 220px auto; gap: .7rem; margin-bottom: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .76rem; color: var(--ink-soft); font-weight: 740; }
.input, .select { width: 100%; min-height: 44px; padding: .65rem .75rem; background: white; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.input:focus, .select:focus { outline: 3px solid rgba(12,107,88,.18); border-color: var(--brand); }

.dashboard-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.3rem; align-items: start; }
.sidebar-stack, .stack { display: grid; gap: 1rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.progress-track { height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.progress-fill { height: 100%; background: var(--brand); border-radius: inherit; }
.workflow-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.workflow-letter { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: white; background: var(--brand-dark); font-weight: 900; font-size: 1.15rem; }
.workflow-card h3 { margin-bottom: .35rem; }
.workflow-card p { margin: 0; font-size: .86rem; }

.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding-bottom: 1.5rem; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 34px; bottom: -4px; width: 2px; background: var(--line); }
.timeline-marker { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; font-weight: 850; z-index: 1; }
.timeline-item.done .timeline-marker { color: white; background: var(--success); border-color: var(--success); }
.timeline-item.current .timeline-marker { color: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px rgba(12,107,88,.12); }
.timeline-content { padding-top: .25rem; }
.timeline-content h3 { margin: 0 0 .25rem; font-size: 1rem; letter-spacing: -.015em; }
.timeline-content p { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.current-action { border: 1px solid var(--brand); background: linear-gradient(145deg, #f8fffC, var(--surface)); }
.evidence-box { margin-top: 1rem; border-radius: 14px; background: #111c18; color: #dff7ec; padding: 1rem; overflow: auto; font: .76rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: .78rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); color: var(--ink-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
tr:last-child td { border-bottom: 0; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78em; overflow-wrap: anywhere; }

.notice { display: flex; gap: .75rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.notice-success { border-color: #9bd7bd; background: #effbf5; }
.notice-warning { border-color: #e6bf7b; background: #fff8e9; }
.notice-danger { border-color: #e4a49d; background: #fff4f2; }
.notice strong { display: block; }
.notice p { margin: .1rem 0 0; color: var(--ink-soft); }

.login-shell { display: grid; grid-template-columns: 1fr 1.35fr; gap: 2rem; align-items: start; }
.login-panel { position: sticky; top: 110px; }
.user-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.user-card form { display: grid; gap: .65rem; }
.user-card .avatar { width: 42px; height: 42px; }
.user-role { font-size: .72rem; color: var(--ink-soft); }
.demo-credential { border: 1px dashed var(--brand); border-radius: 12px; padding: .8rem; background: #effaf6; }
.demo-credential code { display: block; margin-top: .25rem; overflow-wrap: anywhere; }

.split-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr); gap: 1.4rem; align-items: start; }
.sticky-card { position: sticky; top: 106px; }
.rights-scope { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.scope-item { background: var(--surface-2); border-radius: 11px; padding: .7rem; }
.scope-item strong { display: block; font-size: .75rem; }
.scope-item span { color: var(--ink-soft); font-size: .8rem; }

.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: rgba(255,253,248,.7); }
.footer-grid { min-height: 150px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.footer-grid p { color: var(--ink-soft); max-width: 60ch; }
.footer-links { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-links a { font-size: .84rem; color: var(--ink-soft); }

.mobile-nav-button { display: none; }

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .hero-grid, .dashboard-grid, .split-layout, .login-shell { grid-template-columns: 1fr; }
  .hero-panel { min-height: 420px; max-width: 620px; width: 100%; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .login-panel, .sticky-card { position: static; }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 1.2rem), var(--max)); }
  .site-header .nav-shell { min-height: 62px; }
  .brandmark small, .actor-chip small { display: none; }
  .actor-chip { max-width: 130px; }
  .hero { padding-top: 3.8rem; }
  .hero-panel { min-height: 370px; }
  .orbit-card.top { width: 62%; }
  .orbit-card.bottom { width: 68%; }
  .grid-2, .grid-3, .grid-4, .kpi-grid, .user-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .workflow-card { grid-template-columns: auto 1fr; }
  .workflow-card > :last-child { grid-column: 2; }
  .rights-scope { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.locale-switch { display: inline-flex; align-items: center; gap: .15rem; padding: .18rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); }
.locale-switch a { min-width: 30px; min-height: 30px; display: grid; place-items: center; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-size: .7rem; font-weight: 850; }
.locale-switch a[aria-current="true"] { background: var(--ink); color: white; }
@media (max-width: 680px) { .locale-switch { display: none; } }
