/* Quantum Trust PMA — Royal Blue + Gold Theme */
:root {
  --navy:       #1B2A4A;
  --navy-deep:  #0F1A30;
  --navy-mid:   #1E3056;
  --navy-card:  #1A2844;
  --navy-hover: #213259;
  --gold:       #C9A84C;
  --gold-light: #DFC176;
  --gold-dim:   rgba(201,168,76,0.14);
  --gold-glow:  rgba(201,168,76,0.07);
  --gold-line:  rgba(201,168,76,0.28);
  --fg:         #EEE9DC;
  --fg-mid:     #B0A98A;
  --fg-muted:   #6B6654;
  --border:     rgba(255,255,255,0.06);
  --border-gold:rgba(201,168,76,0.22);
  --font-display:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:  'DM Sans', -apple-system, sans-serif;
  --r:          10px;
  --max:        1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy-deep);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle noise texture via pseudo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* === FADE-UP ANIMATION === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.35);
}
.btn-ghost {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.btn-sm {
  padding: 10px 22px;
  font-size: 13px;
}

/* === SECTION LABEL === */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,26,48,0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-gold);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.nav-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line);
  object-fit: cover;
  filter: brightness(1.05);
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.nav-tagline {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-cta {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* === HERO === */
.hero {
  position: relative;
  padding: 160px 36px 120px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.hero-radial {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 700px;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-seal-wrap {
  margin-bottom: 40px;
}
.hero-seal {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--gold-line);
  object-fit: cover;
  box-shadow: 0 0 60px rgba(201,168,76,0.15), 0 0 120px rgba(201,168,76,0.06);
  filter: brightness(1.08);
}
.hero-badge {
  display: inline-block;
  padding: 5px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.8vw, 72px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-mid);
  max-width: 640px;
  margin: 0 auto 48px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 48px;
  border-top: 1px solid var(--border-gold);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--border-gold), transparent);
}

/* === VAULT TEASER === */
.vault-teaser {
  padding: 120px 36px;
  background: var(--navy);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}
.vt-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.vt-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 20px;
}
.vt-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-mid);
  margin-bottom: 32px;
}
.vt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.vt-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-mid);
}
.vt-check {
  color: var(--gold);
  font-size: 12px;
  flex-shrink: 0;
}
.vt-card {
  background: var(--navy-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.vt-card-header {
  padding: 14px 20px;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vt-card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.vt-card-dot--gold { background: var(--gold); opacity: 0.6; }
.vt-card-title {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  margin-left: 8px;
}
.vt-card-body { padding: 24px; }
.vt-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.vt-doc-row:last-of-type { border-bottom: none; }
.vt-doc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.vt-doc-val {
  font-size: 13px;
  color: var(--fg);
  text-align: right;
}
.vt-hash {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--gold);
}
.vt-status { color: #5dbe89; }
.vt-qr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  margin-top: 4px;
}
.vt-qr-block {
  padding: 8px;
  background: var(--fg);
  border-radius: 4px;
}
.vt-qr-grid {
  display: grid;
  grid-template-columns: repeat(5,10px);
  gap: 2px;
}
.vt-qr-cell {
  width: 10px; height: 10px;
  background: #eee;
  border-radius: 1px;
}
.vt-qr-cell.on { background: var(--navy-deep); }
.vt-qr-label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === FEATURES === */
.features {
  padding: 120px 36px;
  background: var(--navy-deep);
}
.features-inner { max-width: var(--max); margin: 0 auto; }
.features-header { margin-bottom: 56px; }
.features-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fg);
  max-width: 500px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}
.feature-card {
  background: var(--navy-deep);
  padding: 44px;
  transition: background 0.25s;
  position: relative;
}
.feature-card:hover { background: var(--navy-card); }
.feature-icon {
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.85;
}
.feature-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.feature-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-mid);
  margin-bottom: 24px;
}
.feature-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.feature-link:hover { opacity: 0.7; }

