@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #f3efe6;
  --ink: #14213d;
  --ink-soft: #445068;
  --accent: #b6461b;
  --accent-deep: #7c2f11;
  --panel: rgba(255, 252, 246, 0.88);
  --line: rgba(20, 33, 61, 0.14);
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Avenir Next', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(182, 70, 27, 0.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(20, 33, 61, 0.16), transparent 24rem),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  padding: 1rem 0 0;
}

.topbar .shell {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-left: auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.8rem;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #f7c58f);
  color: white;
  box-shadow: var(--shadow);
}

.brand-mark-image {
  object-fit: cover;
  background: none;
  padding: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy {
  min-width: 0;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
}

.site-language-picker {
  flex: none;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.language-menu-picker,
.site-language-picker {
  position: relative;
}

.language-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  font: inherit;
  cursor: pointer;
  list-style: none;
}

.language-menu-button:hover,
.language-menu-button:focus-visible {
  border-color: rgba(20, 33, 61, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.language-menu-button-flag,
.language-menu-option-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.language-menu-button-text {
  display: none;
}

.language-menu-option-label {
  white-space: nowrap;
}

.language-menu-button-caret {
  display: none;
}

.language-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  z-index: 50;
  min-width: min(280px, calc(100vw - 24px));
  padding: 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(20, 33, 61, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.language-menu-picker-fallback[open] .language-menu-panel {
  display: block;
}

.language-menu-picker-fallback .language-menu-panel {
  display: none;
}

.language-menu-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #13233a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-menu-option:hover,
.language-menu-option:focus-visible {
  background: rgba(29, 95, 191, 0.08);
}

.language-menu-option-selected {
  background: rgba(29, 95, 191, 0.12);
  font-weight: 600;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.pill,
.mini-kicker {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-deep);
  font-size: 0.78rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.95;
  margin: 0.5rem 0 1rem;
  max-width: 13ch;
  max-width: min(13ch, 100%);
  overflow-wrap: anywhere;
}

.hero p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.button.secondary {
  background: white;
}

.hero-card,
.feature-card,
.generator-panel,
.code-panel,
.info-band,
.how-card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  transform: rotate(1.2deg);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-card-grid article {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-card-grid h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
}

.hero-card-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.mini-kicker {
  color: var(--accent);
  font-size: 0.72rem;
}

.section {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.section-header h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-header p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

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

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.faq-card {
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.faq-card summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-card summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
}

.faq-card[open] summary::after {
  content: '-';
}

.faq-card p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
}

.optional-block {
  border-radius: 22px;
  border: 1px solid rgba(20, 33, 61, 0.1);
  background: rgba(255, 255, 255, 0.46);
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.optional-block-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  margin: 0;
}

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

.optional-block-summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--accent);
}

.optional-block[open] .optional-block-summary::after {
  content: '-';
}

.optional-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0.15rem 1rem 1rem;
}

.architecture-stack {
  display: grid;
  gap: 1rem;
}

.architecture-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr) 160px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.arch-card {
  padding: 1.2rem;
  border-radius: 26px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.arch-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.2rem;
}

.arch-card p,
.architecture-caption p,
.arch-list li {
  color: var(--ink-soft);
}

.arch-card-sources {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 247, 239, 0.95));
}

.arch-card-core {
  background:
    linear-gradient(180deg, rgba(20, 33, 61, 0.96), rgba(39, 61, 96, 0.94));
  color: white;
}

.arch-card-core .mini-kicker,
.arch-card-core p,
.arch-card-core li {
  color: rgba(255, 255, 255, 0.82);
}

.arch-card-destination {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(240, 248, 255, 0.95));
}

.arch-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.arch-flow {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
}

.flow-node {
  min-width: 92px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 33, 61, 0.12);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.flow-track {
  position: relative;
  width: 100%;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.14);
  background:
    linear-gradient(90deg, rgba(20, 33, 61, 0.08), rgba(182, 70, 27, 0.18), rgba(20, 33, 61, 0.08));
}

.flow-track::after {
  content: '>';
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-deep);
  font-weight: 700;
}

.flow-pulse {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background-color: var(--accent-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm-.67 2L12 10.75 5.67 6zM19 18H5a1 1 0 0 1-1-1V7.25l7.4 5.55a1 1 0 0 0 .6.2 1 1 0 0 0 .6-.2L20 7.25V17a1 1 0 0 1-1 1z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm-.67 2L12 10.75 5.67 6zM19 18H5a1 1 0 0 1-1-1V7.25l7.4 5.55a1 1 0 0 0 .6.2 1 1 0 0 0 .6-.2L20 7.25V17a1 1 0 0 1-1 1z'/%3E%3C/svg%3E") center/contain no-repeat;
  box-shadow:
    0 0 0 6px rgba(182, 70, 27, 0.08),
    0 6px 12px rgba(20, 33, 61, 0.12);
  transform: translate(-120%, -50%);
  animation: flowPulse 4.5s linear infinite;
}

.flow-pulse::before,
.flow-pulse::after {
  content: none;
}

.flow-pulse-two {
  animation-delay: 1.5s;
}

.flow-pulse-three {
  animation-delay: 3s;
}

.architecture-caption {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 20px;
  background: rgba(20, 33, 61, 0.08);
  border: 1px solid rgba(20, 33, 61, 0.14);
  width: 100%;
}

.architecture-caption .pill {
  flex: none;
  color: var(--ink);
}

.architecture-caption p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.architecture-detail-toggle {
  margin-top: 0.55rem;
  border-radius: 26px;
  border: 1px solid rgba(182, 70, 27, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 250, 245, 0.92), rgba(255, 255, 255, 0.72));
  box-shadow: 0 18px 38px rgba(182, 70, 27, 0.08);
  overflow: hidden;
}

