@charset "UTF-8";
/* ==========================================================================
   Landing page promosi — Undangan Digital Game
   ========================================================================== */

/* ---- Variables ---- */
:root {
  --krem: #f3ece1;
  --kertas: #fffaf4;
  --tinta: #45392f;
  --tinta-lembut: #7d6d5f;
  --sage: #7d9070;
  --sage-gelap: #5f7256;
  --sage-glow: rgba(125, 144, 112, .35);
  --emas: #b8985a;
  --emas-glow: rgba(184, 152, 90, .25);
  --blush: #c98ba0;
  --garis: #e2d6c4;

  --bg-hero-1: #1a2418;
  --bg-hero-2: #2a1f18;
  --bg-section: #faf6f0;
  --bg-section-alt: #f3ece1;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 8px 32px rgba(69, 57, 47, .10);
  --shadow-float: 0 16px 48px rgba(69, 57, 47, .14);
  --shadow-glow-sage: 0 0 40px var(--sage-glow);
  --shadow-glow-emas: 0 0 40px var(--emas-glow);

  --transition-base: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--tinta);
  background: var(--bg-section);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--emas);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tinta-lembut);
  max-width: 560px;
  margin: 0 auto 40px;
}
.text-center { text-align: center; }

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ====================================================================
   NAVBAR
   ==================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}
.navbar.scrolled {
  background: rgba(26, 36, 24, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .3);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.nav-brand span { color: var(--emas); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
  transition: color var(--transition-base);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 9px 22px !important;
  background: linear-gradient(135deg, var(--sage), var(--sage-gelap)) !important;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(95, 114, 86, .35);
  transition: transform var(--transition-base), box-shadow var(--transition-base) !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(95, 114, 86, .45); }

.nav-toggle {
  display: none;
  background: none;
  color: #fff;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; fill: currentColor; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(26, 36, 24, .96);
    backdrop-filter: blur(12px);
    padding: 20px;
    gap: 16px;
    animation: slideDown .3s ease;
  }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } }

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(155deg, var(--bg-hero-1) 0%, #1f2a1c 40%, var(--bg-hero-2) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(125, 144, 112, .15), transparent),
    radial-gradient(ellipse 500px 350px at 80% 20%, rgba(184, 152, 90, .12), transparent),
    radial-gradient(ellipse 300px 300px at 50% 50%, rgba(201, 139, 160, .08), transparent);
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}
.particle--gold { background: radial-gradient(circle, rgba(184, 152, 90, .6), rgba(184, 152, 90, 0)); }
.particle--sage { background: radial-gradient(circle, rgba(125, 144, 112, .5), rgba(125, 144, 112, 0)); }
.particle--blush { background: radial-gradient(circle, rgba(201, 139, 160, .4), rgba(201, 139, 160, 0)); }

@keyframes floatParticle {
  0%   { opacity: 0; transform: translateY(100vh) rotate(0deg) scale(.5); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10vh) rotate(360deg) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 20px 60px;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--emas);
  background: rgba(184, 152, 90, .12);
  border: 1px solid rgba(184, 152, 90, .25);
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emas);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 8px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--emas), #d4b778, var(--blush));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(.95rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .62);
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 999px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-gelap) 100%);
  box-shadow: 0 6px 24px rgba(95, 114, 86, .4);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(95, 114, 86, .5); }

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 6px 24px rgba(255, 255, 255, .08);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .35);
  font-size: .68rem;
  letter-spacing: .14em;
  animation: bob 2s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 20px; height: 20px; fill: currentColor; }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Decorative corner ornaments on hero */
.hero-ornament {
  position: absolute;
  width: 120px; height: 120px;
  opacity: .12;
  pointer-events: none;
}
.hero-ornament--tl { top: 20px; left: 20px; border-top: 2px solid var(--emas); border-left: 2px solid var(--emas); }
.hero-ornament--tr { top: 20px; right: 20px; border-top: 2px solid var(--emas); border-right: 2px solid var(--emas); }
.hero-ornament--bl { bottom: 20px; left: 20px; border-bottom: 2px solid var(--emas); border-left: 2px solid var(--emas); }
.hero-ornament--br { bottom: 20px; right: 20px; border-bottom: 2px solid var(--emas); border-right: 2px solid var(--emas); }

/* ====================================================================
   FEATURE CARDS — "Apa Saja Isinya?"
   ==================================================================== */
