:root {
  --blue-0: #eaf8ff;
  --blue-1: #5edcff;
  --blue-2: #1397ff;
  --blue-3: #0872ff;
  --blue-4: #0649d7;
  --blue-5: #05236e;
  --ink: #04122f;
  --ink-2: #071b48;
  --paper: #f4fbff;
  --muted: #b9d8ff;
  --aqua: #70f3ff;
  --green: #62ffb1;
  --yellow: #fff38a;
  --pink: #ff769e;
  --line: rgba(221, 242, 255, 0.34);
  --shadow: 8px 8px 0 var(--ink);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: #0c70f9;
  overflow-x: hidden;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0c70f9;
  overflow-x: hidden;
}

body::before {
  display: none;
}

::selection {
  color: var(--ink);
  background: var(--aqua);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 96px;
}

.nav-wrap {
  position: sticky;
  z-index: 15;
  top: 0;
  padding: 14px 0 0;
}

.nav {
  min-height: 66px;
  padding: 9px 11px 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 2px solid rgba(224, 245, 255, 0.5);
  border-radius: 20px 24px 19px 23px;
  background: rgba(4, 24, 78, 0.92);
  box-shadow: 0 16px 48px rgba(0, 6, 31, 0.32), 4px 4px 0 rgba(4, 18, 47, 0.86);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand img {
  width: 44px;
  height: 44px;
  padding: 2px;
  object-fit: contain;
  object-position: center;
  border: 2px solid var(--ink);
  border-radius: 13px 17px 12px 16px;
  background: linear-gradient(145deg, var(--blue-2), var(--blue-4));
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(15px, 2.2vw, 27px);
  color: #d5ecff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 10px 0;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--aqua);
  transform: translateY(-1px) rotate(-1deg);
}

.mini-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--aqua);
  font-weight: 950;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.mini-button {
  min-height: 42px;
  padding: 0 14px;
  flex: 0 0 auto;
  border-radius: 13px 16px 12px 15px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 11px;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 15px 20px 14px 18px;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 12px;
}

.mini-button:hover,
.button:hover,
.contract:hover {
  box-shadow: 3px 3px 0 var(--ink);
  filter: brightness(1.04);
  transform: translate(2px, 2px);
}

.button-paper {
  background: var(--paper);
}

.button-ink {
  color: var(--paper);
  background: var(--ink);
}

.is-disabled,
.is-disabled:hover {
  opacity: 0.48;
  filter: grayscale(0.4);
  cursor: not-allowed;
  transform: none;
}

.hero {
  min-height: 760px;
  padding: 108px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(350px, 0.96fr);
  align-items: center;
  gap: clamp(38px, 5vw, 66px);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d9efff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border: 2px solid rgba(0, 31, 70, 0.82);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(98, 255, 177, 0.14), 0 0 18px rgba(98, 255, 177, 0.7);
  animation: pulse 1.7s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.58; transform: scale(0.82); }
}

.hero h1 {
  margin: 20px 0 10px;
  display: block;
  font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
  font-size: clamp(104px, 11.5vw, 178px);
  line-height: 0.8;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--paper);
  -webkit-text-stroke: 4px var(--ink);
  text-shadow: 8px 8px 0 var(--blue-5), 13px 13px 0 var(--ink);
  transform: rotate(-1deg);
}

