/* Palm Beach Glow – Coming Soon
   Elevated black + gold spray tan brand
   Responsive: mobile-first, desktop enhanced */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0;400;500;600;1;400&family=Montserrat:wght@300;400;500&display=swap');

:root {
  --bg: #090909;
  --bg-soft: #141414;
  --gold: #c9a227;
  --gold-light: #e5c76b;
  --gold-dim: #8b7312;
  --text: #f5f2eb;
  --text-muted: #b3aba0;
  /* Responsive spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.25rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
  --space-2xl: 3rem;
  --main-max: 420px;
  --logo-max: 520px;
  --intro-veil-duration: 1.35s;
  --intro-spark-duration: 1s;
  --intro-rise-duration: 0.9s;
  --logo-glint-duration: 1.25s;
  --deco-shimmer-duration: 3s;
}

@media (min-width: 48rem) {
  :root {
    --main-max: 38rem;
    --logo-max: 640px;
    --space-lg: 2.5rem;
    --space-xl: 3rem;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at 50% 22%, rgba(229, 199, 107, 0.06), transparent 48%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.98), rgba(8, 8, 8, 1));
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(229, 199, 107, 0.2), transparent 52%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 1));
}

.intro-veil__spark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    rgba(201, 162, 39, 0),
    rgba(229, 199, 107, 0.3),
    rgba(201, 162, 39, 0)
  );
  filter: blur(2px);
}

/* Subtle gold gradient orbs in background */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -10%;
  right: -10%;
}
body::after {
  width: 30vmax;
  height: 30vmax;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  bottom: -5%;
  left: -10%;
}

/* Film-grain layer to keep black from feeling flat */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.5) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: orb-pulse 8s ease-in-out infinite; }
  body::after  { animation: orb-pulse 10s ease-in-out infinite 1s; }
}

@keyframes orb-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.22; }
}

/* Subtle gold shimmer layer */
.gold-shimmer-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  color: var(--gold);
}
.gold-shimmer {
  position: absolute;
  width:  min(180px, 40vw);
  height: min(180px, 40vw);
}
.gold-shimmer--tl { top: 8%; left: 5%; }
.gold-shimmer--br { bottom: 8%; right: 5%; }

main {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(92vw, var(--main-max));
  transform: translateY(-2vh);
}

.main-reveal {
  opacity: 1;
}

.intro-glint-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.intro-glint-sweep {
  position: absolute;
  top: 10%;
  bottom: 8%;
  left: -44%;
  width: 26%;
  background: linear-gradient(
    90deg,
    rgba(229, 199, 107, 0),
    rgba(229, 199, 107, 0.18),
    rgba(229, 199, 107, 0)
  );
  transform: skewX(-16deg);
  filter: blur(2px);
}

.intro-item {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  filter: blur(4px);
}

@media (prefers-reduced-motion: no-preference) {
  .intro-veil {
    animation: intro-veil-fade var(--intro-veil-duration) ease forwards;
  }

  .intro-veil__spark {
    animation: intro-spark-sweep var(--intro-spark-duration) ease-out 0.08s forwards;
  }

  .intro-item {
    animation: intro-rise var(--intro-rise-duration) cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  .intro-item--logo { animation-delay: 0.26s; }
  .intro-item--deco { animation-delay: 0.45s; }
  .intro-item--title { animation-delay: 0.63s; }
  .intro-item--tagline { animation-delay: 0.82s; }
  .intro-item--cta { animation-delay: 1.01s; }
}

.logo-wrap {
  margin-bottom: 28px;
  position: relative;
  overflow: visible;
}

.logo-wrap img,
.logo-wrap svg {
  width: 100%;
  max-width: min(100%, var(--logo-max));
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .intro-glint-sweep {
    animation: logo-glint var(--logo-glint-duration) ease-out 0.62s forwards;
  }
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.55rem, 6.3vw, 2rem);
  color: var(--gold-light);
  letter-spacing: 0.18em;
  line-height: 1.22;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tagline {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 30ch;
  margin: 0 auto 26px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  padding: 0.75rem 1.7rem;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.12s ease;
  will-change: transform;
}

.cta:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.cta:active {
  transform: scale(0.985);
}

/* Floating chat widget */
.chat-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;
  width: 62px;
  height: 62px;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  --chat-spray-delay: 1.56s;
  --chat-shape-delay: 1.8s;
  --chat-icon-delay: 2.02s;
}

