:root {
  --bg: #030306;
  --panel: rgba(13, 11, 24, .86);
  --panel-soft: rgba(120, 103, 244, .08);
  --line: rgba(120, 103, 244, .2);
  --line-strong: rgba(120, 103, 244, .38);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .42);
  --accent: #7867f4;
  --accent-strong: #9b8cff;
  --cyan: #47d7c5;
  --green: #57e39c;
  --amber: #ffd166;
  --danger: #ff627d;
  --radius: 8px;
  --display: var(--font-display, Unbounded, system-ui, sans-serif);
  --body: var(--font-body, Onest, system-ui, sans-serif);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #030306;
  font-family: var(--body);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color-scheme: dark;
}

select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

select option {
  color: #fff;
  background: #0b0914;
}

button {
  cursor: pointer;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ex-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.ex-shell::before,
.ex-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ex-shell::before {
  inset: 0 0 auto;
  z-index: -4;
  height: min(620px, 62vh);
  background:
    linear-gradient(180deg, rgba(3, 3, 6, .08) 0%, rgba(3, 3, 6, .34) 42%, rgba(3, 3, 6, .86) 74%, #030306 100%),
    url("../assets/ex-link/ex-link-bg-main.webp") top center / cover no-repeat;
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 100%);
}

.ex-shell::after {
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(120, 103, 244, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 103, 244, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .72;
}

.ex-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 88px;
  padding: 20px 64px;
  background: linear-gradient(180deg, rgba(3, 3, 8, .96), rgba(3, 3, 8, .82));
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.header-actions,
.mode-tab,
.status-pill,
.ghost-action,
.primary-action,
.icon-action,
.safety-badge,
.hero-metrics span,
.option-chip {
  display: inline-flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(120, 103, 244, .55);
}

.brand__text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.brand__tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  background: rgba(120, 103, 244, .08);
  font-size: 11px;
}

.top-nav {
  justify-self: center;
  min-height: 48px;
  padding: 6px;
  border: 1px solid rgba(120, 103, 244, .1);
  border-radius: 999px;
  background: rgba(8, 7, 17, .78);
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  font-family: var(--display);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.top-nav a:hover {
  color: #fff;
  background: rgba(120, 103, 244, .16);
}

.header-actions {
  justify-self: end;
  gap: 10px;
}

.status-pill {
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(87, 227, 156, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(87, 227, 156, .08);
  font-family: var(--display);
  font-size: 12px;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(87, 227, 156, .8);
}

.ghost-action,
.menu-button,
.icon-action {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(120, 103, 244, .2);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(120, 103, 244, .12);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.ghost-action:hover,
.menu-button:hover,
.icon-action:hover:not(:disabled) {
  border-color: rgba(120, 103, 244, .55);
  background: rgba(120, 103, 244, .2);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: none;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(620px, 1fr);
  gap: 36px;
  min-height: 100vh;
  padding: 140px 64px 72px;
  overflow: hidden;
}

.surface-grid,
.noise-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.surface-grid {
  z-index: -2;
  background:
    linear-gradient(120deg, transparent 8%, rgba(120, 103, 244, .12) 8.2%, transparent 8.8%),
    linear-gradient(300deg, transparent 19%, rgba(71, 215, 197, .08) 19.2%, transparent 19.8%);
}

.noise-layer {
  z-index: -1;
  background: url("../assets/ui/materials/noise.webp");
  mix-blend-mode: soft-light;
  opacity: .28;
}

.hero-copy {
  align-self: center;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.api-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
}

.hero-copy h1 {
  font-size: 68px;
  text-shadow: 0 0 34px rgba(120, 103, 244, .35);
}

.hero-lede {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-metrics span {
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(120, 103, 244, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  background: rgba(120, 103, 244, .08);
  font-size: 13px;
}

.hero-metrics strong {
  color: #fff;
  font-weight: 700;
}

.tool-shell,
.service-card,
.code-panel,
.recent-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .03);
  backdrop-filter: blur(20px);
}

.tool-shell {
  align-self: center;
  width: 100%;
  min-width: 0;
  padding: 14px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.mode-tab {
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(120, 103, 244, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .66);
  background: rgba(255, 255, 255, .03);
  font-family: var(--display);
  font-size: 13px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.mode-tab.is-active {
  color: #fff;
  border-color: rgba(120, 103, 244, .45);
  background: rgba(120, 103, 244, .2);
}

.mode-tab[data-mode="file"].is-active {
  border-color: rgba(71, 215, 197, .45);
  background: rgba(71, 215, 197, .14);
}

.mode-tab[data-mode="text"].is-active {
  border-color: rgba(255, 209, 102, .42);
  background: rgba(255, 209, 102, .12);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.tool-layout.has-result {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
}

.creator-form,
.result-pane {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(120, 103, 244, .12);
  border-radius: var(--radius);
  background: rgba(3, 3, 8, .48);
}

.creator-form {
  display: grid;
  gap: 18px;
}

.mode-panel {
  min-height: 128px;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.input-line,
textarea,
.drop-zone {
  width: 100%;
  border: 1px solid rgba(120, 103, 244, .18);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, .035);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
}

.input-line svg {
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.input-line input,
textarea {
  color: #fff;
  caret-color: var(--accent-strong);
}

.input-line input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.input-line input::selection,
textarea::selection {
  color: #fff;
  background: rgba(120, 103, 244, .45);
}

.input-line input:-webkit-autofill,
.input-line input:-webkit-autofill:hover,
.input-line input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(11, 9, 20, .98) inset;
  transition: background-color 9999s ease-out;
}

textarea {
  display: block;
  min-height: 166px;
  padding: 16px;
  outline: 0;
  resize: vertical;
  line-height: 1.55;
}

.input-line:focus-within,
textarea:focus,
.drop-zone.is-dragging {
  border-color: rgba(120, 103, 244, .65);
  background: rgba(120, 103, 244, .09);
  box-shadow: 0 0 0 3px rgba(120, 103, 244, .12);
}

::placeholder {
  color: rgba(255, 255, 255, .38);
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 166px;
  padding: 22px;
  text-align: center;
}

.drop-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drop-zone svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--cyan);
}

.drop-zone span {
  font-family: var(--display);
  font-size: 14px;
}

.drop-zone small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.file-item,
.recent-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.file-item span,
.recent-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item small,
.recent-item small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
}

.file-remove {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 98, 125, .28);
  border-radius: 999px;
  color: #ffdce3;
  background: rgba(255, 98, 125, .1);
  font-size: 12px;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.control-card {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(120, 103, 244, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.control-card strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
}

.control-card small {
  display: block;
  margin-top: 7px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

.option-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.option-chip {
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(120, 103, 244, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .03);
  font-size: 12px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.option-chip.is-active {
  color: #fff;
  border-color: rgba(120, 103, 244, .48);
  background: rgba(120, 103, 244, .2);
}

.settings-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

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

.settings-line--advanced.has-single-domain {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.input-line--small {
  min-height: 46px;
  margin: 0;
}

.safety-badge {
  position: relative;
  gap: 9px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(120, 103, 244, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .03);
  font-family: var(--display);
  font-size: 12px;
  user-select: none;
}

.safety-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(420px, 86vw);
  padding: 13px 14px;
  border: 1px solid rgba(120, 103, 244, .28);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .86);
  background: rgba(8, 7, 17, .98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .44);
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.safety-badge:hover .safety-tooltip,
.safety-badge:focus .safety-tooltip,
.safety-badge:focus-within .safety-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.primary-action {
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(120, 103, 244, .42);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7867f4, #5c4ddb);
  font-family: var(--display);
  font-size: 14px;
  box-shadow: 0 18px 50px rgba(120, 103, 244, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 58px rgba(120, 103, 244, .32);
}

.primary-action:disabled {
  opacity: .72;
  cursor: wait;
  transform: none;
}

.upload-progress {
  display: grid;
  gap: 9px;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid rgba(120, 103, 244, .2);
  border-radius: var(--radius);
  background: rgba(120, 103, 244, .08);
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, .78);
  font-family: var(--display);
  font-size: 12px;
}

.upload-progress-head strong {
  color: #fff;
  font-size: 12px;
}

.upload-progress-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(120, 103, 244, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
}

.upload-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7867f4, #47d7c5);
  box-shadow: 0 0 24px rgba(120, 103, 244, .35);
  transition: width .18s ease;
}

.upload-progress small {
  color: var(--faint);
  font-size: 12px;
}

.upload-progress.is-error {
  border-color: rgba(255, 98, 125, .34);
  background: rgba(255, 98, 125, .1);
}

.upload-progress.is-error .upload-progress-track span {
  background: linear-gradient(90deg, #ff627d, #ffd166);
}

.result-pane {
  display: grid;
  gap: 16px;
  align-content: start;
}

.result-pane[hidden] {
  display: none;
}

.result-head,
.recent-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.result-head strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
}

.icon-action:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.result-link {
  min-height: 58px;
  padding: 16px;
  border: 1px solid rgba(120, 103, 244, .16);
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: rgba(120, 103, 244, .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.qr-preview {
  display: grid;
  place-items: center;
  width: min(100%, 190px);
  aspect-ratio: 1;
  margin: 4px auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: #f7f5ff;
  color: #1a1534;
}

.qr-preview svg,
.qr-preview img {
  width: 42px;
  height: 42px;
  opacity: .8;
}

.qr-preview img {
  width: 100%;
  height: 100%;
  opacity: 1;
  image-rendering: pixelated;
}

.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.result-meta div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.result-meta dt,
.result-meta dd {
  margin: 0;
}

.result-meta dt {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--faint);
  font-family: var(--display);
  font-size: 11px;
  text-transform: uppercase;
}

.result-meta dd {
  margin-top: 7px;
  color: #fff;
  font-size: 14px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.secondary-action,
.danger-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(120, 103, 244, .22);
  border-radius: 999px;
  color: #fff;
  background: rgba(120, 103, 244, .12);
  font-family: var(--display);
  font-size: 12px;
  text-decoration: none;
}

.danger-action {
  border-color: rgba(255, 98, 125, .32);
  background: rgba(255, 98, 125, .12);
}

.service-section,
.api-section {
  position: relative;
  z-index: 0;
  padding: 86px 64px;
  background:
    linear-gradient(rgba(120, 103, 244, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 103, 244, .06) 1px, transparent 1px),
    #030306;
  background-size: 72px 72px, 72px 72px, auto;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2,
.api-copy h2 {
  font-size: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  min-height: 210px;
  padding: 24px;
}

.service-card > svg {
  width: 28px;
  height: 28px;
  color: var(--accent-strong);
}

.service-card--file > svg {
  color: var(--cyan);
}

.service-card--text > svg {
  color: var(--amber);
}

.service-card h3 {
  margin: 24px 0 12px;
  font-family: var(--display);
  font-size: 18px;
}

.service-card p,
.api-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.api-section {
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(420px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.api-copy {
  align-self: center;
}

.api-copy p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 520px;
}

.api-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 16px;
  border: 1px solid rgba(120, 103, 244, .34);
  border-radius: 999px;
  color: #fff;
  background: rgba(120, 103, 244, .16);
  font-family: var(--display);
  font-size: 13px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.api-download:hover {
  border-color: rgba(120, 103, 244, .68);
  background: rgba(120, 103, 244, .24);
}

.code-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .88fr);
  gap: 14px;
  padding: 14px;
}

.code-panel.api-docs {
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, .75fr);
  align-items: stretch;
}

.api-scroll {
  max-height: 470px;
  overflow: auto;
  padding-right: 6px;
}

.api-scroll::-webkit-scrollbar {
  width: 6px;
}

.api-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 103, 244, .38);
}

.api-method,
.api-table {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .28);
}

.api-method + .api-method,
.api-method + .api-table,
.api-table + .api-table {
  margin-top: 10px;
}

.api-method > span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(120, 103, 244, .26);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
}

.api-method > strong {
  margin-left: 8px;
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
}

.api-method pre {
  min-height: 0;
  margin-top: 12px;
  padding: 14px;
  max-width: 100%;
  overflow: auto;
}

.api-method pre code {
  display: block;
  min-width: max-content;
  white-space: pre;
  font-size: 12px;
  line-height: 1.55;
}

.api-table h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 14px;
}

.api-table dl {
  display: grid;
  grid-template-columns: minmax(110px, .45fr) 1fr;
  gap: 8px 12px;
  margin: 0;
}

.api-table dt,
.api-table dd {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.api-table dt {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  min-height: 300px;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .36);
  overflow: auto;
}

code {
  color: rgba(255, 255, 255, .86);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.75;
}

.recent-panel {
  padding: 16px;
  background: rgba(3, 3, 8, .48);
}

.recent-head span {
  font-family: var(--display);
  font-size: 14px;
}

.recent-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.recent-list::-webkit-scrollbar {
  width: 6px;
}

.recent-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 103, 244, .38);
}

