/* UnionUser marketing site */
:root {
  --ink: #0b1220;
  --ink-2: #121b30;
  --ink-3: #1b2742;
  --indigo: #4f46e5;
  --indigo-600: #4338ca;
  --indigo-300: #a5b4fc;
  --mint: #34d399;
  --mint-dim: #10b981;
  --amber: #f59e0b;
  --rose: #fb7185;
  --text: #141a2b;
  --muted: #5b6478;
  --muted-2: #7c879e;
  --line: #e6e8f1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-soft-2: #eef0f8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 28px 70px rgba(11, 18, 32, 0.16);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  color: var(--indigo-600);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.3rem);
  font-weight: 760;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 720;
}

h3 {
  font-size: 1.18rem;
  font-weight: 660;
}

p {
  margin: 0 0 1em;
}

code,
pre {
  font-family: var(--font-mono);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--indigo);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 560;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-soft);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
}

.lang-switch a[aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.94rem;
  font-weight: 640;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.22);
}

.btn-primary:hover {
  background: var(--indigo-600);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #c9cee0;
  color: var(--ink);
  background: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: transparent;
}

.btn-light:hover {
  color: var(--ink);
  background: #f1f2f8;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 24px 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 11px 4px;
  color: var(--ink);
  font-weight: 560;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  margin-top: 14px;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 84px 0 78px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 78% 18%, rgba(79, 70, 229, 0.5), transparent 65%),
    radial-gradient(560px 380px at 10% 85%, rgba(52, 211, 153, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0d1526 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}

.hero-grid > *,
.split > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.18);
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: #c7d2fe;
  font-size: 0.8rem;
  font-weight: 640;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.eyebrow .dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(100deg, #c7d2fe 0%, #818cf8 45%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  color: #b9c2d8;
  font-size: 1.08rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #93a0bd;
  font-size: 0.85rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.code-window {
  background: #0a0f1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 100%;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3550;
}

.code-bar .dot:nth-child(1) {
  background: #fb7185;
}

.code-bar .dot:nth-child(2) {
  background: #f59e0b;
}

.code-bar .dot:nth-child(3) {
  background: #34d399;
}

.code-bar .file {
  margin-left: 8px;
  color: #7d89a8;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.code-body {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #c7d2e8;
}

.tok-key {
  color: #c084fc;
}
.tok-str {
  color: #34d399;
}
.tok-fn {
  color: #93c5fd;
}
.tok-num {
  color: #fbbf24;
}
.tok-com {
  color: #5b6785;
}

.license-float {
  position: absolute;
  right: -6px;
  bottom: -28px;
  width: 264px;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 16px 17px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #edf0f7;
}

.license-float .lf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.license-float .lf-title {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  padding: 3px 8px;
}

.status-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint-dim);
}

.license-float .lf-key {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.license-float .lf-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 3px 0;
}

.license-float .lf-row strong {
  color: var(--ink);
  font-weight: 640;
}

.device-dots {
  display: inline-flex;
  gap: 4px;
}

.device-dots i {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--mint);
}

.device-dots i.off {
  background: #e5e7f0;
}

/* Trust bar */
.trust-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  color: #8e9ab7;
  font-size: 0.83rem;
  font-weight: 560;
}

.trust-items span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-items svg {
  color: var(--mint);
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .eyebrow {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.18);
  color: var(--indigo);
  margin-bottom: 14px;
}

.section-head .sub {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0;
}

.section-dark .section-head .sub {
  color: #a9b4cc;
}

/* Cards */
.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d8dcf0;
}

.card h3 {
  margin: 16px 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 14px;
}

.card .card-link {
  font-size: 0.88rem;
  font-weight: 640;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.09);
  color: var(--indigo);
}

.icon-box.mint {
  background: rgba(52, 211, 153, 0.12);
  color: #059669;
}

.icon-box svg {
  width: 21px;
  height: 21px;
}

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.split.reverse > .split-copy {
  order: 2;
}

.split-copy h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.split-copy p {
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.94rem;
}

.checklist svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--mint-dim);
}

.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock.dark {
  background: #0a0f1c;
  border-color: rgba(255, 255, 255, 0.09);
  color: #c7d2e8;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.mock.dark .mock-head {
  border-color: rgba(255, 255, 255, 0.08);
  color: #8e9ab7;
}

