:root {
  --primary: #4e53ee;
  --primary-hover: #3b40d9;
  --primary-light: rgba(78, 83, 238, 0.12);
  --bg-dark: #090b14;
  --bg-card: #13172b;
  --bg-elevated: #1a203a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --radius: 14px;
  --glow: 0 0 25px rgba(78, 83, 238, 0.25);
  --border: 1px solid rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Header & Harbor Styling */
.crest {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: var(--border);
  padding: 16px 24px;
}

.casing-harbor {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.emblem {
  display: flex;
  align-items: center;
  min-width: 0;
}

.emblem img {
  height: 38px;
  width: auto;
  display: block;
}

.harbor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tether {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
  min-width: 0;
}

.tether:hover,
.tether.active {
  color: #ffffff;
  background: var(--primary-light);
}

.tether.active {
  color: #ffffff;
  border: 1px solid rgba(78, 83, 238, 0.4);
}

/* Main Container */
.sanctum {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Section 1: Intro / Vault Hero */
.citadel {
  background: linear-gradient(135deg, #090b14 0%, #151833 50%, #0d1024 100%);
  border: var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.citadel-info {
  flex: 1 1 480px;
  min-width: 0;
}

.strand-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(78, 83, 238, 0.3);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.signet-primary {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 20px;
  white-space: normal;
}

.signet-primary span {
  color: var(--primary);
  background: linear-gradient(135deg, #818cf8 0%, #4e53ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.script-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.pocket-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.latch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0;
}

.latch-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(78, 83, 238, 0.4);
}

.latch-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.latch-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: var(--border);
}

.latch-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.citadel-display {
  flex: 1 1 480px;
  min-width: 0;
}

.vault {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--glow);
}

.vault-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
  margin-bottom: 20px;
  gap: 12px;
}

.script-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.signet-val {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  font-family: monospace, sans-serif;
}

.strand-seal {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pocket-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.capsule {
  flex: 1 1 45%;
  background: var(--bg-elevated);
  border: var(--border);
  padding: 14px;
  border-radius: 10px;
  min-width: 0;
}

.capsule-val {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
}

.strand-flow {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.strand-fill-eth { width: 55%; background: #627eea; }
.strand-fill-arb { width: 25%; background: #28a0f0; }
.strand-fill-sol { width: 20%; background: #14f195; }

/* Section 2: Proof / DeFi Dashboard */
.rampart {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  margin-bottom: 48px;
}

.rampart-crown {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.signet-secondary {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.script-muted {
  font-size: 16px;
  color: var(--text-muted);
}

.rampart-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.pod {
  flex: 1 1 260px;
  background: var(--bg-elevated);
  border: var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.15s ease;
  min-width: 0;
}

.pod:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 83, 238, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.rune-glow {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #818cf8;
}

.signet-tertiary {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Section 3: Detail / NFT Vault Protection */
.aegis {
  background: linear-gradient(180deg, #13172b 0%, #0d1024 100%);
  border: var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 48px;
}

.aegis-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.aegis-view {
  flex: 1 1 440px;
  min-width: 0;
}

.aegis-meta {
  flex: 1 1 440px;
  min-width: 0;
}

.pocket-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.capsule-nft {
  flex: 1 1 200px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.rune-nft {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #1e1b4b 0%, #311b92 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.strand-shield {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(78, 83, 238, 0.85);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Section 4: Context / Asset Security Health */
.bedrock {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 48px;
}

.bedrock-crown {
  margin-bottom: 32px;
}

.bedrock-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.node-health {
  flex: 1 1 100%;
  background: var(--bg-elevated);
  border: var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.strand-risk-high {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.strand-risk-safe {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.latch-mini {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.latch-mini:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

/* Footer & Anchor Styling */
.anchor {
  background: #06070d;
  border-top: var(--border);
  padding: 48px 24px;
}

.haven {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.haven-base {
  flex: 1 1 300px;
  min-width: 0;
}

.signet-brand {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.haven-node {
  flex: 1 1 200px;
  min-width: 0;
}

.signet-base {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.haven-tethers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tether-foot {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.tether-foot:hover {
  color: #ffffff;
}

.base-script {
  max-width: 1240px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .citadel,
  .rampart,
  .aegis,
  .bedrock {
    padding: 24px;
  }
  
  .harbor {
    width: 100%;
    justify-content: flex-start;
  }
  
  .capsule {
    flex: 1 1 100%;
  }

  .pod {
    flex: 1 1 100%;
  }
}

.harbor-crest {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    word-break: break-word;
    color: var(--text-main);
}
.harbor-crest,
.harbor-crest *,
.harbor-crest *::before,
.harbor-crest *::after {
    box-sizing: border-box;
}

.harbor-crest [role="navigation"],
.harbor-crest div,
.harbor-crest section,
.harbor-crest article,
.harbor-crest aside,
.harbor-crest p,
.harbor-crest h1,
.harbor-crest h2,
.harbor-crest h3,
.harbor-crest h4,
.harbor-crest h5,
.harbor-crest h6,
.harbor-crest a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.harbor-crest p,
.harbor-crest h1,
.harbor-crest h2,
.harbor-crest h3,
.harbor-crest h4,
.harbor-crest h5,
.harbor-crest h6 {
    text-decoration: none;
}

.harbor-crest img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.harbor-crest {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.harbor-crest a.harbor-tether {
    --aisite-shell-nav-padding: 8px 16px;
    --aisite-shell-nav-margin: 0;
    --aisite-shell-nav-line-height: normal;
    --aisite-shell-nav-display: inline;
    --aisite-shell-nav-height: auto;
    --aisite-shell-nav-min-height: auto;
}

.harbor-crest a.harbor-tether,
.harbor-crest a.harbor-tether:hover,
.harbor-crest a.harbor-tether:focus,
.harbor-crest a.harbor-tether:active,
.harbor-crest a.harbor-tether.active,
.harbor-crest a.harbor-tether[aria-current="page"] {
    background: transparent;
    border: none;
    border-bottom: none;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    padding: var(--aisite-shell-nav-padding, 0);
    margin: var(--aisite-shell-nav-margin, 0);
    line-height: var(--aisite-shell-nav-line-height, normal);
    display: var(--aisite-shell-nav-display, inline);
    height: var(--aisite-shell-nav-height, auto);
    min-height: var(--aisite-shell-nav-min-height, auto);
}

.harbor-crest{
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(9, 11, 20, 0.85);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            padding: 16px 24px;
        }

.harbor-crest .harbor-casing-harbor{
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

.harbor-crest .harbor-emblem{
            display: flex;
            align-items: center;
            min-width: 0;
        }

.harbor-crest .harbor-emblem img{
            height: 38px;
            width: auto;
            display: block;
        }

.harbor-crest .harbor-harbor{
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
        }

.harbor-crest .harbor-tether{
            padding: 8px 16px;
            font-size: 15px;
            font-weight: 500;
            color: #94a3b8;
            border-radius: 8px;
            transition: all 0.15s ease;
            min-width: 0;
        }

.harbor-crest .harbor-tether:hover{
            color: #f1f5f9;
            background: rgba(78, 83, 238, 0.12);
        }

.harbor-crest .harbor-tether.active{
            color: #ffffff;
            background: #4e53ee;
            box-shadow: 0 0 15px rgba(78, 83, 238, 0.4);
        }

@media (max-width: 768px){.harbor-crest{
                padding: 12px 16px;
            }

.harbor-crest .harbor-harbor{
                width: 100%;
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 4px;
            }

.harbor-crest .harbor-tether{
                padding: 6px 12px;
                font-size: 14px;
                white-space: nowrap;
            }}

.harbor-crest {
    background: rgb(9, 11, 20);
    background-image: none;
}

.anchor-base {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    word-break: break-word;
    color: var(--text-main);
}
.anchor-base,
.anchor-base *,
.anchor-base *::before,
.anchor-base *::after {
    box-sizing: border-box;
}

.anchor-base [role="navigation"],
.anchor-base div,
.anchor-base section,
.anchor-base article,
.anchor-base aside,
.anchor-base p,
.anchor-base h1,
.anchor-base h2,
.anchor-base h3,
.anchor-base h4,
.anchor-base h5,
.anchor-base h6,
.anchor-base a {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.anchor-base p,
.anchor-base h1,
.anchor-base h2,
.anchor-base h3,
.anchor-base h4,
.anchor-base h5,
.anchor-base h6 {
    text-decoration: none;
}

.anchor-base img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.anchor-base {
    box-shadow: none;
    filter: none;
    text-shadow: none;
    background-image: none;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
}

.anchor-base a,
.anchor-base a:hover,
.anchor-base a:focus,
.anchor-base a:active {
    background: transparent;
    box-shadow: none;
    outline: none;
    text-decoration: none;
}

.anchor-base .anchor-tether{
            padding: 8px 16px;
            font-size: 15px;
            font-weight: 500;
            color: #94a3b8;
            border-radius: 8px;
            transition: all 0.15s ease;
            min-width: 0;
        }

.anchor-base .anchor-tether:hover{
            color: #f1f5f9;
            background: rgba(78, 83, 238, 0.12);
        }

.anchor-base .anchor-tether.active{
            color: #ffffff;
            background: #4e53ee;
            box-shadow: 0 0 15px rgba(78, 83, 238, 0.4);
        }

.anchor-base{
            background: #06070d;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 60px 24px 30px 24px;
            color: #94a3b8;
            font-size: 14px;
        }

.anchor-base .anchor-haven{
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 40px;
            margin-bottom: 40px;
        }

.anchor-base .anchor-casing-brand{
            flex: 1 1 300px;
            min-width: 0;
        }

.anchor-base .anchor-signet-brand{
            font-size: 24px;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 12px;
            letter-spacing: 0.5px;
        }

.anchor-base .anchor-script-brand{
            color: #94a3b8;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 16px;
        }

.anchor-base .anchor-pocket-base-links{
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
        }

.anchor-base .anchor-node-base-col{
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 140px;
        }

.anchor-base .anchor-signet-base-head{
            color: #ffffff;
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 6px;
        }

.anchor-base .anchor-bedrock{
            max-width: 1300px;
            margin: 0 auto;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            font-size: 13px;
        }

@media (max-width: 768px){.anchor-base .anchor-tether{
                padding: 6px 12px;
                font-size: 14px;
                white-space: nowrap;
            }}