@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --section: #f7f8fa;
  --line: #eceef1;
  --line-strong: #dfe3e8;
  --text: #16181d;
  --muted: #4a4f5a;
  --faint: #8b919e;
  --navy: #093687;
  --navy-deep: #0b2a5e;
  --blue: #1763b6;
  --blue-2: #1261c4;
  --blue-bg: #eaf1fa;
  --safe: #1a8e5f;
  --amber: #e8890c;
  --amber-bg: #fff8eb;
  --danger: #d6332e;
  --danger-bg: #fff1f0;
  --radius-card: 14px;
  --radius-sheet: 20px;
  --font-num: "Space Grotesk", "Pretendard Variable", Pretendard, sans-serif;
  --sidebar-width: 252px;
  --content-max: 1180px;
  --content-gutter: 52px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  visibility: hidden;
}

b,
strong {
  font-weight: 700;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

a:hover {
  color: var(--navy);
}

button {
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(23, 99, 182, 0.45);
  outline-offset: 3px;
}

code,
pre {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

code {
  border-radius: 4px;
  color: var(--navy);
  font-size: 0.88em;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 60px;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--navy);
  display: flex;
  gap: 8px;
}

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

.brand-mark {
  background: url("/assets/logo-giwalend-symbol2.png") center/contain no-repeat;
  display: block;
  flex: 0 0 29px;
  height: 29px;
  overflow: hidden;
  text-indent: -999px;
  width: 29px;
}

.brand b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brand small {
  color: var(--faint);
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-top: 3px;
  text-transform: uppercase;
}

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

.app-nav-link {
  align-items: center;
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 23px;
  min-height: 34px;
  padding: 0 10px;
}

.app-nav-link:hover {
  color: var(--navy);
}

.language {
  position: relative;
}

.lang-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--faint);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
  height: 38px;
  padding: 0 10px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-trigger:hover {
  background: var(--section);
  color: var(--navy);
}

.lang-trigger svg {
  flex: none;
}

.lang-code {
  display: inline-block;
  text-align: center;
  width: 18px;
}

.lang-chevron {
  transition: transform 0.16s ease;
}

.language.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 46px;
  width: 76px;
  z-index: 50;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--faint);
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  text-align: center;
  width: 100%;
}

.lang-menu button + button {
  margin-top: 2px;
}

.lang-menu button:hover {
  background: var(--section);
  color: var(--navy);
}

.lang-menu button.selected {
  background: var(--blue-bg);
  color: var(--navy);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
}

.sidebar {
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 34px 20px 28px;
  position: sticky;
  top: 60px;
}

.sidebar nav > small {
  color: var(--faint);
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 10px 12px;
  text-transform: uppercase;
}

.sidebar nav .dev {
  margin-top: 27px;
}

.sidebar nav a {
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  margin: 2px 0;
  min-height: 38px;
  padding: 8px 12px;
}

.sidebar nav a:hover {
  background: var(--section);
  color: var(--text);
}

.sidebar nav a.active {
  background: var(--blue-bg);
  color: var(--navy);
  font-weight: 700;
}

.sidebar nav a.active::before {
  background: var(--blue);
  border-radius: 999px;
  content: "";
  height: 16px;
  margin-right: 9px;
  width: 3px;
}

.side-card {
  background: #0f172a;
  border: 1px solid #0f172a;
  border-radius: 16px;
  margin-top: auto;
  padding: 18px;
}

