/* ==========================================================================
   VaultCut — design tokens
   ========================================================================== */
:root {
  /* Color */
  --bg: #0a0a0f;
  --bg-alt: #0e0e15;
  --surface: #15151e;
  --surface-2: #1b1b26;
  --border: #29293a;
  --border-soft: #202030;
  --text: #f4f4f8;
  --text-dim: #a2a2b3;
  --text-faint: #6d6d7d;

  --accent: #f2b453;       /* vault gold */
  --accent-strong: #ffca6e;
  --accent-text: #1a1204;
  --accent-soft: rgba(242, 180, 83, 0.12);
  --blue: #7c9dff;         /* secure/trust cool accent */
  --blue-soft: rgba(124, 157, 255, 0.12);
  --green: #4fd68c;
  --red: #ff7a7a;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --max-width: 1240px;
  --content-width: 700px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);

  --ease: cubic-bezier(.4,0,.2,1);

  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --notch: 20px;
}

/* Signature container shape: a single clipped corner instead of a uniform
   rounded rectangle — used on every card so the whole page reads as one
   consistent "cut" system rather than generic rounded-corner boxes. */
.notched {
  border-radius: 0;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
}

::selection { background: var(--accent); color: var(--accent-text); }

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(242,180,83,0.07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(124,157,255,0.06), transparent 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

img, svg { max-width: 100%; display: block; }
.icon { flex-shrink: 0; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); text-align: center; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { color: var(--text-dim); margin: 0 0 12px; }

a { color: inherit; }

.eyebrow {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-sub {
  max-width: var(--content-width);
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(0.98rem, 1vw, 1.08rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Faint oversized background wordmarks — a "stamped dossier" texture used
   behind a few sections instead of plain empty background. */
.watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(4.5rem, 22vw, 13rem);
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0.028;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.watermark-hero { top: 42%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scroll-reveal: only kicks in once script.js has confirmed IntersectionObserver
   support (via the .js class on <html>) — without JS every .reveal element is
   just visible, so nothing ever depends on the animation to be readable. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: var(--accent-text);
  box-shadow: 0 6px 18px rgba(242, 180, 83, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(242, 180, 83, 0.38); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { background: var(--surface); border-color: var(--border-soft); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.logo span { color: var(--accent); }
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-faint) !important;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  letter-spacing: 0.03em;
}

.nav-links { display: none; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.15s var(--ease); }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: none; gap: 10px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 18px 20px 26px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.mobile-menu nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1rem;
}
.mobile-menu-cta { display: flex; flex-direction: column; gap: 10px; }
.mobile-menu[hidden] { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 56px 0 60px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(242,180,83,0.14), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 44px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 214, 140, 0.18);
}

/* Headline "declassified" reveal — a solid bar sweeps off each line on
   load, echoing the redacted-document motif instead of a generic fade-in.
   The text sits underneath the whole time, so it's never actually hidden
   from anyone without CSS animation support. */
.h1-line {
  display: block;
  position: relative;
  overflow: hidden;
}
.h1-text { display: inline-block; }
.h1-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transform-origin: right;
  pointer-events: none;
  animation: redact-wipe 0.65s var(--ease) both;
}
.h1-line:nth-child(1)::after { animation-delay: 0.05s; }
.h1-line:nth-child(2)::after { animation-delay: 0.2s; }
.h1-line:nth-child(3)::after { animation-delay: 0.35s; }
@keyframes redact-wipe {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .h1-line::after { animation: none; display: none; }
}

.hero-sub { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 0.85rem; color: var(--text-faint); }

/* Hero visual — anonymized profile card mockup */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  perspective: 1000px;
}
.profile-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
  padding: 22px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease);
  transform: rotate(-1.2deg);
  will-change: transform;
}
.profile-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar-blob {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  background: conic-gradient(from 140deg, var(--accent), var(--blue), var(--accent-strong), var(--accent));
}
.profile-name { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.profile-rating { display: flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--text-faint); font-size: 0.8rem; }
.profile-rating .star { color: var(--accent); }
.profile-rating span { margin-left: 6px; }

.profile-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-tags span {
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
}

.profile-stats { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.stat-row span { font-size: 0.72rem; color: var(--text-faint); }
.stat-track { height: 5px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.stat-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--accent)); }

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.75rem;
  color: var(--text-faint);
}
.profile-footer span { display: inline-flex; align-items: center; gap: 5px; }
.price-tag { color: var(--text); font-weight: 700; }

