:root {
  --surface: #0b1020;
  --surface-low: #111a33;
  --surface-container: #141f3d;
  --surface-high: #182447;
  --surface-highest: #1f2e59;
  --surface-lowest: #090f1f;
  --surface-bright: #26376a;
  --on-surface: #eaf2ff;
  --on-surface-variant: #b8c7e6;
  --outline-variant: #25365f;
  --primary: #4da3ff;
  --primary-container: #2b7fe0;
  --primary-fixed: #76b9ff;
  --error: #ffb4ab;
  --error-container: #93000a;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

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

body {
  color: var(--on-surface);
  background: var(--surface);
  font-family: "Inter", sans-serif;
  line-height: 1.52;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% -4%, rgba(77, 163, 255, 0.24), transparent 30%),
    radial-gradient(circle at 96% 8%, rgba(43, 127, 224, 0.42), transparent 38%),
    radial-gradient(circle at 80% 90%, rgba(77, 163, 255, 0.14), transparent 40%),
    linear-gradient(180deg, #0b1020 0%, #090f1f 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.muted {
  color: var(--on-surface-variant);
}

.small {
  margin: 0;
  font-size: 0.87rem;
}

.title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0.35rem 0 0;
  color: var(--on-surface-variant);
}

.flash {
  margin: 0 0 1rem;
  border-radius: 14px;
  padding: 0.82rem 0.95rem;
  border: 1px solid transparent;
}

.flash-success {
  background: rgba(77, 194, 182, 0.14);
  color: #98f3e8;
  border-color: rgba(77, 194, 182, 0.28);
}

.flash-error {
  background: rgba(147, 0, 10, 0.22);
  color: #ffd2cc;
  border-color: rgba(255, 180, 171, 0.26);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(37, 54, 95, 0.65);
  background: rgba(17, 26, 51, 0.92);
  color: var(--on-surface);
  padding: 0.46rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip:hover,
.chip.active {
  border-color: rgba(77, 163, 255, 0.7);
  color: var(--primary);
  background: rgba(24, 36, 71, 0.98);
}

.btn,
.btn-danger,
.btn-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.btn {
  color: #f4f8ff;
  background: linear-gradient(135deg, #4da3ff 0%, #2b7fe0 100%);
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active,
.btn-danger:active,
.btn-alt:active,
.chip:active {
  transform: scale(0.98);
}

.btn-danger {
  color: #ffd8d2;
  background: linear-gradient(135deg, var(--error-container) 0%, #5f0006 100%);
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-alt {
  color: var(--on-surface);
  border: 1px solid rgba(54, 78, 132, 0.6);
  background: rgba(20, 31, 61, 0.92);
}

.btn-alt:hover {
  background: rgba(31, 46, 89, 0.98);
}

.btn:disabled,
.btn-danger:disabled,
.btn-alt:disabled {
  cursor: not-allowed;
  opacity: 0.66;
  filter: grayscale(20%);
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.btn:disabled {
  color: #9da9a5;
  background: linear-gradient(135deg, #2c3534 0%, #293130 100%);
}

.btn-alt:disabled {
  color: #8e9a95;
  border-color: rgba(93, 104, 101, 0.42);
  background: #202827;
}

.body-app .app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  padding: 1.2rem 1rem;
  background: var(--surface-low);
  overflow: auto;
  z-index: 40;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.3rem 0.8rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: #01201d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
}

.brand-subtitle {
  margin: 0.15rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.58rem;
  color: #7a8680;
  font-weight: 700;
}

.app-nav {
  display: grid;
  gap: 0.26rem;
}

.nav-group {
  margin: 0.9rem 0 0.35rem;
  padding-inline: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.63rem;
  color: #77837d;
  font-weight: 700;
}

.nav-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: #99a7a2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: left;
  transition: 0.18s ease;
}

.nav-link .material-symbols-outlined {
  font-size: 1.1rem;
}

.nav-link:hover {
  color: #d4dfdc;
  background: rgba(35, 43, 43, 0.85);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(35, 43, 43, 0.98);
  font-weight: 700;
  border-right: 2px solid var(--primary);
}

.app-nav-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(63, 73, 69, 0.22);
}

.user-chip {
  display: flex;
  gap: 0.62rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(8, 16, 16, 0.6);
}

.user-chip p {
  margin: 0;
  font-weight: 700;
  font-size: 0.84rem;
}

.user-chip small {
  color: #8e9d98;
  word-break: break-all;
}

.nav-link-logout {
  color: #f8b8b0;
}

.app-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 260px;
  height: 64px;
  z-index: 35;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.35rem;
  backdrop-filter: blur(18px);
  background: rgba(13, 21, 21, 0.72);
}

.topbar-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.topbar-subtitle {
  margin: 0;
  color: #8fa09a;
  font-size: 0.72rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-link {
  color: #a8b8b3;
  font-size: 0.82rem;
  font-weight: 600;
}

.top-link:hover {
  color: var(--on-surface);
}

.top-icon {
  border: none;
  background: transparent;
  color: #95a5a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.top-icon:hover {
  color: var(--primary);
}

.app-main {
  margin-left: 260px;
  padding-top: 78px;
  padding-bottom: 2.3rem;
}

.app-container {
  width: min(1280px, calc(100vw - 310px));
  margin-inline: auto;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.65rem 0;
  backdrop-filter: blur(14px);
  background: rgba(13, 21, 21, 0.72);
}

.public-container {
  width: min(1140px, 94vw);
  margin-inline: auto;
}

.brand-link {
  font-family: "Manrope", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.public-header .public-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.public-main {
  padding: 1.3rem 0 2.2rem;
}

.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 1.2rem 0;
}

.auth-container {
  width: min(520px, 94vw);
  margin-inline: auto;
}

.hero,
.panel,
.card {
  border-radius: var(--radius-md);
  background: var(--surface-low);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.45rem;
  margin-bottom: 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -130px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 217, 204, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  margin: 0.2rem 0 0.55rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.hero p {
  margin: 0;
  max-width: 75ch;
}

.panel {
  padding: 1.1rem;
}

.card {
  padding: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.package-card {
  border-radius: 12px;
  background: var(--surface-lowest);
  padding: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.2);
}

.package-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
}

.landing-hero {
  padding: 2rem 1.45rem 1.6rem;
}

.landing-eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.landing-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.landing-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  margin-top: 1rem;
}

.landing-hero-content {
  min-width: 0;
}

.landing-hero .landing-lead {
  margin-top: 0.2rem;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  color: #c8d5d1;
  max-width: 68ch;
}

.landing-intro {
  margin-top: 0.75rem;
  max-width: 70ch;
}

.landing-actions {
  margin-top: 0.92rem;
}

.landing-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.68rem;
}

.landing-metric-card {
  background: var(--surface-lowest);
}

.landing-metric-card .value {
  font-size: clamp(1.3rem, 2vw, 2.2rem);
}

.gateway-visual-card {
  margin-top: 0.9rem;
  background:
    linear-gradient(160deg, rgba(18, 40, 38, 0.9) 0%, rgba(9, 20, 20, 0.95) 100%);
  display: grid;
  gap: 0.62rem;
}

.gateway-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gateway-visual-head h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.gateway-visual-stage {
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  border-radius: 14px;
  border: 1px solid rgba(102, 217, 204, 0.16);
  background:
    radial-gradient(circle at 18% 12%, rgba(102, 217, 204, 0.16), transparent 46%),
    linear-gradient(155deg, #0b1717 0%, #081111 100%);
  padding: 0.62rem;
}

.gateway-flow-map {
  width: 100%;
  height: auto;
  display: block;
}

.gateway-flow-track {
  fill: none;
  stroke: url(#gateway-flow-line);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 9;
  opacity: 0.9;
  animation: gatewayFlowPulse 5.5s linear infinite;
}

.gateway-flow-track-alt {
  animation-duration: 6.2s;
  animation-direction: reverse;
}

.gateway-flow-node {
  fill: #0c1f1d;
  stroke: rgba(102, 217, 204, 0.82);
  stroke-width: 2.4;
  opacity: 0.95;
  transform-box: fill-box;
  transform-origin: center;
  animation: gatewayNodeBreathe 2.6s ease-in-out infinite;
}

.gateway-flow-node-core {
  fill: rgba(102, 217, 204, 0.22);
  stroke-width: 2.8;
  animation-duration: 2s;
}

.gateway-visual-labels {
  margin-top: 0.44rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
}

.gateway-visual-labels span {
  border-radius: 999px;
  border: 1px solid rgba(63, 73, 69, 0.24);
  background: rgba(8, 16, 16, 0.66);
  padding: 0.34rem 0.48rem;
  font-size: 0.68rem;
  text-align: center;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #9daea9;
  transition: 0.22s ease;
}

.gateway-visual-labels span.is-live {
  color: var(--primary);
  border-color: rgba(102, 217, 204, 0.44);
  background: rgba(35, 43, 43, 0.92);
  box-shadow: 0 0 0 1px rgba(102, 217, 204, 0.08);
}

.landing-launch-card {
  background: linear-gradient(160deg, rgba(35, 43, 43, 0.96) 0%, rgba(25, 33, 33, 0.98) 100%);
}

.landing-launch-card .title {
  margin-top: 0.3rem;
  font-size: clamp(1.2rem, 1.65vw, 1.5rem);
}

.landing-steps {
  list-style: none;
  margin: 0.75rem 0 0.92rem;
  padding: 0;
  display: grid;
  gap: 0.68rem;
}

.landing-steps li {
  border-radius: 12px;
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.18);
  padding: 0.62rem 0.68rem;
  display: grid;
  gap: 0.16rem;
}

.landing-steps li strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-steps li span {
  color: #9caca7;
  font-size: 0.86rem;
}

.landing-section {
  margin-top: 1rem;
}

.gateway-section-nav-wrap {
  position: sticky;
  top: 72px;
  z-index: 18;
  padding-block: 0.45rem;
  backdrop-filter: blur(10px);
  background: rgba(13, 21, 21, 0.68);
}

.gateway-section-nav {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.12rem;
}

.gateway-section-link {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.44rem 0.8rem;
  border: 1px solid rgba(63, 73, 69, 0.24);
  background: rgba(8, 16, 16, 0.78);
  color: #9faea9;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  transition: 0.2s ease;
}

.gateway-section-link:hover {
  color: #d4e1dd;
  background: rgba(35, 43, 43, 0.9);
}

.gateway-section-link.active {
  color: var(--primary);
  background: rgba(35, 43, 43, 0.95);
  border-color: rgba(102, 217, 204, 0.36);
}

.landing-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

#workflow,
#api-quickstart,
#playground,
#features,
#security,
#pricing,
#docs,
#faq {
  scroll-margin-top: 128px;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.landing-price-card {
  display: grid;
  gap: 0.55rem;
  min-height: 100%;
}

.landing-price-card.featured {
  background: linear-gradient(165deg, rgba(12, 41, 38, 0.95) 0%, rgba(8, 16, 16, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(102, 217, 204, 0.36),
    0 0 0 1px rgba(102, 217, 204, 0.08);
}

.landing-package-points {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.38rem;
  font-size: 0.86rem;
  color: #aab8b3;
}

.landing-package-points li {
  position: relative;
  padding-left: 1rem;
}

.landing-package-points li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--primary);
  position: absolute;
  left: 0.1rem;
  top: 0.42rem;
  opacity: 0.8;
}

.landing-disabled-btn {
  opacity: 0.9;
  cursor: default;
}

.landing-feature-grid {
  gap: 0.75rem;
}

.landing-feature-card {
  background: var(--surface-lowest);
}

.landing-feature-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.06rem;
}

.landing-feature-card p {
  margin: 0.45rem 0 0;
  color: var(--on-surface-variant);
  font-size: 0.9rem;
}

.landing-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.landing-workflow-card {
  background: var(--surface-lowest);
}

.landing-workflow-card h3 {
  margin: 0.22rem 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.landing-workflow-card p {
  margin: 0.45rem 0 0;
  color: #9fb0ab;
  font-size: 0.89rem;
}

.gateway-api-grid {
  gap: 0.75rem;
}

.gateway-api-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.75rem;
}

.gateway-api-tabs {
  display: grid;
  gap: 0.48rem;
  align-content: start;
}

.gateway-api-tab {
  border: 1px solid rgba(63, 73, 69, 0.25);
  background: rgba(8, 16, 16, 0.85);
  color: #aab7b3;
  border-radius: 12px;
  text-align: left;
  padding: 0.65rem 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: 0.2s ease;
}

.gateway-api-tab:hover {
  color: #d7e1de;
  background: rgba(35, 43, 43, 0.94);
}

.gateway-api-tab.active {
  color: var(--primary);
  background: rgba(35, 43, 43, 0.98);
  border-color: rgba(102, 217, 204, 0.38);
  box-shadow: inset 2px 0 0 var(--primary);
}

.gateway-api-panels {
  min-width: 0;
}

.gateway-api-panel {
  display: none;
}

.gateway-api-panel.active {
  display: block;
  animation: gatewayApiPanelIn 0.32s ease;
}

.gateway-api-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.gateway-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.gateway-copy-btn {
  border: 1px solid rgba(63, 73, 69, 0.3);
  background: rgba(35, 43, 43, 0.92);
  color: #b6c6c1;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.gateway-copy-btn:hover {
  color: #d8e4e1;
  border-color: rgba(102, 217, 204, 0.3);
}

.gateway-copy-btn.copied {
  color: var(--primary);
  border-color: rgba(102, 217, 204, 0.45);
}

.gateway-api-card {
  background: var(--surface-lowest);
  display: grid;
  gap: 0.5rem;
}

.gateway-api-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.gateway-api-card .json-box {
  min-height: 178px;
  background: #0b1414;
}

.gateway-api-panel-actions {
  margin-top: 0.68rem;
}

.gateway-copy-feedback {
  margin-top: 0.58rem;
  min-height: 1.1rem;
}

.gateway-playground {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0.75rem;
}

.gateway-playground-controls,
.gateway-playground-output {
  background: var(--surface-lowest);
}

.gateway-playground-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.gateway-playground-grid label {
  display: grid;
  gap: 0.28rem;
}

.gateway-playground-grid label span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--primary);
}

