:root {
  --bg: #f2efe9;
  --panel: #fffdf9;
  --line: #d6d0c2;
  --ink: #1b2328;
  --muted: #5e686f;
  --teal: #0f766e;
  --orange: #f97316;
  --blue: #155eef;
  --red: #b42318;
  --shadow: 0 14px 40px rgba(8, 18, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  position: relative;
  background: radial-gradient(circle at 5% 0%, #fbe0c4 0%, transparent 38%),
    radial-gradient(circle at 100% 100%, #d8f3ef 0%, transparent 40%),
    var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

.bg-blur {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.35;
}

.bg-blur-a {
  width: 240px;
  height: 240px;
  background: #ffb876;
  top: -60px;
  left: -80px;
}

.bg-blur-b {
  width: 260px;
  height: 260px;
  background: #7fd5c8;
  bottom: -90px;
  right: -60px;
}

.shell {
  width: min(1200px, 96vw);
  margin: 28px auto 48px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(135deg, #0f766e 0%, #104d66 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 22px 24px;
  color: #f5fffe;
  box-shadow: var(--shadow);
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  font-size: 11px;
  margin: 0 0 8px;
  opacity: 0.88;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.subtitle {
  margin: 10px 0 0;
  opacity: 0.92;
}

.hero-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #f5fffe;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr 1fr;
  gap: 10px;
  box-shadow: var(--shadow);
}

.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control span {
  font-size: 12px;
  color: var(--muted);
}

.control input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  font-family: "IBM Plex Mono", monospace;
  background: #fff;
}

#reload-spec {
  height: 38px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.meta-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.meta-card p {
  margin: 6px 0;
  color: var(--muted);
}

.meta-title {
  color: var(--ink);
  font-weight: 700;
}

.tag-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  text-decoration: none;
  color: var(--teal);
  border: 1px solid #bde0dc;
  background: #e9f8f5;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
}

.operations {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.tag-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.tag-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.op-card {
  border: 1px solid #e6e0d5;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.op-header {
  padding: 12px;
  background: #fffcf8;
}

.op-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.method-pill {
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  min-width: 58px;
  text-align: center;
  padding: 4px 8px;
  color: #fff;
}

.method-get {
  background: #0f766e;
}

.method-post {
  background: #155eef;
}

.method-put,
.method-patch {
  background: #b54708;
}

.method-delete {
  background: var(--red);
}

.path {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: #22313a;
}

.summary {
  margin: 8px 0 4px;
  font-weight: 700;
}

.description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.badges {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
}

.badge-auth {
  color: #0b4f2d;
  background: #dcfce7;
}

.badge-open {
  color: #6a4500;
  background: #ffedd5;
}

.op-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.params {
  display: grid;
  gap: 10px;
}

.param-group {
  border: 1px solid #ece6d9;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.param-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.param-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.param-row label {
  font-size: 13px;
}

.param-row input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  font-family: "IBM Plex Mono", monospace;
}

.body-editor label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: "IBM Plex Mono", monospace;
}

.body-editor textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  background: #0f172a;
  color: #ecfeff;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.actions button {
  border: 0;
  border-radius: 9px;
  height: 34px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-example {
  background: #e2e8f0;
  color: #22313a;
}

.btn-send {
  background: var(--teal);
  color: #fff;
}

.btn-curl {
  background: #1e293b;
  color: #f8fafc;
}

.runtime {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.response {
  margin: 0;
  min-height: 92px;
  max-height: 380px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.pricing-shell {
  width: min(1100px, 96vw);
}

.landing-shell {
  width: min(1060px, 96vw);
}

.docs-shell {
  width: min(1060px, 96vw);
}

.landing-hero {
  align-items: center;
}

.docs-hero {
  align-items: center;
  justify-content: flex-start;
}

.docs-cta {
  margin-top: 12px;
  flex-wrap: wrap;
}

.docs-base-url {
  margin: 10px 0 0;
}

.landing-convert-line {
  margin: 10px 0 0;
  font-weight: 500;
  opacity: 0.98;
}

.landing-cta {
  margin-top: 14px;
}

.landing-pillars {
  margin: 12px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.landing-card {
  margin-top: 12px;
}

.landing-card h2 {
  margin: 0 0 8px;
}

.landing-subtitle {
  margin: 10px 0 6px;
  font-weight: 700;
}

.landing-code {
  margin-top: 0;
}

.landing-links {
  margin-top: 10px;
}

.landing-sep {
  margin: 0 6px;
  color: var(--muted);
}

.landing-grid-two {
  margin-top: 0;
}

.workflow-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 500;
}

.landing-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.landing-foot {
  display: block;
}

.landing-foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.landing-foot-contact,
.landing-foot-links,
.landing-foot-legal {
  margin: 0;
}

.landing-foot-legal {
  margin-top: 6px;
}

.landing-foot a {
  color: inherit;
}

.docs-card {
  margin-top: 12px;
}

.docs-card h2 {
  margin: 0 0 10px;
}

.docs-card h3 {
  margin: 14px 0 6px;
}

.docs-code {
  margin-top: 0;
}

.docs-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 5px;
}

.docs-grid-two {
  margin-top: 0;
}

.docs-table-wrap {
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.docs-table th,
.docs-table td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.docs-table th {
  background: #f3efe7;
}

.pricing-subheader {
  margin: 12px 0 0;
  max-width: 720px;
  opacity: 0.95;
}

.pricing-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.plan-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.plan-card-featured {
  border-color: #9fceb9;
  background: linear-gradient(180deg, #f6fffc 0%, #fffdf9 100%);
}

.plan-name {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-price {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
}

.plan-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.plan-list li {
  color: #293740;
}

.plan-note {
  margin-top: 14px;
  color: var(--muted);
}

.faq-card {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.faq-card h2 {
  margin: 0 0 12px;
}

.faq-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.faq-list dt {
  font-weight: 700;
}

.faq-list dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.copy-btn {
  margin-top: 8px;
  border: 1px solid #b8d5d0;
  border-radius: 9px;
  background: #e8f6f3;
  color: #0f5f58;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.portal-lite-link-dark {
  background: #0f766e;
}

.portal-lite-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.portal-lite-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-lite-field span {
  font-size: 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.portal-lite-field input,
.portal-lite-field select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  font-family: "IBM Plex Mono", monospace;
  background: #fff;
}

.portal-lite-editor textarea {
  min-height: 330px;
}

.portal-lite-actions {
  margin-top: 10px;
}

@media (max-width: 960px) {
  .controls {
    grid-template-columns: 1fr;
  }

  #reload-spec {
    margin-top: 0;
  }

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

  .param-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .landing-foot {
    display: block;
  }

  .landing-foot-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