.chat-fab__shape {
  position: absolute;
  inset: 4px;
  border-radius: 18px 18px 18px 8px;
  border: 1px solid rgba(201, 162, 39, 0.56);
  background: linear-gradient(158deg, rgba(18, 18, 18, 0.97), rgba(8, 8, 8, 0.99));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(229, 199, 107, 0.1) inset;
  opacity: 0;
  transform: scale(0.93);
  filter: blur(2.6px);
}

.chat-fab__shape::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  left: 10px;
  bottom: -4px;
  border-radius: 3px;
  background: rgba(14, 14, 14, 0.98);
  border-left: 1px solid rgba(201, 162, 39, 0.5);
  border-bottom: 1px solid rgba(201, 162, 39, 0.5);
  transform: rotate(42deg);
}

.chat-fab__spray {
  position: absolute;
  inset: -14px;
  border-radius: 30px 30px 30px 16px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(229, 199, 107, 0.95) 0.48px, transparent 1.05px),
    radial-gradient(circle, rgba(229, 199, 107, 0.82) 0.42px, transparent 0.98px),
    radial-gradient(circle, rgba(229, 199, 107, 0.66) 0.4px, transparent 0.94px),
    radial-gradient(circle, rgba(229, 199, 107, 0.52) 0.35px, transparent 0.88px),
    radial-gradient(circle, rgba(229, 199, 107, 0.34) 0.32px, transparent 0.82px);
  background-size: 10px 10px, 9px 9px, 8px 8px, 7px 7px, 6px 6px;
  background-position: -18px 6px, -12px 2px, -8px 8px, -5px 4px, -2px 10px;
  opacity: 0;
  filter: blur(0.24px);
}

.chat-fab__spray::before {
  content: '';
  position: absolute;
  inset: -12% -20%;
  background: linear-gradient(
    100deg,
    rgba(229, 199, 107, 0),
    rgba(229, 199, 107, 0.3),
    rgba(229, 199, 107, 0)
  );
  transform: translateX(-35%) skewX(-10deg);
  opacity: 0;
}

.chat-fab__icon {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  fill: var(--gold-light);
  opacity: 0;
  transform: translateY(1px) scale(0.94);
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3));
}

.chat-fab:hover,
.chat-fab:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.23));
}

.chat-fab:focus-visible {
  outline: 2px solid rgba(229, 199, 107, 0.45);
  outline-offset: 2px;
}

.chat-fab:active {
  transform: scale(0.985);
}

.chat-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7;
  background: rgba(6, 6, 6, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.chat-modal-backdrop.is-open {
  opacity: 1;
}

.chat-modal {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px));
  width: min(92vw, 320px);
  border: 1px solid rgba(229, 199, 107, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 8%, rgba(229, 199, 107, 0.12), transparent 40%),
    rgba(12, 12, 12, 0.96);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
  padding: 1rem 0.95rem 0.9rem;
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.chat-modal-backdrop.is-open .chat-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chat-modal h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.2rem;
}

.chat-modal__note {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.chat-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chat-form {
  display: grid;
  gap: 0.52rem;
}

.chat-form label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chat-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(229, 199, 107, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0.6rem 0.72rem;
  font: inherit;
}

.chat-form input:focus-visible {
  outline: 2px solid rgba(229, 199, 107, 0.5);
  outline-offset: 1px;
}

.chat-form button {
  margin-top: 0.3rem;
  min-height: 44px;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold-light);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}

.chat-form button:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.14);
}

/* Decorative gold line + shimmer */
.deco {
  width: 60px;
  height: 1px;
  margin: 0 auto 18px;
  opacity: 0.8;
}

