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

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #1a1a1a;
  --bg-card:   #222222;
  --bg-raised: #2a2a2a;
  --amber:     #c8882a;
  --amber-lt:  #e0a04a;
  --red:       #8b1a1a;
  --red-lt:    #a82222;
  --text:      #f5f0e8;
  --text-muted:#b0a898;
  --border:    #3a3530;
  --gold-line: #c8882a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-lt); }

img { max-width: 100%; display: block; }

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

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-raised);
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.section-headline em {
  font-style: italic;
  color: var(--amber);
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--amber);
  margin-bottom: 32px;
}

.rule--center { margin-left: auto; margin-right: auto; }

.body-copy p { margin-bottom: 20px; color: var(--text-muted); }
.body-copy p:last-child { margin-bottom: 0; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
  border: none;
  text-align: center;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--amber);
  color: #111;
}
.btn-primary:hover { background: var(--amber-lt); color: #111; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--amber);
}
.btn-secondary:hover { background: var(--amber); color: #111; }

.btn-red {
  background: var(--red);
  color: var(--text);
}
.btn-red:hover { background: var(--red-lt); }

.btn-full { width: 100%; }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,26,26,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .02em;
}

.nav__cta {
  font-size: 14px;
  padding: 10px 22px;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__bg-texture {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(30,18,8,0.6) 100%
  );
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 0;
}

.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero__headline {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--text);
}

.hero__headline em {
  font-style: italic;
  color: var(--amber);
}

.hero__sub {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 620px;
}

.hero__cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ── Pledge Tracker ───────────────────────────────────────────── */
.tracker {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  padding: 28px 32px;
  max-width: 600px;
}

.tracker__title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.tracker__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.tracker__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tracker__stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.tracker__stat-value.loading {
  opacity: .4;
}

.tracker__bar-wrap {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tracker__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--amber));
  border-radius: 999px;
  width: 0%;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

.tracker__disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  opacity: .7;
  line-height: 1.5;
}

/* ── Story ────────────────────────────────────────────────────── */
.story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.story__image-placeholder {
  aspect-ratio: 4/5;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.story__image {
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
}

.story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story__image-placeholder svg {
  opacity: .3;
}

.image-label {
  font-size: 12px;
  color: var(--text-muted);
  opacity: .6;
  font-style: italic;
}

/* ── What We're Building ──────────────────────────────────────── */
.building__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.building__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--amber);
  border-radius: 4px;
  padding: 28px 24px;
}

.building__item h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--amber);
}

.building__item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Co-op Model ──────────────────────────────────────────────── */
.coop__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.coop__feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}

.coop__feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

.coop__feature h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.coop__feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.coop__plain-english {
  background: linear-gradient(135deg, rgba(200,136,42,.1), rgba(139,26,26,.08));
  border: 1px solid rgba(200,136,42,.3);
  border-radius: 6px;
  padding: 32px;
  margin-top: 40px;
}

.coop__plain-english h4 {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.coop__plain-english p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}

/* ── Tiers ────────────────────────────────────────────────────── */
.tiers__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .2s, transform .2s;
}

.tier-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
}

.tier-card--featured {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(200,136,42,.08) 0%, var(--bg-card) 100%);
}

.tier-card__emoji {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.tier-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 4px;
}

.tier-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}

.tier-card__tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tier-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.tier-card__note {
  font-size: 11px;
  color: var(--amber);
  margin-top: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.tiers__footnote {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Financial ────────────────────────────────────────────────── */
.finance__table-wrap {
  overflow-x: auto;
  margin: 40px 0;
}

.finance__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.finance__table th {
  background: var(--bg-raised);
  color: var(--amber);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 2px solid var(--amber);
}

.finance__table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.finance__table td:first-child { color: var(--text); font-weight: 500; }

.finance__table tr:last-child td {
  border-bottom: 2px solid var(--amber);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.finance__callouts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.finance__callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.finance__callout h4 {
  font-size: 16px;
  color: var(--amber);
  margin-bottom: 10px;
}

.finance__callout p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Memory Wall ──────────────────────────────────────────────── */
.memory__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

.memory-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 32px;
  position: sticky;
  top: 100px;
}

.memory-form h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text);
}