.side-card-status {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.side-card-status i {
  background: var(--safe);
  border: 1px solid var(--surface);
  border-radius: 50%;
  flex: none;
  height: 7px;
  position: relative;
  width: 7px;
}

.side-card-status i::before {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: var(--safe);
  border-radius: 50%;
  content: "";
  inset: -2px;
  position: absolute;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

.side-card small {
  color: rgba(255, 255, 255, 0.64);
  font: 700 10px "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: 0.06em;
}

.side-card b {
  color: rgba(255, 255, 255, 0.92);
  display: block;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.side-card a {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 6px;
  line-height: 1;
  margin-top: 2px;
  padding-top: 12px;
}

.side-card a::after {
  align-self: center;
  background: currentColor;
  content: "";
  flex: 0 0 12px;
  height: 12px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/contain no-repeat;
  width: 12px;
}

main {
  margin: 0 auto;
  max-width: var(--content-max);
  min-width: 0;
  padding: 0 var(--content-gutter) 54px;
  width: 100%;
}

.anchor {
  scroll-margin-top: 84px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: 520px;
  padding: 54px 0 48px;
}

.kicker {
  align-items: center;
  background: var(--blue-bg);
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: 0;
  padding: 6px 12px;
}

.hero .kicker::before {
  background: var(--safe);
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

h1 {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 22px 0 22px;
}

h1 em {
  background: linear-gradient(95deg, var(--navy) 0%, var(--blue) 72%);
  background-clip: text;
  color: transparent;
  font-style: normal;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  max-width: 660px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  background: var(--section);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
}

.button:hover {
  border-color: #c9d4e2;
  color: var(--navy);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #ffffff;
}

.hero-art {
  background: linear-gradient(145deg, #ffffff 10%, #eef4fb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  height: 356px;
  overflow: hidden;
  position: relative;
}

.hero-art::before {
  background-image: linear-gradient(rgba(23, 99, 182, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 99, 182, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom right, #000, transparent 78%);
  position: absolute;
}

.hero-art::after {
  background: rgba(23, 99, 182, 0.12);
  border-radius: 50%;
  content: "";
  filter: blur(4px);
  height: 230px;
  position: absolute;
  right: -70px;
  top: -80px;
  width: 230px;
}

.orb {
  background: url("/assets/logo-giwalend-symbol2.png") center/contain no-repeat;
  height: 128px;
  left: 50%;
  position: absolute;
  top: 62px;
  transform: translateX(-50%);
  width: 128px;
  z-index: 1;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 227, 232, 0.92);
  border-radius: var(--radius-card);
  bottom: 25px;
  left: 25px;
  padding: 15px 17px;
  position: absolute;
  right: 25px;
  z-index: 2;
}

.hero-panel small {
  color: var(--blue);
  font: 700 9px "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: 0.08em;
}

.hero-panel b {
  color: var(--navy-deep);
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin: 7px 0 7px;
}

.hero-panel span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
}

.notice,
.callout {
  background: var(--blue-bg);
  border: 1px solid rgba(23, 99, 182, 0.12);
  border-radius: 12px;
  margin: 18px 0 0;
  padding: 17px 18px;
}

.notice {
  display: flex;
  gap: 12px;
}

.notice.warning {
  background: var(--amber-bg);
  border-color: #f3dfb9;
}

.notice > b {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  flex: 0 0 21px;
  font-size: 12px;
  height: 21px;
  justify-content: center;
  margin-top: 2px;
}

.notice.warning > b {
  background: var(--amber);
}

.notice strong,
.callout strong {
  color: var(--text);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.notice p,
.callout p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.overview-label {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--faint);
  display: block;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 42px 0 13px;
  padding: 0;
  text-transform: uppercase;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 22px;
  padding: 46px 48px;
}

.section h2 {
  align-items: center;
  display: flex;
  gap: 13px;
  margin: 0 0 24px;
}

.section h2 i {
  align-items: center;
  background: var(--blue-bg);
  border-radius: 6px;
  color: var(--blue);
  display: inline-flex;
  font: 700 10px var(--font-num);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  height: 26px;
  justify-content: center;
  letter-spacing: 0.04em;
  min-width: 28px;
  padding: 0 6px;
}

.section h2 span {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section h3 {
  color: var(--text);
  letter-spacing: -0.02em;
}

.locale p {
  color: var(--muted);
  font-size: 15px;
  max-width: 850px;
}

html[data-lang="en"] .locale.ko,
html[data-lang="ko"] .locale.en {
  display: none;
}

.diagram {
  background: linear-gradient(150deg, #f8fafd, #eef4fb);
  border: 1px solid #dfe8f2;
  border-radius: var(--radius-card);
  margin: 32px 0;
  padding: 25px;
  text-align: center;
}

.node {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  display: inline-flex;
  flex-direction: column;
  min-width: 245px;
  padding: 13px 18px;
}

.node small {
  color: var(--blue);
  font: 700 9px "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: 0.1em;
}

.node b {
  font-size: 14px;
}

.node span {
  color: var(--faint);
  font-size: 11px;
}

.node.main-node,
.node.green {
  border-color: #a9c7eb;
}

.node.blue {
  border-color: #bdd5f0;
}

.node.amber {
  border-color: #efd39e;
}

.diagram > em {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  margin: 9px 0;
}

.split {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cards {
  display: grid;
  gap: 13px;
}

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

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

.cards article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.2s ease;
}

.cards article:hover {
  border-color: #d6dde6;
  transform: translateY(-2px);
}

.section .cards article {
  background: var(--section);
}

.cards article > b {
  color: var(--blue);
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cards h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 7px 0;
}

.cards p,
.param-grid p,
.roles p,
.security p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-top: 27px;
  overflow-x: auto;
}

.table-wrap + .cards {
  margin-top: 24px;
}

.table-wrap table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 13px 15px;
  text-align: left;
  white-space: nowrap;
}

.table-wrap th {
  background: var(--section);
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-wrap tbody tr {
  transition: background-color 0.16s ease;
}

.table-wrap tbody tr:hover {
  background: #f9fafb;
}

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

.table-wrap td {
  color: var(--muted);
}

.table-wrap td b {
  color: var(--text);
}

.table-wrap td code {
  font-size: 10px;
}

.oracle-flow {
  align-items: center;
  background: var(--blue-bg);
  border: 1px solid rgba(23, 99, 182, 0.12);
  border-radius: var(--radius-card);
  display: flex;
  justify-content: space-between;
  margin: 28px 0;
  padding: 19px;
}

.oracle-flow b {
  color: var(--blue);
  font: 700 9px "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
}

.oracle-flow strong {
  color: var(--text);
  display: block;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.oracle-flow em {
  color: var(--blue);
  font-style: normal;
}

.param-grid,
.roles,
.security {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 25px;
}

.param-grid > div,
.roles > div,
.security > div {
  border-top: 2px solid var(--blue-bg);
  padding-top: 14px;
}

.param-grid b,
.roles b,
.security strong {
  display: block;
  font-weight: 700;
}

.formula {
  background: linear-gradient(145deg, #f7fafe, #edf4fc);
  border: 1px solid #dbe7f6;
  border-radius: var(--radius-card);
  margin: 27px 0;
  padding: 26px;
  text-align: center;
}

.formula small {
  color: var(--blue);
  display: block;
  font: 700 10px "Pretendard Variable", Pretendard, sans-serif;
  letter-spacing: 0.12em;
}

.equation {
  display: table;
  font-family: var(--font-num);
  font-size: clamp(14px, 3vw, 21px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 13px auto 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.equation .numerator {
  border-bottom: 2px solid var(--blue);
  padding: 0 12px 5px;
  text-align: center;
}

.equation .denominator {
  padding: 5px 12px 0;
  text-align: center;
}

.formula-note {
  color: var(--muted);
  display: block;
  font-size: 11px;
}

.formula-note > div {
  display: block;
  margin-top: 5px;
}

.formula-note .liquidation-note {
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.steps div {
  display: flex;
  gap: 12px;
}

.steps b,
.security b {
  color: var(--blue);
  font: 700 11px var(--font-num);
  font-variant-numeric: tabular-nums;
}

.steps span {
  color: var(--muted);
  font-size: 13px;
}

.rate-table table {
  border-collapse: collapse;
  margin-top: 28px;
  width: 100%;
}

.rate-table th,
.rate-table td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 12px 14px;
  text-align: left;
}

.rate-table th {
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roles small {
  background: var(--amber-bg);
  border: 1px solid #f0d69f;
  border-radius: 6px;
  color: var(--amber);
  display: inline-block;
  font: 700 9px "Pretendard Variable", Pretendard, sans-serif;
  padding: 3px 7px;
}

.roles small.danger {
  background: var(--danger-bg);
  border-color: #f1c3c1;
  color: var(--danger);
}

.contract-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 27px;
}

.contract-grid div {
  align-items: center;
  background: var(--section);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  padding: 12px 13px;
}

.contract-grid span {
  color: var(--faint);
  font: 10px ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

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

.security strong {
  margin: 8px 0 4px;
}

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

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 2px;
}

summary {
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

summary::after {
  color: var(--blue);
  content: "+";
  float: right;
  font-size: 19px;
  font-weight: 400;
}

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

details .locale p {
  margin: 13px 0 0;
}

.dev-columns {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.dev-columns > div {
  background: var(--section);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
}

.dev-columns p {
  color: var(--muted);
  font-size: 13px;
}

.dev-columns pre {
  background: var(--navy-deep);
  border: 1px solid #173b74;
  border-radius: 9px;
  color: #e7effb;
  font-size: 11px;
  overflow: auto;
  padding: 14px;
}

.dev-columns pre code {
  color: inherit;
}

.references {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
  padding-top: 20px;
}

.references h3 {
  flex-basis: 100%;
  margin: 0;
}

.references a {
  font-size: 12px;
  font-weight: 700;
}

footer {
  color: var(--faint);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding: 30px 2px 0;
}

@media (max-width: 1080px) {
  .layout {
    --sidebar-width: 232px;
  }

  main {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero {
    gap: 30px;
  }

  .section {
    padding-left: 34px;
    padding-right: 34px;
  }
}

@media (max-width: 860px) {
  .layout {
    display: block;
    max-width: none;
  }

  .sidebar {
    border: 0;
    border-bottom: 1px solid var(--line);
    height: auto;
    overflow: visible;
    padding: 10px 22px;
    position: sticky;
    top: 60px;
    z-index: 10;
  }

  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav > small,
  .side-card {
    display: none;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
  }

  .sidebar nav a.active::before {
    display: none;
  }

  main {
    padding: 0 24px 46px;
  }

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

@media (max-width: 680px) {
  .topbar {
    padding: 0 16px;
  }

  .brand small {
    display: none;
  }

  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }

  main {
    padding: 0 14px 34px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 54px 2px 32px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-art {
    height: 292px;
    margin-top: 38px;
  }

  .orb {
    height: 125px;
    top: 42px;
    width: 125px;
  }

  .section {
    border-radius: 16px;
    margin-top: 14px;
    padding: 30px 22px;
  }

  .section h2 {
    align-items: flex-start;
  }

  .cards.three,
  .cards.two,
  .steps,
  .dev-columns,
  .security,
  .param-grid,
  .roles,
  .contract-grid {
    grid-template-columns: 1fr;
  }

  .split {
    align-items: center;
    flex-direction: column;
  }

  .node {
    min-width: min(245px, 100%);
  }

  .oracle-flow {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .oracle-flow em {
    text-align: center;
    transform: rotate(90deg);
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  .table-wrap table {
    min-width: 560px;
  }
}

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