/* ==========================================================
   Ngoendang Tamoe — Landing Page
   Token dasar ada di :root, ubah di sini kalau perlu
   menyesuaikan warna/ukuran secara global.
   ========================================================== */

:root {
  --color-bg:        #0a0a0a;
  --color-bg-alt:     #111110;
  --color-fg:        #f5f5f3;
  --color-fg-muted:  #8a8a85;
  --color-line:      rgba(245, 245, 243, 0.15);
  --color-line-soft: rgba(245, 245, 243, 0.08);

  --font-display: "Cinzel", serif;
  --font-body:    "Jost", sans-serif;

  --maxw: 1120px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 1px solid var(--color-fg);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------- Header ---------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: var(--space-3) var(--space-3) 0;
  text-align: center;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--color-fg-muted);
}

.brand-mark--small { font-size: 13px; }

/* ---------------- Hero ---------------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-3);
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%, var(--color-bg-alt) 0%, var(--color-bg) 70%);
}

.hero__inner {
  max-width: 620px;
  text-align: center;
}

.gapura {
  width: 96px;
  margin: 0 auto var(--space-3);
  color: var(--color-fg-muted);
  opacity: 0;
  animation: gapura-in 1.1s ease-out 0.15s forwards;
}

.gapura svg { width: 100%; height: auto; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 7vw, 56px);
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-2);
  opacity: 0;
  animation: rise-in 1s ease-out 0.4s forwards;
}

.hero__tagline {
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 300;
  color: var(--color-fg-muted);
  max-width: 46ch;
  margin: 0 auto;
  opacity: 0;
  animation: rise-in 1s ease-out 0.65s forwards;
}

@keyframes gapura-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  display: inline-block;
  margin-top: var(--space-5);
  opacity: 0;
  animation: rise-in 1s ease-out 0.9s forwards;
}

.scroll-cue__line {
  display: block;
  width: 1px;
  height: 40px;
  margin: 0 auto;
  background: var(--color-line);
  position: relative;
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-fg);
  animation: cue-drip 2.2s ease-in-out infinite;
}

@keyframes cue-drip {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* ---------------- Section shared ---------------- */

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-3);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 var(--space-2);
}

.section-head p {
  color: var(--color-fg-muted);
  font-size: 15px;
  margin: 0;
}

/* ---------------- Themes ---------------- */

.themes {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
}

.theme-card {
  border: 1px solid var(--color-line);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.theme-card:hover {
  border-color: rgba(245, 245, 243, 0.4);
  background: var(--color-bg-alt);
}

.theme-card--soon {
  border-style: dashed;
}

.theme-card--soon:hover {
  border-color: var(--color-line);
  background: transparent;
}

.theme-card__icon {
  width: 40px;
  color: var(--color-fg-muted);
  margin-bottom: var(--space-3);
}

.theme-card__icon svg { width: 100%; height: auto; }

.theme-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 var(--space-1);
}

.theme-card__desc {
  color: var(--color-fg-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 var(--space-3);
}

.theme-card__link {
  font-size: 13px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.theme-card__link:hover { border-color: var(--color-fg); }

.theme-card__soon-label {
  font-size: 13px;
  color: var(--color-fg-muted);
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--color-line-soft);
  padding: var(--space-4) var(--space-3);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.footer__contact {
  font-size: 13px;
  color: var(--color-fg-muted);
}

.footer__contact a { border-bottom: 1px solid transparent; }
.footer__contact a:hover { border-color: var(--color-fg-muted); }

.footer__dot { margin: 0 var(--space-1); }

.footer__note {
  font-size: 12px;
  color: var(--color-fg-muted);
  opacity: 0.7;
}

@media (min-width: 640px) {
  .footer__inner { flex-direction: row; justify-content: space-between; }
}
