@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Inter+Tight:wght@300;400;500&family=Geist:wght@300;400;500&family=Geist+Mono:wght@400&display=swap');

/* ---------------------------------------------------------------------------
   ArcLayer. The palette and type are lifted from arc.io: the navy-to-black
   ground, Space Grotesk Light in capitals for anything you see, DM Sans for
   anything you read, Space Mono with orange braces for labels. The composition
   is ours: floating glass pill, bento tiles, one splash per page.
--------------------------------------------------------------------------- */
:root {
  --navy-0: #000b24;
  --navy-1: #0b223e;
  --navy-2: #143453;
  --navy-3: #326796;
  --ice: #acc6e9;
  --ice-dim: rgba(172, 198, 233, 0.62);
  --orange: #e9a13f;
  --violet: #9f72ff;
  --white: #ffffff;
  --black: #000000;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);
  --hair: rgba(255, 255, 255, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smiling: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--ice); color: var(--navy-0); }

/* Ground: arc.io's hero gradient, fixed, with the arcs canvas over it. */
.ground {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--navy-0) 0%, var(--navy-1) 10%, var(--navy-2) 24%, #17395c 40%, #0b1a2c 66%, var(--black) 100%);
}
.ground video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.ground::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,5,20,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 75%, rgba(0,0,0,.72) 100%);
}

