/* ============================================================
   Legacy Network — Agent Attraction Site — Global Stylesheet
   Damian Forrester | eXp Realty Montana
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --bg:         #080c16;
  --bg-surface: #0f1626;
  --bg-card:    #141c2e;
  --bg-elevated:#1a2438;
  --gold:       #f4bb29;
  --gold-light: #f7cc55;
  --gold-dim:   #c99018;
  --blue:       #1d6fdc;
  --blue-light: #4d94f5;
  --white:      #f9fafb;
  --text:       #e2e8f0;
  --text-muted: #7a8ba0;
  --text-dim:   #4a5568;
  --border:     #1e2d47;
  --border-gold:#3d2e00;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold:0 0 40px rgba(244,187,41,0.15);
  --transition: 0.25s ease;
  --max-w:      1200px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; font-family: 'Inter', sans-serif; }
p  { color: var(--text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.75;
}

/* ── Layout Helpers ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 100px 0;
}
.section-sm {
  padding: 64px 0;
}
.section-header {
  margin-bottom: 60px;
}
.section-header .label {
  margin-bottom: 12px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header .lead {
  margin: 0;
}
.text-center { text-align: center; }
.text-center .lead { margin: 0 auto; }
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,187,41,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 0;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--gold-light); gap: 0.75rem; }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(8, 12, 22, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: column;
}
.nav-logo .wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo .sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-cta {
  background: var(--gold) !important;
  color: #000 !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: #000 !important;
  transform: none !important;
}
.nav-cta::after {
  display: none !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(244,187,41,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

/* ── Stat Blocks ────────────────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 2rem 1.5rem;
}
.stat-block .number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-block .desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ── Gold Divider ───────────────────────────────────────────── */
.divider {
  width: 64px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1.25rem 0;
}
.divider-center { margin: 1.25rem auto; }

/* ── Badges / Tags ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-gold {
  background: rgba(244,187,41,0.12);
  color: var(--gold);
  border: 1px solid rgba(244,187,41,0.25);
}
.badge-blue {
  background: rgba(30,79,216,0.12);
  color: var(--blue-light);
  border: 1px solid rgba(59,130,246,0.25);
}
.badge-white {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── Hero (page-level) ──────────────────────────────────────── */
.page-hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, rgba(12,18,35,0.98) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(244,187,41,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Quote Block ────────────────────────────────────────────── */
.blockquote {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.75rem;
  background: rgba(244,187,41,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.7;
}
.blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}

/* ── Testimonial Card ───────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-card .stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.testimonial-card .body {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-card .author-info .name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}
.testimonial-card .author-info .role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── CTA Band ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #0d1829 0%, #111d33 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244,187,41,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lead { margin: 0 auto 2.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #060912;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 48px;
}
.footer-brand .wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand .sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
}
.footer-col ul li {
  margin-bottom: 0.65rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}
.footer-contact {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-contact a { color: var(--text-muted); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }

/* ── Highlight / Feature Rows ───────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-content .label { margin-bottom: 12px; }
.feature-content h2 { margin-bottom: 1rem; }
.feature-content p { color: var(--text-muted); margin-bottom: 1.25rem; }
.feature-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(244,187,41,0.08), transparent 70%);
  pointer-events: none;
}

/* ── Check List ─────────────────────────────────────────────── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
}
.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.1rem;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
}
.timeline-item .year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.timeline-item h4 { margin-bottom: 0.4rem; color: var(--white); }
.timeline-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ── Form ───────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244,187,41,0.08);
}
.form-group select option { background: var(--bg-elevated); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-q {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover { color: var(--gold); }
.faq-a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* ── Income Table ───────────────────────────────────────────── */
.income-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.income-table th {
  background: var(--bg-elevated);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}
.income-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.income-table tr:last-child td { border-bottom: none; }
.income-table tr:hover td { background: rgba(255,255,255,0.02); }
.income-table .check { color: var(--gold); font-weight: 700; }
.income-table .x { color: var(--text-dim); }

/* ── Comparison Table ───────────────────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comparison-col {
  padding: 2rem;
  border-right: 1px solid var(--border);
}
.comparison-col:last-child { border-right: none; }
.comparison-col.featured {
  background: rgba(244,187,41,0.05);
  border-color: rgba(244,187,41,0.25);
}
.comparison-col .col-header {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.comparison-col.featured .col-header { color: var(--gold); }
.comparison-col h4 { font-size: 1.1rem; color: var(--white); margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; }
.comparison-col ul li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.comparison-col ul li:last-child { border-bottom: none; }
.comparison-col ul li .icon { flex-shrink: 0; margin-top: 1px; }
.comparison-col.featured ul li { color: var(--text); }

/* ── Noise Overlay ──────────────────────────────────────────── */
.noise {
  position: relative;
}
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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;
  border-radius: inherit;
  opacity: 0.3;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Utility ────────────────────────────────────────────────── */
.gold { color: var(--gold); }
.white { color: var(--white); }
.muted { color: var(--text-muted); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .comparison-col { border-right: none; border-bottom: 1px solid var(--border); }
  .comparison-col:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .page-hero { padding: 130px 0 72px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-row.reverse { direction: ltr; }
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(8,12,22,0.98); backdrop-filter: blur(12px); flex-direction: column; padding: 2rem; gap: 1.25rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .btn-lg { padding: 16px 28px; font-size: 0.95rem; }
}