.architecture-detail-toggle summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.1rem;
}

.architecture-detail-toggle summary:hover,
.architecture-detail-toggle summary:focus-visible {
  background: rgba(182, 70, 27, 0.05);
}

.architecture-detail-toggle summary::-webkit-details-marker {
  display: none;
}

.architecture-detail-toggle summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
}

.architecture-detail-toggle[open] summary::after {
  content: '-';
}

.architecture-detail-toggle summary span {
  display: grid;
  gap: 0.2rem;
}

.architecture-detail-toggle summary strong {
  color: var(--accent-deep);
  font-size: 1.02rem;
}

.architecture-detail-summary-copy {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
}

.architecture-detail-content {
  display: grid;
  gap: 1.1rem;
  padding: 0 1.1rem 1.1rem;
}

.architecture-detail-copy {
  margin: 0;
  color: var(--ink-soft);
  max-width: 70rem;
}

.architecture-detail-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: center;
  max-width: 32rem;
  margin: 0 auto;
}

.architecture-detail-flow {
  min-height: 4.8rem;
  display: grid;
  align-items: center;
  justify-items: center;
  position: relative;
}

.architecture-detail-flow::before {
  content: '';
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 33, 61, 0.16), rgba(182, 70, 27, 0.42), rgba(20, 33, 61, 0.16));
}

.architecture-detail-flow::after {
  content: '';
  position: absolute;
  right: auto;
  bottom: 0.35rem;
  width: 10px;
  height: 10px;
  border-top: 0;
  border-right: 2px solid rgba(124, 47, 17, 0.75);
  border-bottom: 2px solid rgba(124, 47, 17, 0.75);
  transform: rotate(45deg);
}

.architecture-detail-arrow {
  position: absolute;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 33, 61, 0.1);
  color: var(--accent-deep);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(20, 33, 61, 0.08);
}

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

.architecture-detail-highlights {
  display: grid;
  gap: 0.35rem;
  max-width: 52rem;
}

.architecture-detail-highlights h3 {
  margin: 0;
  font-size: 1.15rem;
}

.architecture-detail-highlights p {
  margin: 0;
  color: var(--ink-soft);
}

.architecture-detail-turn-providers {
  display: none;
}

.architecture-detail-card {
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 33, 61, 0.1);
}

.architecture-detail-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.05rem;
}

.architecture-detail-card p {
  margin: 0;
  color: var(--ink-soft);
}

@keyframes flowPulse {
  0% {
    transform: translate(-120%, -50%) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(260%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(560%, -50%) scale(0.92);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-pulse {
    animation: none;
    opacity: 0.9;
    transform: translate(120%, -50%);
  }
}

.feature-card,
.how-card {
  padding: 1.1rem;
  border-radius: 24px;
}

.feature-card h3,
.how-card h3 {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.15rem;
}

.feature-card p,
.how-card p,
.how-card li,
.code-panel p,
.info-band li {
  color: var(--ink-soft);
}

.how-card ol,
.info-band ul {
  margin: 0;
  padding-left: 1.1rem;
}

.generator-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

.generator-panel,
.code-panel {
  border-radius: 28px;
  padding: 1.2rem;
  position: relative;
}

.generator-panel {
  z-index: 2;
}

.code-panel {
  z-index: 1;
}

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

.field,
.field.full {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  z-index: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.checkbox {
  font-size: 0.92rem;
  font-weight: 500;
}

.field label,
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.label-copy {
  display: inline-flex;
  align-items: center;
}

.info-hint {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 61, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  padding: 0;
}

.info-hint::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%);
  width: min(18rem, 70vw);
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(20, 33, 61, 0.96);
  color: #fff;
  font-size: 0.79rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
  z-index: 30;
}

.info-hint:hover::after,
.info-hint:focus-visible::after {
  opacity: 1;
}

.info-hint:focus-visible {
  outline: 2px solid rgba(29, 95, 191, 0.35);
  outline-offset: 2px;
}

.field input,
.field select,
.code-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.82rem 0.9rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.site-pillbox {
  display: grid;
  gap: 0.45rem;
}

.site-pillbox-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  cursor: text;
}

.site-pillbox-shell:focus-within {
  outline: 2px solid rgba(29, 95, 191, 0.18);
  border-color: rgba(29, 95, 191, 0.28);
}

