/* ============================================================
   The Architecture Of Wealth — landing page styles
   Theme: dark, architectural, gold accents, generous space.
   ============================================================ */

:root {
  --bg:        #0c0d10;
  --bg-2:      #111319;
  --bg-3:      #161a22;
  --panel:     #14171e;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --text:      #e9e7e1;
  --muted:     #9aa0ac;
  --muted-2:   #6b7280;
  --gold:      #d4af6a;
  --gold-2:    #e8c987;
  --gold-deep: #b8924a;
  --danger:    #e06c6c;
  --ok:        #6ccf8e;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --maxw:      1140px;
  --serif:     "Fraunces", Georgia, "Times New Roman", serif;
  --sans:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle architectural grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(212, 175, 106, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(212, 175, 106, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1407;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 106, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(212, 175, 106, 0.7); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.btn-download {
  margin-top: 18px;
  background: linear-gradient(180deg, #1c2030, #161a26);
  border: 1px solid var(--gold);
  color: var(--gold-2);
  padding: 16px 26px;
  font-size: 1rem;
}
.btn-download:hover { background: linear-gradient(180deg, #232838, #1b2030); transform: translateY(-1px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(12, 13, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-mark { color: var(--gold); font-size: 0.9rem; }
.brand-of { font-style: italic; color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 84px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero-title em { font-style: italic; color: var(--gold-2); }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 0.9rem; }
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 3px; }

/* ---------- book mockup ---------- */
.hero-book { display: flex; justify-content: center; perspective: 1600px; }
.book { transform: rotateY(-24deg) rotateX(6deg); transition: transform 0.6s ease; }
.book:hover { transform: rotateY(-16deg) rotateX(4deg); }
.book-cover {
  position: relative;
  width: 290px;
  height: 410px;
  border-radius: 4px 10px 10px 4px;
  background: linear-gradient(160deg, #1b1f29, #0e1117);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(212,175,106,0.25);
  transform-style: preserve-3d;
  overflow: hidden;
}
.book-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
  border-right: 1px solid rgba(212,175,106,0.25);
}
.book-face {
  position: absolute; inset: 0; padding: 44px 30px 36px 36px;
  display: flex; flex-direction: column; gap: 12px;
}
.book-eyebrow { letter-spacing: 0.32em; font-size: 0.62rem; color: var(--gold); font-weight: 600; }
.book-title { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 1.02; color: #f2efe8; }
.book-of { font-style: italic; color: var(--gold-2); font-weight: 500; }
.book-rule { height: 1px; width: 60px; background: var(--gold); margin-top: auto; }
.book-foot { letter-spacing: 0.24em; font-size: 0.6rem; color: var(--gold); }
@media (max-width: 480px) { .book-cover { width: 240px; height: 340px; } .book-title { font-size: 2rem; } }

/* ---------- trust bar ---------- */
.trust {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-2); font-weight: 600; }
.trust-item span { color: var(--muted); font-size: 0.86rem; }
@media (max-width: 620px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.018), transparent); }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem;
  color: var(--gold); font-weight: 600; margin: 0 0 14px;
}
.section-eyebrow.light { color: var(--gold-2); }
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.section-lede { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.section-head { max-width: 680px; margin-bottom: 48px; }

/* ---------- thesis ---------- */
.thesis-body { font-size: 1.12rem; color: var(--muted); }
.thesis-body p { margin: 0 0 20px; }
.thesis-body strong { color: var(--text); }
.thesis-body em { color: var(--gold-2); font-style: italic; }
.pull {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  color: var(--text); border-left: 3px solid var(--gold);
  padding-left: 22px; margin: 32px 0 0;
}

/* ---------- pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pillar-num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); font-weight: 600; margin-bottom: 14px; letter-spacing: 0.05em; }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 0 0 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.pillar-cta {
  background: linear-gradient(160deg, rgba(212,175,106,0.12), rgba(212,175,106,0.04));
  border-color: rgba(212,175,106,0.35);
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
.pillar-cta h3 { color: var(--gold-2); }
.pillar-cta p { color: var(--text); }

/* ---------- inside / audience ---------- */
.inside-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .inside-grid { grid-template-columns: 1fr; gap: 36px; } }
.audience { list-style: none; padding: 0; margin: 0; }
.audience li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.02rem; }
.audience li span { color: var(--gold-2); font-weight: 600; margin-right: 8px; }
.inside-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.inside-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 18px; }
.deliverables { list-style: none; padding: 0; margin: 0; }
.deliverables li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px dashed var(--line); color: var(--text); }
.deliverables li:last-child { border-bottom: 0; }
.deliverables li::before {
  content: "✓"; position: absolute; left: 0; top: 12px; color: var(--gold); font-weight: 700;
}

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; margin: 0;
}
.review blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--text); font-style: italic; }
.review figcaption { color: var(--muted); font-size: 0.9rem; }
.review figcaption strong { color: var(--gold-2); }
.section-lede.note { color: var(--muted-2); font-size: 0.9rem; }
.section-lede.note code { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; color: var(--gold-2); font-size: 0.85rem; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.04rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 18px; color: var(--muted); }

/* ---------- redeem / token gate ---------- */
.section-redeem { padding: 100px 0 120px; }
.redeem-card {
  background: linear-gradient(180deg, var(--bg-3), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.redeem-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% -40%, rgba(212,175,106,0.16), transparent 70%);
  pointer-events: none;
}
.redeem-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 10px; position: relative; }
.redeem-sub { color: var(--muted); margin: 0 0 28px; position: relative; }
#token-form { position: relative; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 16px 18px; font-size: 1.15rem; letter-spacing: 0.06em;
  font-family: var(--sans); font-weight: 600;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-transform: uppercase;
}
.field input::placeholder { color: var(--muted-2); font-weight: 500; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,106,0.18); }
.field small { display: block; margin-top: 8px; color: var(--muted-2); font-size: 0.82rem; }
.field small code { color: var(--gold-2); }

#check-btn { position: relative; }
#check-btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-label { display: inline-flex; align-items: center; gap: 8px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(26,20,7,0.35); border-top-color: #1a1407;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.token-status {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 0.96rem;
  display: flex; gap: 10px; align-items: flex-start;
}
.token-status.ok    { background: rgba(108,207,142,0.10); border: 1px solid rgba(108,207,142,0.3); color: #bfe9cd; }
.token-status.err   { background: rgba(224,108,108,0.10); border: 1px solid rgba(224,108,108,0.3); color: #f3c4c4; }
.token-status.info  { background: rgba(212,175,106,0.10); border: 1px solid rgba(212,175,106,0.3); color: #f0deb8; }
.token-status strong { color: var(--text); }
.token-status .remaining { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.86rem; white-space: nowrap; }

.redeem-foot { text-align: center; color: var(--muted-2); font-size: 0.82rem; margin: 24px 0 0; position: relative; letter-spacing: 0.05em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-note { color: var(--muted); margin: 0; }
.footer-copy { color: var(--muted-2); font-size: 0.82rem; margin: 6px 0 0; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
