/* ============================================================
   mawarslot.my.id — "Cyber-dark Luxury Vault"
   Palette • Emblem • Hooks • CTA • Micro-states
   ============================================================ */

:root {
  --void:        #050505;
  --void-2:      #0a0708;
  --white:       #f5f5f7;
  --silver:      #c9c9ce;
  --silver-dim:  #7c7c84;

  --gold:        #D4AF37;
  --gold-light:  #f6e7a8;
  --gold-deep:   #b8912a;
  --gold-glow:   rgba(212, 175, 55, 0.45);

  --red:         #D90429;
  --red-deep:    #9d0420;
  --red-glow:    rgba(217, 4, 41, 0.55);

  --ease-lux:    cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Ambient depth (bottomless obsidian void) ---------- */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 48% at 50% 36%, rgba(217, 4, 41, 0.11), transparent 70%),
    radial-gradient(46% 38% at 50% 62%, rgba(212, 175, 55, 0.06), transparent 75%),
    radial-gradient(130% 130% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.9) 100%);
}

/* Subtle film grain for tactile luxury */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   1. THE EMBLEM — abstract geometric rose
   ============================================================ */
.emblem {
  position: relative;
  width: 180px;
  height: 180px;
  animation: breathe 4.4s ease-in-out infinite;
  will-change: transform, filter;
}

.ring { position: absolute; inset: 0; }
.ring--outer { animation: spin 42s linear infinite; }
.ring--inner { transform: rotate(22.5deg) scale(0.58); opacity: 0.92; }

.petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 82px;
  margin: -82px 0 0 -22px;          /* anchor petal base at emblem center */
  transform-origin: 50% 100%;
  border-radius: 50% 50% 48% 48% / 70% 70% 32% 32%;
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0) 0%,
    rgba(212, 175, 55, 0.30) 38%,
    rgba(217, 4, 41, 0.62) 100%
  );
  box-shadow: 0 0 14px rgba(217, 4, 41, 0.18);
  filter: blur(0.4px);
  opacity: 0.82;
}

/* radial fan */
.petal:nth-child(1) { transform: rotate(0deg); }
.petal:nth-child(2) { transform: rotate(45deg); }
.petal:nth-child(3) { transform: rotate(90deg); }
.petal:nth-child(4) { transform: rotate(135deg); }
.petal:nth-child(5) { transform: rotate(180deg); }
.petal:nth-child(6) { transform: rotate(225deg); }
.petal:nth-child(7) { transform: rotate(270deg); }
.petal:nth-child(8) { transform: rotate(315deg); }

.bud {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--gold-light), var(--gold) 46%, var(--red) 100%);
  box-shadow: 0 0 18px var(--gold-glow), 0 0 34px var(--red-glow);
}

/* infinite breathing neon pulse */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0 12px rgba(217, 4, 41, 0.45))
      drop-shadow(0 0 28px rgba(212, 175, 55, 0.22));
  }
  50% {
    transform: scale(1.055);
    filter:
      drop-shadow(0 0 26px rgba(217, 4, 41, 0.85))
      drop-shadow(0 0 58px rgba(212, 175, 55, 0.5));
  }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   2. THE HOOK
   ============================================================ */
.headline {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fbf1c8 0%, var(--gold) 56%, #9c7a22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(212, 175, 55, 0.14);
}

.sub {
  margin: 0;
  max-width: 38ch;
  color: var(--silver);
  font-weight: 300;
  font-size: clamp(0.98rem, 2.4vw, 1.18rem);
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.divider {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ============================================================
   3. THE GATEWAY (CTA)
   ============================================================ */
.cta-wrap { padding: 4px; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1205;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 40px rgba(212, 175, 55, 0.25),
    0 2px 10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  will-change: transform;
  transition:
    box-shadow 0.5s var(--ease-lux),
    background 0.6s var(--ease-lux),
    color 0.4s ease;
}

/* sheen sweep on hover */
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s var(--ease-lux);
}
.cta:hover::before { left: 165%; }

.cta:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, #c2161f 58%, var(--red) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 30px var(--red-glow),
    0 0 64px rgba(217, 4, 41, 0.35),
    0 12px 50px rgba(0, 0, 0, 0.7);
}

.cta-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  will-change: transform;
}

/* ============================================================
   4. FOOTER
   ============================================================ */
.footer-text {
  margin: 0;
  color: var(--silver-dim);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ============================================================
   Reveal scaffolding (progressive enhancement)
   ============================================================ */
.reveal { opacity: 1; }            /* visible by default (no-JS safe) */
.js .reveal { opacity: 0; }        /* hidden only when JS is active */

/* ============================================================
   Accessibility — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .emblem, .ring--outer { animation: none !important; }
  .cta::before { transition: none; }
  .js .reveal { opacity: 1; }
}