.hero-line {
  max-width: 670px;
  margin: 39px 0 10px;
  color: white;
  font-size: clamp(25px, 3.1vw, 43px);
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero-sub {
  max-width: 610px;
  margin: 0;
  color: #c5e3ff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.status-chips {
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.status-chips li {
  padding: 7px 9px;
  color: #dff5ff;
  border: 1px solid rgba(214, 240, 255, 0.54);
  border-radius: 8px 11px 8px 10px;
  background: rgba(4, 26, 83, 0.7);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.status-chips li:nth-child(2) {
  transform: rotate(0.8deg);
}

.status-chips li:nth-child(3) {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--yellow);
  transform: rotate(-0.8deg);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contract {
  width: min(100%, 466px);
  min-height: 52px;
  margin-top: 22px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px 12px 17px 13px;
  background: rgba(3, 24, 76, 0.9);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contract > span,
.contract > strong {
  padding: 8px 10px;
  color: var(--ink);
  border-radius: 9px;
  background: var(--aqua);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.contract > strong {
  margin-left: auto;
  color: var(--paper);
  background: var(--blue-3);
}

.contract code {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
}

.hero-art {
  position: relative;
  isolation: isolate;
  width: min(100%, 500px);
  padding: 10px 14px 18px 10px;
  justify-self: end;
}

.hero-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 32% 21%, rgba(197, 247, 255, 0.64) 0 8%, transparent 32%),
    radial-gradient(ellipse at 73% 77%, rgba(5, 72, 184, 0.32) 0 18%, transparent 48%),
    linear-gradient(145deg, #67dff6 0%, #2fb6de 45%, #127bbd 100%);
  box-shadow: 10px 12px 0 var(--ink);
  transform: rotate(0.35deg);
}

.hero-portrait > img {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 108%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(4, 18, 47, 0.18));
  transform: translateX(-50%);
}

.scribble {
  position: absolute;
  z-index: 3;
  padding: 6px 12px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px 16px 11px 15px;
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: 13px;
  font-weight: 900;
}

.scribble-top { top: 9%; right: -1%; transform: rotate(6deg); }

.ticker-wrap {
  border-top: 2px solid rgba(218, 241, 255, 0.28);
  border-bottom: 2px solid rgba(218, 241, 255, 0.28);
  background: rgba(3, 17, 58, 0.9);
}

.ticker {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1.5fr repeat(6, 1fr);
  align-items: stretch;
}

.ticker-status,
.stat {
  min-width: 0;
  padding: 22px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(214, 239, 255, 0.18);
}

.ticker-status {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.ticker-status > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticker-status small,
.stat small {
  color: #8fbde7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ticker-status strong {
  overflow: hidden;
  color: #cce8ff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-status[data-connection-state="error"] .live-dot {
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 118, 158, 0.12);
}

.ticker-status[data-connection-state="loading"] .live-dot {
  background: var(--yellow);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  margin-top: 6px;
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(15px, 1.45vw, 19px);
  font-weight: 950;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat strong.positive { color: var(--green); }
.stat strong.negative { color: var(--pink); }

.section {
  padding: 118px 0 12px;
}

.section-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.kicker {
  color: var(--aqua);
}

.section-heading h2,
.tweet-copy h2,
.closing h2 {
  margin: 8px 0 0;
  color: var(--paper);
  font-size: clamp(39px, 5.6vw, 70px);
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: -0.065em;
}

.section-heading > div > p {
  max-width: 650px;
  margin: 16px 0 0;
  color: #aaccf0;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.55;
}

.text-link {
  padding-bottom: 7px;
  color: var(--aqua);
  border-bottom: 2px solid var(--aqua);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ink-card {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 24px 31px 23px 28px;
  background: rgba(3, 17, 55, 0.96);
  box-shadow: var(--shadow);
}

/* Agent terminal */
.terminal-section {
  padding-top: 128px;
}

.terminal-heading {
  align-items: center;
}

.terminal-heading h2 {
  font-family: "Arial Black", Impact, Haettenschweiler, sans-serif;
  letter-spacing: -0.055em;
}

.demo-indicator {
  padding: 10px 12px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 9px 13px 8px 12px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  transform: rotate(1deg);
}

.terminal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
  align-items: start;
  gap: 28px;
}

.feed-column {
  min-width: 0;
}

.feed-toolbar {
  margin-bottom: 24px;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid rgba(218, 241, 255, 0.28);
  border-radius: 16px 20px 15px 18px;
  background: rgba(3, 17, 55, 0.9);
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feed-filter {
  min-height: 42px;
  padding: 0 11px;
  color: #a9ccf2;
  border: 1px solid rgba(211, 238, 255, 0.25);
  border-radius: 9px 12px 8px 11px;
  background: rgba(8, 48, 124, 0.42);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.feed-filter:hover,
.feed-filter.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--aqua);
}

.feed-count {
  flex: 0 0 auto;
  color: #83afd9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.demo-indicator.is-live {
  background: var(--green);
}

.x-feed-panel {
  margin: 0 0 24px 28px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 18px 24px 17px 22px;
  background: #050f2d;
  box-shadow: 7px 8px 0 var(--ink);
}

.x-feed-panel__header,
.x-feed-panel__footer {
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.x-feed-panel__header {
  color: var(--paper);
  border-bottom: 1px solid rgba(214, 239, 255, 0.2);
  background: linear-gradient(90deg, rgba(8, 114, 255, 0.58), rgba(5, 35, 110, 0.72));
  font-size: 11px;
  letter-spacing: 0.08em;
}

.x-feed-panel__header > div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.x-feed-panel__header > div > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px 10px 8px 9px;
  background: var(--paper);
  font-size: 14px;
}

.x-feed-status {
  color: var(--yellow);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.x-feed-status[data-state="connected"] {
  color: var(--green);
}

.x-feed-status[data-state="error"] {
  color: var(--pink);
}

.x-feed-status[data-state="delayed"] {
  color: var(--yellow);
}

.x-timeline-host {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 280px;
  padding: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(8, 114, 255, 0.22), transparent 48%),
    #040d27;
}

.x-timeline-host > .twitter-timeline {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 900;
}

.x-timeline-host > .twitter-timeline.is-unavailable {
  display: none !important;
}

.x-timeline-host iframe {
  max-width: 100% !important;
  margin: 0 !important;
}

.x-feed-unavailable {
  min-height: 260px;
  padding: 34px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 11px;
  color: #a9caea;
  text-align: center;
}

.x-feed-unavailable[hidden] {
  display: none;
}

.x-feed-unavailable > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 11px 14px 10px 13px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 18px;
  font-weight: 950;
  transform: rotate(-2deg);
}

.x-feed-unavailable strong {
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.x-feed-unavailable p {
  max-width: 470px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.x-feed-unavailable > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}

.x-feed-unavailable button,
.x-feed-unavailable a {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 9px 12px 9px 11px;
  background: var(--aqua);
  box-shadow: 3px 3px 0 var(--ink);
  font: inherit;
  font-size: 9px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.x-feed-unavailable button:hover,
.x-feed-unavailable a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.x-feed-panel__footer {
  color: #93bce5;
  border-top: 1px solid rgba(214, 239, 255, 0.16);
  font-size: 9px;
  font-weight: 800;
}

.x-feed-fallback {
  flex: 0 0 auto;
  color: var(--aqua);
  font-weight: 950;
  letter-spacing: 0.05em;
}

.x-feed-fallback:hover {
  color: var(--paper);
}

.feed-state,
.feed-empty {
  min-height: 100px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #a9cdf2;
  border: 2px dashed rgba(207, 237, 255, 0.32);
  border-radius: 18px;
  background: rgba(4, 27, 81, 0.55);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.feed-state.is-error {
  color: #ffd5e1;
  border-color: rgba(255, 118, 158, 0.55);
}

.loading-mark,
.chart-loader span {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 3px solid rgba(112, 243, 255, 0.24);
  border-top-color: var(--aqua);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.feed-retry {
  min-height: 36px;
  padding: 0 12px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--paper);
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.agent-feed {
  position: relative;
  padding-left: 28px;
  display: grid;
  gap: 22px;
}

.agent-feed::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 7px;
  width: 3px;
  content: "";
  border-radius: 3px;
  background: linear-gradient(var(--aqua), rgba(112, 243, 255, 0.12));
}

.feed-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 18px 25px 17px 22px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.feed-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feed-card::before {
  position: absolute;
  top: 25px;
  left: -30px;
  width: 15px;
  height: 15px;
  content: "";
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(112, 243, 255, 0.18);
}

.feed-card--market {
  color: var(--paper);
  border-color: var(--ink);
  background:
    linear-gradient(rgba(112, 243, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 243, 255, 0.07) 1px, transparent 1px),
    #08255d;
  background-size: 28px 28px;
}

.feed-card--market::before {
  background: var(--green);
}

.feed-card--system {
  padding: 18px 20px;
  color: #ddecff;
  border-color: #020a20;
  border-radius: 11px 17px 10px 15px;
  background: #030f2d;
  box-shadow: 6px 6px 0 #020818;
}

.feed-card--system::before {
  background: var(--yellow);
}

.feed-card--mention::before {
  background: var(--pink);
}

.feed-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.feed-type-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-type-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px 13px 9px 12px;
  background: var(--blue-3);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 950;
  transform: rotate(-2deg);
}

.feed-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--blue-3);
  box-shadow: 3px 3px 0 var(--ink);
}

.feed-card--market .feed-type-icon {
  color: var(--ink);
  background: var(--green);
}

.feed-card--system .feed-type-icon {
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 11px;
}

.feed-label-stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feed-profile-name {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.feed-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: #5d7595;
  font-size: 10px;
  font-weight: 750;
}

.feed-profile-meta .feed-source::before {
  content: "·";
  margin-right: 8px;
  color: #8ca0b8;
}

.feed-x-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.feed-x-mark:hover {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.feed-x-mark:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

.feed-type-label {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.feed-source {
  overflow: hidden;
  color: #44658c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card--market .feed-source,
.feed-card--system .feed-source {
  color: #84add6;
}

.feed-time {
  flex: 0 0 auto;
  color: #5d7595;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.feed-card--market .feed-time,
.feed-card--system .feed-time {
  color: #83acd5;
}

.feed-author-line {
  margin-top: 21px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.feed-author-line strong {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.feed-author-line > span:not(.feed-badge) {
  color: #5d7595;
  font-size: 11px;
  font-weight: 750;
}

.feed-badge {
  padding: 4px 6px;
  border: 1px solid var(--ink);
  border-radius: 5px 7px 5px 6px;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.feed-badge--demo {
  color: var(--ink);
  background: var(--yellow);
}

.feed-badge--soon {
  color: var(--paper);
  background: var(--blue-3);
}

.feed-text {
  margin: 17px 0 0;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 720;
  line-height: 1.55;
  letter-spacing: -0.015em;
  white-space: pre-line;
}

.feed-card--system .feed-text {
  margin-top: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.feed-media {
  width: min(100%, 620px);
  margin: 19px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: 9px;
}

.feed-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border: 2px solid var(--ink);
  border-radius: 12px 17px 11px 15px;
  background: var(--blue-0);
}

.feed-media img:only-child {
  grid-column: 1 / -1;
}

.feed-quote {
  margin: 17px 0 0;
  padding: 14px 16px;
  color: var(--ink);
  border: 2px dashed #5e7ca2;
  border-radius: 12px 16px 11px 15px;
  background: #e2f4ff;
}

.feed-quote strong {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.feed-quote p {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.feed-inline-link {
  margin-top: 8px;
  display: inline-block;
  color: var(--blue-4);
  font-size: 9px;
  font-weight: 950;
}

.feed-post-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-post-meta .feed-time {
  color: #7288a4;
}

.feed-engagement {
  margin-top: 16px;
  padding-top: 13px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  color: #627895;
  border-top: 1px solid rgba(47, 79, 118, 0.25);
}

.feed-metric {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.feed-metric svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-metric--reposts { color: #008e70; }
.feed-metric--likes { color: #dc1767; }
.feed-metric--views { color: var(--blue-4); }

.feed-card--tweet .feed-card-footer,
.feed-card--mention .feed-card-footer {
  margin-top: 7px;
  padding-top: 8px;
  border-top: 0;
}

.feed-card-footer {
  margin-top: 20px;
  padding-top: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid rgba(47, 79, 118, 0.25);
}

.feed-card--market .feed-card-footer,
.feed-card--system .feed-card-footer {
  border-top-color: rgba(192, 225, 255, 0.18);
}

.feed-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.feed-tags span {
  color: #416892;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.feed-card--market .feed-tags span,
.feed-card--system .feed-tags span {
  color: #86b4df;
}

.feed-action,
.feed-not-published {
  flex: 0 0 auto;
  color: var(--blue-4);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.feed-card--market .feed-action,
.feed-card--system .feed-action {
  color: var(--aqua);
}

.feed-not-published {
  color: #6b7d95;
}

.load-more {
  width: min(100%, 230px);
  margin: 30px auto 0;
}

.agent-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 20px;
}

.status-panel {
  padding: 21px;
}

.panel-title-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
}

.panel-terminal-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px 11px 7px 10px;
  background: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 950;
}

.panel-title-row h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.status-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(98, 255, 177, 0.75);
}

.agent-facts {
  margin: 22px 0 0;
  display: grid;
}

.agent-facts div {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(197, 228, 255, 0.2);
}

.agent-facts dt {
  color: #779ec8;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.agent-facts dd {
  margin: 0;
  color: var(--paper);
  font-size: 10px;
  font-weight: 950;
  text-align: right;
}

.green-text {
  color: var(--green) !important;
}

.yellow-text {
  color: var(--yellow) !important;
}

.monitoring-block {
  margin-top: 24px;
}

.monitoring-block h4 {
  margin: 0 0 10px;
  color: var(--aqua);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.monitoring-block ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.monitoring-block li {
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(196, 227, 255, 0.13);
  border-radius: 8px 11px 8px 10px;
  background: rgba(11, 53, 126, 0.35);
  font-size: 9px;
  font-weight: 780;
}

.monitoring-block em {
  flex: 0 0 auto;
  color: #789fc8;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.monitoring-block em.connected {
  color: var(--green);
}

.monitoring-block em.delayed {
  color: var(--yellow);
}

.personality-card {
  padding: 19px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px 22px 15px 20px;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(1deg);
}

.personality-card div + div {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px dashed rgba(4, 18, 47, 0.3);
}

.personality-card span {
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.personality-card p {
  margin: 6px 0 0;
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

/* DEX chart */
.chart-card {
  min-height: 620px;
}

.chart-bar {
  min-height: 62px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(90deg, #0d70ff, #1557d7 55%, #092d87);
}

.fake-controls {
  display: flex;
  gap: 7px;
}

.fake-controls span {
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.fake-controls span:nth-child(2) { background: var(--yellow); }
.fake-controls span:nth-child(3) { background: var(--green); }

.chart-pair {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.chart-pair b { color: var(--aqua); }
.chart-pair small {
  margin-left: 7px;
  padding: 4px 6px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--green);
  font-size: 7px;
}

.chart-refresh {
  justify-self: end;
  color: #bbdbff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
}

.chart-refresh span:first-child {
  color: var(--green);
}

.chart-frame {
  position: relative;
  min-height: 555px;
  background:
    linear-gradient(rgba(11, 101, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 101, 235, 0.08) 1px, transparent 1px),
    #061331;
  background-size: 40px 40px;
}

.chart-loader {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8fbde7;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.chart-frame iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 555px;
  display: block;
  opacity: 0;
  border: 0;
  background: transparent;
  transition: opacity 260ms ease;
}

.chart-card.is-loaded .chart-frame iframe {
  opacity: 1;
}

.chart-card.is-loaded .chart-loader {
  display: none;
}

/* Featured lore */
.lore-section {
  padding-bottom: 42px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 68px;
}

.tweet-copy h2 {
  font-size: clamp(40px, 5.1vw, 66px);
}

.tweet-copy p {
  max-width: 470px;
  margin: 20px 0 26px;
  color: #b9d8fa;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.tweet-copy .lore-line {
  margin: 19px 0 -9px;
  color: var(--paper);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.tweet-card {
  min-height: 430px;
  padding: 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0, rgba(20, 127, 255, 0.35), transparent 45%),
    rgba(3, 16, 51, 0.97);
}

.tweet-card .twitter-tweet,
.tweet-card iframe {
  width: 100% !important;
  max-width: 550px !important;
  margin: 0 auto !important;
}

.tweet-fallback {
  width: min(100%, 520px);
  min-height: 110px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  border: 2px dashed rgba(207, 237, 255, 0.35);
  border-radius: 18px;
  background: rgba(11, 50, 122, 0.42);
}

.tweet-fallback img {
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.tweet-fallback div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tweet-fallback strong { font-size: 14px; }
.tweet-fallback span { color: #a9cdf2; font-size: 11px; line-height: 1.45; }
.tweet-fallback .text-link { grid-column: 2; justify-self: start; }

.tweet-card:has(.twitter-tweet-rendered) .tweet-fallback {
  display: none;
}

/* Work experience */
.compact-heading {
  align-items: center;
}

.compact-heading > p,
.roadmap-heading > p {
  max-width: 310px;
  margin: 0;
  color: #aaccf0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.resume-stamp {
  width: fit-content;
  margin: 0 0 25px auto;
  padding: 8px 10px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--pink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: rotate(2deg);
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: 24px;
}

.meme-card {
  margin: 0;
  padding: 10px 10px 17px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 13px 20px 12px 18px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.meme-card:hover {
  z-index: 2;
  box-shadow: 11px 12px 0 var(--ink);
  transform: translateY(-7px) rotate(0deg) scale(1.015);
}

.meme-card:nth-child(1) { grid-column: span 4; }
.meme-card:nth-child(2) { grid-column: span 4; margin-top: 48px; }
.meme-card:nth-child(3) { grid-column: span 4; }
.meme-card:nth-child(4) { grid-column: span 4; margin-top: -10px; }
.meme-card:nth-child(5) { grid-column: span 4; margin-top: 32px; }
.meme-card:nth-child(6) { grid-column: span 4; margin-top: -4px; }

.meme-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 9px 14px 8px 13px;
  background: #d9f5ff;
}

.meme-card:nth-child(4) img {
  object-position: center top;
}

.meme-card figcaption {
  padding: 12px 5px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.meme-card figcaption span {
  color: var(--blue-4);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.tilt-left { transform: rotate(-1.8deg); }
.tilt-right { transform: rotate(2deg); }
.tilt-left-small { transform: rotate(-0.8deg); }
.tilt-right-small { transform: rotate(1.3deg); }

/* Roadmap */
.roadmap-heading {
  align-items: center;
}

.roadmap-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.roadmap-card {
  min-height: 270px;
  padding: 22px;
  color: #b7d4f3;
  border: 2px solid rgba(211, 238, 255, 0.25);
  border-radius: 18px 25px 17px 23px;
  background: rgba(4, 24, 72, 0.9);
}

.roadmap-card:nth-child(even) {
  transform: translateY(12px) rotate(0.5deg);
}

.roadmap-card.is-active {
  color: var(--ink);
  border: 3px solid var(--ink);
  background: var(--aqua);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-1deg);
}

.roadmap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.roadmap-top span {
  color: #6693c4;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 38px;
  line-height: 1;
}

.roadmap-card.is-active .roadmap-top span {
  color: var(--blue-4);
}

.roadmap-top em {
  padding: 5px 7px;
  color: #8db7df;
  border: 1px solid rgba(204, 234, 255, 0.23);
  border-radius: 6px;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.roadmap-card.is-active .roadmap-top em {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--green);
}

.roadmap-card h3 {
  margin: 35px 0 0;
  color: var(--paper);
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.roadmap-card.is-active h3 {
  color: var(--ink);
}

.roadmap-card p {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

/* Closing and footer */
.closing {
  padding: 112px 0 92px;
}

.closing-card {
  min-height: 270px;
  padding: 28px 35px 28px 24px;
  display: grid;
  grid-template-columns: 205px 1fr auto;
  align-items: center;
  gap: 35px;
  overflow: hidden;
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 30px 43px 27px 38px;
  background: var(--aqua);
  box-shadow: 11px 12px 0 var(--ink);
  transform: rotate(-0.5deg);
}

.closing-card > img {
  width: 205px;
  height: auto;
  aspect-ratio: 1;
  padding: 8px;
  object-fit: contain;
  object-position: center;
  border: 3px solid var(--ink);
  border-radius: 22px 28px 20px 27px;
  background: linear-gradient(145deg, var(--blue-2), var(--blue-4));
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(3deg);
}

.closing-card .kicker { color: var(--blue-5); }
.closing-card h2 { color: var(--ink); font-size: clamp(40px, 5.6vw, 70px); }

.closing-actions {
  display: grid;
  gap: 13px;
}

.closing-card .button-primary {
  color: var(--paper);
  background: var(--blue-3);
}

.footer {
  min-height: 160px;
  padding: 42px 0 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px 30px;
  color: #b5d5f7;
  border-top: 1px solid rgba(206, 235, 255, 0.22);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--paper);
}

.footer p {
  grid-column: 1 / -1;
  max-width: 690px;
  margin: 0;
  color: #739ccc;
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--green);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.07fr) minmax(350px, 0.93fr);
  }

  .hero h1 {
    font-size: clamp(96px, 10.4vw, 130px);
  }

  .hero-art {
    width: min(calc(100% - 32px), 500px);
    margin-right: 32px;
  }

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

  .ticker-status {
    grid-column: 1 / -1;
    min-height: 62px;
    padding-block: 13px;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 239, 255, 0.18);
  }

  .stat:nth-child(4),
  .stat:nth-child(7) {
    border-right: 0;
  }

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

  .roadmap-card:nth-child(even) {
    transform: translateY(8px) rotate(0.5deg);
  }

  .closing-card {
    grid-template-columns: 170px 1fr;
  }

  .closing-card > img { width: 170px; }
  .closing-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 94px;
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero h1 { font-size: clamp(108px, 18vw, 160px); }

  .hero-art {
    width: min(84vw, 500px);
    margin-right: 0;
    justify-self: center;
  }

  .terminal-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .agent-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: start;
  }

  .lore-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 840px) {
  .nav-links {
    display: none;
  }

  .section {
    padding-top: 96px;
  }

  .terminal-section {
    padding-top: 104px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 24px), 1180px);
  }

  .nav-wrap { padding-top: 9px; }
  .nav { min-height: 60px; border-radius: 17px 20px 16px 19px; }
  .brand span { font-size: 14px; }
  .brand img { width: 38px; height: 38px; }
  .mini-button { min-height: 40px; padding-inline: 11px; font-size: 9px; }

  .hero { padding: 80px 0 58px; }
  .hero h1 { font-size: clamp(80px, 27vw, 130px); }
  .hero h1 span { -webkit-text-stroke: 3px var(--ink); text-shadow: 6px 6px 0 var(--blue-5), 9px 9px 0 var(--ink); }
  .hero-line { margin-top: 32px; }
  .hero-sub { font-size: 14px; }
  .hero-actions .button { width: 100%; }
  .contract { width: 100%; }
  .contract code { font-size: 10px; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .tweet-copy h2 {
    font-size: 47px;
  }

  .terminal-heading {
    flex-direction: row;
    align-items: flex-end;
  }

  .terminal-heading > div {
    min-width: 0;
  }

  .demo-indicator {
    flex: 0 0 auto;
  }

  .feed-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-count {
    padding-left: 3px;
  }

  .feed-card-header {
    align-items: flex-start;
    gap: 12px;
  }

  .feed-card:not(.feed-card--tweet) .feed-time {
    padding-left: 48px;
  }

  .feed-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-sidebar {
    grid-template-columns: 1fr;
  }

  .chart-card { min-height: 548px; }
  .chart-bar { grid-template-columns: 1fr auto; }
  .fake-controls { display: none; }
  .chart-refresh { font-size: 7px; }
  .chart-frame,
  .chart-frame iframe { min-height: 485px; height: 485px; }

  .compact-heading > p,
  .roadmap-heading > p {
    margin: 0;
    text-align: left;
  }

  .resume-stamp {
    margin-left: 0;
  }

  .meme-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .meme-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .meme-card figcaption { font-size: 14px; }

  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .roadmap-card,
  .roadmap-card:nth-child(even) {
    min-height: 220px;
    transform: none;
  }

  .roadmap-card.is-active { transform: rotate(-0.5deg); }
  .roadmap-card h3 { margin-top: 28px; }

  .tweet-card { min-height: 380px; padding: 11px; }

  .closing { padding-top: 82px; }
  .closing-card { padding: 20px; grid-template-columns: 1fr; text-align: center; }
  .closing-card > img { width: min(220px, 78%); justify-self: center; }
  .closing-card h2 { font-size: 47px; }
  .closing-actions { grid-column: auto; grid-template-columns: 1fr; width: 100%; }

  .footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 28px), 1180px);
  }

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

  .ticker-status { grid-column: 1 / -1; }
  .stat:nth-child(4) { border-right: 1px solid rgba(214, 239, 255, 0.18); }
  .stat:nth-child(3),
  .stat:nth-child(5),
  .stat:nth-child(7) { border-right: 0; }

  .terminal-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-feed {
    padding-left: 20px;
  }

  .x-feed-panel {
    margin-left: 20px;
  }

  .x-feed-panel__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-feed::before {
    left: 4px;
  }

  .feed-card {
    padding: 18px 16px;
  }

  .feed-card::before {
    left: -22px;
    width: 12px;
    height: 12px;
  }

  .feed-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .feed-filter {
    width: 100%;
  }

  .feed-filter[data-feed-filter="mention"] {
    grid-column: 1 / -1;
  }

  .toast {
    right: 14px;
    left: 14px;
    bottom: 14px;
    text-align: center;
  }

  .feed-media {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .feed-media img,
  .feed-media img:only-child {
    grid-column: auto;
    max-height: 420px;
  }

  .tweet-fallback {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .tweet-fallback .text-link {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 78px; }
  .hero-art {
    width: calc(100% - 36px);
    padding: 8px 10px 14px 8px;
  }
  .scribble-top { top: 7%; right: 0; font-size: 12px; }
  .contract > strong { display: none; }

  .status-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .status-chips li:last-child {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .meme-grid { grid-template-columns: 1fr; }
  .meme-card:nth-child(n) { transform: none; }

  .section-heading h2,
  .tweet-copy h2,
  .closing-card h2 { font-size: 40px; }

  .chart-pair { font-size: 12px; }
  .chart-refresh { max-width: 90px; text-align: right; }
  .footer-links { gap: 14px; }
}

@media (max-width: 370px) {
  .nav { gap: 9px; }
  .brand { gap: 7px; }
  .brand span { font-size: 12px; }
  .mini-button { padding-inline: 8px; font-size: 8px; }

  .hero h1 { font-size: 70px; }
  .hero-line { font-size: 24px; }
  .contract { gap: 8px; }
  .contract code { font-size: 9px; }

  .section-heading h2,
  .tweet-copy h2,
  .closing-card h2 { font-size: 36px; }

  .feed-card { padding: 16px 13px; }
  .feed-type-icon { width: 34px; height: 34px; }
  .feed-avatar { width: 40px; height: 40px; }
  .feed-engagement { gap: 3px; }
  .feed-metric { gap: 5px; font-size: 9px; }
  .feed-metric svg { width: 16px; height: 16px; }
  .feed-time { padding-left: 44px; font-size: 7px; }
  .feed-post-meta .feed-time { padding-left: 0; }
  .panel-title-row { grid-template-columns: auto 1fr; }
  .status-online { grid-column: 2; }
}

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

  .feed-card {
    opacity: 1;
    transform: none;
  }
}
