/* ============================================================
   Components — buttons, cards, navbar, inputs, reveals
   ============================================================ */

/* ── Primary button — green, used sparingly ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45,106,79,0.35);
}

/* ── Ghost button — gold outline, glossy ── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 36px;
  background: transparent;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  /* Glossy gold border via box-shadow layering */
  box-shadow:
    inset 0 0 0 1px var(--gold),
    0 0 12px rgba(201,168,76,0.08);
}
.btn-ghost:hover {
  background: rgba(201,168,76,0.08);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px var(--gold-light),
    0 0 20px rgba(201,168,76,0.2);
}

/* ── Card ── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  /* Subtle gold border */
  border: 1px solid var(--color-border);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201,168,76,0.3) 0%, transparent 50%, rgba(201,168,76,0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201,168,76,0.2);
}
.card:hover::after { opacity: 1; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  /* fully transparent on load — hero shows through */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar--scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(201,168,76,0.15);
  box-shadow: 0 1px 0 rgba(201,168,76,0.08);
}
.navbar__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.navbar__links { display: flex; align-items: center; gap: var(--space-md); }
.navbar__links a { font-size: 13px; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.02em; }
.navbar__links a:hover { color: var(--gold-light); }

/* ── Input ── */
.input {
  height: 52px;
  width: 100%;
  padding: 0 20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: var(--transition);
}
.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1), 0 0 12px rgba(201,168,76,0.08);
}
.input::placeholder { color: var(--color-text-dim); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ── Gold divider ── */
.gold-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-sm) 0;
}

/* ── Status pills — monochrome ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pill-gold   { background: rgba(201,168,76,0.12); color: var(--gold-light); border: 1px solid rgba(201,168,76,0.25); }
.pill-dim    { background: rgba(255,255,255,0.05); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.pill-green  { background: rgba(45,106,79,0.15); color: #52a87a; border: 1px solid rgba(45,106,79,0.3); }
.pill-red    { background: rgba(180,50,50,0.12); color: #c97070; border: 1px solid rgba(180,50,50,0.25); }
.pill-dot    { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.32s cubic-bezier(0.4,0,0.2,1);
  z-index: 999;
  box-shadow: 0 0 20px rgba(201,168,76,0.1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Responsive overrides
   ============================================================ */

/* ── Navbar mobile ── */
.navbar__links { display: flex; align-items: center; gap: var(--space-md); }
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav drawer */
.navbar__drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.navbar__drawer.open { display: flex; }
.navbar__drawer a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar__drawer a:hover { color: var(--gold-light); background: rgba(201,168,76,0.06); }
.navbar__drawer .btn-primary {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__hamburger { display: flex; }

  /* Buttons — smaller on mobile */
  .btn-primary, .btn-ghost {
    padding: 12px 24px;
    font-size: 13px;
  }

  /* Cards */
  .card { padding: 22px; }

  /* Input */
  .input { height: 48px; font-size: 15px; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-ghost {
    padding: 11px 20px;
    font-size: 13px;
  }
}
