/* ============================================================================
   Phase C preview - full 5-section marketing site rework.
   Direction locked 2026-07-08 (agents.md HOMEPAGE REWORK DIRECTION).
   Owner: RWA Bridge Session 6 (site rework role). Widget contract counterparty:
   Agents Session 2. Cite LITEPAPER-FACTS-VERIFIED for every external claim.
   ============================================================================ */

:root {
  --bg:            #FAF9F5;
  --bg-elev:       #FEFDF9;
  --bg-sunk:       #F3F1EA;
  --ink:           #1B2438;
  --ink-dim:       #4A5568;
  --ink-faint:     #6B7280;
  --line:          rgba(27, 36, 56, 0.10);
  --line-strong:   rgba(27, 36, 56, 0.18);
  --amber:         #C9822D;
  --amber-hover:   #B37225;
  --amber-tint:    rgba(201, 130, 45, 0.10);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- shared typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
h2 { font-size: clamp(32px, 4.4vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
p  { color: var(--ink-dim); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: inline-block;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-dim);
  max-width: 62ch;
  line-height: 1.5;
}
em.amber-em {
  font-style: italic;
  color: var(--amber);
}

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  height: 24px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
/* About > Teleport dropdown (2026-07-13) */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item.has-submenu > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item.has-submenu > a .chev {
  font-size: 9px;
  color: var(--ink-faint);
  transition: transform .2s ease, color .2s ease;
  line-height: 1;
}
.nav-item.has-submenu:hover > a .chev,
.nav-item.has-submenu:focus-within > a .chev { color: var(--ink); transform: rotate(180deg); }
.submenu {
  position: absolute;
  top: calc(100% + 10px);
  right: -12px;
  min-width: 230px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(27, 36, 56, 0.10);
  padding: 8px;
  display: none;
  z-index: 51;
}
.submenu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 30px;
  width: 12px;
  height: 12px;
  background: var(--bg-elev);
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.submenu a:hover { background: var(--amber-tint); color: var(--ink); }
.submenu a .sub-desc {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 2px;
}
.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu:focus-within .submenu { display: block; }
/* Invisible bridge below the About link so cursor can move to submenu without hover loss */
.nav-item.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: -6px;
  height: 14px;
  pointer-events: auto;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testnet-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.testnet-chip .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,130,45,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(201,130,45,0);  }
  100% { box-shadow: 0 0 0 0 rgba(201,130,45,0);    }
}
.wallet-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.wallet-btn:hover {
  transform: translateY(-1px);
  border-color: var(--amber);
  background: var(--amber-tint);
}
@media (max-width: 820px) {
  .nav-links, .testnet-chip { display: none; }
}

/* ---------- hero ---------- */
main.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 120px);
}
.hero-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.05;
  max-width: 22ch;
  margin: 0 auto 44px;
}
.hero h1 em { font-style: italic; color: var(--amber); }

