/* VaultPeer — Cyber-Sage marketing site */

:root {
  --bg-primary: #0b0f0e;
  --surface-card: #141a18;
  --surface-elevated: #1a2220;
  --border-sage: #232e2a;
  --accent-mint: #34d399;
  --accent-mint-dim: rgba(52, 211, 153, 0.15);
  --accent-mint-glow: rgba(52, 211, 153, 0.35);
  --text-primary: #ecfdf5;
  --text-secondary: #d1fae5;
  --text-muted: #94a3b8;
  --status-error: #ef4444;
  --status-success: #10b981;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-mint);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--border-sage);
  background: rgba(11, 15, 14, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-sage);
  border-radius: 8px;
  background: var(--surface-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--border-sage);
  background: var(--surface-card);
}

.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile a {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-mobile a:hover {
  background: var(--accent-mint-dim);
  opacity: 1;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-mint);
  color: #061a13;
  box-shadow: 0 0 24px var(--accent-mint-dim);
}

.btn-primary:hover {
  box-shadow: 0 0 32px var(--accent-mint-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-sage);
}

.btn-secondary:hover {
  border-color: var(--accent-mint);
  background: var(--accent-mint-dim);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-mint-dim), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(52, 211, 153, 0.08), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-sage);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-mint);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border: 1px solid var(--border-sage);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-card-header img {
  width: 64px;
  height: 64px;
}

.hero-card-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.hero-card-header p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.sync-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sync-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-sage);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  font-size: 0.875rem;
}

.sync-node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-mint-dim);
  color: var(--accent-mint);
  font-size: 1rem;
}

.sync-node-label {
  flex: 1;
}

.sync-node-role {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sync-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sections */

section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent-mint);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 3rem;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-alt {
  background: var(--surface-card);
  border-block: 1px solid var(--border-sage);
}

/* Features */

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  border: 1px solid var(--border-sage);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--accent-mint-dim);
  color: var(--accent-mint);
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Architecture */

.arch-diagram {
  padding: 2rem;
  border: 1px solid var(--border-sage);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  overflow-x: auto;
}

.arch-diagram pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre;
}

.arch-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-mint);
  border-radius: 0 8px 8px 0;
  background: var(--accent-mint-dim);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Projects */

.project-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border-sage);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent-mint);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  margin: 0;
  font-size: 1.125rem;
}

.project-tag {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-mint-dim);
  color: var(--accent-mint);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.project-card p {
  flex: 1;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Steps */

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-mint-dim);
  color: var(--accent-mint);
  font-weight: 700;
  font-family: var(--font-mono);
}

.step h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-sage);
  border-radius: var(--radius);
  background: var(--surface-elevated);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent-mint);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.125rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Download CTA */

.cta-section {
  text-align: center;
}

.cta-box {
  padding: 3rem 2rem;
  border: 1px solid var(--border-sage);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, var(--accent-mint-dim), transparent),
    var(--surface-elevated);
}

.cta-box h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-box p {
  margin: 0 auto 2rem;
  max-width: 32rem;
  color: var(--text-muted);
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-sage);
  background: var(--surface-card);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 24rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-sage);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
