/* hubid.me. Hub Culture sky and royal blue on midnight; light by default, dark when asked. */
:root {
  --sky: #5ec8ff;
  --royal: #2457d6;
  --royal-deep: #1a43b0;
  --midnight: #0b1026;
  --midnight-2: #121a44;
  --ink: #0e1430;
  --ink-2: #3c4566;
  --muted: #6b7393;
  --line: #e4e7f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --tint: #eaf1fd;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 20, 48, 0.04), 0 10px 30px rgba(14, 20, 48, 0.07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1fb;
    --ink-2: #c3c9df;
    --muted: #8e97b5;
    --line: #232b4d;
    --bg: #080c1f;
    --card: #0f1533;
    --tint: #0c1230;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.small { font-size: 13px; color: var(--muted); }
.center { text-align: center; margin-top: 36px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 15.5px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--sky), var(--royal));
  color: #fff; box-shadow: 0 6px 20px rgba(36, 87, 214, 0.35);
}
.btn.primary:hover { box-shadow: 0 10px 28px rgba(36, 87, 214, 0.45); }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.light { background: #fff; color: var(--midnight); }
.btn.big { padding: 15px 30px; font-size: 17px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--midnight) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: 0.01em; }
.brand-id { color: var(--sky); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  text-decoration: none; color: rgba(255, 255, 255, 0.78); font-weight: 500; font-size: 14.5px;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav .nav-signin { margin-left: 8px; }
.nav .nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--royal)); color: #fff; font-weight: 650;
  border-radius: 999px; padding: 8px 16px; margin-left: 4px;
}
.menu { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 75% 30%, #16245e 0%, var(--midnight) 60%);
  padding: 80px 0 88px;
}
.hero-glow {
  position: absolute; inset: auto -20% -60% 30%; height: 600px;
  background: radial-gradient(closest-side, rgba(94, 200, 255, 0.25), transparent);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sky); border: 1px solid rgba(94, 200, 255, 0.35); border-radius: 999px; padding: 4px 12px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; }
