/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --gold: #C9A84C;
  --gold-bright: #F0C060;
  --bg: #0D0D0D;
  --card: #1A1A1A;
  --border: #2A2A2A;
  --grey: #888;
  --grey-light: #AAA;
  --white: #F5F5F5;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Gold top bar ── */
.top-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  flex-shrink: 0;
}

/* ── Main container ── */
.container {
  width: 100%;
  max-width: 620px;
  padding: 0 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Header ── */
.site-header {
  padding: 36px 0 20px;
  text-align: center;
}

.site-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}

.site-title .gold { color: var(--gold-bright); }

.site-byline {
  margin-top: 8px;
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  color: var(--grey);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.site-byline a {
  color: var(--grey-light);
  text-decoration: none;
  transition: color 0.2s;
}
.site-byline a:hover { color: var(--gold); }

/* ── Hero image ── */
.hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111 0%, #1c1c1c 50%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── STAY stamp ── */
.stamp {
  position: absolute;
  bottom: 18px;
  left: 20px;
  transform: rotate(-2deg);
  border: 3px solid var(--gold);
  padding: 6px 18px 4px;
  border-radius: 4px;
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.65)) drop-shadow(0 0 4px rgba(201,168,76,0.4));
  pointer-events: none;
}

.stamp-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 10vw, 4.4rem);
  color: var(--gold-bright);
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(240,192,96,0.5);
}

/* ── Caption ── */
.caption {
  font-style: italic;
  font-size: clamp(0.82rem, 2.5vw, 0.92rem);
  color: var(--grey-light);
  font-weight: 300;
  line-height: 1.6;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 20px;
}

/* ── Counter card ── */
.counter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 22px 18px;
  margin-bottom: 18px;
  position: relative;
}

.counter-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.counter-left { flex: 1; min-width: 0; }

.counter-number {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.counter-label {
  font-size: clamp(0.65rem, 2vw, 0.72rem);
  color: var(--grey);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

.counter-right {
  text-align: right;
  flex-shrink: 0;
}

.goal-number {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--gold);
  line-height: 1;
}

.goal-label {
  font-size: clamp(0.6rem, 1.8vw, 0.68rem);
  color: var(--grey);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
}

/* ── Progress bar ── */
.progress-wrap { margin-top: 16px; }

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-pct {
  font-size: clamp(0.65rem, 2vw, 0.72rem);
  color: var(--grey);
  text-align: right;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ── Buttons ── */
.btn-sign {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #0D0D0D;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, background 0.3s, color 0.3s;
  margin-bottom: 10px;
}

.btn-sign:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-sign:active:not(:disabled) { transform: translateY(0); }

.btn-sign.signed {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  cursor: default;
}

.btn-sign:disabled { cursor: not-allowed; }

.btn-sub {
  text-align: center;
  font-size: clamp(0.7rem, 2.2vw, 0.78rem);
  color: var(--grey);
  font-weight: 300;
  margin-bottom: 14px;
  min-height: 18px;
  transition: color 0.2s;
}

.btn-sub.warn { color: #e08050; }

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  background: transparent;
  color: var(--grey-light);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(0.88rem, 3vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  margin-bottom: 28px;
}

.btn-share:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-share svg { flex-shrink: 0; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding-bottom: 8px;
}

.footer-tagline {
  font-size: clamp(0.6rem, 1.8vw, 0.68rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 6px;
}

.footer-credit {
  font-size: clamp(0.62rem, 1.9vw, 0.7rem);
  color: #444;
  font-weight: 300;
}

.footer-credit a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-credit a:hover { color: var(--gold); }

/* ── Mobile tweaks ── */
@media (max-width: 400px) {
  .container { padding: 0 12px 36px; }
  .counter-card { padding: 16px 14px 14px; }
  .stamp { bottom: 12px; left: 12px; }
}