.gateway-playground-grid input,
.gateway-playground-grid select {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: rgba(35, 43, 43, 0.95);
  color: var(--on-surface);
  font: inherit;
  padding: 0.64rem 0.68rem;
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.26);
}

.gateway-playground-grid input:focus,
.gateway-playground-grid select:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(102, 217, 204, 0.36),
    0 0 0 2px rgba(102, 217, 204, 0.12);
}

.gateway-playground-note {
  margin-top: 0.54rem;
}

.gateway-playground-response-head {
  margin-top: 0.86rem;
}

.gateway-usecase-card {
  background: var(--surface-lowest);
}

.landing-checklist {
  list-style: none;
  margin: 0.72rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
}

.landing-checklist li {
  border-radius: 10px;
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.16);
  padding: 0.55rem 0.65rem;
  color: #acb8b4;
  font-size: 0.89rem;
}

.landing-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.landing-resource-card {
  display: grid;
  gap: 0.25rem;
}

.landing-resource-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
}

.landing-faq {
  display: grid;
  gap: 0.56rem;
}

.landing-faq details {
  border-radius: 12px;
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.16);
  padding: 0.62rem 0.7rem;
}

.landing-faq summary {
  color: var(--on-surface);
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

.landing-faq details p {
  margin: 0.52rem 0 0;
  color: #a6b3af;
  font-size: 0.9rem;
}

.landing-final-cta {
  text-align: center;
  padding-block: 1.35rem;
}

.landing-final-cta .subtitle {
  max-width: 74ch;
  margin-inline: auto;
}

.landing-final-cta .landing-actions {
  justify-content: center;
}

.landing-disclaimer {
  margin: 0.92rem auto 0;
  max-width: 78ch;
}

body.motion-enabled .reveal-item {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 0.8, 0.2, 1);
}

body.motion-enabled .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.motion-enabled .gateway-visual-stage {
  transition: transform 0.24s ease;
  transform: translate3d(var(--hero-shift-x, 0), var(--hero-shift-y, 0), 0);
}

body.motion-enabled .magnetic-cta {
  transform: translate(var(--mx, 0), var(--my, 0));
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

body.motion-enabled .magnetic-cta:hover {
  filter: brightness(1.05);
}

.package-price {
  margin: 0.48rem 0 0.35rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.package-price span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #92a59f;
}

.stat {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8f9f99;
}

.value {
  margin: 0.42rem 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.list-item {
  border-radius: 12px;
  background: var(--surface-lowest);
  padding: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.16);
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.16);
}

.docs-hero-actions {
  margin-top: 0.85rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0.82rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 0.72rem;
}

.docs-nav-list {
  display: grid;
  gap: 0.38rem;
}

.docs-nav-link {
  display: grid;
  gap: 0.22rem;
  border-radius: 12px;
  padding: 0.62rem 0.68rem;
  color: #9ea9a5;
  background: rgba(8, 16, 16, 0.55);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.16);
  transition: 0.18s ease;
}

.docs-nav-link:hover {
  color: #d4dfdc;
  background: rgba(35, 43, 43, 0.9);
}

.docs-nav-link.active {
  color: var(--primary);
  box-shadow:
    inset 2px 0 0 var(--primary),
    inset 0 0 0 1px rgba(102, 217, 204, 0.22);
  background: rgba(35, 43, 43, 0.95);
}

.docs-nav-link strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
}

.docs-connection-card {
  background: var(--surface-lowest);
}

.docs-connection-row {
  margin: 0.45rem 0 0;
  display: grid;
  gap: 0.26rem;
}

.docs-connection-row code {
  font-family: Consolas, "Courier New", monospace;
  color: #b4f7f0;
}

.docs-content {
  display: grid;
  gap: 0.78rem;
}

.docs-subpanel,
.docs-guide-grid-wrap {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid rgba(63, 73, 69, 0.14);
  padding: 0.68rem 0.62rem;
  white-space: nowrap;
}

thead th {
  color: #8b9a95;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.71rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.67rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.connected {
  color: #80eacb;
  border-color: rgba(77, 194, 182, 0.36);
  background: rgba(77, 194, 182, 0.14);
}

