/* ─────────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────────── */
:root {
  --gold: #d4a843;
  --gold-light: #e8c56a;
  --gold-dark: #b8922e;
  --gold-glow: rgba(212, 168, 67, 0.25);
  --navy: #0d1535;
  --navy-mid: #162050;
  --navy-light: #1e2d6a;
  --surface: rgba(18, 28, 65, 0.85);
  --surface-hi: rgba(25, 38, 82, 0.95);
  --ink: #08102a;
  --white: #f5f1e8;
  --white-dim: #c0b89a;
  --white-ghost: rgba(245, 241, 232, 0.06);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────────
   BACKGROUND
───────────────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(212, 168, 67, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(212, 168, 67, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}
.bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(30, 45, 106, 0.9) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 100%,
      rgba(20, 32, 80, 0.6) 0%,
      transparent 60%
    );
}
.bg-hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(212, 168, 67, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* grain */
.grain {
  position: fixed;
  inset: -200%;
  width: 400%;
  height: 400%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-drift 8s steps(10) infinite;
}
@keyframes grain-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  20% {
    transform: translate(3%, 1%);
  }
  30% {
    transform: translate(-1%, 4%);
  }
  40% {
    transform: translate(2%, -2%);
  }
  50% {
    transform: translate(-3%, 2%);
  }
  60% {
    transform: translate(1%, -4%);
  }
  70% {
    transform: translate(3%, 3%);
  }
  80% {
    transform: translate(-2%, 1%);
  }
  90% {
    transform: translate(1%, -1%);
  }
}

/* particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(0.3);
  }
}

/* ─────────────────────────────────────────────────
   PAGE SHELL
───────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────── */
header {
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  opacity: 0;
  animation: fade-down 0.8s ease 0.2s forwards;
}
.header-coords {
  font-family: "Syncopate", sans-serif;
  font-size: 7px;
  letter-spacing: 0.28em;
  color: rgba(212, 168, 67, 0.55);
  text-align: center;
  line-height: 1.85;
}

/* ─────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 24px 40px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  font-family: "Syncopate", sans-serif;
  font-size: 7px;
  letter-spacing: 0.48em;
  color: rgba(212, 168, 67, 0.6);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fade-up 0.9s ease 0.5s forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.5));
}
.hero-eyebrow::after {
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.5), transparent);
}

.hero-headline {
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 5.8vw, 88px);
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--white);
  opacity: 0;
  animation: fade-up 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
  position: relative;
}
.hero-headline .line2 {
  color: rgba(212, 168, 67, 0.75);
}
.hero-headline .num {
  color: var(--gold);
}

.hero-sub {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 4vw, 30px);
  color: var(--gold-light);
  letter-spacing: 0.12em;
  margin-top: 18px;
  opacity: 0;
  animation: fade-up 0.9s ease 1s forwards;
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.3);
}

/* ornament */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 24px;
  opacity: 0;
  animation: fade-up 0.9s ease 1.1s forwards;
}
.ornament-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.35));
}
.ornament-line.right {
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.35), transparent);
}
.ornament-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.7;
}
.ornament-dot {
  width: 3px;
  height: 3px;
  background: rgba(212, 168, 67, 0.5);
  border-radius: 50%;
}

/* ─────────────────────────────────────────────────
   STATS
───────────────────────────────────────────────── */
.stats {
  display: flex;
  width: 100%;
  max-width: 420px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up 0.9s ease 1.2s forwards;
  border: 1px solid rgba(212, 168, 67, 0.25);
  background: rgba(18, 28, 65, 0.7);
}
.stat {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(212, 168, 67, 0.18);
}
.stat-num {
  font-family: "Syncopate", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  display: block;
}
.stat-label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 13px;
  color: rgba(212, 168, 67, 0.6);
  letter-spacing: 0.06em;
  display: block;
  margin-top: 3px;
}

/* ─────────────────────────────────────────────────
   FORM
───────────────────────────────────────────────── */
.form-wrap {
  width: 100%;
  max-width: 420px;
  opacity: 0;
  animation: fade-up 0.9s ease 1.4s forwards;
}

.form-card {
  background: rgba(22, 34, 76, 0.96);
  border: 1px solid rgba(212, 168, 67, 0.45);
  padding: 28px 22px 24px;
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.form-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.3;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: "Syncopate", sans-serif;
  font-size: 7px;
  letter-spacing: 0.32em;
  color: rgba(212, 168, 67, 0.9);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 13px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  transition: border-color 0.25s, background 0.25s;
}
.field input::placeholder {
  color: rgba(245, 241, 232, 0.28);
}
.field input:focus {
  border-color: rgba(212, 168, 67, 0.75);
  background: rgba(255, 255, 255, 0.11);
}

/* phone */
.phone-wrap {
  display: flex;
}
.phone-prefix {
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-right: none;
  color: rgba(212, 168, 67, 0.95);
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 400;
  padding: 13px 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.04em;
}
.phone-wrap input {
  flex: 1;
  border-left: none;
}

