/* ============================================================
   Rakumaro Game Studio — Landing Page
   Tema: gelap hangat, cozy, sesuai logo (hitam + krem + teal)
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #101312;
  --panel: #151917;
  --panel-2: #1a1f1c;
  --line: rgba(243, 233, 210, 0.10);
  --line-strong: rgba(243, 233, 210, 0.18);

  --cream: #f3e9d2;
  --cream-dim: #b9b096;
  --duck: #f6cf6f;
  --duck-deep: #e0a93e;
  --teal: #43a39c;
  --teal-bright: #5cc4bb;
  --teal-deep: #2f7a78;

  --radius: 20px;
  --nav-h: 72px;
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--teal-deep); color: var(--cream); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1160px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  object-position: center 45%;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}

.nav-links > a:hover { color: var(--cream); }

.nav-links .nav-cta {
  color: var(--bg);
  background: var(--duck);
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-links .nav-cta:hover {
  background: var(--duck-deep);
  transform: translateY(-1px);
}

.lang-toggle {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--teal-deep);
  color: var(--cream);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  overflow: hidden;
  /* glow hangat menyerupai suasana logo */
  background:
    radial-gradient(60% 45% at 50% 30%, rgba(67, 163, 156, 0.16), transparent 70%),
    radial-gradient(45% 35% at 50% 75%, rgba(246, 207, 111, 0.10), transparent 70%),
    var(--bg);
}

.hero-inner {
  position: relative;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(67, 163, 156, 0.10);
  border: 1px solid rgba(67, 163, 156, 0.30);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-logo-wrap {
  position: relative;
  margin-bottom: 8px;
}

.hero-logo {
  width: clamp(220px, 38vw, 360px);
  height: auto;
  border-radius: 32px;
  filter: drop-shadow(0 24px 60px rgba(67, 163, 156, 0.25));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* zzz di samping logo */
.zzz {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal-bright);
  opacity: 0;
  animation: zzzRise 3.6s ease-in-out infinite;
  pointer-events: none;
}

.zzz.z1 { top: 8%; right: -6%; font-size: 1.4rem; }
.zzz.z2 { top: 2%; right: -14%; font-size: 1.9rem; animation-delay: 1.2s; }
.zzz.z3 { top: -8%; right: -20%; font-size: 2.4rem; animation-delay: 2.4s; }

@keyframes zzzRise {
  0% { opacity: 0; transform: translate(0, 10px) rotate(8deg); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(14px, -26px) rotate(14deg); }
}

.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  margin: 18px 0 14px;
}

.hero-title span { display: block; }
.hero-title .accent { color: var(--duck); }

.hero-sub {
  color: var(--cream-dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 620px;
  margin-bottom: 30px;
}

/* Tombol store */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-radius: 16px;
  background: var(--cream);
  color: #131313;
  border: 1px solid var(--line-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(246, 207, 111, 0.22);
  background: #fff8e8;
}

.store-icon { width: 30px; height: 30px; flex-shrink: 0; }

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.store-btn-text small {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.store-btn-text strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cream-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

/* Daun melayang */
.leaf {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  animation: leafDrift 14s linear infinite;
  filter: saturate(0.8);
}

.leaf-1 { top: 12%; left: 8%;  font-size: 26px; }
.leaf-2 { top: 30%; right: 10%; font-size: 20px; animation-delay: -4s; animation-duration: 17s; }
.leaf-3 { top: 55%; left: 14%;  font-size: 22px; animation-delay: -8s; animation-duration: 20s; }
.leaf-4 { top: 20%; right: 26%; font-size: 16px; animation-delay: -2s; animation-duration: 15s; }
.leaf-5 { top: 70%; right: 18%; font-size: 24px; animation-delay: -11s; animation-duration: 18s; }

@keyframes leafDrift {
  0%   { opacity: 0; transform: translate(0, -10px) rotate(0deg); }
  15%  { opacity: 0.5; }
  85%  { opacity: 0.4; }
  100% { opacity: 0; transform: translate(60px, 120px) rotate(220deg); }
}

/* Petunjuk scroll */
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.scroll-hint svg { width: 22px; height: 22px; animation: bob 1.8s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ============ SECTIONS UMUM ============ */
.section { padding: 100px 0; position: relative; }

.kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-bright);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 18px;
}

.section-sub {
  text-align: center;
  color: var(--cream-dim);
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ============ TENTANG ============ */
.about {
  background:
    radial-gradient(40% 50% at 85% 20%, rgba(67, 163, 156, 0.07), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--cream-dim);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.05rem;
}

.about-sign {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--duck);
  font-size: 1.1rem;
}

/* ============ FITUR ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(67, 163, 156, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(67, 163, 156, 0.12);
  border: 1px solid rgba(67, 163, 156, 0.28);
  margin-bottom: 18px;
}

.feature-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--cream);
}

.feature-card p {
  color: var(--cream-dim);
  font-size: 0.95rem;
}

/* Stagger animasi kartu */
.feature-grid .feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-grid .feature-card:nth-child(5) { transition-delay: 0.32s; }
.feature-grid .feature-card:nth-child(6) { transition-delay: 0.40s; }

/* ============ CTA BAND ============ */
.cta-band { padding-bottom: 120px; }

.cta-inner {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(246, 207, 111, 0.12), transparent 65%),
    radial-gradient(70% 90% at 50% 100%, rgba(67, 163, 156, 0.16), transparent 65%),
    var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 72px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-inner h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  max-width: 620px;
}

.cta-inner p { color: var(--cream-dim); max-width: 520px; margin-bottom: 14px; }

.cta-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: rgba(243, 233, 210, 0.05);
  padding: 6px;
  object-fit: contain;
  margin-bottom: 4px;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(243, 233, 210, 0.06);
  border: 1px solid var(--line);
  color: var(--cream-dim);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  color: var(--duck);
  border-color: rgba(246, 207, 111, 0.45);
  transform: translateY(-3px);
}

.socials svg { width: 20px; height: 20px; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  width: 72px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.footer-tagline {
  color: var(--cream-dim);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 6px;
}

.footer-col a, .footer-col span {
  color: var(--cream-dim);
  font-size: 0.95rem;
  width: fit-content;
}

.footer-col a:hover { color: var(--duck); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--cream-dim);
  font-size: 0.85rem;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--panel-2);
  color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(12, 14, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    z-index: 90;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links > a { padding: 12px 8px; font-size: 1.05rem; }
  .nav-links .nav-cta { text-align: center; margin-top: 6px; }

  .lang-toggle { justify-content: center; margin-top: 10px; }
  .lang-btn { padding: 8px 20px; }

  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .store-btn { width: 100%; max-width: 300px; justify-content: center; }

  .zzz.z1 { right: 0; }
  .zzz.z2 { right: -8%; }
  .zzz.z3 { right: -12%; }

  .cta-inner { padding: 56px 22px; }
}

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