.pending {
  color: #ffd48e;
  border-color: rgba(255, 211, 139, 0.36);
  background: rgba(255, 211, 139, 0.15);
}

.disconnected {
  color: var(--error);
  border-color: rgba(255, 180, 171, 0.28);
  background: rgba(147, 0, 10, 0.2);
}

.usage-meter {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.usage-bar {
  width: 100%;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.usage-bar span {
  display: block;
  height: 100%;
  min-width: 0.25rem;
  border-radius: inherit;
  background: #34d399;
}

.usage-bar span.warning {
  background: #f59e0b;
}

.usage-bar span.danger {
  background: #ef4444;
}

.unavailable {
  color: #ffc9c4;
  border-color: rgba(255, 180, 171, 0.4);
  background: rgba(120, 0, 10, 0.28);
}

.responsible-notice {
  margin-top: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(15, 23, 42, 0.06)),
    var(--surface);
  box-shadow: 0 16px 48px rgba(120, 53, 15, 0.16);
}

.responsible-notice-gate {
  max-width: 1040px;
  margin: 1.2rem auto 0;
  padding: 1.25rem;
}

.responsible-notice-prominent {
  padding: 1rem;
}

.responsible-notice-compact {
  padding: 0.75rem;
}

.responsible-notice-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.responsible-notice-head > .material-symbols-outlined {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 14px;
  font-size: 2rem;
  padding: 0.55rem;
}

.responsible-notice-head .title {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.responsible-notice-lock {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  padding: 0.9rem;
}

.responsible-notice-lock .material-symbols-outlined {
  color: #93c5fd;
}

.responsible-notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.responsible-notice-examples {
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid transparent;
}

.responsible-notice-examples h3 {
  margin: 0;
  font-size: 1rem;
}

.responsible-notice-examples p,
.responsible-notice-examples ul {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.responsible-notice-examples ul {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}

.responsible-notice-examples li {
  position: relative;
  padding-left: 1.2rem;
}

.responsible-notice-examples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.responsible-notice-allowed li::before {
  background: #34d399;
}

.responsible-notice-denied li::before {
  background: #f87171;
}

.responsible-notice-allowed {
  border-color: rgba(52, 211, 153, 0.34);
  background: rgba(6, 95, 70, 0.16);
}

.responsible-notice-allowed h3 {
  color: #80eacb;
}

.responsible-notice-denied {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(127, 29, 29, 0.18);
}

.responsible-notice-denied h3 {
  color: #ffc9c4;
}

.responsible-notice-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 1rem;
}

.responsible-notice-compact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (max-width: 760px) {
  .responsible-notice-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 0.68rem;
}

.form label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--surface-lowest);
  color: var(--on-surface);
  font: inherit;
  padding: 0.72rem 0.84rem;
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.2);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #77857f;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(102, 217, 204, 0.3),
    0 0 0 2px rgba(102, 217, 204, 0.12);
  background: var(--surface-highest);
}

.body-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.body-app select,
.body-app textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: var(--surface-lowest);
  color: var(--on-surface);
  font: inherit;
  padding: 0.72rem 0.84rem;
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.13);
}

.body-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.body-app select:focus,
.body-app textarea:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(77, 163, 255, 0.38),
    0 0 0 2px rgba(77, 163, 255, 0.14);
  background: var(--surface-highest);
}

.error-line {
  margin: 0;
  color: var(--error);
  font-size: 0.83rem;
}

.auth-card {
  border-radius: 32px;
  padding: 2rem 1.8rem;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--on-surface-variant);
}

.auth-wrap .panel,
.auth-wrap .hero,
.auth-wrap .card {
  background: rgba(35, 43, 43, 0.74);
  backdrop-filter: blur(18px);
}

.content-body {
  margin-top: 0.95rem;
  border-radius: 12px;
  background: var(--surface-lowest);
  padding: 1rem;
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.18);
}

.backup-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 0.5rem;
}

.backup-codes-grid code {
  border-radius: 10px;
  background: rgba(8, 16, 16, 0.9);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.24);
  padding: 0.48rem 0.55rem;
  text-align: center;
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.04em;
  color: #b8f6ef;
}

.instance-manage-grid {
  grid-template-columns: 280px minmax(0, 1fr);
}

.manager-sidebar {
  align-self: start;
  position: sticky;
  top: 80px;
}

.manager-group-title {
  margin: 0.18rem 0 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #83928d;
  font-size: 0.73rem;
  font-weight: 700;
}

.manager-nav-list {
  margin-bottom: 0.82rem;
}

.manager-tab {
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 0.52rem 0.62rem;
  color: #9aa8a3;
  font-weight: 600;
  transition: 0.18s ease;
}

.manager-tab:hover {
  background: rgba(35, 43, 43, 0.88);
  color: var(--on-surface);
}

.manager-tab.active {
  background: rgba(35, 43, 43, 0.98);
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--primary);
}

.manager-main {
  min-height: 640px;
}

.cms-settings-form .manager-sidebar {
  padding: 1.05rem;
}

.cms-settings-sidebar {
  background:
    linear-gradient(165deg, rgba(25, 33, 33, 0.98) 0%, rgba(18, 26, 26, 0.98) 100%);
}

.cms-settings-tablist {
  gap: 0.45rem;
}

.cms-settings-tablist li {
  margin: 0;
}

.cms-settings-sidebar .manager-tab {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
  gap: 0.62rem;
  padding: 0.72rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(8, 16, 16, 0.35);
}

.cms-settings-sidebar .manager-tab .material-symbols-outlined {
  font-size: 1.05rem;
  margin-top: 0.08rem;
  color: #91a19c;
}

.manager-tab-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.manager-tab-copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
}

.manager-tab-copy small {
  font-size: 0.73rem;
  color: #7f908b;
  line-height: 1.25;
}

.cms-settings-sidebar .manager-tab:hover {
  border-color: rgba(102, 217, 204, 0.2);
}

.cms-settings-sidebar .manager-tab.active {
  border-color: rgba(102, 217, 204, 0.42);
  background: rgba(35, 43, 43, 0.95);
  box-shadow: inset 2px 0 0 var(--primary);
}

.cms-settings-sidebar .manager-tab.active .material-symbols-outlined {
  color: var(--primary);
}

.cms-settings-sidebar .manager-tab.active .manager-tab-copy strong {
  color: var(--primary);
}

.cms-settings-save-btn {
  width: 100%;
  margin-top: 0.9rem;
}

.cms-settings-main {
  padding: 1.25rem;
  background:
    linear-gradient(145deg, rgba(25, 33, 33, 0.98) 0%, rgba(20, 29, 29, 0.98) 100%);
}

.cms-settings-quick-save {
  position: sticky;
  top: 72px;
  z-index: 9;
  margin: -0.2rem 0 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(63, 73, 69, 0.22);
  background: rgba(13, 21, 21, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.cms-settings-quick-save .btn {
  min-width: 178px;
}

.cms-settings-panel {
  display: none;
  animation: cmsSettingsPanelFade 0.18s ease;
}

.cms-settings-panel.active {
  display: block;
}

.cms-settings-main .cms-settings-panel + .cms-settings-panel {
  margin-top: 0;
}

.cms-settings-main .title {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.cms-settings-main .subtitle {
  margin-top: 0.48rem;
  max-width: 74ch;
}

.cms-settings-form .form label.toggle-row {
  text-transform: none;
  letter-spacing: normal;
  color: var(--on-surface);
  font-size: 0.95rem;
  font-weight: 600;
}

.cms-settings-form .form label.toggle-row .small {
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.38;
  font-size: 0.84rem;
  color: #8ea09a;
}

.cms-settings-form .toggle-row > span strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.cms-mail-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
  margin-bottom: 0.9rem;
}

.cms-mail-subtab {
  border: 1px solid rgba(63, 73, 69, 0.3);
  background: rgba(8, 16, 16, 0.7);
  color: #a8b6b1;
  min-height: 34px;
}

.cms-mail-subtab.active {
  border-color: rgba(102, 217, 204, 0.46);
  color: var(--primary);
  background: rgba(35, 43, 43, 0.95);
}

.cms-mail-subpanel {
  display: none;
}

.cms-mail-subpanel.active {
  display: block;
}

.secret-mask {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

@keyframes cmsSettingsPanelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.token-card,
.qr-panel,
.json-box {
  border-radius: 12px;
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.16);
}

.token-card {
  padding: 0.8rem;
}

.token-value {
  margin: 0;
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
  letter-spacing: 0.03em;
}

.qr-panel {
  padding: 0.8rem;
}

.qr-preview {
  width: min(340px, 100%);
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem;
}

.qr-generated-target {
  width: fit-content;
  min-height: 300px;
  margin-top: 0.55rem;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem;
}

.json-box {
  margin-top: 0.62rem;
  padding: 0.7rem;
  max-height: 360px;
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.44;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.42rem 0;
}

.toggle-row > span {
  min-width: 0;
}

.toggle-row > span strong {
  display: inline-block;
  margin-bottom: 0.12rem;
}

.webhook-form .toggle-row {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--on-surface);
  font-weight: 500;
}

.webhook-form .toggle-row .small {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.84rem;
  color: #8ea09a;
}

.form input.toggle-input {
  appearance: none;
  width: 44px;
  max-width: 44px;
  min-width: 44px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(63, 73, 69, 0.4);
  background: #5b6670;
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex: 0 0 auto;
  box-shadow: none;
}

.form input.toggle-input::after {
  content: "";
  width: 18px;
  height: 18px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.form input.toggle-input:checked {
  background: var(--primary-container);
  border-color: rgba(102, 217, 204, 0.5);
}

.form input.toggle-input:checked::after {
  transform: translateX(20px);
}

.form input.toggle-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 217, 204, 0.24);
}