/* type cards */
.type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.type-card {
  border: 1px solid rgba(212, 168, 67, 0.25);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.type-card:hover {
  border-color: rgba(212, 168, 67, 0.5);
  background: rgba(212, 168, 67, 0.06);
}
.type-card.selected {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.12);
}
.type-card.selected .tc-dot {
  opacity: 1;
}
.tc-dot {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s;
}
.tc-num {
  font-family: "Syncopate", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.tc-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.65);
  line-height: 1.4;
}

/* submit */
.submit-btn {
  width: 100%;
  margin-top: 10px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: "Syncopate", sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding: 17px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.submit-btn:hover::before,
.submit-btn:active::before {
  transform: translateX(0);
}
.submit-btn span {
  position: relative;
  z-index: 1;
}

.disclaimer {
  text-align: center;
  margin-top: 13px;
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  font-style: italic;
  color: rgba(245, 241, 232, 0.38);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* success */
.success-state {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.success-state.show {
  display: block;
}
.success-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
}
#error {
  display: none;
  color: red;
  text-align: left;
  font-family: "Syncopate", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.success-title {
  font-family: "Syncopate", sans-serif;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.success-sub {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--white-dim);
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────────
   COMING SOON — HERO FEATURE
───────────────────────────────────────────────── */
.cs-section {
  padding: 52px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  opacity: 0;
  animation: fade-up 0.9s ease 1.8s forwards;
}
.cs-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.cs-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(
    ellipse,
    rgba(212, 168, 67, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: cs-pulse 4s ease-in-out infinite;
}
@keyframes cs-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}
.cs-label {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(36px, 12vw, 80px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  position: relative;
  text-shadow: 0 0 80px rgba(212, 168, 67, 0.35);
  animation: cs-text-pulse 3.5s ease-in-out infinite;
}
@keyframes cs-text-pulse {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 80px rgba(212, 168, 67, 0.35);
  }
  50% {
    opacity: 0.82;
    text-shadow: 0 0 120px rgba(212, 168, 67, 0.55);
  }
}
.cs-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 18px;
}
.cs-deco-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.5));
}
.cs-deco-line.r {
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.5), transparent);
}
.cs-deco-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.cs-sub {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  color: rgba(212, 168, 67, 0.6);
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────────
   FOOTER (slim)
───────────────────────────────────────────────── */
footer {
  padding: 16px 24px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(212, 168, 67, 0.12);
  opacity: 0;
  animation: fade-up 0.9s ease 2s forwards;
}
.footer-meta {
  font-family: "Syncopate", sans-serif;
  font-size: 7px;
  letter-spacing: 0.28em;
  color: rgba(212, 168, 67, 0.6);
  text-transform: uppercase;
  line-height: 1.9;
}
.footer-meta.r {
  text-align: right;
}

/* ─────────────────────────────────────────────────
   TICKER
───────────────────────────────────────────────── */
.ticker-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 34px;
  background: rgba(8, 16, 40, 0.98);
  border-top: 1px solid rgba(212, 168, 67, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
}
.ticker-item {
  font-family: "Syncopate", sans-serif;
  font-size: 7.5px;
  letter-spacing: 0.38em;
  color: rgba(212, 168, 67, 0.85);
  text-transform: uppercase;
  padding: 0 28px;
}
.ticker-item .sep {
  color: var(--gold);
  margin: 0 8px;
  opacity: 0.9;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ─────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────
   TABLET  ≥ 640px
───────────────────────────────────────────────── */
@media (min-width: 640px) {
  header {
    padding: 20px 48px;
  }
  .header-coords {
    font-size: 8px;
    letter-spacing: 0.3em;
  }

  .hero {
    padding: 60px 32px 52px;
  }
  .hero-headline {
    font-size: clamp(38px, 7vw, 88px);
  }

  .stats {
    max-width: 480px;
  }
  .stat {
    padding: 20px 24px;
  }
  .stat-num {
    font-size: 26px;
  }

  .form-wrap {
    max-width: 460px;
  }
  .form-card {
    padding: 36px 32px 30px;
  }
  .form-title {
    font-size: 24px;
  }

  footer {
    padding: 18px 48px 52px;
  }
}

/* ─────────────────────────────────────────────────
   DESKTOP ≥ 1024px + hover cursor
───────────────────────────────────────────────── */
@media (min-width: 1024px) {
  body {
    cursor: none;
  }
  #cursor,
  #cursor-ring {
    display: block;
  }

  .hero-headline {
    font-size: clamp(52px, 7vw, 88px);
  }
}

/* ─────────────────────────────────────────────────
   CUSTOM CURSOR (desktop)
───────────────────────────────────────────────── */
#cursor,
#cursor-ring {
  display: none;
}
#cursor {
  position: fixed;
  z-index: 9999;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed;
  z-index: 9998;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.45s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s;
}
body:has(button:hover) #cursor-ring,
body:has(.type-card:hover) #cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--gold);
}

/* ─────────────────────────────────────────────────
   TOWER BG SVG
───────────────────────────────────────────────── */
.tower-bg {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 80vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: tower-reveal 3s ease 0.5s forwards;
}
@keyframes tower-reveal {
  to {
    opacity: 1;
  }
}