.deco-line {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .deco-line {
    animation: shimmer var(--deco-shimmer-duration) ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deco-line { animation: none; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes intro-spark-sweep {
  from { left: -35%; opacity: 0; }
  20% { opacity: 1; }
  to { left: 120%; opacity: 0; }
}

@keyframes intro-veil-fade {
  0%, 56% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes logo-glint {
  from { left: -40%; opacity: 0; }
  18% { opacity: 1; }
  to { left: 120%; opacity: 0; }
}

@keyframes spray-noise-build {
  0% {
    opacity: 0;
    background-position: -34px 6px, -28px 2px, -24px 8px, -20px 4px, -16px 10px;
    transform: translateX(-26%) scale(0.94);
    filter: blur(0.15px);
  }
  20% {
    opacity: 0.95;
    background-position: -10px 6px, -8px 2px, -7px 8px, -6px 4px, -4px 10px;
    transform: translateX(-8%) scale(1.03);
  }
  52% {
    opacity: 0.86;
    background-position: 10px 6px, 12px 2px, 14px 8px, 16px 4px, 18px 10px;
    transform: translateX(14%) scale(1.05);
  }
  78% {
    opacity: 0.4;
    background-position: 24px 6px, 28px 2px, 32px 8px, 35px 4px, 38px 10px;
    transform: translateX(30%) scale(1.02);
    filter: blur(0.36px);
  }
  100% {
    opacity: 0;
    background-position: 34px 6px, 40px 2px, 46px 8px, 52px 4px, 58px 10px;
    transform: translateX(38%) scale(0.98);
    filter: blur(0.5px);
  }
}

@keyframes spray-direction-pass {
  0% {
    opacity: 0;
    transform: translateX(-42%) skewX(-12deg);
  }
  35% {
    opacity: 0.84;
  }
  100% {
    opacity: 0;
    transform: translateX(38%) skewX(-12deg);
  }
}

@keyframes spray-direction-pass-2 {
  0% {
    opacity: 0;
    transform: translateX(-18%) skewX(-10deg);
  }
  30% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translateX(46%) skewX(-10deg);
  }
}

@keyframes bubble-materialize {
  0% {
    opacity: 0;
    transform: scale(0.93);
    filter: blur(2.6px);
  }
  45% {
    opacity: 0.58;
    transform: scale(0.97);
    filter: blur(1.4px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes icon-reveal {
  from {
    opacity: 0;
    transform: translateY(1px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .chat-fab__spray {
    animation:
      spray-noise-build 0.46s linear var(--chat-spray-delay) both,
      spray-noise-build 0.24s linear calc(var(--chat-spray-delay) + 0.08s) both;
  }

  .chat-fab__spray::before {
    animation:
      spray-direction-pass 0.32s ease-out calc(var(--chat-spray-delay) + 0.04s) both,
      spray-direction-pass-2 0.2s ease-out calc(var(--chat-spray-delay) + 0.14s) both;
  }

  .chat-fab__shape {
    animation: bubble-materialize 0.34s ease-out var(--chat-shape-delay) both;
  }

  .chat-fab__icon {
    animation: icon-reveal 0.2s ease-out var(--chat-icon-delay) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-veil,
  .intro-glint-layer {
    display: none;
  }

  .main-reveal {
    animation: reduce-fade 0.22s ease-out both;
  }

  .intro-item {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .chat-fab,
  .chat-fab__spray,
  .chat-fab__spray::before,
  .chat-fab__shape,
  .chat-fab__icon,
  .chat-modal-backdrop,
  .chat-modal {
    animation: none;
    transition: none;
  }

  .chat-fab__shape,
  .chat-fab__icon {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes reduce-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 48rem) {
  main {
    transform: translateY(0);
  }

  .logo-wrap {
    margin-bottom: var(--space-xl);
  }

  h1 {
    font-size: clamp(1.8rem, 3.8vw, 2.25rem);
    margin-bottom: 1.2rem;
  }

  .tagline {
    margin-bottom: 2rem;
  }
}

/* iPhone-style pass: slower, softer, less "flashy" */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 430px) and (prefers-reduced-motion: no-preference) {
    :root {
      --intro-veil-duration: 1.52s;
      --intro-spark-duration: 1.1s;
      --intro-rise-duration: 1.02s;
      --logo-glint-duration: 1.38s;
      --deco-shimmer-duration: 4.8s;
    }

    body::before,
    body::after {
      opacity: 0.1;
    }

    .intro-veil {
      background:
        radial-gradient(circle at 50% 46%, rgba(229, 199, 107, 0.16), transparent 54%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 1));
    }

    .intro-item--logo { animation-delay: 0.32s; }
    .intro-item--deco { animation-delay: 0.54s; }
    .intro-item--title { animation-delay: 0.74s; }
    .intro-item--tagline { animation-delay: 0.96s; }
    .intro-item--cta { animation-delay: 1.16s; }

    .deco {
      opacity: 0.72;
    }

    .chat-fab {
      --chat-spray-delay: 1.66s;
      --chat-shape-delay: 1.92s;
      --chat-icon-delay: 2.14s;
    }
  }
}