/* === ENTITIES === */
.entities {
  padding: 120px 36px;
  background: var(--navy);
  border-top: 1px solid var(--border-gold);
}
.entities-inner { max-width: var(--max); margin: 0 auto; }
.entities-header { margin-bottom: 16px; }
.entities-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 12px;
}
.entities-sub {
  font-size: 15px;
  color: var(--fg-mid);
  margin-bottom: 48px;
  max-width: 600px;
}
.entity-list { display: flex; flex-direction: column; }
.entity-row {
  display: grid;
  grid-template-columns: 2fr 2fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.entity-row:first-child { border-top: 1px solid var(--border-gold); }
.entity-row:hover { background: var(--gold-glow); }
.entity-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.entity-seal {
  width: 36px; height: 36px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  flex-shrink: 0;
}
.entity-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 4px;
}
.entity-type-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.entity-center {}
.entity-ein {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}
.entity-detail {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.entity-badge {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
}
.entity-badge--trust {
  background: rgba(93,190,137,0.1);
  color: #5dbe89;
  border: 1px solid rgba(93,190,137,0.25);
}
.entity-badge--foundation {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-line);
}
.entity-badge--agent {
  background: rgba(100,149,237,0.1);
  color: #6495ed;
  border: 1px solid rgba(100,149,237,0.25);
}
.mortgage-bar {
  margin-top: 48px;
  padding: 28px 36px;
  background: linear-gradient(135deg, var(--navy-card) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.mortgage-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mid);
  flex-shrink: 0;
}
.mortgage-icon { color: var(--gold); font-size: 10px; }
.mortgage-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: -0.01em;
}
.mortgage-sub {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

/* === FOUNDER === */
.founder {
  padding: 120px 36px;
  background: var(--navy-deep);
  border-top: 1px solid var(--border-gold);
}
.founder-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}
.founder-img-col { display: flex; justify-content: center; }
.founder-img-wrap {
  position: relative;
  width: 320px;
  height: 400px;
  flex-shrink: 0;
}
.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  position: relative;
  z-index: 2;
  filter: brightness(0.95) contrast(1.02);
}
.founder-img-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  transform: translate(10px, 10px);
  z-index: 1;
}
.founder-content {}
.founder-name {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.founder-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0.85;
}
.founder-bio {
  font-size: 15px;
  line-height: 1.85;
  color: var(--fg-mid);
  margin-bottom: 20px;
}
.founder-bio:last-of-type { margin-bottom: 36px; }

/* === CLOSING === */
.closing {
  padding: 140px 36px;
  background: var(--navy);
  text-align: center;
  border-top: 1px solid var(--border-gold);
}
.closing-inner { max-width: 740px; margin: 0 auto; }
.closing-seal { margin-bottom: 40px; }
.closing-seal-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line);
  object-fit: cover;
  opacity: 0.8;
  filter: brightness(1.05);
}
.closing-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 300;
  line-height: 1.18;
  color: var(--fg);
  margin-bottom: 24px;
}
.closing-title em {
  font-style: italic;
  color: var(--gold-light);
}
.closing-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-mid);
  margin-bottom: 48px;
}
.closing-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.closing-edu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.edu-card {
  background: var(--navy-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r);
  padding: 32px;
  transition: border-color 0.25s, background 0.25s;
}
.edu-card:hover {
  border-color: var(--gold);
  background: var(--navy-mid);
}
.edu-icon {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 16px;
}
.edu-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
}
.edu-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-mid);
  margin-bottom: 20px;
}
.edu-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.edu-link:hover { opacity: 0.7; }

/* === FOOTER === */
.footer {
  padding: 56px 36px 40px;
  background: var(--navy-deep);
  border-top: 1px solid var(--border-gold);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-seal {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  object-fit: cover;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.footer-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--fg); }
.footer-legal {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-align: right;
  opacity: 0.7;
  max-width: 280px;
}
.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .vt-inner, .founder-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .founder-img-wrap { width: 260px; height: 320px; }
  .founder-img-col { justify-content: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .entity-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .entity-badge { width: fit-content; }
  .closing-edu { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { text-align: left; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 120px 20px 80px; }
  .hero-stats { gap: 28px; }
  .stat-divider { width: 40px; height: 1px; }
  .vault-teaser, .features, .entities, .founder, .closing, .founder { padding: 80px 20px; }
  .feature-card { padding: 32px 24px; }
  .mortgage-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .closing-actions { flex-direction: column; align-items: center; }
  .footer { padding: 48px 20px 32px; }
  .footer-nav { gap: 16px; }
}
