@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

:root {
  --bg: #050505;
  --text: #e2cca0;
  --text-soft: #dbc08b;
  --muted: rgba(219, 192, 139, 0.72);
  --gold: #c9a24a;
  --gold-strong: #d4af5a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 50% 14%, rgba(221, 179, 96, 0.09), transparent 26%),
    radial-gradient(circle at top left, rgba(221, 179, 96, 0.05), transparent 22%),
    linear-gradient(180deg, #020202 0%, #060606 45%, #030303 100%);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

.background-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.25;
}

.glow-one {
  top: -140px;
  left: -140px;
  width: 340px;
  height: 340px;
  background: rgba(221, 179, 96, 0.18);
}

.glow-two {
  right: -140px;
  bottom: 0;
  width: 320px;
  height: 320px;
  background: rgba(221, 179, 96, 0.1);
}

.spark-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 235, 184, 0.95), rgba(221, 179, 96, 0.1));
  box-shadow: 0 0 12px rgba(241, 205, 131, 0.8);
  opacity: 0;
  animation: spark-fall linear infinite;
}

.spark::after {
  content: "";
  position: absolute;
  top: 1px;
  left: -1px;
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, rgba(241, 205, 131, 0.65), rgba(241, 205, 131, 0));
  transform-origin: top center;
  transform: rotate(18deg);
}

.s1 { left: 12%; animation-duration: 7.4s; animation-delay: -1.2s; }
.s2 { left: 22%; animation-duration: 9.2s; animation-delay: -4.8s; }
.s3 { left: 31%; animation-duration: 6.8s; animation-delay: -2.1s; }
.s4 { left: 41%; animation-duration: 8.1s; animation-delay: -5.6s; }
.s5 { left: 53%; animation-duration: 7.1s; animation-delay: -3.9s; }
.s6 { left: 61%; animation-duration: 9.8s; animation-delay: -0.7s; }
.s7 { left: 70%; animation-duration: 6.5s; animation-delay: -4.2s; }
.s8 { left: 78%; animation-duration: 8.8s; animation-delay: -2.8s; }
.s9 { left: 86%; animation-duration: 7.7s; animation-delay: -5.2s; }
.s10 { left: 17%; animation-duration: 10.1s; animation-delay: -6.1s; }
.s11 { left: 48%; animation-duration: 7.9s; animation-delay: -1.8s; }
.s12 { left: 91%; animation-duration: 9.4s; animation-delay: -3.4s; }

@keyframes spark-fall {
  0% {
    transform: translate3d(0, -12vh, 0) scale(0.5);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(-70px, 105vh, 0) scale(1.05);
    opacity: 0;
  }
}

.shell {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 24px 20px;
  position: relative;
  z-index: 10;
}

.hero {
  width: min(1000px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(-6vh);
}

.logo {
  width: min(940px, 94vw);
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-apm {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(6rem, 12vw, 8.9rem);
  line-height: 0.86;
  letter-spacing: 0.025em;
  font-weight: 500;
  color: var(--gold-strong);
  text-rendering: geometricPrecision;
}

.logo-rule {
  width: min(610px, 72vw);
  height: 2px;
  margin: 14px 0 14px;
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.95), rgba(212, 175, 90, 1), rgba(201, 162, 74, 0.95));
  box-shadow: 0 0 12px rgba(201, 162, 74, 0.12);
}

.logo-sub {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(0.92rem, 1.75vw, 1.16rem);
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  white-space: nowrap;
}

.copy {
  max-width: 680px;
  margin-top: 52px;
}

.kicker {
  margin: 0 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  font-weight: 700;
  color: var(--text-soft);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.7vw, 4rem);
  line-height: 0.98;
  color: var(--text);
  text-wrap: balance;
}

.socials {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 20;
  display: flex;
  gap: 12px;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(221, 179, 96, 0.24);
  color: var(--gold-strong);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(221, 179, 96, 0.1);
  border-color: rgba(221, 179, 96, 0.5);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-trigger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #151515;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(221, 179, 96, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(221, 179, 96, 0.3);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 50;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100dvh - 124px);
  overflow: auto;
  border-radius: 28px;
  background: rgba(10, 10, 10, 0.97);
  border: 1px solid rgba(221, 179, 96, 0.24);
  box-shadow: var(--shadow);
  padding: 26px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-kicker {
  display: block;
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
}

.modal h2 {
  margin: 0;
  font-size: 1.8rem;
}

.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(221, 179, 96, 0.6);
  box-shadow: 0 0 0 4px rgba(221, 179, 96, 0.12);
}

.submit-button {
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #151515;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-note,
.form-feedback {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .shell {
    min-height: 100dvh;
    height: 100dvh;
    padding: 5vh 18px 18px;
    align-items: center;
  }

  .hero {
    transform: translateY(-6vh);
    width: min(620px, 100%);
  }

  .logo {
    width: min(620px, 94vw);
    margin-bottom: 16px;
  }

  .logo-apm {
    font-size: clamp(4.4rem, 17vw, 6.6rem);
    letter-spacing: 0.02em;
  }

  .logo-rule {
    width: min(420px, 76vw);
    margin: 12px 0 12px;
  }

  .logo-sub {
    font-size: clamp(0.68rem, 2.35vw, 0.92rem);
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .copy {
    margin-top: 42px;
  }

  .kicker {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 5.8vw, 2.1rem);
    letter-spacing: 0.08em;
  }

  h1 {
    margin-bottom: 0;
    font-size: clamp(1.72rem, 8.4vw, 2.9rem);
  }

  .socials {
    top: 18px;
    right: 18px;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }

  .modal {
    right: 16px;
    left: 16px;
    bottom: 88px;
    width: auto;
    max-height: calc(100dvh - 112px);
  }

  .contact-trigger {
    right: 16px;
    bottom: 16px;
    width: auto;
    padding: 14px 20px;
    font-size: 0.94rem;
  }
}
