:root {
  --paper:    #f6f1e3;
  --paper-2:  #efe7d2;
  --paper-3:  #e6dcc1;
  --ink:      #18243f;
  --ink-2:    #4a566f;
  --ink-soft: #76829a;
  --rule:     #c8b890;
  --grid:     rgba(24, 36, 63, 0.08);
  --red:      #b8332b;
  --red-2:    #f4dddb;
  --blue:     #1e4d8c;
  --blue-2:   #d8e3f1;
  --gold:     #b88a25;
  --gold-2:   #f0e4c4;
  --good:     #2f7a3a;

  --serif: "Fraunces", "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ========== keyframes ========== */

@keyframes wei2-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes wei2-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wei2-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes wei2-shimmer {
  0%, 100% { color: var(--red);      transform: translate(0, -0.2em) rotate(0deg);   }
  50%      { color: #d8493f;         transform: translate(0, -0.27em) rotate(-3deg); }
}
@keyframes wei2-drift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(8px); }
}
@keyframes wei2-pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.5); }
}
@keyframes wei2-tick {
  0%   { transform: translateY(0);   color: var(--ink); }
  20%  { transform: translateY(-3px); color: var(--red); }
  100% { transform: translateY(0);   color: var(--ink); }
}
@keyframes wei2-grid-drift {
  0%   { background-position: 0 0,    0 0, 0 0, 0 0; }
  100% { background-position: 0 -2rem, 0 0, 0 0, 0 0; }
}
@keyframes wei2-rule-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes wei2-corner-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 51, 43, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(184, 51, 43, 0); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  background:
    linear-gradient(0deg, transparent calc(2rem - 1px), var(--grid) calc(2rem - 1px), var(--grid) 2rem, transparent 2rem),
    radial-gradient(1200px 800px at 90% -20%, rgba(184, 138, 37, 0.08), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(30, 77, 140, 0.06), transparent 60%),
    var(--paper);
  background-size: 100% 2rem, auto, auto, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  animation: wei2-grid-drift 60s linear infinite;
}

a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(30, 77, 140, 0.25); }
a:hover { color: var(--red); border-bottom-color: var(--red); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 64px; line-height: 0.96; font-weight: 500; }
h2 { font-size: 26px; line-height: 1.15; font-weight: 600; }
h3 { font-size: 17px; line-height: 1.3;  font-weight: 700; }

p { margin: 0 0 1em; max-width: 70ch; }
.lede { font-size: 17px; max-width: 60ch; color: var(--ink-2); line-height: 1.5; }

code, .mono { font-family: var(--mono); font-size: 0.9em; }
code {
  background: var(--paper-3);
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

input[type=number], input[type=text] {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  padding: 12px 14px;
  min-height: 44px;
  margin: 6px 0 12px;
  -webkit-appearance: none;
}
input[type=number]:focus, input[type=text]:focus { outline: none; border-color: var(--ink); }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ========== chrome ========== */

header.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 1px solid var(--rule);
  background: rgba(246, 241, 227, 0.92);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 50;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .sup {
  font-size: 0.55em;
  vertical-align: super;
  position: relative;
  top: -0.2em;
  margin-left: -0.1em;
  color: var(--red);
  font-style: italic;
  display: inline-block;
  animation: wei2-shimmer 4s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.brand:hover .sup { animation-duration: 1s; }
.bar nav { display: flex; gap: 18px; align-items: center; }
.bar nav a { font-size: 13px; color: var(--ink-2); border: none; }
.bar nav a:hover { color: var(--red); }

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
  margin: 0 4px;
  display: inline-block;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  transition: 120ms ease;
  flex-shrink: 0;
}
.icon-link:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.icon-link svg { width: 14px; height: 14px; fill: currentColor; }

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 36px 80px;
}

/* ========== hero ========== */

.hero { padding: 26px 0 64px; position: relative; }
.hero .corner {
  position: absolute;
  top: 0; right: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: wei2-fade-in 1.2s ease-out 0.2s both, wei2-drift 7s ease-in-out infinite 1.4s;
}
.hero .corner::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  vertical-align: middle;
  animation: wei2-pulse-dot 2.4s ease-in-out infinite;
}
.hero .corner b { color: var(--red); font-weight: 500; }