.features {
  padding: 100px 0;
  background: var(--bg-section);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}
.feature-card {
  position: relative;
  padding: 32px 26px 28px;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--emas));
  opacity: 0;
  transition: opacity var(--transition-base);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--krem);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.feature-icon img {
  width: 36px; height: 36px;
  image-rendering: pixelated;
  object-fit: contain;
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--tinta-lembut);
}

/* ====================================================================
   HOW IT WORKS — "Cara Kerjanya"
   ==================================================================== */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-section-alt) 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
  counter-reset: step;
}
.step {
  position: relative;
  text-align: center;
  padding: 40px 24px 32px;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--sage), var(--sage-gelap));
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px var(--sage-glow);
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--tinta-lembut);
}
/* Arrow connectors between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 62px;
  right: -19px;
  width: 28px;
  height: 2px;
  background: var(--garis);
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .step:not(:last-child)::after { display: none; }
}

/* ====================================================================
   PREVIEW — "Lihat Tampilannya"
   ==================================================================== */
.preview {
  padding: 100px 0;
  background: linear-gradient(155deg, var(--bg-hero-1) 0%, #1f2a1c 40%, var(--bg-hero-2) 100%);
  color: #fff;
  overflow: hidden;
}
.preview .section-title { color: #fff; }
.preview .section-desc { color: rgba(255, 255, 255, .6); }

.preview-showcase {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.preview-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}
.preview-frame img {
  width: 100%;
  display: block;
}
.preview-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  pointer-events: none;
}
/* Glowing accents */
.preview-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}
.preview-glow--1 {
  width: 300px; height: 300px;
  top: -60px; left: -80px;
  background: var(--sage-glow);
}
.preview-glow--2 {
  width: 250px; height: 250px;
  bottom: -40px; right: -60px;
  background: var(--emas-glow);
}

/* Pixel art strip */
.pixel-strip {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pixel-item {
  text-align: center;
  transition: transform var(--transition-base);
}
.pixel-item:hover { transform: translateY(-4px) scale(1.08); }
.pixel-item img {
  width: 48px; height: 48px;
  image-rendering: pixelated;
  margin: 0 auto 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
}
.pixel-item span {
  display: block;
  font-size: .68rem;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .06em;
}

/* ====================================================================
   ADVANTAGES — "Mengapa Pilih Kami?"
   ==================================================================== */
.advantages {
  padding: 100px 0;
  background: var(--bg-section-alt);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.advantage-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.advantage-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.advantage-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.advantage-card p {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--tinta-lembut);
}

/* ====================================================================
   STATS COUNTER
   ==================================================================== */
.stats {
  padding: 70px 0;
  background: var(--bg-section);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base);
}
.stat-item:hover { transform: translateY(-3px); }
.stat-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--sage-gelap);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--tinta-lembut);
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================================
   CTA
   ==================================================================== */
.cta {
  padding: 100px 0;
  background: linear-gradient(155deg, var(--bg-hero-1) 0%, #1f2a1c 50%, var(--bg-hero-2) 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 30% 60%, rgba(125, 144, 112, .12), transparent),
    radial-gradient(ellipse 400px 250px at 70% 30%, rgba(184, 152, 90, .10), transparent);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta .section-title {
  color: #fff;
  margin-bottom: 18px;
}
.cta-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
  max-width: 480px;
  margin: 0 auto 36px;
}
.cta-ornament {
  position: absolute;
  width: 200px; height: 200px;
  border: 1px solid rgba(184, 152, 90, .08);
  border-radius: 50%;
  pointer-events: none;
}
.cta-ornament--1 { top: -60px; left: -40px; }
.cta-ornament--2 { bottom: -80px; right: -50px; width: 280px; height: 280px; }

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer {
  padding: 40px 0;
  background: #151a13;
  text-align: center;
  color: rgba(255, 255, 255, .4);
  font-size: .8rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 8px;
}
.footer-brand span { color: var(--emas); }
.footer p { line-height: 1.7; }
.footer a { color: var(--emas); transition: color var(--transition-base); }
.footer a:hover { color: #d4b778; }
.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 16px auto;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 480px) {
  .hero-content { padding: 90px 16px 50px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .features, .how-it-works, .advantages, .preview, .cta { padding: 70px 0; }
  .hero-ornament { width: 60px; height: 60px; }
}

/* ====================================================================
   PREFERS REDUCED MOTION
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
