/* The Land Vision — shared styles for /invest, /back, /updates pages
   Brand variables match existing index.html for visual consistency.
   index.html itself keeps its own inline styles untouched. */

:root {
  --sovi-blue: #7BB661;
  --sovi-blue-bright: #A3D87E;
  --sovi-violet: #E8A33A;
  --bg: #0F1614;
  --bg-elev: #1A241F;
  --bg-elev-2: #243630;
  --bg-card: rgba(123, 182, 97, 0.04);
  --border: rgba(123, 182, 97, 0.18);
  --border-hover: rgba(123, 182, 97, 0.55);
  --text: #ECF4E8;
  --text-mid: #BFCDB8;
  --text-dim: #8AA08A;
  --accent-soft: rgba(123, 182, 97, 0.12);
  --green: #34D399;
  --amber: #E8A33A;
  --gradient: linear-gradient(135deg, #7BB661 0%, #E8A33A 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--sovi-blue); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.glow-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(123, 182, 97, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(232, 163, 58, 0.10), transparent 50%);
}

/* ---- NAV (matches index.html visually) ---- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 16, 13, 0.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav.top .row {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 14px;
}
nav.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--text); }
nav.top .brand img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 14px rgba(123, 182, 97, 0.4); }
nav.top .links { margin-left: auto; display: flex; gap: 22px; font-size: 14px; color: var(--text-mid); }
nav.top .links a { color: var(--text-mid); transition: color .15s; }
nav.top .links a:hover, nav.top .links a.active { color: var(--sovi-blue); }
nav.top .cta-mini {
  margin-left: 12px;
  background: var(--gradient); color: white; font-weight: 600;
  padding: 8px 18px; border-radius: 8px; font-size: 14px;
  box-shadow: 0 4px 16px rgba(123, 182, 97, 0.3);
  transition: transform .15s, box-shadow .15s;
}
nav.top .cta-mini:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(123, 182, 97, 0.45); }
nav.top .hamburger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  margin-left: auto;
}
nav.top .hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: transform .2s, opacity .2s;
}
nav.top .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.top .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
nav.top .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  nav.top .row { position: relative; }
  nav.top .hamburger { display: block; }
  nav.top .links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(2, 16, 13, 0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0; margin-left: 0; display: none;
  }
  nav.top .links.open { display: flex; }
  nav.top .links a {
    padding: 14px 24px; border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  nav.top .links a:last-child { border-bottom: 0; }
  nav.top .links a[href^="#"] { display: none; }
  nav.top .cta-mini { font-size: 13px; padding: 8px 14px; }
}

/* ---- HERO (sub-page variant: tighter than index.html hero) ---- */
section.subhero {
  position: relative; padding: 60px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.subhero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.32; z-index: 0;
  filter: saturate(0.92);
}
.subhero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,22,20,0.55) 0%, rgba(15,22,20,0.88) 100%);
}
.subhero .container, .subhero .glow-bg { position: relative; z-index: 2; }

/* ---- Section visual (in-page image with caption / accent) ---- */
.section-visual {
  margin: 0 auto 48px; max-width: 980px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.section-visual img { display: block; width: 100%; height: auto; }
.section-visual .caption {
  padding: 12px 18px; background: var(--bg-elev);
  font-size: 13px; color: var(--text-dim); text-align: center;
  border-top: 1px solid var(--border);
}
.subhero .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sovi-blue);
  background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.subhero h1 {
  font-size: clamp(34px, 5vw, 52px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 18px;
}
.subhero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subhero p.sub {
  font-size: 18px; color: var(--text-mid); max-width: 680px;
  margin: 0 auto 28px; line-height: 1.65;
}

/* ---- SECTIONS ---- */
section.block { padding: 60px 24px; position: relative; }
section.block .lead { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sovi-blue);
  background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.section-h {
  font-size: clamp(26px, 3.5vw, 36px); font-weight: 700;
  letter-spacing: -0.015em; color: var(--text); margin-bottom: 14px;
}
.section-sub {
  font-size: 16.5px; color: var(--text-mid); line-height: 1.65;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-align: center;
}
.btn-primary {
  background: var(--gradient); color: white;
  box-shadow: 0 4px 16px rgba(123, 182, 97, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(123, 182, 97, 0.45); }
.btn-secondary {
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-elev-2); }

/* ---- FUNDING PROGRESS BAR ---- */
.progress-wrap {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  text-align: left;
}
.progress-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.progress-row .raised { font-size: 28px; font-weight: 700; color: var(--sovi-blue); }
.progress-row .goal { font-size: 14px; color: var(--text-mid); }
.progress-bar {
  height: 10px; background: rgba(123, 182, 97, 0.10);
  border-radius: 999px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--gradient);
  border-radius: 999px;
  transition: width .6s ease;
}
.progress-meta {
  margin-top: 12px; font-size: 13px; color: var(--text-dim);
  display: flex; justify-content: space-between;
}

