/* vault project page. Scoped to body.vault-page; builds on site.css. */
.vault-page {
	--v-ink: #0b1226;
	--v-panel: #0d1326;
	--v-panel-2: #151c35;
	--v-line: rgba(157, 180, 232, 0.18);
	--v-text: #d6ddf2;
	--v-dim: #8b95b7;
	--v-teal: #3ee0c5;
	--v-teal-deep: #0f9e88;
	--v-amber: #ffcc66;
	--v-violet: #a78bfa;
	--v-violet-deep: #6d4fd8;
	--v-coral: #ff7a6b;
	--v-coral-deep: #c8412f;
	--v-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- hero ------------------------------------------------------------ */
.v-hero {
	position: relative; overflow: hidden; isolation: isolate;
	border-radius: 18px; color: #fff;
	background:
		radial-gradient(60% 80% at 78% 40%, rgba(62, 224, 197, 0.18), transparent 60%),
		radial-gradient(50% 70% at 10% 110%, rgba(27, 65, 146, 0.65), transparent 70%),
		linear-gradient(160deg, #16305e 0%, #0f1f3d 45%, #0b1226 100%);
	padding: clamp(28px, 5vw, 64px);
	box-shadow: 0 30px 60px -30px rgba(11, 18, 38, 0.65);
}
.v-hero::before { /* faint dot grid, as on the project covers */
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
	background-image: radial-gradient(rgba(157, 180, 232, 0.35) 1px, transparent 1.2px);
	background-size: 26px 26px;
	mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.v-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.v-hero h1 { margin: 0; font-size: inherit; line-height: inherit; text-transform: none; letter-spacing: 0; }
.v-eyebrow { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--v-teal); margin: 0 0 18px; }
.v-wordmark {
	display: block;
	font-family: var(--display); font-weight: 800; text-transform: none; letter-spacing: -0.045em;
	font-size: clamp(4.5rem, 11vw, 9rem); line-height: 0.85; margin: 0 0 22px; color: #fff;
}
.v-wordmark span { color: var(--v-teal); }
.v-tagline { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: #c9d6f2; max-width: 34ch; margin: 0 0 26px; }
.v-tagline strong { color: #fff; font-weight: 600; }
.v-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.v-btn {
	display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
	padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.v-btn-primary { background: var(--v-teal); color: var(--v-ink); box-shadow: 0 10px 30px -10px rgba(62, 224, 197, 0.7); }
.v-btn-primary:hover { color: var(--v-ink); transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(62, 224, 197, 0.9); }
.v-btn-ghost { color: #fff; border-color: rgba(157, 180, 232, 0.45); background: rgba(157, 180, 232, 0.06); }
.v-btn-ghost:hover { color: #fff; background: rgba(157, 180, 232, 0.16); border-color: #9db4e8; }
.v-btn small { font-weight: 500; opacity: 0.7; font-size: 0.8rem; }
.v-cta-note { width: 100%; font-size: 0.82rem; color: var(--v-dim); margin: 4px 0 0; }
.v-cta-note a { color: #9db4e8; }

.v-door { width: 100%; max-width: 380px; margin: 0 auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.v-door .ticks { transform-origin: 200px 200px; animation: v-spin 90s linear infinite; }
.v-door .handle { transform-origin: 200px 200px; animation: v-unlock 2.4s cubic-bezier(.6,.05,.25,1) 0.4s both; }
.v-door .glow { animation: v-pulse 4s ease-in-out infinite; transform-origin: 200px 200px; }
@keyframes v-spin { to { transform: rotate(360deg); } }
@keyframes v-unlock { 0% { transform: rotate(-120deg); } 70% { transform: rotate(8deg); } 100% { transform: rotate(0); } }
@keyframes v-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.v-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(28px, 4vw, 48px); background: var(--v-line); border: 1px solid var(--v-line); border-radius: 14px; overflow: hidden; }
.v-stats div { background: rgba(11, 18, 38, 0.55); padding: 18px 20px; }
.v-stats strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; color: #fff; letter-spacing: -0.02em; }
.v-stats span { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--v-dim); line-height: 1.35; }

/* ---- shared section furniture ---------------------------------------- */
.v-section { margin-top: 28px; }
.v-kicker { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; }
.v-kicker b { font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: var(--blue); letter-spacing: 0.04em; }
.v-kicker span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
/* site.css sizes .sections-wrapper h2 with a long :not() chain, hence !important. */
.vault-page h2.v-title { font-family: var(--display); font-weight: 800; text-transform: none; font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 14px !important; color: var(--ink); }
.v-lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.vault-page .sections-wrapper h3:not(.h5) { font-size: 1.15rem; margin-top: 1.8em; }
.vault-page .section-box > :first-child { margin-top: 0; }

/* Terminal windows, matching the screenshots. */
.v-term { background: var(--v-panel); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(6, 10, 30, 0.6), 0 0 0 1px rgba(255,255,255,.05); color: var(--v-text); }
.v-term-bar { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: linear-gradient(#1b2340, #151c35); position: relative; }
.v-term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.v-term-bar i:nth-child(1) { background: #ff5f57; } .v-term-bar i:nth-child(2) { background: #febc2e; } .v-term-bar i:nth-child(3) { background: #28c840; }
.v-term-bar em { position: absolute; left: 0; right: 0; text-align: center; font: 12px var(--v-mono); font-style: normal; color: var(--v-dim); pointer-events: none; }
.vault-page .v-term pre { margin: 0; background: none; border-radius: 0; padding: 16px 20px 20px; font: 13.5px/1.6 var(--v-mono); color: var(--v-text); white-space: pre; overflow-x: auto; }
.v-term .u { color: var(--v-teal); font-weight: 700; } .v-term .p { color: #7aa2ff; font-weight: 700; } .v-term .c { color: #fff; font-weight: 700; } .v-term .d { color: #6f7a9c; } .v-term .h { color: var(--v-amber); }

/* ---- two views of one folder ----------------------------------------- */
.v-dark {
	background: linear-gradient(170deg, #111a33 0%, #0b1226 100%); color: var(--v-text);
	border-radius: 18px; padding: clamp(24px, 4vw, 48px); border: 1px solid #1b2547;
}
.vault-page .v-dark h2.v-title, .vault-page .v-dark h3 { color: #fff; }
.vault-page .v-dark p, .vault-page .v-dark li { color: #b9c5e4; }
.vault-page .v-dark .v-kicker b { color: var(--v-teal); }
.vault-page .v-dark .v-kicker span { color: var(--v-dim); }
.vault-page .v-dark code { background: rgba(157, 180, 232, 0.12); color: #e6ecf8; }
.vault-page .v-dark a { color: #9db4e8; }
.v-views { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.v-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(157, 180, 232, 0.08); border: 1px solid var(--v-line); gap: 4px; margin: 6px 0 18px; }
.v-toggle button {
	font: 600 0.9rem var(--font); color: #b9c5e4; background: none; border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.v-toggle button:hover { color: #fff; }
.v-toggle button[aria-pressed="true"] { background: #fff; color: var(--v-ink); }
.v-toggle.decoy button[aria-pressed="true"][data-side="decoy"] { background: var(--v-violet); color: #fff; }
.v-toggle.decoy button[aria-pressed="true"][data-side="real"] { background: var(--v-teal); color: var(--v-ink); }
.v-toggle button:focus-visible { outline: 2px solid var(--v-teal); outline-offset: 2px; }
.v-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.v-legend li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; }
.v-legend svg { margin-top: 3px; }
.v-scramble { min-height: 11.5em; }

/* ---- pillars --------------------------------------------------------- */
.v-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.v-pillar { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; background: linear-gradient(180deg, #fff, #f7f9fd); overflow: hidden; }
.v-pillar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent, var(--blue)); }
.v-pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint, var(--blue-tint)); margin-bottom: 14px; }
.v-pillar h3 { font-family: var(--display); font-weight: 800; font-size: 1.05rem !important; margin: 0 0 8px !important; text-transform: uppercase; letter-spacing: 0.01em; }
.v-pillar p { font-size: 0.95rem; color: var(--ink-2); margin: 0; }

/* ---- quick start steps ----------------------------------------------- */
.v-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.v-steps li { counter-increment: s; border-radius: 14px; padding: 18px 16px 16px; background: var(--ground); border: 1px solid var(--line); position: relative; max-width: none; }
.v-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #c5cddb; display: block; line-height: 1; margin-bottom: 10px; }
.v-steps code { display: block; background: var(--v-panel); color: #fff; font-size: 0.82rem; padding: 8px 10px; border-radius: 8px; margin-bottom: 8px; white-space: nowrap; overflow-x: auto; }
.v-steps span { font-size: 0.88rem; color: var(--ink-2); }

/* ---- page nav -------------------------------------------------------- */
.v-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v-toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: border-color 0.15s ease, color 0.15s ease; }
.v-toc a:hover { border-color: var(--blue); color: var(--blue); }

/* ---- callouts -------------------------------------------------------- */
.v-callout { border-radius: 12px; padding: 16px 18px 16px 52px; position: relative; margin: 20px 0; border: 1px solid; max-width: 78ch; }
.v-callout::before { position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 0.8rem/1 var(--display); }
.v-callout p { margin: 0; }
.v-callout.danger { background: #fff4f2; border-color: #ffd2cb; } .v-callout.danger::before { content: "!"; background: var(--v-coral-deep); color: #fff; }
.v-callout.note { background: #fff9eb; border-color: #fbe3a6; } .v-callout.note::before { content: "i"; background: #d99a12; color: #fff; }
.v-callout.tip { background: #ebfbf7; border-color: #b6eee2; } .v-callout.tip::before { content: "✓"; background: var(--v-teal-deep); color: #fff; }

/* ---- screenshots ----------------------------------------------------- */
.vault-page .shot { width: 100%; height: auto; background: linear-gradient(180deg, #f4f6fb, #eef2f9); border: 1px solid var(--line); border-radius: 12px; }
.vault-page .shot-figure { margin: 22px 0; }
.vault-page .v-dark .shot { background: rgba(157, 180, 232, 0.06); border-color: var(--v-line); }
.vault-page .v-dark figcaption { color: var(--v-dim); }

/* ---- downloads ------------------------------------------------------- */
.v-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.v-dl a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.v-dl a:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(27, 65, 146, 0.5); color: var(--ink); }
.v-dl b { display: block; font-size: 0.98rem; }
.v-dl span { display: block; font-size: 0.82rem; color: var(--muted); margin: 2px 0 8px; }
.v-dl code { font-size: 0.78rem; }
.v-dl a.is-yours { border-color: var(--v-teal-deep); box-shadow: 0 0 0 3px rgba(62, 224, 197, 0.25); }
.v-dl a.is-yours::after { content: "Your system"; display: inline-block; margin-top: 8px; font: 700 0.66rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--v-teal-deep); }

/* ---- decoy ----------------------------------------------------------- */
.v-decoy { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.v-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; max-width: 360px; margin: 6px 0 16px; }
.v-cells i { aspect-ratio: 1; border-radius: 4px; background: #222c4b; transition: background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease; }
.v-decoy[data-side="real"] .v-cells i.r { background: var(--v-teal); box-shadow: 0 0 14px rgba(62, 224, 197, 0.5); }
.v-decoy[data-side="decoy"] .v-cells i.d { background: var(--v-violet); box-shadow: 0 0 14px rgba(167, 139, 250, 0.55); }
.v-cells-key { font-size: 0.85rem; color: var(--v-dim); margin: 0; }
.v-decoy .v-term pre { min-height: 9.5em; }

/* ---- attacker grid --------------------------------------------------- */
.v-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.v-ledger > div { border-radius: 14px; padding: 18px 20px; border: 1px solid; }
.v-ledger .cant { background: #ebfbf7; border-color: #b6eee2; }
.v-ledger .can { background: #fff4f2; border-color: #ffd2cb; }
.v-ledger h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; margin: 0 0 10px; }
.v-ledger .cant h4 { color: var(--v-teal-deep); } .v-ledger .can h4 { color: var(--v-coral-deep); }
.v-ledger ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.v-ledger li { position: relative; padding-left: 24px; font-size: 0.95rem; }
.v-ledger .cant li::before { content: "✕"; position: absolute; left: 0; color: var(--v-teal-deep); font-weight: 800; }
.v-ledger .can li::before { content: "●"; position: absolute; left: 2px; color: var(--v-coral-deep); font-size: 0.7rem; top: 4px; }

/* ---- cheat sheet ----------------------------------------------------- */
.v-cheats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.v-cheats div { background: var(--v-panel); border-radius: 12px; padding: 14px 16px; border: 1px solid #1b2547; }
.vault-page .v-cheats > div > code { display: block; background: none; color: var(--v-teal); font: 600 0.84rem var(--v-mono); padding: 0; margin-bottom: 6px; white-space: normal; }
.v-cheats span { color: #b9c5e4; font-size: 0.88rem; }
.vault-page .v-cheats span code { font-size: 0.8rem; }

/* ---- FAQ ------------------------------------------------------------ */
.v-faq { display: grid; gap: 10px; max-width: 78ch; }
.v-faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 18px; }
.v-faq details[open] { border-color: #c9d5ec; box-shadow: 0 8px 22px -16px rgba(27, 65, 146, 0.45); }
.v-faq summary { cursor: pointer; list-style: none; padding: 15px 28px 15px 0; font-weight: 600; position: relative; }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: "+"; position: absolute; right: 0; top: 11px; font: 800 1.3rem/1 var(--display); color: var(--blue); transition: transform 0.2s ease; }
.v-faq details[open] summary::after { transform: rotate(45deg); }
.v-faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* ---- closing --------------------------------------------------------- */
.v-close { text-align: center; padding: clamp(36px, 6vw, 72px) 24px; }
.vault-page .v-close h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem) !important; letter-spacing: -0.03em; color: #fff; margin: 0 0 8px !important; }
.v-close p { color: #c9d6f2; font-size: 1.15rem; margin: 0 auto 26px; }
.v-close .v-cta { justify-content: center; }

/* ---- responsive & motion --------------------------------------------- */
@media (max-width: 1100px) {
	.v-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.v-hero-grid, .v-views, .v-decoy { grid-template-columns: 1fr; }
	.v-door { max-width: 260px; order: -1; }
	.v-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.v-pillars, .v-ledger { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.v-steps { grid-template-columns: 1fr; }
	.v-door { max-width: 200px; }
	.vault-page .v-term pre { font-size: 11.5px; padding: 14px; }
}
.reduced-motion .v-door .ticks, .reduced-motion .v-door .handle, .reduced-motion .v-door .glow { animation: none; }
@media (prefers-reduced-motion: reduce) {
	.v-door .ticks, .v-door .handle, .v-door .glow { animation: none; }
	.v-cells i, .v-btn { transition: none; }
}
