:root {
  --bg-deep: #0b0908;
  --bg-surface: rgba(20, 16, 13, 0.78);
  --gold-light: #ebd197;
  --gold: #c89b54;
  --gold-muted: rgba(200, 155, 84, 0.35);
  --gold-faint: rgba(200, 155, 84, 0.14);
  --text-primary: #f6f0e6;
  --text-secondary: #b4a796;
  --text-muted: #7d7265;
  --danger: #d9776c;
  --success: #9bc59d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background canvas & overlays */
#ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 25%, rgba(200, 155, 84, 0.14) 0%, rgba(11, 9, 8, 0) 55%),
    radial-gradient(circle at 80% 85%, rgba(140, 82, 36, 0.1) 0%, rgba(11, 9, 8, 0) 50%);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(#ffffff 0.75px, transparent 0.75px);
  background-size: 6px 6px;
}

/* Main layout */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 3.5rem 3rem 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--gold-faint);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(235, 209, 151, 0.08);
  text-align: center;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Architectural corners */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.75;
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-width: 1.5px 0 0 1.5px;
}

.corner-tr {
  top: -1px;
  right: -1px;
  border-width: 1.5px 1.5px 0 0;
}

.corner-bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1.5px 1.5px;
}

.corner-br {
  bottom: -1px;
  right: -1px;
  border-width: 0 1.5px 1.5px 0;
}

/* Header */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.monogram {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--gold-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  background: radial-gradient(circle, rgba(200, 155, 84, 0.12) 0%, transparent 72%);
  box-shadow: 0 0 24px rgba(200, 155, 84, 0.1);
}

.monogram .dot {
  color: var(--gold);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--gold-faint);
  background: rgba(200, 155, 84, 0.06);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2.2s ease-in-out infinite;
}

/* Hero */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.brand-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: "Cinzel", serif;
  font-weight: 600;
  line-height: 1.08;
}

.title-main {
  font-size: clamp(2.5rem, 7vw, 4.35rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  background: linear-gradient(180deg, #fff4dc 0%, #e4c07e 52%, #b07f3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-sub {
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--gold);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 2rem auto 1.75rem;
  max-width: 240px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
}

.divider-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.description {
  max-width: 480px;
  margin: 0 auto 2.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.38rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Progress bar */
.progress-wrap {
  max-width: 420px;
  margin: 0 auto 2.25rem;
  text-align: left;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #8c6239, var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(200, 155, 84, 0.5);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Notify Form */
.notify-form {
  max-width: 460px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  border: 1px solid var(--gold-faint);
  background: rgba(11, 9, 8, 0.65);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 155, 84, 0.12);
}

.input-group input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.95rem 1.1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.input-group button {
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, #9f7337 100%);
  color: #120e0b;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.input-group button:hover {
  filter: brightness(1.1);
}

.input-group button:active {
  transform: scale(0.98);
}

.form-feedback {
  min-height: 1.25rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.form-feedback.is-error {
  color: var(--danger);
}

.form-feedback.is-success {
  color: var(--success);
}

/* Footer */
.card-footer {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 155, 84, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .frame {
    padding: 2.5rem 1.5rem 2rem;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group button {
    width: 100%;
    padding: 0.95rem;
  }
}
