:root {
  --bg-obsidian: #050506;
  --surface-glass: rgba(14, 12, 10, 0.72);
  --gold-champagne: #f6e4ba;
  --gold-antique: #d2a860;
  --gold-bronze: #8c6128;
  --ivory: #ece4d7;
  --taupe: #9e9283;
  --frame-line: rgba(210, 168, 96, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-obsidian);
  color: var(--ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.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;
}

/* Atmospheric layers */
#atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(246, 228, 186, 0.075) 0%,
    rgba(210, 168, 96, 0.03) 38%,
    rgba(5, 5, 6, 0) 70%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

/* Outer frame shell */
.viewport-wrap {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  padding: clamp(12px, 2.2vw, 28px);
  display: flex;
}

.frame-shell {
  position: relative;
  flex: 1;
  min-height: calc(100dvh - 2 * clamp(12px, 2.2vw, 28px));
  border: 1px solid var(--frame-line);
  padding: clamp(16px, 2.5vw, 30px) clamp(18px, 3.2vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(20, 16, 12, 0.22) 0%,
    rgba(5, 5, 6, 0.35) 100%
  );
}

/* Delicate corner ticks */
.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(246, 228, 186, 0.52);
  border-left: 1px solid rgba(246, 228, 186, 0.52);
}

.corner-tr {
  top: -1px;
  right: -1px;
  border-top: 1px solid rgba(246, 228, 186, 0.52);
  border-right: 1px solid rgba(246, 228, 186, 0.52);
}

.corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid rgba(246, 228, 186, 0.52);
  border-left: 1px solid rgba(246, 228, 186, 0.52);
}

.corner-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid rgba(246, 228, 186, 0.52);
  border-right: 1px solid rgba(246, 228, 186, 0.52);
}

/* Header & footer bars */
.top-bar,
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ivory);
  opacity: 0.86;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-champagne);
  box-shadow: 0 0 10px rgba(210, 168, 96, 0.85);
  animation: pulseDot 2.8s ease-in-out infinite;
}

.domain-label {
  color: rgba(210, 168, 96, 0.78);
}

/* Hero stage */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(12px, 2vh, 26px) 0;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.logo-halo {
  position: absolute;
  width: clamp(220px, 32vw, 340px);
  height: clamp(220px, 32vw, 340px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(210, 168, 96, 0.16) 0%,
    rgba(140, 97, 40, 0.06) 45%,
    rgba(5, 5, 6, 0) 74%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.brand-logo {
  position: relative;
  z-index: 1;
  height: clamp(180px, 30vh, 275px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.78));
  animation: floatLogo 6s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

/* Gold hairline divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(220px, 56vw);
  margin: clamp(14px, 2.4vh, 24px) auto clamp(14px, 2.2vh, 22px);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(210, 168, 96, 0),
    rgba(210, 168, 96, 0.55),
    rgba(210, 168, 96, 0)
  );
}

.divider-diamond {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(246, 228, 186, 0.75);
  transform: rotate(45deg);
  background: rgba(210, 168, 96, 0.25);
}

/* Typography */
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 4.6vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
  color: var(--ivory);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(
    120deg,
    var(--gold-bronze) 0%,
    var(--gold-antique) 34%,
    var(--gold-champagne) 58%,
    var(--gold-antique) 86%,
    var(--gold-bronze) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: clamp(12px, 1.8vh, 18px) auto 0;
  max-width: 470px;
  font-size: clamp(0.875rem, 1.35vw, 0.975rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--taupe);
}

/* Waitlist form */
.waitlist-wrap {
  width: 100%;
  max-width: 470px;
  margin-top: clamp(18px, 2.8vh, 30px);
}

.waitlist-form {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.waitlist-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(246, 228, 186, 0.35),
    rgba(210, 168, 96, 0.14) 50%,
    rgba(140, 97, 40, 0.35)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.35s ease;
  opacity: 0.85;
}

.waitlist-form:focus-within {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.72), 0 0 28px rgba(210, 168, 96, 0.16);
}

.waitlist-form:focus-within::before {
  background: linear-gradient(
    135deg,
    rgba(246, 228, 186, 0.82),
    rgba(210, 168, 96, 0.45) 50%,
    rgba(246, 228, 186, 0.72)
  );
  opacity: 1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 13px 18px 13px 20px;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  outline: none;
}

.waitlist-input::placeholder {
  color: rgba(158, 146, 131, 0.72);
}

.waitlist-btn {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #120d07;
  background: linear-gradient(
    135deg,
    var(--gold-champagne) 0%,
    var(--gold-antique) 52%,
    #b78640 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.waitlist-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

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

.waitlist-btn:disabled {
  cursor: wait;
  opacity: 0.75;
}

.btn-label {
  position: relative;
  z-index: 1;
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 252, 240, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.waitlist-btn:hover:not(:disabled) .btn-shimmer {
  left: 150%;
}

.form-status {
  min-height: 1.35em;
  margin: 12px 0 0;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--taupe);
  transition: color 0.25s ease;
}

.form-status.is-success {
  color: var(--gold-champagne);
}

.form-status.is-error {
  color: #e89b8e;
}

/* Entrance & idle keyframes */
.anim-in {
  animation: fadeRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s) both;
}

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

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .frame-shell {
    padding: 16px 16px;
  }

  .top-bar,
  .bottom-bar {
    font-size: 0.625rem;
    letter-spacing: 0.18em;
  }

  .brand-logo {
    height: clamp(160px, 26vh, 220px);
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .waitlist-input {
    width: 100%;
    padding: 12px 14px;
    text-align: center;
  }

  .waitlist-btn {
    width: 100%;
    border-radius: 12px;
    padding: 14px 20px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-in,
  .brand-logo,
  .status-dot {
    animation: none !important;
  }

  .cursor-glow {
    display: none;
  }

  .logo-stage,
  .waitlist-btn,
  .btn-shimmer {
    transition: none !important;
  }
}