.hero h1 {
  font-family: var(--serif);
  margin: 0 0 24px;
  animation: wei2-fade-up 0.9s ease-out 0.05s both;
}
.hero h1 .squared {
  font-size: 0.46em;
  vertical-align: super;
  position: relative;
  top: -0.35em;
  margin-left: -0.06em;
  color: var(--red);
  font-style: italic;
  display: inline-block;
  animation: wei2-shimmer 5s ease-in-out infinite 1s;
  transform-origin: 50% 80%;
}
.hero .equation {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 22px;
  letter-spacing: 0.04em;
  animation: wei2-fade-up 0.9s ease-out 0.45s both;
}
.hero .equation::after {
  content: "▍";
  display: inline-block;
  margin-left: 6px;
  color: var(--red);
  animation: wei2-blink 1.1s steps(1) infinite;
}
.hero .equation b { color: var(--red); font-weight: 500; }
.hero .lede { animation: wei2-fade-up 0.9s ease-out 0.25s both; }
.hero .cta  { animation: wei2-fade-up 0.9s ease-out 0.6s both; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  min-height: 44px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(184, 51, 43, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); box-shadow: 0 6px 0 0 var(--rule); }
.btn:active { transform: translateY(0); box-shadow: 0 0 0 0 var(--rule); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { border-color: var(--rule); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red); color: var(--paper); }
.btn:disabled { color: var(--ink-soft); border-color: var(--rule); background: transparent; cursor: not-allowed; }
.btn.primary:disabled { background: var(--paper-3); }

/* ========== sections ========== */

section { padding: 36px 0; }
section.first { padding-top: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px dashed var(--rule);
  padding: 20px 0 8px;
  margin: 0 0 22px;
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms;
}
section.in-view .section-head::before { transform: scaleX(1); }
.section-head h2 { margin: 0; }
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* ========== stats grid (lab notebook table) ========== */

.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}
.grid-stats .cell {
  padding: 18px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease, background-color 200ms ease;
}
section.in-view .grid-stats .cell { opacity: 1; transform: translateY(0); }
section.in-view .grid-stats .cell:nth-child(1) { transition-delay: 0.05s; }
section.in-view .grid-stats .cell:nth-child(2) { transition-delay: 0.10s; }
section.in-view .grid-stats .cell:nth-child(3) { transition-delay: 0.15s; }
section.in-view .grid-stats .cell:nth-child(4) { transition-delay: 0.20s; }
section.in-view .grid-stats .cell:nth-child(5) { transition-delay: 0.25s; }
section.in-view .grid-stats .cell:nth-child(6) { transition-delay: 0.30s; }
section.in-view .grid-stats .cell:nth-child(7) { transition-delay: 0.35s; }
section.in-view .grid-stats .cell:nth-child(8) { transition-delay: 0.40s; }
.grid-stats .cell:hover { background: var(--paper-2); }
.grid-stats .cell .v.changed { animation: wei2-tick 0.5s ease; }
.grid-stats .cell:nth-child(4n) { border-right: none; }
.grid-stats .cell:last-child,
.grid-stats .cell:nth-last-child(2):nth-child(4n+3),
.grid-stats .cell:nth-last-child(3):nth-child(4n+2),
.grid-stats .cell:nth-last-child(4):nth-child(4n+1) { border-bottom: none; }
.grid-stats .cell .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.grid-stats .cell .v {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.grid-stats .cell .v small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-left: 6px;
  letter-spacing: 0.06em;
}

/* ========== formula card ========== */

.formula-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 28px 32px;
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, var(--grid) 31px, var(--grid) 32px),
    var(--paper);
  margin: 22px 0;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