.grad {
  background: linear-gradient(90deg, var(--sky), #8fb0ff 50%, #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, 0.78); margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.hero-note a { color: var(--sky); }
.hero-card { margin: 0; justify-self: center; text-align: center; }
.hero-sigil {
  width: min(400px, 78vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-inline: auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 80px rgba(94, 200, 255, 0.25);
}
.hero-sigil .sigil { animation: spin 90s linear infinite; }
.fade { animation: fade .7s ease; }
.sigil, .sigil svg { display: block; width: 100%; height: 100%; }
.hero-card figcaption { margin-top: 18px; display: grid; gap: 4px; }
.hero-name { font-weight: 700; font-size: 18px; }
.hero-canon { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-sigil .sigil, .fade { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: 96px 0; }
.section.tint { background: var(--tint); }
.section.dark { background: var(--midnight); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2, .section h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section-head p:not(.kicker) { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.section-lede { margin-top: 16px; font-size: 17.5px; color: var(--ink-2); }
.dark .section-lede, .dark .section-head p:not(.kicker) { color: rgba(255, 255, 255, 0.75); }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--royal); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dark .kicker { color: var(--sky); }
@media (prefers-color-scheme: dark) { .kicker { color: var(--sky); } }
.soon {
  font-size: 11px; letter-spacing: 0.06em; color: var(--royal); background: color-mix(in srgb, var(--sky) 18%, transparent);
  border-radius: 999px; padding: 2px 10px;
}
@media (prefers-color-scheme: dark) { .soon { color: var(--sky); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* Who */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who { padding: 28px; }
.who h3 { font-size: 21px; margin: 18px 0 10px; }
.who p { color: var(--ink-2); }
.who-icon {
  display: block; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--royal));
  -webkit-mask: var(--icon) center / 28px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.who.humans .who-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8z'/%3E%3C/svg%3E"); }
.who.agents .who-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='7' width='16' height='13' rx='3'/%3E%3Crect x='11' y='2' width='2' height='5'/%3E%3C/svg%3E"); }
.who.institutions .who-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 2 8h20z'/%3E%3Crect x='4' y='10' width='3' height='9'/%3E%3Crect x='10.5' y='10' width='3' height='9'/%3E%3Crect x='17' y='10' width='3' height='9'/%3E%3Crect x='2' y='20' width='20' height='2'/%3E%3C/svg%3E"); }

/* Mandala */
.mandala-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.try { display: block; margin-top: 28px; }
.try > span { display: block; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; }
.try-row {
  display: flex; align-items: center; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; padding: 0 16px;
}
.try-row:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(94, 200, 255, 0.25); }
.try input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff;
  font: 600 20px var(--sans); padding: 14px 0;
}
.try-suffix { color: var(--sky); font-weight: 600; font-size: 18px; }
.params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; }
.params div { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 10px 12px; }
.params dt { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.params dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.fingerprint { margin-top: 16px; display: grid; gap: 4px; }
.fingerprint span { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.fingerprint code { font-size: 12px; color: rgba(255, 255, 255, 0.75); word-break: break-all; }
.mandala-stage { text-align: center; }
.mandala-stage .sigil {
  width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 90px rgba(94, 200, 255, 0.2);
}
.stage-canon { display: block; margin-top: 16px; color: rgba(255, 255, 255, 0.55); font-size: 13px; word-break: break-all; }

/* Names */
.names-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.names-grid code { color: var(--royal); }
@media (prefers-color-scheme: dark) { .names-grid code { color: var(--sky); } }
.points { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.points li { padding-left: 20px; border-left: 3px solid var(--sky); }
.points h3 { font-size: 17px; margin-bottom: 4px; }
.points p { color: var(--ink-2); }
.passport { padding: 0; overflow: hidden; background: var(--midnight); border-color: #1d2655; }
.passport-head {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #121a44;
  border-bottom: 1px solid #1d2655;
}
.passport-head code { color: rgba(255, 255, 255, 0.6) !important; font-size: 12.5px; margin-left: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2a3570; }
.passport pre { margin: 0; padding: 20px; overflow-x: auto; }
.passport pre code { color: #cfe6ff !important; font-size: 13.5px; line-height: 1.7; }
.passport .small { padding: 0 20px 16px; color: rgba(255, 255, 255, 0.45); }

/* The .hubid bid */
.bid { background: radial-gradient(900px 500px at 85% 0%, #16245e 0%, var(--midnight) 65%); }
.bid .section-head { max-width: 860px; }
.bid strong { color: var(--sky); }
.layers { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: layer; }
.layer {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center;
  padding: 22px 26px; border-radius: var(--radius); position: relative;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
}
.layer + .layer::before {
  content: "↓"; position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: var(--midnight); color: var(--sky); border: 1px solid rgba(94, 200, 255, 0.4);
}
.layer.dns { border-color: rgba(94, 200, 255, 0.55); background: rgba(94, 200, 255, 0.08); box-shadow: 0 0 40px rgba(94, 200, 255, 0.12); }
.layer.agentic { background: linear-gradient(120deg, rgba(36, 87, 214, 0.35), rgba(94, 200, 255, 0.12)); }
.layer-name h3 { font-size: 24px; }
.layer.dns h3 { color: var(--sky); }
.layer-name span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.layer p { color: rgba(255, 255, 255, 0.8); }
.sub { font-size: 26px; font-weight: 800; margin: 64px 0 24px; }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reason {
  padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1); border-top: 3px solid var(--sky);
}
.reason h4 { font-size: 17px; margin: 0 0 8px; line-height: 1.3; }
.reason p { color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 127px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--sky), var(--royal) 75%, rgba(255, 255, 255, 0.15));
}
.tl { display: grid; grid-template-columns: 110px 36px 1fr; align-items: start; padding: 10px 0; }
.tl-when { font-family: var(--mono); font-size: 13.5px; color: rgba(255, 255, 255, 0.6); text-align: right; padding: 2px 8px 0 0; }
.tl-dot {
  width: 14px; height: 14px; border-radius: 50%; margin: 5px auto 0; position: relative; z-index: 1;
  background: var(--sky); box-shadow: 0 0 0 4px var(--midnight);
}
.tl.now .tl-dot { background: #fff; box-shadow: 0 0 0 4px var(--midnight), 0 0 0 7px rgba(94, 200, 255, 0.5); }
.tl.next .tl-dot { background: var(--midnight); border: 2px dashed var(--sky); }
.tl h4 { font-size: 17px; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl p { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
.tl.next h4 { color: var(--sky); }
.tl-now {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sky); color: var(--midnight); border-radius: 999px; padding: 1px 8px;
}
.bid-note { margin-top: 24px; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }
.bid-note a { color: var(--sky); }
.bid-cta { margin-top: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.bid-cta p { color: rgba(255, 255, 255, 0.75); max-width: 30em; }

/* Unlocks */
.unlock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.unlock { padding: 24px; text-decoration: none; transition: transform .15s, border-color .15s; }
.unlock:hover { transform: translateY(-2px); border-color: var(--sky); }
.unlock h3 { font-size: 19px; display: flex; justify-content: space-between; }
.unlock .arrow { color: var(--royal); }
.unlock p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--royal)); color: #fff; font-weight: 800;
}
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { color: var(--ink-2); }

/* Developers */
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; font-weight: 500; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--royal);
}
.code { padding: 22px; background: var(--midnight); border-color: #1d2655; color: #fff; }
.code-title { font-weight: 700; margin-bottom: 12px; }
.code pre { margin: 0 0 12px; overflow-x: auto; }
.code pre code { color: #cfe6ff; font-size: 13.5px; line-height: 1.7; }
.code .small { color: rgba(255, 255, 255, 0.5); }

/* Closing */
.closing { background: linear-gradient(120deg, var(--royal-deep), var(--royal) 45%, #2f8fe0); color: #fff; padding: 72px 0; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.closing h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; max-width: 18em; }
.closing p { margin-top: 10px; font-size: 18px; color: rgba(255, 255, 255, 0.8); }
.closing .btn { flex: none; }

/* Footer */
.foot { background: var(--midnight); color: rgba(255, 255, 255, 0.75); padding: 40px 0; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand strong { color: #fff; }
.foot-brand p { font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: #fff; }

/* Tablet and phone */
@media (max-width: 960px) {
  .hero-grid, .mandala-grid, .names-grid, .dev-grid { grid-template-columns: 1fr; gap: 44px; }
  .who-grid, .unlock-grid, .steps, .reason-grid { grid-template-columns: 1fr 1fr; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; background: var(--midnight); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .top.open .nav { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .nav .nav-signin, .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .menu {
    display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .menu span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s; }
  .top.open .menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .top.open .menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .closing-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .who-grid, .unlock-grid, .steps, .reason-grid { grid-template-columns: 1fr; }
  .layer { padding: 20px; }
  .timeline::before { left: 7px; }
  .tl { grid-template-columns: 16px 1fr; column-gap: 16px; }
  .tl-dot { grid-column: 1; grid-row: 1 / span 2; margin-top: 4px; }
  .tl-when { grid-column: 2; grid-row: 1; text-align: left; padding: 0; }
  .tl > div { grid-column: 2; }
  .sub { margin-top: 48px; font-size: 22px; }
  .params { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .passport pre, .code pre { padding: 16px; }
  .passport pre code, .code pre code { font-size: 11.5px; }
}
