/* ===========================
   VARIABEL WARNA & TIPOGRAFI
   =========================== */
:root {
  --bg: #111010;
  --text: #ffffff;
  --text-muted: #A9A69F;
  --accent-gold: #eaa037;
  --accent-red: #af0000;
  --line: rgba(80, 31, 144, 0.14);

  --font-serif: 'Fraunces', serif;
  --font-sans: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* body.is-loading mengunci scroll selama preloader tampil */
body.is-loading {
  overflow: hidden;
  height: 100vh;
}

/* ===========================
   PRELOADER
   =========================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.preloader-word {
  font-family: var(--font-serif);
  font-size: clamp(24px, 5vw, 52px);
  color: var(--text);
  display: inline-block;
  text-align: center;
  padding: 0 24px;
}

/* ===========================
   NAVIGASI
   =========================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  z-index: 10;
  mix-blend-mode: difference;
}

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  padding: 0 48px;
  gap: 40px;
}

.hero-inner {
  max-width: 620px;
}

.hero-kicker {
  color: var(--accent-gold);
  font-size: 15px;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  cursor: default;
  display: inline-block;
}

/* setiap huruf dibungkus span oleh JS agar bisa digerakkan sendiri-sendiri */
.hero-name .char {
  display: inline-block;
}

.hero-role {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.hero-cta-arrow {
  transition: transform 0.25s ease;
}

.hero-cta:hover .hero-cta-arrow {
  transform: translateX(4px);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  max-width: 200px;
}

.line {
  stroke: var(--line);
  stroke-width: 1;
}

.dot {
  fill: var(--accent-teal);
}

/* ===========================
   ECOSYSTEM SECTION
   =========================== */
.ecosystem {
  padding: 140px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.section-kicker {
  color: var(--accent-gold);
  font-size: 15px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  margin-bottom: 56px;
  max-width: 560px;
}

.eco-list {
  display: flex;
  flex-direction: column;
}

.eco-row {
  display: grid;
  grid-template-columns: 260px 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  opacity: 0; /* di-reveal lewat GSAP saat scroll */
  transform: translateY(24px);
}

.eco-list .eco-row:last-child {
  border-bottom: 1px solid var(--line);
}

.eco-name {
  font-family: var(--font-serif);
  font-size: 22px;
}

.eco-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.eco-arrow {
  font-size: 20px;
  color: var(--accent-red);
  justify-self: end;
  transition: transform 0.25s ease;
}

.eco-row:hover .eco-arrow {
  transform: translateX(6px);
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
  padding: 150px 48px 100px;
  text-align: center;
}
.section-title {
  text-align: center;
  width: 100%;
  max-width: none; /* atau kalau memang butuh max-width, tambahkan margin di bawah */
  margin-left: auto;
  margin-right: auto;
}

.contact-text {
  color: var(--text-muted);
  margin: 16px 0 28px;
}

.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--accent-gold);
  text-decoration: none;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 720px) {
  .topbar {
    padding: 20px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 60px;
    text-align: left;
  }

  .hero-visual {
    display: none;
  }

  .ecosystem,
  .contact {
    padding-left: 24px;
    padding-right: 24px;
  }

  .eco-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .eco-arrow {
    justify-self: start;
  }
}
