/* ── Wealth Clock — Shared Styles ── */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Mono:wght@300;400;500&display=swap");

/* ── Dark theme (default) ── */
:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #7a5f20;
  --bg: #0a0a08;
  --bg2: #111109;
  --bg3: #1a1a12;
  --text: #f0ead8;
  --text-dim: #8a8070;
  --green: #4caf7d;
  --red: #cf6679;
  --border: rgba(201, 168, 76, 0.18);
  --shadow-glow: rgba(201, 168, 76, 0.06);
  --toggle-icon: "☀️";
}

/* ── Light theme ── */
[data-theme="light"] {
  --gold: #a07828;
  --gold-light: #c49a38;
  --gold-dim: #c49a38;
  --bg: #f5f0e8;
  --bg2: #fffdf7;
  --bg3: #f0ead8;
  --text: #1a1710;
  --text-dim: #6b6050;
  --green: #2d7a55;
  --red: #b04055;
  --border: rgba(160, 120, 40, 0.2);
  --shadow-glow: rgba(160, 120, 40, 0.05);
  --toggle-icon: "🌙";
}

[data-theme="light"] body::after {
  background: radial-gradient(
    ellipse,
    rgba(160, 120, 40, 0.07) 0%,
    transparent 70%
  );
}

[data-theme="light"] h1 {
  text-shadow: 0 0 40px rgba(160, 120, 40, 0.15);
}

[data-theme="light"] .page-title {
  text-shadow: 0 0 30px rgba(160, 120, 40, 0.12);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Mono", monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise texture */
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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* Radial glow */
body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, var(--shadow-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Smooth theme transitions */
body,
nav,
footer,
.content-card,
.form-card,
.result-card,
input,
select,
textarea,
.stat-box,
.faq-item {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* ── NAV ── */
nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem 0;
  flex-wrap: wrap;
}
/* nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem 0;
  flex-wrap: wrap;
} */

.nav-logo {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-right: auto;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  border-color: var(--border);
}

.nav-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-top: 0.9rem;
  position: relative;
  z-index: 10;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.2);
}

/* ── HEADER ── */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

.coin-icon {
  font-size: 2.8rem;
  animation: coinSpin 6s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 0 18px rgba(201, 168, 76, 0.5));
}

@keyframes coinSpin {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  40% {
    transform: rotateY(360deg);
  }
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 0.5rem;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.25);
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  margin-top: 0.5rem;
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

.subtitle {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

.gold-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.2rem auto 0;
}

/* ── CONTAINER ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.2rem 4rem;
  position: relative;
  z-index: 1;
}

/* ── CONTENT CARD ── */
.content-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.5rem 2.8rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── TYPOGRAPHY (shared inner page) ── */
.content-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 1.8rem 0 0.7rem;
  font-weight: 700;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.85;
  margin-bottom: 0.7rem;
}

.content-card ul {
  list-style: none;
  margin: 0.4rem 0 1rem;
  padding: 0;
}

.content-card ul li {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.75;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.content-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}

.content-card a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: border-color 0.2s;
}

.content-card a:hover {
  border-color: var(--gold);
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 1.8rem 0;
}

/* Contact form */
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.cf-field label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 500;
}

.cf-field input,
.cf-field textarea,
.cf-field select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  border-radius: 2px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}

.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.12);
}

.cf-field textarea {
  min-height: 120px;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: #0a0a08;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: var(--gold-light);
  box-shadow: 0 0 28px rgba(201, 168, 76, 0.35);
  border-bottom: none;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* Success message */
.success-msg {
  display: none;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(76, 175, 125, 0.3);
  background: rgba(76, 175, 125, 0.06);
  border-radius: 2px;
  color: var(--green);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 0.83rem;
  text-align: left;
  padding: 1.1rem 2rem 1.1rem 0;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.02em;
  line-height: 1.5;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--gold);
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.25s;
}

.faq-q.open::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.2s;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.85;
}

.faq-a.open {
  max-height: 400px;
  padding-bottom: 1.1rem;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  opacity: 0.6;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

@media (max-width: 540px) {
  .content-card {
    padding: 1.8rem 1.4rem;
  }
  .nav-logo {
    font-size: 0.85rem;
  }
}