section.in-view .formula-card { opacity: 1; transform: translateY(0); }
section.in-view .formula-card:nth-of-type(1) { transition-delay: 0.10s; }
section.in-view .formula-card:nth-of-type(2) { transition-delay: 0.25s; }
section.in-view .formula-card:nth-of-type(3) { transition-delay: 0.40s; }
.formula-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 10px 0 -4px rgba(184, 51, 43, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.formula-card::before,
.formula-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.formula-card::before { top: -8px; left: -8px; }
.formula-card::after  { bottom: -8px; right: -8px; }

.formula-card .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.formula-card .formula {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 0.01em;
  word-break: keep-all;
}
.formula-card .formula code {
  background: transparent;
  border: none;
  font-style: normal;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.85em;
}
.formula-card .formula b { color: var(--red); font-weight: 500; }
.formula-card .annotation {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ========== prose ========== */

.prose p { color: var(--ink-2); max-width: 64ch; }
.prose ul { padding-left: 18px; margin: 0 0 18px; max-width: 64ch; color: var(--ink-2); }
.prose li { margin: 0 0 6px; }
.prose .marginalia {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 4px 0 -4px;
}

/* ========== card grid (trade + claim) ========== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.panel {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 24px 26px;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 200ms ease, box-shadow 200ms ease;
}
section.in-view .panel { opacity: 1; transform: translateY(0); }
section.in-view .panel:nth-of-type(1) { transition-delay: 0.10s; }
section.in-view .panel:nth-of-type(2) { transition-delay: 0.25s; }
.panel:hover { box-shadow: 0 8px 0 -4px rgba(24, 36, 63, 0.15); }
.panel.accent-red    { border-top: 4px solid var(--red);  }
.panel.accent-blue   { border-top: 4px solid var(--blue); }
.panel.accent-gold   { border-top: 4px solid var(--gold); }
.panel.accent-red:hover    { box-shadow: 0 8px 0 -4px rgba(184, 51, 43, 0.22); }
.panel.accent-blue:hover   { box-shadow: 0 8px 0 -4px rgba(30, 77, 140, 0.22); }
.panel.accent-gold:hover   { box-shadow: 0 8px 0 -4px rgba(184, 138, 37, 0.22); }

.panel h3 {
  margin-top: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.panel h3 .glyph {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  font-weight: 400;
}
.panel .hint {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 14px;
}

.panel label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 12px 0 4px;
}

.panel .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.panel .actions .btn { flex: 1; min-width: 110px; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
}
.row:last-of-type { border: none; }
.row .lab { color: var(--ink-soft); font-size: 12px; font-family: var(--mono); letter-spacing: 0.06em; }
.row .val { color: var(--ink); font-size: 14px; font-family: var(--mono); word-break: break-all; max-width: 60%; text-align: right; }
.row .val.big { font-family: var(--serif); font-size: 22px; }

.note { color: var(--ink-soft); font-size: 12px; margin: 12px 0 0; min-height: 1em; font-family: var(--mono); }
.note.bad  { color: var(--red); }
.note.good { color: var(--good); }

/* ========== contracts list ========== */

.addr-list .row .val a { color: var(--blue); }
.addr-list .row .val a:hover { color: var(--red); }

/* ========== social cards ========== */

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
}
section.in-view .social-card { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
section.in-view .social-card:nth-child(2) { transition-delay: 0.22s; }
.social-card:hover { transform: translateY(-3px); box-shadow: 0 10px 0 -4px rgba(24, 36, 63, 0.18); }
.social-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed var(--rule);
  pointer-events: none;
  transition: 140ms ease;
}
.social-card:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.social-card:hover::before { border-color: rgba(246, 241, 227, 0.25); }
.social-card .platform-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid currentColor;
  background: transparent;
}
.social-card .platform-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 300ms ease;
}
.social-card:hover .platform-icon svg { transform: scale(1.12) rotate(-3deg); }
.social-card .text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.social-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1;
}
.social-card:hover .label { color: var(--paper-3); }
.social-card .handle {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* footer socials */

footer .footer-socials {
  display: inline-flex;
  gap: 18px;
  align-items: center;
}
footer .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
footer .footer-social svg { width: 13px; height: 13px; fill: currentColor; }
footer .footer-social:hover { color: var(--red); }

/* ========== how-it-works numbered ========== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 18px;
}
.step {
  border-left: 2px solid var(--ink);
  padding: 4px 18px 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 200ms ease;
}
section.in-view .step { opacity: 1; transform: translateX(0); }
section.in-view .step:nth-child(1) { transition-delay: 0.55s; }
section.in-view .step:nth-child(2) { transition-delay: 0.70s; }
section.in-view .step:nth-child(3) { transition-delay: 0.85s; }
.step:hover { border-left-color: var(--red); }
.step .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.step h4 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.step p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; max-width: none; }

/* ========== footer ========== */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
footer #blk {
  display: inline-block;
  padding: 1px 6px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
  animation: wei2-corner-ping 3s ease-in-out infinite;
}
footer .links a { color: var(--ink-2); border: none; }
footer .links a:hover { color: var(--red); }

/* ========== responsive ========== */

@media (max-width: 880px) {
  main { padding: 30px 22px 60px; }
  .bar { padding: 16px 22px; }
  h1 { font-size: 44px; }
  .grid-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-stats .cell { border-right: 1px solid var(--rule); }
  .grid-stats .cell:nth-child(2n) { border-right: none; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: 1fr; }
  footer { padding: 18px 22px; flex-wrap: wrap; }
  .bar nav { gap: 12px; }
  .bar nav a { font-size: 12px; }
}
@media (max-width: 480px) {
  .grid-stats { grid-template-columns: 1fr; }
  .grid-stats .cell { border-right: none; }
  h1 { font-size: 36px; }
  .formula-card { padding: 22px; }
  .formula-card .formula { font-size: 22px; }
}