.settings-form {
  gap: 0;
}

.settings-list {
  border-top: 1px solid rgba(63, 73, 69, 0.25);
  border-bottom: 1px solid rgba(63, 73, 69, 0.25);
}

.settings-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(63, 73, 69, 0.2);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  color: var(--on-surface);
  font-weight: 500;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-text {
  min-width: 0;
}

.settings-item-title {
  display: block;
  font-weight: 700;
  color: var(--on-surface);
}

.settings-item-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #8ea09a;
  text-transform: none;
  letter-spacing: normal;
}

.settings-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.webhook-events-list {
  border-radius: 12px;
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 69, 0.16);
  max-height: 520px;
  overflow: auto;
  padding: 0 0.8rem;
}

.event-row {
  min-height: 44px;
  border-bottom: 1px solid rgba(63, 73, 69, 0.16);
}

.event-row:last-child {
  border-bottom: none;
}

.webhook-events-list input.toggle-input {
  appearance: auto;
  width: 17px;
  min-width: 17px;
  height: 17px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--primary);
  border: none;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
}

.webhook-events-list input.toggle-input::after {
  content: none;
}

.webhook-events-list input.toggle-input:focus-visible {
  outline: 2px solid rgba(102, 217, 204, 0.26);
  outline-offset: 2px;
  box-shadow: none;
}

/* Integration and module management polish */
.form input:disabled,
.form select:disabled,
.form textarea:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  color: rgba(234, 242, 255, 0.56);
  background: rgba(9, 15, 31, 0.72);
  box-shadow: inset 0 0 0 1px rgba(78, 97, 143, 0.22);
}

.form input[readonly],
.form textarea[readonly],
input[readonly],
textarea[readonly] {
  color: #c8d7f3;
  background: rgba(9, 15, 31, 0.86);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.18);
}

.form-grid,
.admin-form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid label,
.admin-form-grid label,
.panel > form label,
.section-card > form label {
  min-width: 0;
}

.check-row,
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 52px;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: rgba(9, 15, 31, 0.64);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.12);
  text-transform: none;
  letter-spacing: normal;
  color: var(--on-surface);
}

.check-row input[type="checkbox"],
.event-card input[type="checkbox"],
.toggle-card input[type="checkbox"]:not(.toggle-input) {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--primary);
}

.status-card,
.notice-card,
.section-card {
  border-radius: var(--radius-md);
  padding: 1.05rem;
  background:
    linear-gradient(145deg, rgba(77, 163, 255, 0.08), rgba(9, 15, 31, 0.08)),
    var(--surface-low);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.14);
}

.notice-card {
  border: 1px solid rgba(251, 191, 36, 0.28);
  background:
    linear-gradient(145deg, rgba(251, 191, 36, 0.12), rgba(9, 15, 31, 0.08)),
    var(--surface-low);
}

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

.integration-card {
  display: grid;
  gap: 0.82rem;
  min-height: 100%;
  border-radius: var(--radius-md);
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(77, 163, 255, 0.07), rgba(9, 15, 31, 0.04)),
    var(--surface-low);
  box-shadow:
    inset 0 0 0 1px rgba(77, 163, 255, 0.15),
    0 18px 44px rgba(0, 0, 0, 0.12);
}

.integration-card.is-muted {
  opacity: 0.76;
  background: rgba(17, 26, 51, 0.78);
  box-shadow: inset 0 0 0 1px rgba(78, 97, 143, 0.18);
}

.integration-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.integration-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #f4f8ff;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.95), rgba(43, 127, 224, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.integration-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.meta-tile {
  border-radius: 12px;
  padding: 0.65rem;
  background: rgba(9, 15, 31, 0.55);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.1);
}

.setup-steps {
  display: grid;
  gap: 0.65rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: setup-step;
}

.setup-steps li {
  counter-increment: setup-step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  border-radius: 14px;
  padding: 0.72rem;
  background: rgba(9, 15, 31, 0.56);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.1);
}

.setup-steps li::before {
  content: counter(setup-step);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f4f8ff;
  font-weight: 800;
  background: rgba(77, 163, 255, 0.24);
  border: 1px solid rgba(77, 163, 255, 0.34);
}

.event-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.68rem;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border-radius: 14px;
  padding: 0.78rem;
  background: rgba(9, 15, 31, 0.56);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.1);
  text-transform: none;
  letter-spacing: normal;
  color: var(--on-surface);
}

.event-card code {
  white-space: normal;
  word-break: break-word;
}

.advanced-details {
  margin-top: 0.85rem;
  border-radius: 14px;
  background: rgba(9, 15, 31, 0.45);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.1);
}

.advanced-details summary {
  cursor: pointer;
  padding: 0.8rem;
  font-weight: 800;
  color: var(--on-surface);
}

.advanced-details > div {
  padding: 0 0.8rem 0.8rem;
}

.data-table td,
.data-table th,
.module-table td,
.module-table th {
  vertical-align: top;
}

.module-table td {
  white-space: normal;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}

.summary-card {
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: rgba(9, 15, 31, 0.58);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.13);
}

.summary-card strong {
  display: block;
  margin-top: 0.25rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
}

.module-detail-layout {
  display: grid;
  gap: 1rem;
}

.json-textarea,
textarea.json-textarea {
  min-height: 92px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86rem;
}

.button-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.badge.enabled,
.badge.available,
.badge.connected {
  color: #80eacb;
  border-color: rgba(77, 194, 182, 0.36);
  background: rgba(77, 194, 182, 0.14);
}

.badge.beta,
.badge.warning,
.badge.coming_soon {
  color: #ffd48e;
  border-color: rgba(255, 211, 139, 0.36);
  background: rgba(255, 211, 139, 0.15);
}

.badge.disabled,
.badge.paused,
.badge.expired,
.badge.unavailable {
  color: var(--error);
  border-color: rgba(255, 180, 171, 0.28);
  background: rgba(147, 0, 10, 0.2);
}

.badge.not_in_plan,
.badge.pending_review,
.badge.requires_approval {
  color: #c7d2fe;
  border-color: rgba(129, 140, 248, 0.34);
  background: rgba(99, 102, 241, 0.16);
}

.url-wrap,
.table-wrap code {
  white-space: normal;
  word-break: break-word;
}

.mobile-nav {
  display: none;
}

.mobile-nav a,
.mobile-nav button {
  border: none;
  background: transparent;
  color: #8b9c97;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 62px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.mobile-nav a.active,
.mobile-nav button.active {
  background: rgba(35, 43, 43, 0.95);
  color: var(--primary);
}

details summary {
  cursor: pointer;
  color: #a9b8b3;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes gatewayApiPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gatewayFlowPulse {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -120;
  }
}

@keyframes gatewayNodeBreathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-enabled .reveal-item,
  body.motion-enabled .reveal-item.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gateway-api-panel.active {
    animation: none;
  }

  body.motion-enabled .magnetic-cta {
    transform: none;
    transition: none;
  }

  .gateway-flow-track,
  .gateway-flow-node {
    animation: none;
  }

  .gateway-flow-map,
  body.motion-enabled .gateway-visual-stage {
    transform: none;
    transition: none;
  }
}

@media (max-width: 1160px) {
  .app-container {
    width: min(1280px, calc(100vw - 286px));
  }
}