.empty-recent {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.recent-item button {
  width: 34px;
  height: 34px;
}

.ex-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 64px 42px;
  background:
    linear-gradient(rgba(120, 103, 244, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 103, 244, .06) 1px, transparent 1px),
    #030306;
  background-size: 72px 72px, 72px 72px, auto;
  color: rgba(255, 255, 255, .42);
  font-family: var(--display);
  font-size: 12px;
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 48px));
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(13, 11, 24, .96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .36);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .ex-header {
    padding-inline: 32px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding-inline: 32px;
  }

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

  .hero-copy h1 {
    font-size: 56px;
  }

  .api-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ex-header {
    grid-template-columns: 1fr auto;
    min-height: 78px;
    padding: 16px 22px;
  }

  .top-nav,
  .header-actions,
  .brand__tag {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    top: 82px;
    left: 22px;
    right: 22px;
    z-index: 48;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 11, 24, .96);
    backdrop-filter: blur(18px);
  }

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

  .mobile-nav a {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: var(--radius);
    color: #fff;
    background: rgba(120, 103, 244, .1);
    font-family: var(--display);
    font-size: 13px;
    text-decoration: none;
  }

  .hero-section {
    padding: 112px 22px 54px;
  }

  .tool-layout,
  .control-row,
  .service-grid,
  .code-panel {
    grid-template-columns: 1fr;
  }

  .tool-layout.has-result {
    grid-template-columns: 1fr;
  }

  .service-section,
  .api-section {
    padding: 64px 22px;
  }

  .ex-footer {
    padding-inline: 22px;
  }
}

@media (max-width: 620px) {
  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .mode-tabs {
    grid-template-columns: 1fr;
  }

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

  .settings-line,
  .result-meta {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .api-copy h2 {
    font-size: 30px;
  }

  .ex-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