.visual-chip {
  position: absolute;
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  box-shadow: var(--shadow-md);
}
.visual-chip-1 { top: -14px; right: -8px; color: var(--blue); }
.visual-chip-2 { bottom: -16px; left: -18px; color: var(--accent); }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 36px 0;
}
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.trust-item strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.trust-item span { color: var(--text-faint); font-size: 0.82rem; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 68px 0; position: relative; overflow: hidden; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* How it works */
.cols-2 { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 44px; position: relative; }
.track-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
  padding: 28px 24px;
}
.track-head { margin-bottom: 20px; }
.track-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.track-label-editor { background: var(--accent-soft); color: var(--accent); }
.track-label-buyer { background: var(--blue-soft); color: var(--blue); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 6px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--surface-2);
  -webkit-text-stroke: 1px var(--border);
  text-align: left;
}
.steps strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.steps p { margin: 0; font-size: 0.87rem; }

/* Film-strip spine between the two tracks — sprocket holes down the middle,
   only meaningful once the columns sit side by side. */
.cols-2::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(var(--border) 0 6px, transparent 6px 14px);
  transform: translateX(-50%);
  display: none;
}
.track-card-offset { display: block; }

/* Feature grid — bento layout: the first ("Editor privacy") card runs larger
   than its five siblings instead of a uniform icon-grid, so the section reads
   as a deliberate composition rather than a repeated card template. */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 44px; }
.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
  padding: 24px;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.feature:hover { border-color: var(--border); transform: translateY(-2px); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature p { font-size: 0.9rem; margin: 0; }
.feature-lg { background: linear-gradient(155deg, var(--surface-2), var(--surface)); }
.feature-lg .feature-icon { width: 50px; height: 50px; }
.feature-lg h3 { font-size: 1.35rem; }
/* Redaction-bar decoration: three "blacked-out line" bars, on-theme with
   the privacy feature it decorates. */
.feature-redact { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.feature-redact span { display: block; height: 8px; border-radius: 2px; background: var(--border-soft); }
.feature-redact span:nth-child(1) { width: 78%; }
.feature-redact span:nth-child(2) { width: 55%; }
.feature-redact span:nth-child(3) { width: 66%; }

/* Comparison table — styled like a dossier printout: monospace headers,
   a rotated "Cleared" stamp on our column, hover-highlighted rows. */
.compare-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
  background: var(--surface);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.86rem;
}
.compare-table thead th {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare-table th[scope="row"] { text-align: left; color: var(--text); font-weight: 600; font-size: 0.86rem; font-family: inherit; text-transform: none; letter-spacing: normal; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr { transition: background 0.15s var(--ease); }
.compare-table tbody tr:hover { background: var(--surface-2); }
.compare-highlight { background: var(--accent-soft); }
.compare-table thead .compare-highlight { color: var(--accent); font-weight: 800; }
.compare-table tbody tr:hover .compare-highlight { background: rgba(242, 180, 83, 0.2); }
.icon.yes { color: var(--green); }
.icon.no { color: var(--red); opacity: 0.75; }
.stamp {
  display: block;
  width: fit-content;
  margin: 0 auto 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 2px 7px;
  transform: rotate(-5deg);
}

/* FAQ */
.faq-list { max-width: var(--content-width); margin: 40px auto 0; display: grid; gap: 10px; }
details {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
  padding: 4px 20px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
summary > :last-child { margin-left: auto; }
.faq-index {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}
summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--text-dim);
  transition: transform 0.2s var(--ease);
}
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
details p { margin: 0 0 16px; font-size: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--border-soft); padding: 44px 0 28px; background: var(--bg-alt); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand p { font-size: 0.85rem; max-width: 320px; margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--text-dim); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: var(--text-faint); }
.footer-contact a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-dim); }
.footer-contact a:hover { color: var(--text); }

/* ==========================================================================
   Responsive — mobile first breakpoints
   ========================================================================== */

/* Small phones: tighten container padding a touch */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
}

/* ~600px: visual chips appear, trust bar 2-col */
@media (min-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-lg { grid-column: span 2; }
  .visual-chip { display: inline-flex; }
}

/* ~900px: desktop nav, two-column hero & how-it-works */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .hero-inner { grid-template-columns: 1.1fr 0.9fr; text-align: left; gap: 40px; }
  .hero { padding: 88px 0 90px; }
  .hero-cta { justify-content: flex-start; }
  .hero-visual { justify-self: end; }

  .cols-2 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cols-2::before { display: block; }
  .track-card-offset { transform: translateY(32px); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .feature-lg { grid-column: span 2; grid-row: span 2; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

/* ~1200px: roomier desktop rhythm */
@media (min-width: 1200px) {
  .section { padding: 96px 0; }
  .hero { padding: 108px 0 100px; }
}
