:root {
  --black: #050505;
  --cream: #f0eadc;
  --cream-muted: #c9c1b2;
  --amber: #dc9217;
  --amber-bright: #f2a51d;
  --border: rgba(240, 234, 220, 0.3);
  --field-background: rgba(3, 3, 3, 0.82);
  --content-width: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--cream);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

.background-scene {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: #050505;
}

.background-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.02);
}

.background-shade {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center top,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.08) 36%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.14) 28%,
      rgba(0, 0, 0, 0.58) 67%,
      rgba(0, 0, 0, 0.94) 100%
    );
}

.fire-glow {
  position: fixed;
  z-index: -7;
  pointer-events: none;
  width: 42vw;
  height: 42vw;
  min-width: 380px;
  min-height: 380px;
  border-radius: 50%;
  filter: blur(74px);
  animation: firePulse 5.4s ease-in-out infinite;
}

.fire-glow-left {
  left: -17vw;
  top: 13vh;
  background:
    radial-gradient(
      circle,
      rgba(255, 112, 0, 0.86),
      rgba(255, 75, 0, 0.24) 40%,
      transparent 72%
    );
}

.fire-glow-right {
  right: -18vw;
  top: 21vh;
  background:
    radial-gradient(
      circle,
      rgba(255, 105, 0, 0.72),
      rgba(255, 75, 0, 0.19) 40%,
      transparent 72%
    );
  animation-delay: -2.4s;
}

@keyframes firePulse {
  0%,
  100% {
    opacity: 0.13;
    transform: scale(0.95);
  }

  45% {
    opacity: 0.23;
    transform: scale(1.06);
  }

  72% {
    opacity: 0.16;
    transform: scale(1);
  }
}

.smoke-layer {
  position: fixed;
  z-index: -6;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(30px);
  mix-blend-mode: screen;
}

.smoke-one {
  top: -150px;
  right: 12%;
  width: 520px;
  height: 760px;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(210, 210, 210, 0.40), transparent 46%),
    radial-gradient(ellipse at 42% 62%, rgba(195, 195, 195, 0.32), transparent 42%),
    radial-gradient(ellipse at 61% 34%, rgba(185, 185, 185, 0.30), transparent 38%);
  animation: smokeOne 22s ease-in-out infinite;
}

.smoke-two {
  top: 60px;
  left: -90px;
  width: 520px;
  height: 700px;
  opacity: 0.11;
  background:
    radial-gradient(ellipse at 52% 75%, rgba(200, 200, 200, 0.32), transparent 44%),
    radial-gradient(ellipse at 35% 48%, rgba(190, 190, 190, 0.24), transparent 42%);
  animation: smokeTwo 28s ease-in-out infinite;
}

.smoke-three {
  top: 28%;
  right: -80px;
  width: 500px;
  height: 680px;
  opacity: 0.09;
  background:
    radial-gradient(ellipse at 45% 70%, rgba(200, 200, 200, 0.28), transparent 45%),
    radial-gradient(ellipse at 65% 42%, rgba(185, 185, 185, 0.22), transparent 40%);
  animation: smokeThree 31s ease-in-out infinite;
}

.smoke-four {
  top: 48%;
  left: 25%;
  width: 600px;
  height: 650px;
  opacity: 0.065;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(185, 185, 185, 0.24), transparent 44%),
    radial-gradient(ellipse at 60% 36%, rgba(175, 175, 175, 0.17), transparent 38%);
  animation: smokeFour 35s ease-in-out infinite;
}

@keyframes smokeOne {
  0% {
    transform: translate3d(-20px, 70px, 0) scale(0.92) rotate(-2deg);
    opacity: 0.11;
  }
  45% {
    transform: translate3d(30px, -70px, 0) scale(1.08) rotate(3deg);
    opacity: 0.22;
  }
  100% {
    transform: translate3d(-10px, -180px, 0) scale(1.22) rotate(-1deg);
    opacity: 0.06;
  }
}

@keyframes smokeTwo {
  0% {
    transform: translate3d(-30px, 50px, 0) scale(0.95);
    opacity: 0.07;
  }
  50% {
    transform: translate3d(60px, -70px, 0) scale(1.10);
    opacity: 0.14;
  }
  100% {
    transform: translate3d(100px, -170px, 0) scale(1.23);
    opacity: 0.035;
  }
}

@keyframes smokeThree {
  0% {
    transform: translate3d(30px, 50px, 0) scale(0.94);
    opacity: 0.05;
  }
  50% {
    transform: translate3d(-45px, -75px, 0) scale(1.10);
    opacity: 0.12;
  }
  100% {
    transform: translate3d(-100px, -175px, 0) scale(1.24);
    opacity: 0.03;
  }
}

@keyframes smokeFour {
  0% {
    transform: translate3d(-50px, 80px, 0) scale(0.92);
    opacity: 0.035;
  }
  50% {
    transform: translate3d(30px, -55px, 0) scale(1.08);
    opacity: 0.085;
  }
  100% {
    transform: translate3d(70px, -160px, 0) scale(1.20);
    opacity: 0.025;
  }
}