@media (max-width: 1024px) {
  .body-app .app-sidebar {
    width: 220px;
  }

  .app-topbar {
    left: 220px;
  }

  .app-main {
    margin-left: 220px;
  }

  .app-container {
    width: min(1280px, calc(100vw - 246px));
  }

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

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

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

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

  .gateway-playground {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .body-app .app-sidebar,
  .app-topbar .top-link {
    display: none;
  }

  .app-topbar {
    left: 0;
    padding: 0.8rem 1rem;
  }

  .app-main {
    margin-left: 0;
    padding-top: 76px;
    padding-bottom: 86px;
  }

  .app-container {
    width: 94vw;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: space-around;
    background: var(--surface-low);
    border-top: 1px solid rgba(63, 73, 69, 0.26);
    padding: 0.5rem 0.35rem;
  }

  .public-header .public-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .gateway-section-nav-wrap {
    top: 118px;
  }
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .instance-manage-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .manager-sidebar,
  .docs-sidebar {
    position: static;
  }

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

  .cms-settings-sidebar .manager-tab {
    min-height: 68px;
  }

  .manager-tab-copy small {
    display: none;
  }

  .cms-mail-subtabs {
    gap: 0.42rem;
  }

  .cms-mail-subtab {
    flex: 1 1 calc(50% - 0.42rem);
    min-width: 140px;
  }

  .cms-settings-quick-save {
    top: 64px;
    padding: 0.55rem;
  }

  .cms-settings-quick-save .btn {
    min-width: 0;
  }

  .hero {
    padding: 1.45rem 1.1rem;
  }

  .landing-hero {
    padding: 1.5rem 1.1rem 1.2rem;
  }

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

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

  .landing-workflow-grid {
    grid-template-columns: 1fr;
  }

  .gateway-api-tabs,
  .gateway-api-panel-grid {
    grid-template-columns: 1fr;
  }

  .gateway-playground-grid {
    grid-template-columns: 1fr;
  }

  .gateway-section-nav-wrap {
    top: 64px;
  }
}

@media (max-width: 560px) {
  .landing-metrics {
    grid-template-columns: 1fr;
  }

  .landing-statuses {
    margin-top: 0.45rem;
  }

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

/* Phase 6: Midnight Blue Redesign Overrides */
body.body-public,
body.body-auth {
  color: var(--on-surface);
}

body.body-public .public-main {
  padding: 1.65rem 0 2.8rem;
}

body.body-public .public-header {
  border-bottom: 1px solid rgba(37, 54, 95, 0.62);
  background: rgba(11, 16, 32, 0.84);
  box-shadow: 0 14px 44px rgba(2, 6, 18, 0.35);
}

body.body-public .brand-link {
  color: #f5f9ff;
  letter-spacing: -0.01em;
}

body.body-public .public-nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: space-between;
}

body.body-public .public-nav {
  gap: 0.1rem;
}

body.body-public .public-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.38rem 0.74rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #9fb2da;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: 0.2s ease;
}

body.body-public .public-nav-link:hover {
  color: #d9e7ff;
  background: rgba(31, 46, 89, 0.56);
}

body.body-public .public-nav-link.active {
  color: #8fc8ff;
  border-color: rgba(77, 163, 255, 0.62);
  background: rgba(17, 26, 51, 0.92);
}

body.body-public .public-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

body.body-public .public-nav-btn {
  min-height: 34px;
  padding: 0.45rem 0.95rem;
  font-size: 0.74rem;
}

body.body-public .hero,
body.body-public .panel,
body.body-public .card,
body.body-auth .hero,
body.body-auth .panel,
body.body-auth .card {
  border: 1px solid rgba(37, 54, 95, 0.8);
  background: linear-gradient(165deg, rgba(17, 26, 51, 0.96) 0%, rgba(10, 16, 31, 0.98) 100%);
  box-shadow:
    0 28px 70px rgba(2, 6, 18, 0.36),
    inset 0 0 0 1px rgba(77, 163, 255, 0.08);
}

body.body-public .hero::before {
  background: radial-gradient(circle, rgba(77, 163, 255, 0.3) 0%, transparent 74%);
}

body.body-public .landing-hero {
  border-radius: 28px;
  padding: 2.15rem 1.6rem 1.7rem;
}

body.body-public .gateway-v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 0.9rem;
}

body.body-public .gateway-v2-hero-copy .landing-lead {
  max-width: 58ch;
}

body.body-public .gateway-v2-stat-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

body.body-public .gateway-v2-monitor {
  padding: 0.9rem;
}

body.body-public .gateway-v2-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

body.body-public .gateway-v2-monitor-stage {
  margin-top: 0.62rem;
  border-radius: 14px;
  border: 1px solid rgba(37, 54, 95, 0.82);
  overflow: hidden;
  background: rgba(8, 13, 27, 0.96);
}

body.body-public .gateway-v2-monitor-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.32rem;
  padding: 0.5rem;
}

body.body-public .gateway-v2-monitor-legend span {
  border-radius: 999px;
  border: 1px solid rgba(37, 54, 95, 0.9);
  background: rgba(13, 20, 40, 0.94);
  color: #9fb2da;
  font-size: 0.66rem;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.32rem;
  font-weight: 700;
}

body.body-public .gateway-v2-request-list {
  margin-top: 0.62rem;
}

body.body-public .gateway-v2-request-list .list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.58rem 0.62rem;
}

body.body-public .gateway-v2-request-list strong {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: #8fc8ff;
}

body.body-public .gateway-v2-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.66rem;
}

body.body-public .gateway-v2-step-card {
  background: rgba(9, 15, 31, 0.94);
  border: 1px solid rgba(37, 54, 95, 0.8);
}

body.body-public .gateway-v2-step-card .json-box {
  margin-top: 0.52rem;
  max-height: none;
  font-size: 0.76rem;
}

body.body-public .gateway-v2-inline-media {
  margin-top: 0.72rem;
  padding: 0.66rem;
}

body.body-public .gateway-v2-docs-grid .card {
  min-height: 100%;
}

body.body-public .gateway-v2-final {
  padding: 1.05rem;
}

body.body-public .gateway-v2-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 0.82rem;
  align-items: center;
}

body.body-public .gateway-v2-final-media {
  padding: 0.66rem;
}

body.body-public .gateway-v2-final-media .landing-dummy-image-phone {
  max-height: 360px;
}

html[data-theme="dark"] body.body-public .landing-hero h1,
html[data-theme="dark"] body.body-auth .landing-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  color: #f5f9ff;
}

html[data-theme="dark"] body.body-public .landing-hero .landing-lead,
html[data-theme="dark"] body.body-auth .landing-hero .landing-lead {
  color: #d3ddf4;
}

body.body-public .landing-statuses .chip {
  background: rgba(13, 20, 40, 0.92);
}

body.body-public .landing-section-head {
  margin-bottom: 1rem;
}

body.body-public .landing-section {
  margin-top: 1.05rem;
}

body.body-public .gateway-section-nav-wrap {
  border: 1px solid rgba(37, 54, 95, 0.62);
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.88);
}

body.body-public .gateway-section-link {
  border: 1px solid rgba(37, 54, 95, 0.85);
  background: rgba(12, 18, 36, 0.94);
  color: #aabbe1;
}

body.body-public .gateway-section-link.active {
  border-color: rgba(77, 163, 255, 0.9);
  background: rgba(17, 26, 51, 0.98);
  color: #8bc2ff;
}

body.body-public .landing-metric-card,
body.body-public .landing-workflow-card,
body.body-public .landing-feature-card,
body.body-public .gateway-usecase-card,
body.body-public .gateway-api-card,
body.body-public .landing-resource-card,
body.body-public .landing-faq details {
  border: 1px solid rgba(37, 54, 95, 0.72);
  background: rgba(9, 15, 31, 0.92);
}

body.body-public .gateway-api-tab {
  border-color: rgba(37, 54, 95, 0.88);
  background: rgba(10, 17, 35, 0.95);
  color: #a8badf;
}

body.body-public .gateway-api-tab.active {
  border-color: rgba(77, 163, 255, 0.92);
  background: rgba(17, 26, 51, 0.98);
  color: #8ec3ff;
}

body.body-public .gateway-copy-btn {
  border-color: rgba(54, 78, 132, 0.8);
  background: rgba(14, 22, 43, 0.95);
  color: #c8d8f8;
}

body.body-public .gateway-copy-btn.copied {
  border-color: rgba(77, 163, 255, 0.9);
}

body.body-public .gateway-playground-controls,
body.body-public .gateway-playground-output {
  border: 1px solid rgba(37, 54, 95, 0.78);
  background: rgba(9, 15, 31, 0.92);
}

body.body-public .gateway-playground-grid input,
body.body-public .gateway-playground-grid select {
  border: 1px solid rgba(37, 54, 95, 0.9);
  background: rgba(12, 19, 38, 0.97);
}

body.body-public .gateway-playground-grid input:focus,
body.body-public .gateway-playground-grid select:focus {
  box-shadow:
    inset 0 0 0 1px rgba(77, 163, 255, 0.75),
    0 0 0 2px rgba(77, 163, 255, 0.18);
}

body.body-public .json-box {
  border: 1px solid rgba(37, 54, 95, 0.72);
  background: rgba(6, 11, 25, 0.96);
}