.site-pillbox-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-pillbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.08);
  border: 1px solid rgba(20, 33, 61, 0.1);
  font-size: 0.82rem;
  line-height: 1.1;
}

.site-pillbox-pill-remove {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.field .site-pillbox-input,
.site-pillbox .site-pillbox-input {
  width: auto;
  flex: 1 1 180px;
  min-width: 180px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.2rem 0;
  font: inherit;
  color: var(--ink);
  box-shadow: none;
  outline: none;
}

.field .site-pillbox-input:focus,
.site-pillbox .site-pillbox-input:focus {
  outline: none;
  border: 0;
}

.site-pillbox-help {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.dual-input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.dual-input-row-key {
  grid-template-columns: minmax(0, 1.7fr) minmax(11.5rem, 0.9fr);
}

.dual-input-row-imap {
  grid-template-columns: minmax(0, 1.45fr) minmax(10rem, 0.85fr);
}

.nested-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.input-with-action {
  position: relative;
}

.input-with-action input {
  padding-right: 3.6rem;
}

.field-icon-button {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 61, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 33, 61, 0.08);
  padding: 0;
}

.field-icon-button:hover,
.field-icon-button:focus-visible {
  background: rgba(255, 247, 239, 0.98);
  border-color: rgba(182, 70, 27, 0.32);
}

.field-icon-button:focus-visible {
  outline: 2px solid rgba(29, 95, 191, 0.35);
  outline-offset: 2px;
}

.field-icon-button svg {
  width: 1.3rem;
  height: 1.3rem;
  overflow: visible;
  flex: none;
}

.key-field-id input {
  max-width: 100%;
}

.key-field-id label {
  flex-wrap: nowrap;
}

.field-action-button {
  min-height: 3.05rem;
  white-space: nowrap;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.checkbox input {
  inline-size: 1rem;
  block-size: 1rem;
}

.subsection-title {
  margin: 1rem 0 0.2rem;
  font-size: 0.95rem;
  color: var(--accent-deep);
}

.code-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.code-panel h3 {
  margin: 0;
}

.inline-button {
  min-height: 3.05rem;
}

.code-panel textarea {
  min-height: 34rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  resize: vertical;
}

.summary {
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.noscript-note {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 247, 239, 0.92);
  border: 1px solid rgba(124, 47, 17, 0.16);
  color: var(--accent-deep);
  box-shadow: var(--shadow);
}

.info-band {
  border-radius: 30px;
  padding: 1.25rem;
}

.info-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--ink-soft);
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@media (max-width: 980px) {
  .topbar .shell,
  .topbar-actions,
  .nav {
    flex-wrap: wrap;
  }

  .hero-grid,
  .generator-layout,
  .feature-grid,
  .architecture-diagram,
  .architecture-detail-grid,
  .how-grid,
  .faq-grid,
  .optional-block-grid,
  .info-band-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    transform: none;
  }

  .flow-track {
    width: min(100%, 320px);
  }

  .architecture-caption {
    max-width: none;
  }

  .architecture-diagram {
    gap: 0.85rem;
  }

  .arch-flow {
    grid-template-columns: auto 24px auto;
    justify-content: center;
    width: 100%;
  }

  .flow-track {
    width: 24px;
    height: 132px;
    background:
      linear-gradient(180deg, rgba(20, 33, 61, 0.08), rgba(182, 70, 27, 0.18), rgba(20, 33, 61, 0.08));
  }

  .flow-track::after {
    content: 'v';
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0.55rem;
    transform: translateX(-50%);
  }

  .flow-pulse {
    left: 50%;
    top: 0;
    transform: translate(-50%, -120%);
    animation: flowPulseVertical 4.5s linear infinite;
  }

  .flow-pulse-two {
    animation-delay: 1.5s;
  }

  .flow-pulse-three {
    animation-delay: 3s;
  }
}

@media (max-width: 720px) {
  .section-header,
  .code-panel header {
    align-items: start;
    flex-direction: column;
  }

  .topbar .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.85rem 0.75rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar-actions {
    display: contents;
    width: auto;
    margin-left: 0;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-wrap: wrap;
  }

  .site-language-picker {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: auto;
    margin-left: 0;
  }

  .language-menu-button {
    width: auto;
    justify-content: center;
  }

  .language-menu-panel {
    right: 0;
    left: auto;
    min-width: min(320px, calc(100vw - 24px));
  }

  .dual-input-row,
  .dual-input-row-key {
    grid-template-columns: 1fr;
  }

  .architecture-detail-content {
    padding: 0 0.95rem 0.95rem;
  }

  .architecture-detail-diagram,
  .architecture-detail-grid {
    grid-template-columns: 1fr;
  }

  .architecture-detail-flow .architecture-detail-arrow {
    transform: none;
  }
}

@keyframes flowPulseVertical {
  0% {
    transform: translate(-50%, -120%) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 280%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 620%) scale(0.92);
    opacity: 0;
  }
}