.embers {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #ffd36e 0%,
      #ff8a16 42%,
      #ef4c00 75%,
      transparent 100%
    );
  opacity: 0;
  box-shadow:
    0 0 7px rgba(255, 145, 20, 0.95),
    0 0 16px rgba(255, 80, 0, 0.58);
  animation: emberRise linear forwards;
}

@keyframes emberRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.55) rotate(0deg);
  }
  10% {
    opacity: 0.95;
  }
  52% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform:
      translate3d(var(--ember-drift), -115vh, 0)
      scale(0.18)
      rotate(var(--ember-spin));
  }
}

.page-shell {
  position: relative;
  z-index: 10;
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 74px) 24px;
}

.hero {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(100%, 570px);
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.58));
}

.hero h1 {
  margin: 0;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  font-weight: 500;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.intro-copy {
  margin: 23px auto 0;
  color: var(--cream);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.section-divider,
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-divider {
  margin: 24px auto 28px;
}

.section-divider span {
  width: 58px;
  height: 1px;
  background: rgba(240, 234, 220, 0.28);
}

.section-divider i {
  color: var(--cream-muted);
}

.signup-section {
  width: min(100%, 640px);
  margin: 0 auto 64px;
  text-align: center;
}

.signup-header {
  margin-bottom: 16px;
}

.signup-header h2 {
  margin: 0;
  color: var(--amber);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.form-instructions {
  max-width: 470px;
  margin: 0 auto 16px;
  color: var(--cream);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.method-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 2px;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 180ms ease;
}

.method-icon:hover,
.method:focus-within .method-icon,
.method.is-filled .method-icon {
  color: var(--amber-bright);
}

.method.is-filled .method-icon::after {
  content: "✓";
  position: absolute;
  top: 0;
  right: -12px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber-bright);
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
}

.connection-form {
  width: min(100%, 480px);
  margin: 16px auto 0;
  padding: clamp(14px, 2.5vw, 22px) clamp(12px, 2vw, 20px);
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(38, 40, 42, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.method input {
  width: min(100%, 420px);
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: center;
  font-size: 1rem;
}

.method input::placeholder {
  color: #bdb8ad;
  opacity: 1;
}

.method input:focus {
  border-color: var(--amber-bright);
  outline: 2px solid var(--amber-bright);
  outline-offset: 2px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 410px);
  min-height: 54px;
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid #f0a11c;
  border-radius: 3px;
  background: linear-gradient(90deg, #ca7f08, #e8a01c);
  color: #090909;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.submit-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(210, 120, 0, 0.25);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(255, 200, 80, 0.68);
  outline-offset: 4px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 38px;
  margin-top: 16px;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  scroll-margin-top: 28px;
}

.form-status:empty {
  min-height: 0;
  margin-top: 0;
}

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

.form-status.is-success {
  color: #ffd487;
}

.site-footer {
  width: min(100%, 650px);
  margin: 0 auto;
  text-align: center;
}

.footer-divider {
  margin-bottom: 8px;
}

.footer-divider span {
  flex: 0 1 200px;
  height: 2px;
  background: rgba(240, 234, 220, 0.22);
}

.footer-flame {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(242, 165, 29, 0.30));
}

.copyright {
  margin: 38px 0 0;
  color: var(--cream-muted);
  font-size: 0.78rem;
}

.noscript-warning {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 12px;
  background: #842400;
  color: white;
  text-align: center;
}

@media (max-width: 900px) {
  .background-image {
    object-position: 67% 40%;
  }

  .page-shell {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .brand-logo {
    width: min(100%, 500px);
  }
}

@media (max-width: 600px) {
  .background-image {
    object-position: 76% 30%;
    transform: scale(1.08);
  }

  .background-shade {
    background:
      radial-gradient(
        ellipse at center top,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.22) 45%,
        rgba(0, 0, 0, 0.68) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.28) 28%,
        rgba(0, 0, 0, 0.76) 62%,
        rgba(0, 0, 0, 0.97) 100%
      );
  }

  .smoke-one {
    right: -120px;
    opacity: 0.16;
  }

  .smoke-two {
    left: -220px;
    opacity: 0.08;
  }

  .smoke-three {
    right: -180px;
    opacity: 0.08;
  }

  .smoke-four {
    left: 10%;
    opacity: 0.05;
  }

  .page-shell {
    padding: 28px 17px 28px;
  }

  .brand-logo {
    width: min(100%, 360px);
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .intro-copy {
    margin-top: 16px;
  }

  .section-divider {
    margin: 19px auto 22px;
  }

  .form-instructions {
    margin-bottom: 12px;
  }

  .contact-methods {
    gap: 10px;
    margin-bottom: 30px;
  }

  .submit-button {
    width: 100%;
    max-width: 350px;
  }

  .signup-section {
    margin-bottom: 48px;
  }

  .footer-flame {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 390px) {
  .background-image {
    object-position: 80% 28%;
  }

  .page-shell {
    padding-left: 13px;
    padding-right: 13px;
  }

  .method input {
    font-size: 0.92rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .background-image {
    object-position: 61% 42%;
  }
}

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

  .smoke-layer,
  .fire-glow,
  .embers {
    display: none;
  }
}
