:root {
  --navy: #06111f;
  --navy-2: #09172a;
  --navy-3: #0d1d33;
  --blue: #1769ff;
  --blue-2: #3b82ff;
  --blue-soft: #eaf2ff;
  --text: #0d1727;
  --muted: #5f6f82;
  --line: #dfe7f1;
  --white: #fff;
  --off-white: #f8fafc;
  --home-white: #f1f5f9;
  --shadow: 0 24px 70px rgba(20, 47, 82, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, svg { max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #e5e7eb;
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { color: #000; font-size: 2rem; font-weight: 800; letter-spacing: -.05em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav a, .text-link { color: #111; font-size: .92rem; }
.main-nav a:hover, .text-link:hover { color: #000; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #000; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  color: #fff;
  background: #000;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .22); }
.button-small { min-height: 42px; padding: 0 20px; font-size: .9rem; }
.button-secondary { background: transparent; border: 1px solid rgba(255,255,255,.28); box-shadow: none; }


.hero {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  color: var(--text);
  padding: 132px 0 150px;
  border-bottom: 1px solid #e2e8f0;
}
.registry-hero {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.registry-hero h1 {
  margin: 0 0 38px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.domain-search { width: min(820px, 100%); }
.domain-search-box {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 20px;
  background: #fff;
  border: 1px solid #d6deea;
  border-radius: 999px;
  box-shadow: 0 14px 42px rgba(31, 55, 88, .13);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.domain-search-box:focus-within {
  border-color: #9bbcff;
  box-shadow: 0 18px 48px rgba(23, 105, 255, .16);
}
.search-icon { width: 24px; height: 24px; color: #7b8798; }
.search-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.domain-search input,
.domain-search select {
  min-width: 0;
  color: #172033;
  background: transparent;
  border: 0;
  outline: 0;
}
.domain-search input { width: 100%; padding: 10px 4px; font-size: 1.05rem; }
.domain-search input::placeholder { color: #8b97a8; }
.domain-search select {
  min-height: 44px;
  padding: 0 38px 0 18px;
  border-left: 1px solid #e2e7ef;
  font-weight: 700;
  cursor: pointer;
}
.search-button {
  min-height: 52px;
  padding: 0 25px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.search-button:hover { transform: translateY(-1px); background: #075be8; }
.search-result {
  width: min(760px, 100%);
  margin-top: 24px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(31,55,88,.09);
}
.search-result[hidden] { display: none; }
.search-result strong, .search-result small { display: block; }
.search-result small { margin-top: 2px; color: var(--muted); }
.search-result a { color: var(--blue); font-weight: 800; white-space: nowrap; }
.result-available { color: #15803d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.section { padding: 138px 0; }
.light-section { background: #fff; }
.social-section { background: var(--off-white); }
.knowledge-section { background: #fff; }
.homeserver-section { background: var(--home-white); }
.how-section { background: #fff; }
.section-heading { margin-bottom: 58px; }
.section-heading.centered { max-width: 760px; text-align: center; }
.section-heading h2, .section h2, .cta-section h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.05em; }
.section-heading p:last-child, .section-lead { color: var(--muted); font-size: 1.08rem; }
.section-number { margin: 0 0 16px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 800; }

.feature-grid { display: grid; gap: 18px; }
.six-up { grid-template-columns: repeat(6, 1fr); }
.feature-card { padding: 30px 22px; min-height: 265px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(40,65,95,.06); }
.feature-card .icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 16px; font-size: 1.5rem; }
.feature-card h3 { margin: 24px 0 10px; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.split-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.mini-card { padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.mini-card h3 { margin: 0 0 8px; font-size: 1rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.pod-network { position: relative; min-height: 480px; padding: 40px; overflow: hidden; border-radius: 26px; background: linear-gradient(145deg, #f9fbff, #edf4ff); border: 1px solid #dce8f8; box-shadow: var(--shadow); }
.pod-network svg { position: absolute; inset: 70px 0 0; width: 100%; height: 360px; }
.pod-network line { stroke: #80a5dc; stroke-width: 2; stroke-dasharray: 5 8; }
.network-title { text-align: center; font-weight: 800; }
.person-node { position: absolute; z-index: 2; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #9caac0; border: 6px solid #e7edf6; font-weight: 800; }
.center-node { left: 50%; top: 42%; width: 105px; height: 105px; transform: translate(-50%, -50%); background: linear-gradient(145deg, #246fff, #073ba6); border-color: #cfe0ff; box-shadow: 0 14px 40px rgba(23, 105, 255, .3); }
.center-node span, .center-node small { display: block; text-align: center; }
.center-node small { font-size: .66rem; font-weight: 500; }
.node-a { left: 10%; top: 14%; }.node-b { right: 10%; top: 14%; }.node-c { left: 13%; bottom: 18%; }.node-d { right: 13%; bottom: 18%; }
.pod-network p { position: absolute; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center; color: var(--muted); font-size: .92rem; }

.knowledge-panel { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.panel-toolbar { display: flex; gap: 12px; }
.search-field { flex: 1; padding: 13px 15px; color: #94a0b0; border: 1px solid var(--line); border-radius: 10px; }
.panel-toolbar button { padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.panel-tabs { display: flex; gap: 20px; margin: 22px 0; color: var(--muted); font-size: .86rem; }
.panel-tabs .active { color: var(--blue); font-weight: 700; }
.result-card { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.result-badge { width: 45px; height: 45px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-size: .72rem; font-weight: 800; }
.result-card p, .result-card small { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.knowledge-panel h4 { margin: 24px 0 12px; }
.reference-row { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); }
.reference-row small { color: var(--muted); }
.knowledge-panel > a { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 700; font-size: .9rem; }

.homeserver-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: center; }
.homeserver-list { display: grid; gap: 16px; margin-top: 34px; }
.homeserver-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid #dbe4ed; }
.homeserver-list span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #fff; font-weight: 800; }
.homeserver-list p { margin: 0; color: var(--muted); }
.homeserver-list strong { display: block; color: var(--text); margin-bottom: 2px; }
.homeserver-dashboard { padding: 32px; border-radius: 24px; background: #fff; border: 1px solid #dbe3ec; box-shadow: var(--shadow); }
.dashboard-topline { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.12); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.dashboard-metrics div { padding: 18px; border-radius: 14px; background: var(--off-white); }
.dashboard-metrics small, .dashboard-metrics strong { display: block; }
.dashboard-metrics small { color: var(--muted); }
.dashboard-chart { height: 180px; display: flex; align-items: end; gap: 10px; padding: 26px 22px 0; border-radius: 16px; background: linear-gradient(180deg, #f5f9ff, #fff); border: 1px solid var(--line); }
.dashboard-chart span { flex: 1; min-height: 18%; background: linear-gradient(180deg, #5f9cff, #1769ff); border-radius: 5px 5px 0 0; }
.agent-list { margin: 22px 0; }
.agent-list div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.agent-list small { color: #16a34a; font-weight: 700; }
.dashboard-button { width: 100%; }

.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 58px; }
.steps-grid article { position: relative; padding: 30px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.steps-grid article > span { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 800; }
.steps-grid h3 { margin: 24px 0 8px; font-size: 1rem; }
.steps-grid p { margin: 0; color: var(--muted); font-size: .9rem; }

.cta-section { padding: 105px 0; color: #fff; background: radial-gradient(circle at 80% 40%, rgba(23,105,255,.2), transparent 28%), var(--navy); }
.cta-wrap { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.cta-wrap h2 { max-width: 780px; font-size: clamp(2.2rem, 4vw, 3.8rem); }
footer { color: #9eb0c5; background: #04101d; border-top: 1px solid rgba(255,255,255,.08); }
.footer-wrap { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: #fff; }

@media (max-width: 1100px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 76px; padding: 20px; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 18px 45px rgba(0,0,0,.10); border-radius: 14px; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-actions .text-link { display: none; }
  .split-layout, .homeserver-grid { grid-template-columns: 1fr; }
  .six-up { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-actions .button { display: none; }
  .hero { padding: 92px 0 110px; }
  .registry-hero { min-height: 320px; }
  .domain-search-box { grid-template-columns: auto 1fr; padding: 12px 14px; border-radius: 24px; }
  .domain-search select { grid-column: 1 / 3; width: 100%; min-height: 48px; border-left: 0; border-top: 1px solid #e2e7ef; padding: 10px 8px 0; }
  .search-button { grid-column: 1 / 3; width: 100%; }
  .search-result { align-items: flex-start; flex-direction: column; }
  .section { padding: 96px 0; }
  .six-up, .mini-grid, .steps-grid, .dashboard-metrics { grid-template-columns: 1fr; }
  .split-layout, .homeserver-grid { gap: 52px; }
  .reverse-mobile > :first-child { order: 1; }
  .cta-wrap, .footer-wrap { flex-direction: column; align-items: flex-start; }
  .footer-wrap { padding: 36px 0; }
  .footer-links { flex-wrap: wrap; }
  .dashboard-topline { flex-direction: column; }
}

@media (max-width: 520px) {

  .section-heading h2, .section h2 { font-size: 2.35rem; }
  .pod-network { min-height: 430px; padding: 24px; }
  .person-node { width: 58px; height: 58px; }
  .center-node { width: 92px; height: 92px; }
}

/* Shared layout owns the global header and footer. */
.site-header, body > footer:not(.global-footer), .registry-header, .registry-footer { display: none !important; }
.eyebrow.blue, .section-number, .feature-card .icon, .knowledge-panel > a, .panel-tabs .active { color: #111; }
.section-number { background: #111; }
.search-button, .button, .dashboard-button { background: #111; }
.search-button:hover, .button:hover { background: #2b2b2b; }

/* Refined registry hero and mobile search */
.registry-hero { max-width: 980px; }
.registry-hero h1 { font-family: "Manrope", sans-serif; font-weight: 750; letter-spacing: -.045em; }

@media (max-width: 620px) {
  .hero {
    min-height: calc(100svh - 70px);
    padding: 64px 0 84px;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  }
  .registry-hero {
    min-height: 0;
    width: 100%;
    padding-top: 34px;
    justify-content: flex-start;
  }
  .registry-hero h1 {
    max-width: 320px;
    margin: 0 auto 30px;
    font-size: clamp(2.15rem, 10.5vw, 3rem);
    line-height: 1.03;
    text-wrap: balance;
  }
  .domain-search { width: 100%; }
  .domain-search-box {
    min-height: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0;
    padding: 8px;
    border: 1px solid #dfe5ec;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(35, 53, 75, .11);
  }
  .search-icon {
    width: 22px;
    height: 22px;
    margin: 0 auto;
    color: #737d89;
  }
  .domain-search input {
    min-height: 58px;
    padding: 0 12px 0 2px;
    font-size: 1.05rem;
    font-weight: 550;
  }
  .domain-search select {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 54px;
    margin-top: 2px;
    padding: 0 42px 0 16px;
    border: 0;
    border-top: 1px solid #edf0f3;
    font-size: .96rem;
    font-weight: 750;
  }
  .search-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    border-radius: 17px;
    background: #111;
    font-size: 1rem;
    box-shadow: none;
  }
  .search-button:hover { background: #111; transform: none; }
  .search-result {
    margin-top: 16px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 18px;
  }
  .section { padding: 84px 0; }
  .section-heading h2, .section h2, .cta-section h2 { font-size: 2.25rem; }
}
