:root {
  --navy: #041d42;
  --navy-deep: #020e24;
  --navy-2: #0a2a5c;
  --navy-line: rgba(217, 220, 225, 0.14);
  --gold: #c8962a;
  --gold-2: #dcb35e;
  --gold-light: #ebcf94;
  --silver: #d9dce1;
  --silver-2: #a9aeb7;
  --ivory: #f7f3ec;
  --ivory-2: #efe8dc;
  --ink: #0b1630;
  --danger: #e07a6b;
  --ok: #7fc8a0;

  --grad-gold: linear-gradient(100deg, #b98420 0%, #dcb35e 38%, #f1dcaa 55%, #c8962a 100%);
  --grad-silver: linear-gradient(180deg, #ffffff 0%, #c9ccd2 48%, #f4f5f7 70%, #a9aeb7 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 18px;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.gold-text {
  background: var(--grad-gold);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShift 6s ease-in-out infinite alternate;
}

@keyframes goldShift {
  to {
    background-position: 100% 0;
  }
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.btn {
  --bg: var(--grad-gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 2rem;
  border-radius: 999px;
  background: var(--bg);
  background-size: 200% 100%;
  color: var(--navy-deep);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-position 0.8s var(--ease),
    opacity 0.3s;
  box-shadow: 0 10px 30px -12px rgba(200, 150, 42, 0.7);
  text-decoration: none;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 18px 40px -14px rgba(220, 179, 94, 0.85);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--navy-line);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: none;
}

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

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(10, 26, 58, 0.92);
  border: 1px solid var(--navy-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ivory);
  font-size: 0.9rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  animation: toastIn 0.6s var(--ease) both;
}

.toast.is-out {
  animation: toastOut 0.4s var(--ease) both;
}

.toast--gold {
  border-color: rgba(235, 207, 148, 0.5);
}

.toast--error {
  border-color: rgba(224, 122, 107, 0.6);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
