/* FreeVault — premium grey. Tokens first, everything else reads from them. */

:root {
  --bg: #08090a;
  --bg-2: #0b0d0f;
  --panel: rgba(255, 255, 255, 0.024);
  --panel-2: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f0f1f3;
  --text-2: #b9bcc2;
  --muted: #83868d;
  --silver: #e7e9ec;
  --steel: #aab4c2;
  --radius: 16px;
  --radius-sm: 11px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient layers: two soft light pools and a fine grain. Cheap, no images. */
.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.5;
}
.glow-a {
  top: -280px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-52%);
  background: radial-gradient(circle at 50% 50%, rgba(150, 168, 190, 0.20), rgba(150, 168, 190, 0) 70%);
}
.glow-b {
  bottom: -320px;
  right: -160px;
  width: 720px;
  height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(120, 130, 145, 0.14), rgba(120, 130, 145, 0) 70%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 2; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

a { color: inherit; text-decoration: none; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--silver);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav.stuck {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  transition: opacity 0.25s var(--ease);
}
.brand:hover { opacity: 0.78; }
.brand-mark { width: 22px; height: 22px; color: var(--steel); flex: none; }

.brand-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-text em {
  font-style: normal;
  font-weight: 300;
  color: var(--muted);
}
.brand.small .brand-text { font-size: 13px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.btn .ico { width: 16px; height: 16px; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, #f4f5f7 0%, #d5d9df 52%, #c3c8d0 100%);
  color: #0a0b0c;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset,
              0 12px 30px -14px rgba(190, 200, 215, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff 0%, #e2e6eb 52%, #cdd2d9 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
              0 18px 40px -16px rgba(190, 200, 215, 0.7);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-solid {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line-2);
  padding: 13px 18px;
  font-size: 13.5px;
}
.btn-solid:hover {
  background: linear-gradient(180deg, #f2f4f6 0%, #d7dbe1 100%);
  color: #0a0b0c;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -16px rgba(200, 210, 225, 0.6);
}

.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- hero */

.hero {
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(8px);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7f8f7a;
  box-shadow: 0 0 0 3px rgba(127, 143, 122, 0.16);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(127, 143, 122, 0.16); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(127, 143, 122, 0.05); }
}

.hero h1 {
  margin: 30px 0 0;
  font-size: clamp(40px, 7.2vw, 82px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.038em;
  color: #fbfbfc;
  text-wrap: balance;
}
.hero h1 .serif {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: #cfd4db;
}

.lede {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.68;
  color: var(--text-2);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}
.cta-row.center { justify-content: center; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 760px;
  margin: 68px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.stat {
  padding: 22px 16px;
  background: var(--bg-2);
  text-align: center;
}
.stat dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat dd {
  margin: 7px 0 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--silver);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.14;
  color: #f7f8f9;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- filter */

.field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
}
.field .ico {
  position: absolute;
  left: 15px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 13px 16px 13px 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder { color: var(--muted); }
.field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
}
.field input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  opacity: 0.5;
  transition: opacity 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.016));
}
.card:hover::before { opacity: 1; }
.card.is-hidden { display: none; }

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #e9ebee;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.card-id h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.018em;
  color: #f7f8f9;
}
.card-id .meta {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card-desc {
  margin: 16px 0 22px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-2);
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-foot .btn { flex: 1; }

.hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--muted);
  padding: 12px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.hash:hover { color: var(--silver); border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); }
.hash.copied { color: #b9d3b0; border-color: rgba(185, 211, 176, 0.35); }
.hash:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

.empty {
  margin: 34px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.feature {
  padding: 30px 28px 34px;
  background: var(--bg-2);
  transition: background 0.35s var(--ease);
}
.feature:hover { background: #0f1113; }
.ficon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--steel);
  margin-bottom: 18px;
}
.ficon svg { width: 19px; height: 19px; }
.feature h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.014em;
  color: #f2f3f5;
}
.feature p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01));
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step-n {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  margin: 0 0 9px;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.016em;
  color: #f5f6f8;
}
.step p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.66;
  color: var(--text-2);
}

.note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  font-size: 13.8px;
  color: var(--text-2);
}
.note strong { color: var(--silver); font-weight: 550; }

/* ---------------------------------------------------------------- faq */

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: #eef0f2;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #ffffff; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease), border-color 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--silver);
}
.faq details p {
  margin: 0;
  padding: 0 4px 24px;
  max-width: 760px;
  font-size: 14.2px;
  line-height: 1.7;
  color: var(--text-2);
}
.faq details p a {
  color: var(--silver);
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.25s var(--ease);
}
.faq details p a:hover { border-bottom-color: var(--silver); }

/* ---------------------------------------------------------------- final cta */

.final { border-bottom: none; }

.cta-panel {
  position: relative;
  text-align: center;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 64px);
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(180, 194, 212, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.cta-panel h2 {
  margin: 14px 0 0;
  font-size: clamp(27px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.034em;
  line-height: 1.12;
  color: #fbfbfc;
}
.cta-panel p {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.66;
  color: var(--text-2);
}
.cta-panel .cta-row { margin-top: 32px; }

/* ---------------------------------------------------------------- footer */

.footer {
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.footer-link {
  font-size: 12.5px;
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-link:hover { color: var(--text); border-color: var(--line-2); }

/* ---------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }
  .grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { letter-spacing: -0.03em; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; }
  .section-head { align-items: flex-start; }
  .field { width: 100%; min-width: 0; }
  .footer-inner { justify-content: center; text-align: center; }
  .nav-inner { height: 66px; }
  .brand-text { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

::selection {
  background: rgba(200, 210, 225, 0.22);
  color: #ffffff;
}