.chat-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 8px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow:
    0 1px 2px rgba(27, 36, 56, 0.04),
    0 8px 24px rgba(27, 36, 56, 0.06);
  transition: border-color .2s ease, box-shadow .25s ease;
}
.chat-card:focus-within {
  border-color: var(--amber);
  box-shadow:
    0 1px 2px rgba(27, 36, 56, 0.04),
    0 8px 24px rgba(201, 130, 45, 0.14);
}
.chat-row { display: flex; align-items: center; gap: 6px; }
.chat-input {
  flex: 1;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 12px 16px 18px;
  min-width: 0;
}
.chat-input::placeholder { color: var(--ink-faint); opacity: 1; }
.send-btn {
  background: var(--amber);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.send-btn:hover {
  transform: translateY(-1px);
  background: var(--amber-hover);
  box-shadow: 0 4px 12px rgba(201, 130, 45, 0.28);
}
.send-btn svg { width: 14px; height: 14px; }

.hero-caption {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 18px;
}
.hero-caption .sep { margin: 0 8px; opacity: 0.5; }

@media (max-width: 640px) {
  .chat-row { flex-direction: column; align-items: stretch; padding: 6px; }
  .chat-input { padding: 14px 12px; }
  .send-btn { width: 100%; justify-content: center; padding: 14px 22px; }
}

/* ---------- generic section ---------- */
section.block {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.block-inner {
  max-width: 940px;
  margin: 0 auto;
}
.block h2 {
  max-width: 20ch;
  margin-bottom: 18px;
}
.block .lead { margin-bottom: 44px; }

/* ---------- Section 2: What OB Is ---------- */
#what { background: var(--bg); }
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.tile {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 36, 56, 0.06);
}
.tile-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}
.tile h3 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: var(--ink);
}
.tile p { font-size: 15px; color: var(--ink-dim); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Section 3: Live Proof ---------- */
#proof { background: var(--bg-sunk); }
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.counter { text-align: left; }
.counter .value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: block;
}
.counter .label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-dim);
  margin-top: 12px;
  line-height: 1.45;
  max-width: 22ch;
}
.counter .note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
  font-style: italic;
}
@media (max-width: 900px) {
  .counters { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
@media (max-width: 480px) {
  .counters { grid-template-columns: 1fr; }
}

/* ---------- Section 4: Compliance Argument ---------- */
#compliance { background: var(--bg); }
.compliance-diagram {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 32px 40px;
  margin-top: 32px;
}
.compliance-diagram svg {
  width: 100%;
  height: auto;
  max-width: 820px;
  margin: 0 auto;
  display: block;
}
.compliance-caption {
  text-align: center;
  font-size: 14px;
  color: var(--ink-dim);
  margin-top: 24px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.compliance-caption strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Section 5: Backing + Team + Status ---------- */
#about { background: var(--bg-sunk); }
.backers {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: center;
  margin-top: 8px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.backer {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.backer .role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin-top: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.person .name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.person .role {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
@media (max-width: 780px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; }
}

.status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 44px;
}
.status-col h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.status-col ul { list-style: none; }
.status-col li {
  font-size: 14px;
  color: var(--ink-dim);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.status-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--amber);
}
@media (max-width: 700px) {
  .status-row { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- footer ---------- */
footer {
  padding: 40px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left {
  max-width: 46ch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-legal {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
}
.footer-tech {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-dim);
}
.footer-links a:hover { color: var(--amber); }

/* ---------- entry motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .chat-card,
  .hero-caption {
    animation: rise 480ms cubic-bezier(.2,.6,.2,1) both;
  }
  .hero h1        { animation-delay: 60ms; }
  .chat-card      { animation-delay: 180ms; }
  .hero-caption   { animation-delay: 280ms; }

  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .48s cubic-bezier(.2,.6,.2,1), transform .48s cubic-bezier(.2,.6,.2,1);
  }
  .reveal.on {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal[data-delay="1"] { transition-delay: 60ms; }
  .reveal[data-delay="2"] { transition-delay: 120ms; }
  .reveal[data-delay="3"] { transition-delay: 180ms; }
  .reveal[data-delay="4"] { transition-delay: 240ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* mock preview toast */
.preview-badge {
  position: fixed;
  bottom: 18px;
  right: 18px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 100;
  opacity: 0.85;
}
.preview-notice {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(27, 36, 56, 0.24);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}
.preview-notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* ==========================================================================
   v2 additions - Canton banner, chains strip, agentic callout, blog teaser,
   team one-liner (memorable line in Section 4).
   ========================================================================== */

.canton-banner {
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 10px 0;
  position: relative;
  z-index: 51;
}
.canton-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-right: 44px;
}
.canton-banner .badge {
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.canton-banner a.read-more {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.canton-banner .close-btn {
  position: absolute;
  right: clamp(12px, 3vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--bg);
  opacity: 0.55;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  transition: opacity .2s ease;
}
.canton-banner .close-btn:hover { opacity: 1; }
.canton-banner.hidden { display: none; }

.chains-strip {
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.chains-strip .strip-label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.chains-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.5vw, 36px);
  flex-wrap: wrap;
}
.chain-mark {
  height: 34px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter .28s ease, transform .2s ease;
}
.chain-mark:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
}
@media (max-width: 720px) {
  .chains-row { justify-content: center; gap: 22px; }
  .chain-mark { height: 26px; max-width: 82px; }
}

.memorable-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  margin: 36px 0 12px;
  padding: 24px 26px;
  border-left: 3px solid var(--amber);
  background: var(--bg-elev);
  border-radius: 0 10px 10px 0;
  max-width: 62ch;
}

.agentic-callout {
  margin-top: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px;
}
.agentic-callout .callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  display: block;
}
.agentic-callout h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.agentic-callout p {
  font-size: 15.5px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin-bottom: 12px;
}
.agentic-callout p:last-of-type { margin-bottom: 0; }
.agentic-callout p strong { color: var(--ink); font-weight: 600; }
.agentic-callout .tags {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.agentic-callout .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.agentic-callout .tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.agentic-callout .tag.live {
  color: var(--green);
  border-color: var(--green);
  background: rgba(47, 125, 79, 0.06);
}
.agentic-callout .tag.live::before { background: var(--green); }
.agentic-callout .tag.building {
  color: var(--amber);
  border-color: var(--amber);
  background: var(--amber-tint);
}
.agentic-callout .tag.building::before { background: var(--amber); }

.team-line {
  margin-top: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 66ch;
}
.team-line a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
}
.team-line a:hover { color: var(--amber-hover); }

/* Litepaper + Deck resources section */
#resources { background: var(--bg); }
.resource-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.resource-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.resource-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 36, 56, 0.06);
}
.resource-card .resource-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.resource-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 26px);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}
.resource-card p {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0;
}
.resource-card .cta-arrow {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.resource-card .gate-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.resource-card .gate-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
@media (max-width: 720px) {
  .resource-cards { grid-template-columns: 1fr; }
}

#blog-teaser { background: var(--bg-sunk); }
.blog-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.blog-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 36, 56, 0.05);
}
.blog-card .date {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.blog-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.blog-card .read-more {
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
  margin-top: auto;
  padding-top: 4px;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) { .blog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .blog-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Concierge widget - replaces the simple .chat-card in the hero.
   Idle: minimal (header + input + footer). Active (after first user turn):
   expands with a scrollable message area. Mock backend mirrors Agents Session
   2's chat envelope (agents.md item A); swap window.OB_AGENT_API to a URL
   to hit the real backend.
   ========================================================================== */

.concierge {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  box-shadow:
    0 1px 2px rgba(27, 36, 56, 0.04),
    0 8px 24px rgba(27, 36, 56, 0.06);
  transition: border-color .2s ease, box-shadow .25s ease, max-width .35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.concierge:focus-within {
  border-color: var(--amber);
  box-shadow:
    0 1px 2px rgba(27, 36, 56, 0.04),
    0 8px 24px rgba(201, 130, 45, 0.14);
}
.concierge.active { max-width: 780px; }

.concierge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  flex-wrap: wrap;
}
.concierge-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.concierge-title .cog-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-tint);
}
.concierge-title .beta {
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 12px;
}
.concierge-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.kyc-badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  background: transparent;
}
/* Verified state (Ilan CEO 2026-07-13: high-contrast, unmistakable payoff). */
.kyc-badge[data-state="verified"] {
  border-color: var(--green);
  color: #ffffff;
  background: var(--green);
  font-weight: 700;
  padding: 5px 12px;
  box-shadow: 0 2px 8px rgba(47, 125, 79, 0.25);
}
.kyc-badge[data-state="verified"]::before {
  content: "\2713";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--green);
  font-weight: 700;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.kyc-badge[data-state="required"] {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-tint);
  cursor: pointer;
}
.turns {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.concierge-messages {
  padding: 20px 18px;
  overflow-y: auto;
  max-height: 460px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: max-height .35s ease, padding .35s ease;
}
.concierge:not(.active) .concierge-messages { display: none; }

.msg { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.msg.user {
  align-self: flex-end;
  max-width: 82%;
}
.msg.user .bubble {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 12px 12px 3px 12px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}
.msg.assistant {
  align-self: flex-start;
  max-width: 96%;
}
.msg.assistant .text {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}
.msg.assistant .text p { margin: 0 0 8px; }
.msg.assistant .text p:last-child { margin-bottom: 0; }
.msg.assistant .text strong { color: var(--ink); font-weight: 700; }
.msg.assistant .text em { font-style: italic; }
.msg.assistant .text ul,
.msg.assistant .text ol {
  margin: 8px 0 8px 20px;
  padding-left: 0;
}
.msg.assistant .text li { margin-bottom: 4px; }
.msg.assistant .text a {
  color: var(--amber);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.msg.assistant .text a:hover { color: var(--amber-hover); }
.msg.thinking .text {
  color: var(--ink-faint);
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.msg.thinking .dots {
  display: inline-flex;
  gap: 3px;
}
.msg.thinking .dots span {
  width: 4px; height: 4px; border-radius: 50%; background: var(--amber);
  animation: bob 1.1s infinite;
}
.msg.thinking .dots span:nth-child(2) { animation-delay: .15s; }
.msg.thinking .dots span:nth-child(3) { animation-delay: .30s; }
@keyframes bob {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

.msg.refusal .notice {
  border: 1px solid var(--line-strong);
  background: var(--bg-sunk);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg.refusal .notice-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.msg.refusal a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.msg.system .notice {
  font-size: 12px;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  text-align: center;
}
/* KYC-arrival banner (proactive, on identityVerified flip) */
.msg.system.kyc-arrived { align-self: stretch; max-width: 100%; }
.msg.system.kyc-arrived .notice {
  border: 1px solid var(--green);
  background: var(--green-tint);
  color: var(--ink);
  padding: 12px 14px 12px 44px;
  border-radius: 10px;
  border-top: none;
  padding-top: 12px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
  position: relative;
}
.msg.system.kyc-arrived .notice::before {
  content: "\2713";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.msg.system.kyc-arrived .notice strong { color: var(--green); font-weight: 700; }

.tool-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
  font-size: 13px;
}
.tool-card .tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 12px;
}
.tool-card .tc-head .sim {
  background: var(--amber-tint);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.10em;
}
.tool-card table { width: 100%; border-collapse: collapse; }
.tool-card th, .tool-card td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-dim);
}
.tool-card th {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  font-size: 11px;
  text-transform: uppercase;
}
.tool-card tr:last-child td { border-bottom: none; }
.tool-card td.provider { color: var(--ink); font-weight: 500; }
.tool-card tr.winner {
  background: var(--amber-tint);
}
.tool-card tr.winner td {
  color: var(--ink);
  font-weight: 600;
}
.tool-card .borrow-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.tool-card .borrow-btn:hover {
  transform: translateY(-1px);
  border-color: var(--amber);
  background: var(--amber-tint);
  color: var(--ink);
}
.tool-card tr.winner .borrow-btn {
  background: var(--amber);
  color: #ffffff;
  border-color: var(--amber);
}
.tool-card tr.winner .borrow-btn:hover {
  background: var(--amber-hover);
  border-color: var(--amber-hover);
  box-shadow: 0 3px 8px rgba(201, 130, 45, 0.24);
}
.tool-card td.action { text-align: right; padding: 6px 4px; }

.tool-card .steps { display: flex; flex-direction: column; gap: 8px; }
.tool-card .step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}
.tool-card .step .mark {
  flex-shrink: 0;
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 10px; font-weight: 700;
  margin-top: 1px;
}
.tool-card .step[data-status="done"] .mark    { background: var(--green); color: white; }
.tool-card .step[data-status="running"] .mark { background: var(--amber); color: white; }
.tool-card .step[data-status="info"] .mark    { background: var(--line); color: var(--ink-faint); }
.tool-card .step[data-status="error"] .mark   { background: var(--red); color: white; }
/* Sign-flow states (BYO connected wallet, real eth_sendTransaction) */
.tool-card .step[data-status="preview"] .mark { background: var(--line); color: var(--ink); font-size: 11px; font-weight: 700; }
.tool-card .step[data-status="pending"] .mark { background: var(--amber); color: white; }
.tool-card .step[data-status="pending"] .mark .dots span { background: white; }
.tool-card .step[data-status="sent"] .mark    { background: var(--amber); color: white; }
.tool-card .step[data-status="sent"] .mark .dots span { background: white; }
.tool-card .sign-summary {
  margin-top: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--amber-tint);
  border-left: 3px solid var(--amber);
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
}
.tool-card .sign-preview { margin-top: 4px; }
.tool-card .sign-cta {
  margin-top: 12px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--amber);
  color: #ffffff;
  border-color: var(--amber);
}
.tool-card .sign-cta:hover:not(:disabled) {
  background: var(--amber-hover);
  border-color: var(--amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 130, 45, 0.28);
}
.tool-card .sign-cta:disabled {
  opacity: 0.6;
  cursor: default;
}
.tool-card .step .body { flex: 1; }
.tool-card .step .body .note { display: block; color: var(--ink-dim); font-size: 12px; margin-top: 2px; }
.tool-card .step a {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tool-card .rec-summary {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-elev);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.tool-card .rec-summary strong { color: var(--ink); font-weight: 600; }

.concierge-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.concierge:not(.active) .concierge-input { border-top: none; }

.concierge-footer {
  padding: 8px 18px 12px;
  font-size: 11px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.concierge-footer .disc { flex: 1; min-width: 0; }
.concierge-footer .reset {
  font-size: 11px;
  color: var(--ink-faint);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.concierge-footer .reset:hover { color: var(--amber); }
.concierge:not(.active) .concierge-footer .reset { display: none; }

/* hero-shrink when chat becomes active */
main.hero.chat-active h1 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 auto 24px;
  max-width: 30ch;
  transition: font-size .35s ease, margin .35s ease;
}
main.hero h1 { transition: font-size .35s ease, margin .35s ease; }

.wallet-btn[data-connected="true"] {
  border-color: var(--amber);
  background: var(--amber-tint);
  color: var(--ink);
}
.wallet-btn .addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  opacity: 0.8;
  margin-left: 6px;
}