/* ============================================================
   DeVault — shared styles
   Dark vault-premium theme · Arowana Scrinium Branding L.L.C
   ============================================================ */

:root {
  --bg: #0b0e14;
  --bg-raised: #10141d;
  --bg-card: #131826;
  --line: rgba(201, 164, 92, 0.14);
  --line-soft: rgba(232, 228, 218, 0.08);
  --gold: #c9a45c;
  --gold-bright: #e0bd77;
  --gold-dim: rgba(201, 164, 92, 0.55);
  --ink: #e8e4da;
  --ink-dim: #a49f93;
  --ink-faint: #6f6b61;
  --max: 1120px;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201, 164, 92, 0.3); }

img, svg { display: block; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.lead { font-size: 1.16rem; color: var(--ink-dim); max-width: 680px; }

p { color: var(--ink-dim); }
p strong { color: var(--ink); font-weight: 600; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold); }

.nav-links a.nav-cta {
  color: #0b0e14;
  background: var(--gold);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--gold-bright); color: #0b0e14; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 10%, rgba(201, 164, 92, 0.10), transparent 65%),
    radial-gradient(ellipse 50% 45% at 15% 90%, rgba(60, 80, 130, 0.14), transparent 65%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero h1 { max-width: 780px; margin-bottom: 1.6rem; }
.hero h1 em { font-style: italic; color: var(--gold-bright); }

.hero .lead { margin-bottom: 2.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }

.btn-gold { background: var(--gold); color: #0b0e14; }
.btn-gold:hover { background: var(--gold-bright); color: #0b0e14; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--ink); }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  transition: border-color 0.2s, background 0.2s;
}
.store-badge:hover { border-color: var(--gold-dim); background: var(--bg-card); }
.store-badge svg { width: 26px; height: 26px; fill: var(--ink); flex-shrink: 0; }
.store-badge .sb-text { line-height: 1.25; }
.store-badge .sb-small { display: block; font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.store-badge .sb-big { display: block; font-size: 1.02rem; font-weight: 600; color: var(--ink); }

/* ---------- Sections ---------- */

section { padding: 90px 0; }

.section-alt { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 700px; margin-bottom: 3.2rem; }
.section-head p { margin-top: 1.1rem; }

/* Quote band */
.quote-band {
  text-align: center;
  padding: 100px 0;
  background:
    radial-gradient(ellipse 55% 65% at 50% 50%, rgba(201, 164, 92, 0.07), transparent 70%),
    var(--bg-raised);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.35;
  max-width: 820px;
  margin: 0 auto 1.4rem;
  color: var(--ink);
}
.quote-band cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 164, 92, 0.1);
  border: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.7; }

.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.97rem; }

/* ---------- Steps (how it works) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }

.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.step .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-dim);
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; }

/* ---------- Feature detail rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--line-soft);
}
.feature-row:last-of-type { border-bottom: none; }

.feature-row h2 { margin-bottom: 1.2rem; font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.feature-row p { margin-bottom: 1rem; }

.feature-row ul { list-style: none; margin-top: 1.2rem; }
.feature-row ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.8rem;
  color: var(--ink-dim);
  font-size: 0.98rem;
}
.feature-row ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--gold) 3px, transparent 3.5px);
}

.feature-visual {
  aspect-ratio: 1 / 0.85;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 40%, rgba(201, 164, 92, 0.08), transparent 70%);
}
.feature-visual svg { width: 58%; height: auto; position: relative; }

/* ---------- Pillars (security page) ---------- */

.pillar {
  display: flex;
  gap: 26px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pillar:last-child { border-bottom: none; }
.pillar .icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 164, 92, 0.1);
  border: 1px solid var(--line);
}
.pillar .icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.7; }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { font-size: 1rem; max-width: 720px; }

/* ---------- Principles (about page) ---------- */

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 2.5rem; }
.principle {
  text-align: center;
  padding: 44px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.principle .p-num { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 1.1rem; }
.principle h3 { margin-bottom: 0.6rem; }
.principle p { font-size: 0.95rem; }

.prose { max-width: 760px; }
.prose p { margin-bottom: 1.4rem; font-size: 1.06rem; }
.prose h2 { margin: 3rem 0 1.2rem; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 4px 26px; max-width: 760px; }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(201, 164, 92, 0.12), transparent 70%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; }
.cta-band h2 { max-width: 640px; margin: 0 auto 1.2rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2.4rem; }
.cta-band .store-badges { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-raised);
  padding: 64px 0 36px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid .brand { margin-bottom: 14px; font-size: 1.15rem; }
.footer-grid .brand svg { width: 24px; height: 24px; }

.footer-tagline { color: var(--ink-faint); max-width: 280px; font-size: 0.9rem; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--ink-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-col span { color: var(--ink-dim); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.84rem;
}
.footer-bottom a { color: var(--ink-dim); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 75% 0%, rgba(201, 164, 92, 0.08), transparent 65%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 760px; margin-bottom: 1.3rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .principles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .feature-row.flip .feature-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .grid-3, .grid-2, .steps, .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 28px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1.05rem; }
  .nav-links a.nav-cta { display: inline-block; margin-top: 10px; padding: 11px 26px; }
}
