/* Vaulterom — techy, minimalist, down to earth.
   No webfonts, no imports: system stacks only. */

:root {
  --bg: #141512;
  --bg-raised: #1c1e19;
  --line: #2c2e27;
  --ink: #e8e4da;
  --muted: #a09c8c;
  --accent: #d98e32;
  --accent-dim: #8a5c24;
  --sage: #7a9e7e;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

.nav-mark { width: 2.6rem; height: auto; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent-dim);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
}

.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }

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

/* Every top-level screen: fills the viewport and snaps to it. */
.snap {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Short viewports (landscape phones, small laptops): content won't fit
   one screen per section, so snapping fights the user — turn it off. */
@media (max-height: 620px) {
  html { scroll-snap-type: none; }
}

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

.hero {
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 0;
}

.hero-banner {
  width: min(26rem, 80vw);
  height: auto;
  margin-bottom: 0.5rem;
}

.hero-word {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* re-center: tracking adds trailing space */
  font-weight: 700;
}

.hero-tag {
  font-family: var(--mono);
  color: var(--accent);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  margin-top: 0.75rem;
}

.hero-sub {
  color: var(--muted);
  max-width: 38rem;
  margin: 1.25rem auto 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

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

.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.btn-primary:hover { background: #e9a04a; }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-big { font-size: 1rem; padding: 0.9rem 2rem; }

/* ---------- trust strip (bottom of hero screen) ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raised);
  width: min(100%, 64rem);
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.trust-strip span:first-child { color: var(--sage); }
.trust-tags { color: var(--muted); }

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

.section {
  /* side padding centers a 64rem column while the section itself
     stays full-bleed for the snap viewport and divider line.
     vertical padding shrinks on short screens so content fits the snap */
  padding: clamp(4rem, 8svh, 5.5rem) max(1.5rem, calc(50vw - 32rem)) clamp(1rem, 3svh, 2.5rem);
  border-top: 1px solid var(--line);
}

.kicker {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 40rem;
}

.section-intro {
  color: var(--muted);
  max-width: 42rem;
  margin-top: 1rem;
}

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

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card-grid.four  { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card, .tier {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p, .tier p { color: var(--muted); font-size: 0.92rem; }

.card.mini h4 {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.card.mini p { font-size: 0.85rem; }

/* ---------- tiers ---------- */

/* Compact: the three tiers + heading must fit one snap screen */
.card-grid.tiers { margin-top: 1.5rem; }

.tier {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
}

.tier.featured { border-color: var(--accent-dim); position: relative; }

.tier-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--sage);
}

.tier.featured .tier-label { color: var(--accent); }

.tier h3 { font-size: 1.3rem; }

.tier-spec {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.tier ul { list-style: none; margin-top: auto; }

/* Align rows (label / name / spec / description / bullets) across all
   three tier cards so the first bullet starts at the same height. */
@supports (grid-template-rows: subgrid) {
  .tier {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    gap: 0.5rem;
  }
  .tier ul { margin-top: 0; }
}

.tier li {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.2rem 0 0.2rem 1.2rem;
  position: relative;
}

.tier li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}

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

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.steps li {
  border-top: 2px solid var(--line);
  padding-top: 1rem;
}

.step-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.steps h3 { font-size: 1.05rem; margin: 0.4rem 0; }
.steps p { color: var(--muted); font-size: 0.9rem; }

/* ---------- security posture ---------- */

.posture {
  list-style: none;
  margin-top: 2rem;
  max-width: 46rem;
}

.posture li {
  padding: 0.9rem 0 0.9rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  position: relative;
}

.posture li::before {
  content: "■";
  color: var(--sage);
  font-size: 0.6rem;
  position: absolute;
  left: 0.2rem;
  top: 1.35rem;
}

.posture strong { color: var(--ink); }

.aside {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--sage);
  margin-top: 1.75rem;
  max-width: 46rem;
}

/* ---------- contact ---------- */

.contact {
  text-align: center;
  align-items: center;
  padding-bottom: 0;
}

.contact-mark {
  width: 7rem;
  height: auto;
  color: var(--accent);
  opacity: 0.9;
  margin-top: auto; /* pairs with the footer's auto margin to center the content block */
}

.contact h2, .contact .section-intro { margin-left: auto; margin-right: auto; }

.contact .btn { display: inline-block; margin-top: 2rem; }

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

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.footer-note { color: var(--sage); }

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

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  .nav { flex-direction: column; gap: 0.5rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero, .section { padding-top: 8rem; } /* clear the taller stacked nav */
}