.memory-form .form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--amber);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select option { background: var(--bg-raised); }

.char-count {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.file-upload {
  border: 2px dashed var(--border);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
  position: relative;
}

.file-upload:hover { border-color: var(--amber); }

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload__text {
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.file-upload__text strong {
  color: var(--amber);
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}

.form-status.success {
  background: rgba(50,180,80,.15);
  border: 1px solid rgba(50,180,80,.3);
  color: #80d896;
  display: block;
}

.form-status.error {
  background: rgba(180,50,50,.15);
  border: 1px solid rgba(180,50,50,.3);
  color: #e08080;
  display: block;
}

/* Memory Wall Cards */
.memory-wall__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.memory-wall__header h3 {
  font-size: 20px;
  color: var(--text-muted);
}

.memory-wall__count {
  font-size: 13px;
  color: var(--text-muted);
}

.memory-wall__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.memory-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .2s;
}

.memory-card:hover { border-color: rgba(200,136,42,.4); }

.memory-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #111;
}

.memory-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: .3;
}

.memory-card__body {
  padding: 20px;
}

.memory-card__meta {
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 10px;
  font-weight: 500;
}

.memory-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.memory-wall__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.memory-wall__empty p { font-size: 16px; margin-bottom: 8px; }
.memory-wall__empty span { font-size: 13px; opacity: .6; }

/* ── Pledge Form ──────────────────────────────────────────────── */
.pledge-section {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(30,18,8,.6) 100%
  );
}

.pledge__layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 80px;
  align-items: start;
}

.pledge-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--amber);
  border-radius: 6px;
  padding: 40px 36px;
}

.pledge-form-wrap h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.pledge-form-wrap .form-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.amount-btn {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 4px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #111;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--amber);
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  cursor: pointer;
}

.inline-disclaimer {
  background: rgba(139,26,26,.1);
  border: 1px solid rgba(139,26,26,.25);
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 20px;
}

.inline-disclaimer strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  text-align: left;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  transition: color .15s;
}

.faq__question:hover { color: var(--amber); }

.faq__icon {
  font-size: 22px;
  color: var(--amber);
  flex-shrink: 0;
  line-height: 1.3;
  transition: transform .3s;
}

.faq__item.open .faq__icon { transform: rotate(45deg); }

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease, padding .3s;
}

.faq__answer-inner {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq__answer-inner a { color: var(--amber); }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: #111;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__disclaimer h4 {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.footer__disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
  opacity: .8;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  opacity: .5;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Success Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--amber);
  border-radius: 8px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  transition: transform .3s;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal__icon { font-size: 48px; margin-bottom: 16px; }

.modal h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--amber);
}

.modal p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Loading state ────────────────────────────────────────────── */
.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* ── Utility ──────────────────────────────────────────────────── */
.text-amber { color: var(--amber); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tiers__grid { grid-template-columns: repeat(3, 1fr); }
  .story__layout { grid-template-columns: 1fr; }
  .story__image-placeholder { display: none; }
  .pledge__layout { grid-template-columns: 1fr; }
  .finance__callouts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .tiers__grid { grid-template-columns: repeat(2, 1fr); }
  .building__grid { grid-template-columns: 1fr; }
  .coop__features { grid-template-columns: 1fr; }
  .memory__layout { grid-template-columns: 1fr; }
  .memory-form { position: static; }
  .memory-wall__grid { grid-template-columns: 1fr; }
  .tracker__stats { grid-template-columns: 1fr 1fr 1fr; }
  .tracker__stat-value { font-size: 20px; }
  .finance__callouts { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__cta-group { flex-direction: column; }
}

@media (max-width: 480px) {
  .tiers__grid { grid-template-columns: 1fr; }
  .tracker__stats { grid-template-columns: 1fr; }
  .hero__stat-value { font-size: 17px; }
  .nav__logo { font-size: 15px; }
}