.mock-body {
  padding: 18px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.mock-row:last-child {
  border-bottom: 0;
}

.mock-row .mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.mock .status-pill.gray {
  color: #475569;
  background: #eef1f7;
}

.mock .status-pill.gray .dot {
  background: #94a3b8;
}

.mock .status-pill.warn {
  color: #92400e;
  background: #fef3c7;
}

.mock .status-pill.warn .dot {
  background: #f59e0b;
}

.mock .status-pill.rose {
  color: #9f1239;
  background: #ffe4e6;
}

.mock .status-pill.rose .dot {
  background: #fb7185;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 720;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Tags */
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.tag strong {
  color: var(--ink);
}

/* Pricing */
.billing-toggle {
  display: inline-flex;
  background: var(--bg-soft-2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-top: 18px;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 640;
  cursor: pointer;
}

.billing-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.billing-toggle .save {
  color: #059669;
  font-size: 0.76rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.plan.recommended {
  border-color: var(--indigo);
  box-shadow: 0 18px 50px rgba(79, 70, 229, 0.16);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--indigo);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.plan .plan-desc {
  color: var(--muted);
  font-size: 0.84rem;
  min-height: 2.6em;
  margin-bottom: 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-price .amount {
  font-size: 2.15rem;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.plan-price .period {
  color: var(--muted);
  font-size: 0.82rem;
}

.plan .billed {
  color: var(--muted-2);
  font-size: 0.76rem;
  min-height: 1.2em;
  margin-bottom: 18px;
}

.plan .plan-cta {
  margin-bottom: 20px;
}

.plan .plan-cta .btn {
  width: 100%;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 0.86rem;
}

.plan li {
  display: flex;
  gap: 8px;
  color: var(--muted);
}

.plan li svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--mint-dim);
}

.plan .limit {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.plan .limit strong {
  color: var(--ink);
}

.pricing-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Comparison */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  max-width: 100%;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.88rem;
}

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

table.compare th {
  background: var(--bg-soft);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}

table.compare td:first-child,
table.compare th:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  font-weight: 600;
  color: var(--ink);
  min-width: 190px;
}

table.compare th:first-child {
  background: var(--bg-soft);
}

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

table.compare .yes {
  color: #059669;
  font-weight: 650;
}

table.compare .no {
  color: #94a3b8;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 620;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 17px;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 40px 20px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA */
.cta-band {
  background: linear-gradient(120deg, #0b1220 0%, #161f3a 55%, #2b2a6b 100%);
  color: #fff;
  border-radius: 22px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.45), transparent 65%);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.cta-band p {
  color: #b9c2d8;
  margin: 0;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Footer */
.site-footer {
  background: #080e19;
  color: #8e9ab7;
  padding: 56px 0 26px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 34px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.86rem;
  max-width: 26em;
  color: #7d89a8;
}

.footer-col h4 {
  color: #dbe2f1;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #8e9ab7;
  font-size: 0.86rem;
  padding: 4px 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.78rem;
  color: #66738f;
}

.footer-bottom a {
  color: #8e9ab7;
}

/* Docs */
.docs-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 40px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--muted);
}

.docs-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 8px;
}

.docs-hero p {
  color: var(--muted);
  max-width: 46em;
  margin: 0;
}

.docs-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 48px;
  padding: 42px 0 70px;
  align-items: start;
}

.docs-layout > *,
.docs-main,
.prose {
  min-width: 0;
  max-width: 100%;
}

.docs-side {
  position: sticky;
  top: 88px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}

.docs-side h4 {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 22px 0 8px;
}

.docs-side h4:first-child {
  margin-top: 0;
}

.docs-side a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 1px 0;
}

.docs-side a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.docs-side a.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--indigo);
  font-weight: 640;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 42px;
  padding-top: 8px;
}

.prose h3 {
  font-size: 1.12rem;
  margin-top: 28px;
}

.prose p,
.prose li {
  color: #3a4357;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin: 6px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 18px 0;
}

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

.prose th {
  background: var(--bg-soft);
  font-size: 0.8rem;
  color: var(--muted);
}

.prose code:not(pre code) {
  background: #eef0f8;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.86em;
  color: #3730a3;
}

.codeblock {
  margin: 18px 0;
  background: #0a0f1c;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  max-width: 100%;
}

.codeblock .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #7d89a8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aab4cc;
  border-radius: 6px;
  padding: 4px 9px;
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.codeblock pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #c7d2e8;
  font-size: 0.8rem;
  line-height: 1.7;
}

.callout {
  border: 1px solid #dbe3ff;
  background: #f4f6ff;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #3730a3;
}

.callout.warn {
  border-color: #fde9c6;
  background: #fffaf0;
  color: #92400e;
}

.callout strong {
  font-weight: 700;
}

.doc-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.doc-nav a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.doc-nav a span {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.doc-nav a.next {
  margin-left: auto;
  text-align: right;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.guide-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
  color: var(--ink);
}

.guide-card strong {
  display: block;
  margin-bottom: 4px;
}

.guide-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.endpoint {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0;
  background: #fff;
}

.endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.method {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: #e0e7ff;
  color: #3730a3;
}

.method.post {
  background: #dcfce7;
  color: #166534;
}

.method.delete {
  background: #ffe4e6;
  color: #9f1239;
}

.method.get {
  background: #e0f2fe;
  color: #075985;
}

.endpoint-path {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.endpoint,
.endpoint-head {
  max-width: 100%;
  min-width: 0;
}

.endpoint p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 620;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(79, 70, 229, 0.35);
  outline-offset: 1px;
  border-color: var(--indigo);
}

.form-note {
  color: var(--muted-2);
  font-size: 0.78rem;
  margin-top: 12px;
}

.contact-aside h3 {
  margin-top: 28px;
}

.contact-aside p {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.contact-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.contact-points .icon-box {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

/* Misc */
.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .fade-up.delay-1 {
    animation-delay: 0.08s;
  }

  .fade-up.delay-2 {
    animation-delay: 0.16s;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
    row-gap: 30px;
  }

  .docs-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .login-link {
    display: none;
  }

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

  .header-actions {
    margin-left: 0;
  }

  .grid-3,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split.reverse > .split-copy {
    order: 0;
  }

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

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-side {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .docs-side h4 {
    width: 100%;
    margin: 12px 0 4px;
  }

  .docs-side a {
    display: inline-block;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0 66px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .license-float {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .code-window {
    transform: none;
  }

  .grid-3,
  .grid-2,
  .guide-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  h1 {
    font-size: 2.2rem;
  }

  .form-card {
    padding: 22px;
  }
}