/* Type */
.display {
  font-family: 'Instrument Sans', 'Geist', sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.display-sm {
  font-family: 'Instrument Sans', 'Geist', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
@media (max-width: 480px) { .label { font-size: 9.5px; letter-spacing: .12em; } }
.label i { font-style: normal; color: var(--orange); }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  font-size: 2.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dash { color: var(--faint); }

/* ---------------------------------------------------------------------------
   Liquid glass (same rim trick as the other sites: masked gradient border)
--------------------------------------------------------------------------- */
.liquid-glass {
  background: rgba(10, 24, 48, 0.28);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px;
  background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.14) 22%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 60%, rgba(255,255,255,.14) 80%, rgba(255,255,255,.42) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.glass-circle {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
  position: relative; overflow: hidden; transition: background .15s;
}
.glass-circle::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px;
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.18) 50%, rgba(255,255,255,.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.glass-circle:hover { background: rgba(255,255,255,.08); }

/* ---------------------------------------------------------------------------
   Nav: the floating pill
--------------------------------------------------------------------------- */
.nav { position: relative; z-index: 20; padding: 22px 20px 0; }
.nav-pill {
  border-radius: 999px; max-width: 1040px; margin: 0 auto;
  padding: 6px 6px 6px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand svg { width: 26px; height: 26px; }
.brand .word { font-family: 'Instrument Sans', sans-serif; font-weight: 500; font-size: 16.5px; letter-spacing: -0.02em; }
.nav-links { display: none; gap: 26px; margin-left: 26px; }
.nav-links a { font-size: 13.5px; color: var(--muted); transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-status { display: none; font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.btn-white {
  background: var(--white); color: var(--navy-0); border-radius: 999px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: transform .15s, background .15s;
}
.btn-white:hover { background: var(--ice); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 8px; color: var(--white);
  padding: 11px 18px; font-size: 14px; transition: background .15s, border-color .15s;
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--white); }
.btn-ice {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ice); color: var(--navy-0); border-radius: 8px;
  padding: 11px 18px; font-size: 14px; font-weight: 500;
}
.nav-mobile { display: flex; justify-content: center; gap: 22px; margin-top: 12px; }
.nav-mobile a { font-size: 13.5px; color: var(--muted); }
.ca-row { display: flex; justify-content: center; margin-top: 12px; padding: 0 12px; }
.ca-bar {
  border-radius: 999px; padding: 7px 13px 7px 12px; display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%; color: var(--muted); font-size: 12px; cursor: pointer; border: 0; transition: color .15s;
}
.ca-bar:hover { color: var(--white); }
.ca-bar .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 700px) {
  .nav-links { display: flex; }
  .nav-mobile { display: none; }
}
@media (min-width: 960px) { .nav-status { display: inline; white-space: nowrap; } }

/* ---------------------------------------------------------------------------
   Splash (index)
--------------------------------------------------------------------------- */
.splash { position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column; }
.splash-body {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  text-align: left; padding: clamp(90px, 27vh, 250px) 20px 24px; max-width: 1080px; width: 100%; margin: 0 auto;
}
.is-splash .ca-row, .is-splash .nav-mobile { display: none; }
.hero-line { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; opacity: 0; transition: opacity .5s; font-size: 13px; color: var(--muted); }
.hero-line.in { opacity: 1; }
.hero-line b { font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; margin-left: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 6px 12px 6px 8px; font-family: 'Geist Mono', monospace; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ice);
}
.chip .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ice); box-shadow: 0 0 12px var(--ice); }
.splash h1 { font-family: 'Geist', sans-serif; font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(1.7rem, 3.3vw, 2.7rem); max-width: 760px; margin: 0 0 14px; color: rgba(255,255,255,.92); }
.splash h1 em { font-style: normal; color: var(--ice-dim); }
.splash .sub { max-width: 540px; font-size: 15.5px; color: var(--muted); }
.hero-line b { color: rgba(255,255,255,.85); }
.hero-stats {
  margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  width: 100%; max-width: 560px; opacity: 0; transition: opacity .5s;
}
.hero-stats.in { opacity: 1; }
.stat { border-radius: 16px; padding: 16px 18px; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.stat .num { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.stat .sub { font-size: 12px; color: var(--faint); }

.splash-foot { position: relative; z-index: 10; display: flex; gap: 10px; padding: 0 20px 28px; max-width: 1080px; width: 100%; margin: 0 auto; font-size: 12px; color: var(--faint); }
.splash-foot a:hover { color: var(--white); }
.credit { border-radius: 999px; padding: 8px 14px 8px 10px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.credit:hover { color: var(--white); }
.socials { display: flex; gap: 12px; }
.socials .glass-circle { width: 50px; height: 50px; }

/* ---------------------------------------------------------------------------
   Pages: bento
--------------------------------------------------------------------------- */
.page { position: relative; z-index: 10; max-width: 1120px; margin: 0 auto; padding: 56px 20px 80px; }
.page-head { margin-bottom: 30px; max-width: 760px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--white); margin-top: 12px; }
.page-head p { margin-top: 14px; color: var(--muted); max-width: 560px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.tile { border-radius: 20px; padding: 24px; grid-column: span 12; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.tile h2 { font-family: 'Instrument Sans', sans-serif; font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; color: var(--white); }
.tile h3 { font-family: 'Instrument Sans', sans-serif; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--white); }
.tile p { font-size: 14.5px; color: var(--muted); }
.tile p strong { color: var(--white); font-weight: 500; }
.tile.dark { background: #060606; border: 1px solid var(--hair); }
.tile.glass { border-radius: 20px; }
.tile.ice { background: var(--ice); color: var(--navy-0); }
.tile.ice h2, .tile.ice h3, .tile.ice p, .tile.ice .label { color: var(--navy-0); }
.tile.ice .label i { color: #b5761c; }
.tile.ice p { color: rgba(0, 11, 36, .72); }
.step { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--orange); letter-spacing: .12em; }
.tile .foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair); border-radius: 999px; padding: 5px 10px; font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.pill.on { border-color: rgba(172,198,233,.5); color: var(--ice); }
.arrow { color: var(--faint); font-size: 12px; }
@media (min-width: 820px) {
  .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
  .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s3 { grid-column: span 3; }
  .r2 { grid-row: span 2; }
}

/* Ledger table */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 400; padding: 8px 10px; border-bottom: 1px solid var(--hair); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--ice); }
.table a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.status.done { color: #8fd3a5; }
.status.wait { color: var(--orange); }
.status.open { color: var(--ice); }
.status.bad { color: #e07a7a; }
.empty { padding: 26px 10px; color: var(--faint); font-size: 13.5px; text-align: center; }

/* Ring figure (the arc.io "<1s" motif, ours) */
.ring { position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border-radius: 999px; border: 1px solid rgba(159,114,255,.55); box-shadow: 0 0 60px rgba(159,114,255,.18) inset; pointer-events: none; }
.ring::after { content: ''; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4px; border-radius: 2px; background: var(--violet); box-shadow: 0 0 14px var(--violet); animation: orbit 1s linear infinite; transform-origin: 50% 135px; }
@keyframes orbit { to { transform: rotate(360deg); } }

.page-next { margin-top: 26px; font-size: 14px; color: var(--muted); }
.page-next a:hover { color: var(--white); }
.foot { position: relative; z-index: 10; max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 12px; color: var(--faint); }
.foot a:hover { color: var(--white); }
code, .code { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--ice); }

/* Connect wallet: a hairline link in the pill, never a filled CTA. */
.nav-connect { background: none; border: 1px solid rgba(255,255,255,.22); color: var(--muted); border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .15s, border-color .15s; }
.nav-connect:hover { color: var(--white); border-color: rgba(255,255,255,.5); }
.nav-connect.is-on { color: var(--ice); border-color: rgba(172,198,233,.45); font-family: 'Geist Mono', monospace; font-size: 11.5px; }
.wallet-menu { position: absolute; z-index: 60; width: 200px; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.wallet-menu button { background: none; border: 0; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 9px; font: inherit; font-size: 13px; cursor: pointer; }
.wallet-menu button:hover { background: rgba(255,255,255,.08); }
.me-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--hair); }
.me-row:last-child { border-bottom: 0; }
.me-row b { font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 480px) { .nav-connect { display: none; } }