html[data-theme="dark"] body.body-public .landing-price-card.featured,
html[data-theme="dark"] body.body-auth .landing-price-card.featured {
  background: linear-gradient(165deg, rgba(17, 39, 81, 0.98) 0%, rgba(11, 16, 32, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(77, 163, 255, 0.84),
    0 0 0 1px rgba(77, 163, 255, 0.22),
    0 24px 50px rgba(8, 14, 30, 0.44);
}

[data-hero-parallax] {
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
}

body.motion-enabled [data-hero-parallax] {
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0);
  transition: transform 0.22s ease;
}

.landing-media-card {
  margin-top: 0.92rem;
  border-radius: 18px;
  display: grid;
  gap: 0.62rem;
}

.landing-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.landing-media-head h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.landing-media-frame {
  border-radius: 14px;
  border: 1px solid rgba(54, 78, 132, 0.8);
  overflow: hidden;
  background: rgba(7, 13, 27, 0.9);
}

.landing-dummy-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.landing-dummy-image-phone {
  max-height: 420px;
  margin-inline: auto;
}

.landing-media-tags {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
}

.landing-media-tags span {
  border-radius: 999px;
  border: 1px solid rgba(37, 54, 95, 0.88);
  background: rgba(12, 19, 38, 0.94);
  padding: 0.34rem 0.46rem;
  text-align: center;
  color: #9fb2d9;
  font-size: 0.7rem;
  font-weight: 700;
}

.landing-media-tags span.is-live {
  color: #9ed0ff;
  border-color: rgba(77, 163, 255, 0.88);
}

.landing-dual-media {
  margin-top: 0.88rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

body.body-public .docs-layout {
  gap: 0.92rem;
}

body.body-public .docs-nav-link {
  border: 1px solid rgba(37, 54, 95, 0.78);
  background: rgba(12, 19, 38, 0.92);
  color: #a7b9de;
}

body.body-public .docs-nav-link.active {
  border-color: rgba(77, 163, 255, 0.88);
  color: #9ed0ff;
  background: rgba(17, 26, 51, 0.98);
}

.public-footer {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(37, 54, 95, 0.72);
  background: linear-gradient(180deg, rgba(8, 13, 27, 0.7) 0%, rgba(8, 13, 27, 0.95) 30%, rgba(6, 10, 21, 0.98) 100%);
  padding: 1.6rem 0 1rem;
}

.public-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-footer-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f5f9ff;
}

.public-footer-heading {
  margin: 0 0 0.42rem;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8fa8d8;
  font-weight: 800;
}

.public-footer-grid section {
  display: grid;
  align-content: start;
  gap: 0.36rem;
}

.public-footer-grid a {
  color: #c5d5f2;
  font-size: 0.88rem;
  transition: color 0.18s ease;
}

.public-footer-grid a:hover {
  color: #8fc8ff;
}

.public-footer-endpoint code {
  color: #9ed0ff;
  font-family: Consolas, "Courier New", monospace;
}

.public-footer-bottom {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(37, 54, 95, 0.72);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.58rem;
}

.public-footer-compact {
  margin-top: 0.65rem;
  padding-top: 1rem;
}

@media (max-width: 1024px) {
  body.body-public .gateway-v2-hero-grid {
    grid-template-columns: 1fr;
  }

  body.body-public .gateway-v2-step-grid {
    grid-template-columns: 1fr;
  }

  body.body-public .gateway-v2-final-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 860px) {
  body.body-public .public-nav-wrap {
    display: grid;
    gap: 0.55rem;
  }

  body.body-public .public-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 0.2rem;
  }

  body.body-public .public-nav-actions {
    justify-content: flex-end;
  }

  body.body-public .gateway-v2-stat-grid {
    grid-template-columns: 1fr;
  }

  body.body-public .gateway-v2-monitor-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.body-public .landing-hero {
    padding: 1.65rem 1.15rem 1.3rem;
  }

  .landing-dual-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .public-footer-grid {
    grid-template-columns: 1fr;
  }

  .public-footer-bottom {
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  body.motion-enabled [data-hero-parallax] {
    transform: none;
    transition: none;
  }
}

/* Phase 7: Visual Parity Pass */
body.body-public .public-container {
  width: min(1380px, 95vw);
}

body.body-public .public-header {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(40, 62, 112, 0.68);
  background: rgba(6, 11, 26, 0.9);
  box-shadow: 0 12px 34px rgba(2, 6, 16, 0.42);
}

body.body-public .brand-link {
  font-size: 1.12rem;
  color: #edf4ff;
}

body.body-public .public-nav-link {
  min-height: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #afc0e3;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.42rem 0.65rem;
}

body.body-public .public-nav-link.active,
body.body-public .public-nav-link:hover {
  border: 0;
  background: rgba(23, 38, 74, 0.82);
  color: #d9e8ff;
}

body.body-public .public-nav-actions .public-nav-link {
  color: #d2e1ff;
}

body.body-public .public-nav-btn {
  min-height: 36px;
  border-radius: 10px;
  padding: 0.5rem 0.95rem;
}

body.body-public .public-main {
  padding: 1rem 0 2rem;
}

.gateway-v3-board {
  border-radius: 20px;
  border: 1px solid rgba(36, 61, 116, 0.8);
  background:
    radial-gradient(1200px 560px at 10% -8%, rgba(42, 114, 255, 0.14) 0%, transparent 52%),
    radial-gradient(900px 420px at 100% 20%, rgba(58, 113, 255, 0.12) 0%, transparent 64%),
    linear-gradient(180deg, rgba(8, 13, 29, 0.95) 0%, rgba(5, 10, 23, 0.98) 100%);
  box-shadow:
    0 26px 70px rgba(2, 6, 18, 0.54),
    inset 0 0 0 1px rgba(89, 150, 255, 0.08);
  padding: 0.95rem;
}

.gateway-v3-board .landing-section {
  margin-top: 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(36, 61, 116, 0.56);
  background: linear-gradient(162deg, rgba(8, 15, 33, 0.9) 0%, rgba(7, 12, 26, 0.93) 100%);
  padding: 0.9rem;
}

.gateway-v3-board .landing-section:first-child {
  margin-top: 0;
}

.gateway-v3-kicker {
  display: inline-flex;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(63, 113, 214, 0.78);
  background: rgba(18, 35, 71, 0.92);
  color: #9dc7ff;
  padding: 0.22rem 0.58rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.gateway-v3-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 0.85rem;
}

.gateway-v3-hero h1 {
  margin: 0.55rem 0 0.5rem;
  max-width: 16ch;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(2.05rem, 5.1vw, 4rem);
  line-height: 0.98;
  color: #f7fbff;
  letter-spacing: -0.03em;
}

.gateway-v3-hero h1 span {
  color: #56a5ff;
}

.gateway-v3-lead {
  margin: 0;
  max-width: 45ch;
  color: #d6e3fb;
  font-size: 1.02rem;
}

.gateway-v3-intro {
  margin-top: 0.45rem;
  max-width: 55ch;
}

.gateway-v3-actions {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gateway-v3-metrics {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.gateway-v3-metric-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.62rem;
  border: 1px solid rgba(45, 73, 133, 0.72);
  background: rgba(9, 17, 36, 0.94);
}

.gateway-v3-metric-card .material-symbols-outlined {
  font-size: 1.02rem;
  color: #76bcff;
}

.gateway-v3-metric-card .value {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gateway-v3-status-panel {
  border: 1px solid rgba(56, 93, 168, 0.86);
  background:
    radial-gradient(560px 260px at 100% 0%, rgba(54, 109, 222, 0.2) 0%, transparent 60%),
    rgba(8, 14, 31, 0.96);
  padding: 0.7rem;
  display: grid;
  gap: 0.62rem;
}

.gateway-v3-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gateway-v3-panel-title {
  margin: 0;
  color: #d7e8ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 800;
}

.gateway-v3-status-chart {
  min-height: 230px;
  border-radius: 12px;
  border: 1px solid rgba(45, 73, 133, 0.82);
  overflow: hidden;
  background: rgba(6, 11, 24, 0.95);
}

.gateway-v3-requests {
  border-radius: 12px;
  border: 1px solid rgba(45, 73, 133, 0.68);
  background: rgba(7, 13, 29, 0.9);
  padding: 0.58rem;
  display: grid;
  gap: 0.35rem;
}

.gateway-v3-row-head,
.gateway-v3-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.gateway-v3-row-head {
  color: #8ba7d8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gateway-v3-row code {
  color: #d7e7ff;
  font-size: 0.76rem;
}

.gateway-v3-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.gateway-v3-step-card {
  position: relative;
  border: 1px solid rgba(41, 67, 121, 0.76);
  background: rgba(8, 15, 33, 0.92);
  padding-top: 1.08rem;
}

.gateway-v3-step-number {
  position: absolute;
  top: -0.44rem;
  left: 0.62rem;
  margin: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #dff0ff;
  border: 1px solid rgba(90, 145, 255, 0.82);
  background: linear-gradient(160deg, rgba(62, 117, 228, 0.95) 0%, rgba(31, 72, 158, 0.95) 100%);
  box-shadow: 0 10px 24px rgba(16, 35, 77, 0.6);
}

.gateway-v3-step-card h3 {
  margin: 0 0 0.3rem;
}

.gateway-v3-step-card .json-box {
  margin-top: 0.58rem;
  min-height: auto;
}

.gateway-v3-inline-media {
  margin-top: 0.62rem;
  padding: 0.56rem;
  border: 1px solid rgba(43, 70, 126, 0.72);
}

.gateway-v3-playground-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
  gap: 0.62rem;
}

.gateway-v3-form-card {
  display: grid;
  gap: 0.66rem;
}

.gateway-v3-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gateway-v3-form-head h3 {
  margin: 0;
}

.gateway-v3-checklist {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
  display: grid;
  gap: 0.32rem;
}

.gateway-v3-checklist li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #a8bfeb;
  font-size: 0.78rem;
}

.gateway-v3-checklist .material-symbols-outlined {
  font-size: 0.95rem;
  color: #61b1ff;
}

.gateway-v3-api-stack {
  display: grid;
  gap: 0.5rem;
}

.gateway-v3-api-stack .gateway-api-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 0.42rem;
}

.gateway-v3-api-stack .gateway-api-tab {
  text-align: center;
  border-radius: 10px;
  padding: 0.52rem 0.56rem;
}

.gateway-v3-api-stack .gateway-api-panel {
  display: none;
  gap: 0.48rem;
}