/* ---- TIER CARDS ---- */
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; max-width: 1200px; margin: 0 auto;
}
.tier-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.tier-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(123, 182, 97, 0.12);
}
.tier-card.featured {
  border-color: var(--sovi-blue);
  background: linear-gradient(180deg, rgba(123, 182, 97, 0.08), var(--bg-elev));
}
.tier-card .tier-name {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sovi-blue); margin-bottom: 6px;
}
.tier-card .tier-price {
  font-size: 36px; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.tier-card .tier-price .currency { font-size: 22px; color: var(--text-mid); vertical-align: top; }
.tier-card .tier-tag {
  font-size: 13px; color: var(--text-mid);
  background: var(--bg-elev-2); border-radius: 6px;
  padding: 4px 10px; display: inline-block; margin-bottom: 16px;
}
.tier-card ul {
  list-style: none; padding: 0; margin: 0 0 24px 0; flex: 1;
}
.tier-card li {
  padding: 7px 0 7px 22px; position: relative;
  color: var(--text-mid); font-size: 14.5px; line-height: 1.5;
}
.tier-card li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--sovi-blue); font-weight: 700;
}
.tier-card .btn { width: 100%; }

/* ---- MILESTONE TIMELINE ---- */
.timeline {
  max-width: 760px; margin: 0 auto;
  position: relative; padding-left: 32px;
}
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item {
  position: relative; padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -27px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sovi-blue);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item.met::before { background: var(--green); }
.timeline-item.future::before { background: var(--bg-elev); border: 2px solid var(--border); }
.timeline-amount {
  font-size: 14px; font-weight: 600; color: var(--sovi-blue);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.timeline-h {
  font-size: 19px; font-weight: 600; color: var(--text);
  margin: 4px 0 8px;
}
.timeline-p {
  font-size: 15px; color: var(--text-mid); line-height: 1.6;
}

/* ---- BUDGET BREAKDOWN ---- */
.budget-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.budget-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  text-align: left;
}
.budget-card .pct {
  font-size: 32px; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.budget-card h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.budget-card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.55; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 22px; margin-bottom: 12px;
}
.faq-item h4 {
  font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.faq-item p { font-size: 14.5px; color: var(--text-mid); line-height: 1.6; }

/* ---- UPDATES TIMELINE (Posts) ---- */
.posts-list { max-width: 720px; margin: 0 auto; }
.post {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-bottom: 24px;
}
.post .post-date {
  font-size: 13px; color: var(--text-dim); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 10px;
}
.post h2 {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.post p { font-size: 15.5px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.post p:last-child { margin-bottom: 0; }
.post p strong { color: var(--text); font-weight: 600; }

/* ---- BACK MODAL (interest capture v1) ---- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75);
  z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; max-width: 460px; width: 100%;
}
.modal h3 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.modal .modal-tier { font-size: 14px; color: var(--sovi-blue); margin-bottom: 16px; font-weight: 600; }
.modal label { display: block; font-size: 13px; color: var(--text-mid); margin: 12px 0 6px; font-weight: 500; }
.modal input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: inherit;
}
.modal input:focus { outline: none; border-color: var(--sovi-blue); }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal .modal-actions .btn { flex: 1; }
.modal .modal-note { font-size: 12.5px; color: var(--text-dim); margin-top: 14px; line-height: 1.5; }
.modal .modal-success { display: none; text-align: center; }
.modal .modal-success.show { display: block; }
.modal .modal-success svg { color: var(--green); margin: 0 auto 14px; display: block; }
.modal .close-btn {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--text-dim);
  font-size: 22px; cursor: pointer;
}

/* ---- FOOTER (matches index.html) ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center; color: var(--text-dim); font-size: 13px;
}
footer a { color: var(--text-dim); margin: 0 10px; }
footer a:hover { color: var(--sovi-blue); }
footer .brand-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 12px;
}
footer .brand-line img { width: 22px; height: 22px; border-radius: 50%; }

/* ---- EMAIL CAPTURE INLINE FORM ---- */
.signup-form {
  display: flex; gap: 10px; max-width: 460px; margin: 22px auto 8px;
  flex-wrap: wrap;
}
.signup-form input {
  flex: 1 1 220px; min-width: 0;
  padding: 12px 16px; font-size: 15px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit;
}
.signup-form input:focus { outline: none; border-color: var(--sovi-blue); }
.signup-form button { white-space: nowrap; }
.signup-meta { font-size: 13px; color: var(--text-dim); }
.signup-success, .signup-error {
  margin-top: 12px; font-size: 14px;
}
.signup-success { color: var(--green); }
.signup-error { color: #f87171; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .8s ease-out both; }
.fade-in.delay-1 { animation-delay: .1s; }
.fade-in.delay-2 { animation-delay: .2s; }
.fade-in.delay-3 { animation-delay: .3s; }