.gateway-v3-api-stack .gateway-api-panel.active {
  display: grid;
}

.gateway-v3-api-card {
  padding: 0.72rem;
}

.gateway-v3-api-card .json-box {
  margin-top: 0.38rem;
  min-height: 150px;
}

.gateway-v3-generated-card {
  margin-top: 0.52rem;
  border: 1px solid rgba(41, 67, 121, 0.74);
  background: rgba(8, 15, 33, 0.92);
}

.gateway-v3-inline-bar {
  margin-top: 0.62rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(43, 70, 126, 0.76);
  background: rgba(8, 14, 31, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.gateway-v3-bar-title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.gateway-v3-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.gateway-v3-feature-card {
  border: 1px solid rgba(41, 67, 121, 0.74);
  background: rgba(8, 15, 33, 0.92);
  padding: 0.72rem;
}

.gateway-v3-feature-card .material-symbols-outlined {
  font-size: 1.15rem;
  color: #7dbdff;
}

.gateway-v3-feature-card h3 {
  margin: 0.34rem 0 0;
  font-size: 1.01rem;
}

.gateway-v3-feature-card p {
  margin: 0.35rem 0 0;
  color: #b2c4e8;
  font-size: 0.86rem;
}

.gateway-v3-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.gateway-v3-trust-card {
  border: 1px solid rgba(41, 67, 121, 0.72);
  background: rgba(8, 15, 33, 0.92);
}

.gateway-v3-trust-card .landing-checklist li {
  border: 1px solid rgba(44, 71, 127, 0.6);
  background: rgba(9, 17, 36, 0.92);
}

.gateway-v3-trust-media {
  margin-top: 0.62rem;
}

.gateway-v3-pricing .landing-pricing-grid {
  gap: 0.62rem;
}

.gateway-v3-pricing .landing-price-card {
  border: 1px solid rgba(41, 67, 121, 0.74);
  background: rgba(8, 15, 33, 0.92);
  padding: 0.78rem;
}

.gateway-v3-pricing .landing-price-card .badge {
  justify-self: start;
}

.gateway-v3-pricing .landing-price-card.featured {
  border: 1px solid rgba(76, 131, 244, 0.92);
  background:
    radial-gradient(480px 240px at 50% -20%, rgba(70, 132, 255, 0.2) 0%, transparent 68%),
    rgba(10, 20, 42, 0.96);
  box-shadow: 0 18px 40px rgba(9, 22, 53, 0.56);
}

.gateway-v3-docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr) minmax(240px, 0.9fr);
  gap: 0.62rem;
}

.gateway-v3-docs-card,
.gateway-v3-endpoint-card,
.gateway-v3-sdk-card {
  border: 1px solid rgba(41, 67, 121, 0.74);
  background: rgba(8, 15, 33, 0.92);
}

.gateway-v3-docs-actions {
  margin-top: 0.58rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.gateway-v3-endpoint-card {
  display: grid;
  gap: 0.6rem;
}

.gateway-v3-endpoint-card label {
  display: grid;
  gap: 0.26rem;
}

.gateway-v3-endpoint-card code {
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(42, 68, 123, 0.74);
  background: rgba(5, 11, 25, 0.95);
  color: #d7e8ff;
  padding: 0.52rem 0.6rem;
  font-size: 0.82rem;
}

.gateway-v3-sdk-grid {
  margin-top: 0.42rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.gateway-v3-sdk-grid span {
  border-radius: 10px;
  border: 1px solid rgba(42, 68, 123, 0.74);
  background: rgba(7, 12, 27, 0.93);
  color: #cfe0ff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.35rem;
}

.gateway-v3-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.gateway-v3-faq details {
  border-radius: 10px;
  border: 1px solid rgba(41, 67, 121, 0.74);
  background: rgba(8, 15, 33, 0.92);
  padding: 0.62rem 0.68rem;
}

.gateway-v3-faq details p {
  margin: 0.45rem 0 0;
  color: #afc1e4;
  font-size: 0.88rem;
}

.gateway-v3-final {
  border: 1px solid rgba(60, 99, 182, 0.78);
  background:
    radial-gradient(840px 240px at 10% -30%, rgba(71, 124, 241, 0.26) 0%, transparent 70%),
    rgba(8, 14, 32, 0.95);
  text-align: left;
}

.gateway-v3-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 0.8rem;
  align-items: center;
}

.gateway-v3-phone-card {
  border: 1px solid rgba(43, 70, 126, 0.82);
  background: rgba(6, 12, 27, 0.92);
  padding: 0.58rem;
}

.gateway-v3-phone-card .landing-dummy-image-phone {
  max-height: 270px;
}

.gateway-v3-final .gateway-v3-actions {
  justify-content: flex-start;
}

body.body-public .public-footer {
  margin-top: 0.9rem;
  border: 1px solid rgba(36, 61, 116, 0.74);
  border-radius: 16px;
  padding: 1.2rem 0 0.88rem;
}

@media (max-width: 1180px) {
  .gateway-v3-hero-grid,
  .gateway-v3-playground-grid,
  .gateway-v3-final-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 960px) {
  .gateway-v3-steps,
  .gateway-v3-feature-grid,
  .gateway-v3-trust-grid,
  .gateway-v3-faq-grid,
  .gateway-v3-metrics {
    grid-template-columns: 1fr;
  }

  .gateway-v3-inline-bar {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 760px) {
  body.body-public .public-nav-wrap {
    display: grid;
    gap: 0.5rem;
  }

  body.body-public .public-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 0.15rem;
  }

  body.body-public .public-nav-actions {
    justify-content: flex-end;
  }

  .gateway-v3-board {
    padding: 0.7rem;
  }

  .gateway-v3-board .landing-section {
    padding: 0.72rem;
  }
}

@media (max-width: 860px) {
  .theme-toggle [data-theme-toggle-label] {
    display: none;
  }

  .theme-toggle {
    min-width: 34px;
    justify-content: center;
    padding-inline: 0.48rem;
  }
}

/* Phase 8: Light-First Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.4rem 0.68rem;
  border-radius: 10px;
  border: 1px solid rgba(84, 108, 156, 0.35);
  background: rgba(255, 255, 255, 0.94);
  color: #1f355c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-toggle .material-symbols-outlined {
  font-size: 1rem;
}

.theme-toggle:hover {
  background: #ffffff;
  border-color: rgba(58, 95, 168, 0.55);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(16, 27, 53, 0.94);
  border-color: rgba(61, 94, 160, 0.6);
  color: #d3e4ff;
}

html[data-theme="light"] body.body-public,
html[data-theme="light"] body.body-auth {
  --surface: #eef3f9;
  --surface-low: #ffffff;
  --surface-container: #f7f9fd;
  --surface-high: #f1f6ff;
  --surface-highest: #e9f0ff;
  --surface-lowest: #ffffff;
  --surface-bright: #d8e4fb;
  --on-surface: #1a2940;
  --on-surface-variant: #5f6f87;
  --outline-variant: #d8e2f3;
  --primary: #236ddd;
  --primary-container: #1f59b6;
  --primary-fixed: #4388f0;
  --error: #b3261e;
  color: #1a2940;
}

html[data-theme="light"] .bg-atmosphere {
  background:
    radial-gradient(circle at 8% -4%, rgba(66, 136, 240, 0.16), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(121, 170, 247, 0.22), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(146, 196, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #edf2f9 100%);
}

html[data-theme="light"] body.body-public .public-header {
  background: rgba(248, 252, 255, 0.92);
  border-bottom: 1px solid #d6e2f4;
  box-shadow: 0 10px 24px rgba(20, 48, 95, 0.08);
}

html[data-theme="light"] body.body-public .brand-link {
  color: #12213a;
}

html[data-theme="light"] body.body-public .public-nav-link {
  color: #42567b;
}

html[data-theme="light"] body.body-public .public-nav-link:hover,
html[data-theme="light"] body.body-public .public-nav-link.active {
  color: #1a315a;
  background: rgba(50, 96, 179, 0.12);
}

html[data-theme="light"] body.body-public .public-nav-actions .public-nav-link {
  color: #2f4369;
}

html[data-theme="light"] body.body-public .hero,
html[data-theme="light"] body.body-public .panel,
html[data-theme="light"] body.body-public .card,
html[data-theme="light"] body.body-auth .hero,
html[data-theme="light"] body.body-auth .panel,
html[data-theme="light"] body.body-auth .card {
  background: #ffffff;
  border: 1px solid #dbe6f6;
  box-shadow:
    0 12px 30px rgba(31, 65, 122, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body.body-public .gateway-v3-board {
  border: 1px solid #d5e2f6;
  background:
    radial-gradient(1200px 560px at 10% -8%, rgba(58, 122, 232, 0.12) 0%, transparent 52%),
    radial-gradient(860px 420px at 100% 20%, rgba(77, 145, 248, 0.1) 0%, transparent 64%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.98) 0%, rgba(239, 245, 252, 0.98) 100%);
  box-shadow: 0 22px 44px rgba(23, 58, 112, 0.12);
}

html[data-theme="light"] body.body-public .gateway-v3-board .landing-section {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #dce7f7;
}

html[data-theme="light"] body.body-public .gateway-v3-kicker {
  color: #2c66c6;
  border-color: rgba(55, 106, 193, 0.42);
  background: rgba(62, 120, 218, 0.12);
}

html[data-theme="light"] body.body-public .gateway-v3-hero h1 {
  color: #162946;
  font-size: clamp(1.9rem, 4.7vw, 3.35rem);
  line-height: 1.02;
}

html[data-theme="light"] body.body-public .gateway-v3-hero h1 span {
  color: #1f64cc;
}

html[data-theme="light"] body.body-public .gateway-v3-lead {
  color: #3e5376;
}

html[data-theme="light"] body.body-public .gateway-v3-status-panel,
html[data-theme="light"] body.body-public .gateway-v3-step-card,
html[data-theme="light"] body.body-public .gateway-v3-feature-card,
html[data-theme="light"] body.body-public .gateway-v3-trust-card,
html[data-theme="light"] body.body-public .gateway-v3-generated-card,
html[data-theme="light"] body.body-public .gateway-v3-pricing .landing-price-card,
html[data-theme="light"] body.body-public .gateway-v3-docs-card,
html[data-theme="light"] body.body-public .gateway-v3-endpoint-card,
html[data-theme="light"] body.body-public .gateway-v3-sdk-card,
html[data-theme="light"] body.body-public .gateway-v3-faq details {
  border: 1px solid #d8e4f6;
  background: #ffffff;
}

html[data-theme="light"] body.body-public .gateway-v3-status-chart,
html[data-theme="light"] body.body-public .gateway-v3-requests,
html[data-theme="light"] body.body-public .gateway-v3-inline-bar,
html[data-theme="light"] body.body-public .gateway-v3-phone-card,
html[data-theme="light"] body.body-public .gateway-v3-inline-media {
  border-color: #d8e4f6;
  background: #f9fbff;
}

html[data-theme="light"] body.body-public .gateway-v3-row-head {
  color: #5a7098;
}

html[data-theme="light"] body.body-public .gateway-v3-row code {
  color: #1f3459;
}

html[data-theme="light"] body.body-public .gateway-v3-checklist li {
  color: #496087;
}

html[data-theme="light"] body.body-public .gateway-v3-checklist .material-symbols-outlined {
  color: #2f73d9;
}

html[data-theme="light"] body.body-public .gateway-api-tab {
  border: 1px solid #d4e1f5;
  background: #f5f9ff;
  color: #41597d;
}

html[data-theme="light"] body.body-public .gateway-api-tab.active {
  border-color: rgba(47, 106, 201, 0.55);
  background: rgba(40, 102, 201, 0.12);
  color: #1f4e96;
}

html[data-theme="light"] body.body-public .gateway-copy-btn {
  border-color: #cad9f0;
  background: #f4f8ff;
  color: #2a476f;
}

html[data-theme="light"] body.body-public .gateway-copy-btn.copied {
  border-color: rgba(38, 98, 192, 0.55);
  color: #1f4f9b;
}

html[data-theme="light"] body.body-public .gateway-playground-controls,
html[data-theme="light"] body.body-public .gateway-playground-output {
  border-color: #d8e4f6;
  background: #ffffff;
}

html[data-theme="light"] body.body-public .gateway-playground-grid input,
html[data-theme="light"] body.body-public .gateway-playground-grid select {
  border: 1px solid #cddbf1;
  background: #f7faff;
  color: #1e3151;
  box-shadow: none;
}

html[data-theme="light"] body.body-public .gateway-playground-grid input:focus,
html[data-theme="light"] body.body-public .gateway-playground-grid select:focus {
  box-shadow:
    inset 0 0 0 1px rgba(39, 102, 198, 0.55),
    0 0 0 2px rgba(39, 102, 198, 0.15);
}

html[data-theme="light"] body.body-public .json-box,
html[data-theme="light"] body.body-auth .json-box {
  border: 1px solid #d6e2f4;
  background: #f4f8ff;
  color: #1b2b46;
}

html[data-theme="light"] body.body-public .json-box code,
html[data-theme="light"] body.body-auth .json-box code {
  color: #1b2b46;
}

html[data-theme="light"] body.body-public .landing-checklist li {
  border: 1px solid #dde7f7;
  background: #f7faff;
  color: #425675;
}

html[data-theme="light"] body.body-public .landing-faq details p,
html[data-theme="light"] body.body-public .gateway-v3-faq details p {
  color: #536783;
}

html[data-theme="light"] body.body-public .small.muted,
html[data-theme="light"] body.body-auth .small.muted,
html[data-theme="light"] body.body-public .muted,
html[data-theme="light"] body.body-auth .muted {
  color: #5f7088;
}

html[data-theme="light"] body.body-public .flash-success,
html[data-theme="light"] body.body-auth .flash-success {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

html[data-theme="light"] body.body-public .flash-error,
html[data-theme="light"] body.body-auth .flash-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

html[data-theme="light"] body.body-public .connected,
html[data-theme="light"] body.body-auth .connected {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #5eead4;
}

html[data-theme="light"] body.body-public .pending,
html[data-theme="light"] body.body-auth .pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

html[data-theme="light"] body.body-public .disconnected,
html[data-theme="light"] body.body-auth .disconnected {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

html[data-theme="light"] body.body-public .unavailable,
html[data-theme="light"] body.body-auth .unavailable {
  background: #ffe4e6;
  color: #9f1239;
  border-color: #fda4af;
}

html[data-theme="light"] body.body-public .badge.connected {
  background: rgba(55, 168, 102, 0.16);
  color: #1a7d45;
  border-color: rgba(46, 149, 90, 0.35);
}

html[data-theme="light"] body.body-public .badge.pending {
  background: rgba(240, 180, 34, 0.15);
  color: #946312;
  border-color: rgba(224, 166, 27, 0.38);
}

html[data-theme="light"] body.body-public .chip {
  border-color: #cad8ef;
  background: #f4f8ff;
  color: #2d4f7d;
}

html[data-theme="light"] body.body-public .chip:hover,
html[data-theme="light"] body.body-public .chip.active {
  border-color: rgba(44, 104, 198, 0.52);
  background: rgba(41, 102, 201, 0.12);
  color: #1f4f99;
}

html[data-theme="light"] body.body-public .btn,
html[data-theme="light"] body.body-auth .btn {
  color: #ffffff;
  background: linear-gradient(135deg, #4b9eff 0%, #2f7add 100%);
}

html[data-theme="light"] body.body-public .btn:hover,
html[data-theme="light"] body.body-auth .btn:hover {
  filter: brightness(1.05);
}

html[data-theme="light"] body.body-public .btn-alt,
html[data-theme="light"] body.body-auth .btn-alt {
  color: #1f4f99;
  border: 1px solid #bfd3f0;
  background: #edf4ff;
  letter-spacing: 0.04em;
}

html[data-theme="light"] body.body-public .btn-alt:hover,
html[data-theme="light"] body.body-auth .btn-alt:hover {
  border-color: #98b9ea;
  background: #e3eeff;
}

html[data-theme="light"] body.body-public .btn-alt:disabled,
html[data-theme="light"] body.body-auth .btn-alt:disabled {
  color: #8097b8;
  border-color: #d3def0;
  background: #f3f7ff;
}

html[data-theme="light"] body.body-public .public-footer {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border-color: #d6e2f4;
}

html[data-theme="light"] body.body-public .public-footer-title {
  color: #1a2b49;
}

html[data-theme="light"] body.body-public .public-footer-heading {
  color: #47638b;
}

html[data-theme="light"] body.body-public .public-footer-grid a {
  color: #304f78;
}

html[data-theme="light"] body.body-public .public-footer-grid a:hover {
  color: #1f4f99;
}

html[data-theme="light"] body.body-public .landing-hero h1,
html[data-theme="light"] body.body-auth .landing-hero h1 {
  color: #1a2b49;
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  line-height: 1.07;
  max-width: 24ch;
}

html[data-theme="light"] body.body-public .landing-hero .landing-lead,
html[data-theme="light"] body.body-public .landing-hero .landing-intro,
html[data-theme="light"] body.body-public .landing-hero .subtitle,
html[data-theme="light"] body.body-auth .landing-hero .landing-lead,
html[data-theme="light"] body.body-auth .landing-hero .landing-intro,
html[data-theme="light"] body.body-auth .landing-hero .subtitle {
  color: #4f6586;
}

html[data-theme="light"] body.body-public .landing-price-card,
html[data-theme="light"] body.body-auth .landing-price-card {
  border: 1px solid #d8e4f6;
  background: #ffffff;
}

html[data-theme="light"] body.body-public .landing-price-card.featured,
html[data-theme="light"] body.body-auth .landing-price-card.featured {
  border: 1px solid #9ec0ef;
  background: linear-gradient(165deg, #e9f2ff 0%, #f7fbff 100%);
  box-shadow:
    0 14px 28px rgba(34, 79, 150, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body.body-public .landing-price-card h3,
html[data-theme="light"] body.body-public .landing-price-card .package-price,
html[data-theme="light"] body.body-auth .landing-price-card h3,
html[data-theme="light"] body.body-auth .landing-price-card .package-price {
  color: #1a2b49;
}
