/* ============================================================
   Seftavia.com — "Editorial Atelier"
   Feminim · profesional · hangat
   ============================================================ */

:root {
  /* palette */
  --porcelain: #f6efe7;   /* warm paper background */
  --porcelain-2: #efe5da;
  --ink: #2e1f26;         /* deep aubergine ink */
  --ink-soft: #5c4a52;
  --rose: #b9756f;        /* dusty rose accent */
  --rose-deep: #9c5953;
  --blush: #e7c4bd;       /* soft blush */
  --petal: #f3c9d4;       /* soft petal pink — nuansa anak gadis */
  --candy: #e58aa3;       /* warm rose-pink */
  --gold: #b89150;        /* champagne gold */
  --gold-soft: #d8bd8a;
  --line: rgba(46, 31, 38, 0.16);

  --serif: "Fraunces", Georgia, serif;
  --caps: "Marcellus", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--sans);
  background: var(--porcelain);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

::selection { background: var(--rose); color: var(--porcelain); }

/* grain overlay for paper texture */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.italic { font-style: italic; }
.gold { color: var(--gold); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: rgba(246, 239, 231, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.4rem;
  color: var(--blush); background: var(--ink); border-radius: 50%;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.05); }
.brand-word {
  font-family: var(--serif); font-weight: 400; font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px;
  width: 0; background: var(--rose); transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav-cta {
  padding: 9px 20px; border: 1px solid var(--ink); border-radius: 100px;
  color: var(--ink) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--porcelain) !important; }

.menu-toggle {
  display: none; flex-direction: column; gap: 6px; background: none;
  border: none; cursor: pointer; padding: 6px;
}
.menu-toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }
.menu-toggle.open span:first-child { transform: translateY(3.7px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-3.7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 64px) 0;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; min-height: 78vh;
}
.hero-aura {
  position: absolute; top: -8%; right: -6%; width: 60%; height: 80%; z-index: -1;
  background: radial-gradient(circle at 60% 40%, var(--petal), transparent 62%);
  opacity: 0.7; filter: blur(10px);
}

.eyebrow {
  font-family: var(--caps); letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.74rem; color: var(--rose-deep); margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 0.98;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.hero-title span { display: block; }
.hero-title .italic { margin-left: 0.6em; }

/* nama lengkap + binti */
.hero-binti {
  font-family: var(--caps); letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.82rem; color: var(--rose-deep); margin-bottom: 30px;
}
.hero-binti::before {
  content: "♡ "; color: var(--candy);
}

/* kerlip manis di eyebrow & judul */
.sparkle {
  display: inline-block; color: var(--candy);
  animation: twinkle 2.6s var(--ease) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-lead {
  max-width: 46ch; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 34px;
}
.hero-lead strong { color: var(--ink); font-weight: 500; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn {
  font-family: var(--caps); font-size: 0.86rem; letter-spacing: 0.06em;
  padding: 14px 30px; border-radius: 100px; transition: 0.4s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--porcelain); }
.btn-solid:hover { background: var(--rose-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* tombol unik untuk jualan token game */
.btn-game {
  position: relative; overflow: hidden;
  color: #fff; border: none;
  background: linear-gradient(120deg, var(--candy), var(--rose-deep));
  box-shadow: 0 12px 26px -12px rgba(229,138,163,0.8);
}
.btn-game::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-game:hover { transform: translateY(-2px); }
.btn-game:hover::before { transform: translateX(120%); }
.btn-game--lg {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 1rem; padding: 18px 38px; margin-top: 8px;
}
.btn-game__arrow { transition: transform 0.4s var(--ease); }
.btn-game--lg:hover .btn-game__arrow { transform: translateX(5px); }

.hero-stats { display: flex; gap: clamp(24px, 4vw, 50px); }
.hero-stats dt {
  font-family: var(--serif); font-size: 2.1rem; font-weight: 400; color: var(--rose-deep);
}
.hero-stats dd {
  font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}

/* hero portrait */
.hero-portrait { position: relative; justify-self: center; color: var(--gold-soft); }
.frame {
  position: relative; width: clamp(240px, 32vw, 380px); aspect-ratio: 4/5;
  border-radius: 200px 200px 14px 14px; overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(46, 31, 38, 0.5);
  border: 1px solid rgba(255,255,255,0.4);
}
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.frame-tag {
  position: absolute; background: var(--porcelain); color: var(--ink);
  font-family: var(--caps); font-size: 0.72rem; letter-spacing: 0.08em;
  padding: 7px 14px; border-radius: 100px; box-shadow: 0 8px 20px -10px rgba(0,0,0,0.4);
}
.frame-tag--tl { top: 18px; left: -14px; }
.frame-tag--br { bottom: 26px; right: -14px; color: var(--rose-deep); }
.hero-arc {
  position: absolute; inset: -26px -26px auto auto; width: 70%; height: 70%;
  top: -26px; right: -26px; opacity: 0.5; z-index: -1;
}

/* marquee */
.marquee {
  grid-column: 1 / -1; margin: clamp(40px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 26px; white-space: nowrap; width: max-content;
  animation: slide 26s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft);
}
.marquee-track .dot { color: var(--rose); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- shared section bits ---------- */
.section-index {
  font-family: var(--caps); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.76rem; color: var(--rose-deep); margin-bottom: 22px;
}
.section-index.light { color: var(--gold-soft); }

/* ---------- ABOUT ---------- */
.about {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 11vw, 150px) clamp(20px, 5vw, 64px);
}
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 64px); }
.about-title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3.3vw, 2.7rem);
  line-height: 1.18; letter-spacing: -0.01em;
}
.about-title em { color: var(--rose-deep); }
.about-body p { color: var(--ink-soft); margin-bottom: 18px; max-width: 42ch; }
.about-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about-tags li {
  font-family: var(--caps); font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 100px;
}

/* ---------- GALLERY ---------- */
.gallery {
  background: var(--ink); color: var(--porcelain);
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 64px);
  border-radius: 40px 40px 0 0; position: relative; overflow: hidden;
}
.gallery::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 60%; background: radial-gradient(circle, rgba(184,117,111,0.35), transparent 65%);
  pointer-events: none;
}
.gallery-head { text-align: center; max-width: 620px; margin: 0 auto clamp(40px, 6vw, 64px); }
.gallery-title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1;
}
.gallery-sub { color: rgba(246,239,231,0.6); margin-top: 14px; font-size: 0.96rem; }

.slider { position: relative; max-width: 1100px; margin: 0 auto; }
.slider-viewport { overflow: hidden; border-radius: 20px; }
.slider-track { display: flex; transition: transform 0.7s var(--ease); }
.slide {
  min-width: 100%; position: relative; aspect-ratio: 16/10;
}
.slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  filter: saturate(0.92) contrast(1.02) brightness(1.0);
}
/* blush duotone so any photo harmonises with the palette — dibuat lembut agar wajah tetap cerah */
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(243,201,212,0.28), rgba(46,31,38,0.28));
  mix-blend-mode: multiply;
}
.slide-caption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: clamp(20px, 4vw, 40px); width: 100%;
  background: linear-gradient(to top, rgba(46,31,38,0.78), transparent);
}
.slide-caption .num {
  font-family: var(--caps); letter-spacing: 0.14em; font-size: 0.74rem; color: var(--gold-soft);
}
.slide-caption h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem); margin-top: 6px;
}

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  background: rgba(246,239,231,0.92); border: none; color: var(--ink);
  display: grid; place-items: center; transition: 0.3s var(--ease);
}
.slider-arrow svg { width: 22px; height: 22px; }
.slider-arrow:hover { background: var(--rose); color: var(--porcelain); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-foot {
  max-width: 1100px; margin: 26px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.dots { display: flex; gap: 10px; }
.dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(246,239,231,0.3); transition: 0.3s var(--ease); padding: 0;
}
.dots button.active { background: var(--gold-soft); width: 26px; border-radius: 100px; }

.thumbs { display: flex; gap: 10px; }
.thumbs button {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 1px solid transparent; padding: 0; background: none; opacity: 0.45;
  transition: 0.3s var(--ease);
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { opacity: 1; border-color: var(--gold-soft); }

/* ---------- SERVICES ---------- */
.services {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 11vw, 150px) clamp(20px, 5vw, 64px);
}
.services-title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: clamp(36px, 5vw, 60px); max-width: 18ch;
}
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.service { background: var(--porcelain); padding: clamp(28px, 3.5vw, 44px); transition: background 0.4s var(--ease); }
.service:hover { background: var(--porcelain-2); }
.service-no {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--rose);
  display: block; margin-bottom: 26px;
}
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 12px; }
.service p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- TOKEN GAME (UNIGAME) ---------- */
.token {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(20px, 5vw, 60px) clamp(20px, 5vw, 64px) clamp(60px, 9vw, 110px);
}
.token-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px);
  border-radius: 32px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(243,201,212,0.55), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(216,189,138,0.4), transparent 55%),
    var(--porcelain-2);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 40px 80px -50px rgba(46,31,38,0.55);
}
.token-glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 80%; pointer-events: none;
  background: radial-gradient(circle, rgba(229,138,163,0.32), transparent 65%);
}
.token-card .section-index { color: var(--rose-deep); }
.token-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.04;
}
.token-lead {
  max-width: 52ch; margin: 16px auto 0; color: var(--ink-soft); font-size: 1.05rem;
}
.token-lead strong { color: var(--ink); font-weight: 600; }
.token-tags {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 26px 0 30px;
}
.token-tags li {
  font-family: var(--caps); font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--line);
}
.token-note {
  margin-top: 16px; font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--ink); color: var(--porcelain);
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 64px); text-align: center;
}
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05; margin: 8px 0 18px;
}
.contact-lead { color: rgba(246,239,231,0.62); font-size: 1.05rem; margin-bottom: 40px; }
.contact-mail {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold-soft); position: relative; display: inline-block;
}
.contact-mail::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold-soft); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.contact-mail:hover::after { transform: scaleX(1); }
.contact-social {
  display: flex; gap: 14px; justify-content: center; margin-top: 44px;
  font-family: var(--caps); letter-spacing: 0.06em; font-size: 0.9rem;
}
.contact-social span { color: rgba(246,239,231,0.3); }
.contact-social a { color: rgba(246,239,231,0.7); transition: color 0.3s; }
.contact-social a:hover { color: var(--gold-soft); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink); color: rgba(246,239,231,0.6);
  border-top: 1px solid rgba(246,239,231,0.12);
  padding: 30px clamp(20px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem;
}
.site-footer .brand-word { color: var(--porcelain); font-size: 1.2rem; }
.to-top { color: var(--gold-soft); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.09s);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 50px; }
  .hero-portrait { order: -1; margin-bottom: 20px; }
  .about-grid, .service-list { grid-template-columns: 1fr; }
  .service-list { gap: 1px; }

  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--porcelain); border-bottom: 1px solid var(--line);
    padding: 10px 0; transform: translateY(-130%); transition: transform 0.45s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 28px; width: 100%; text-align: center; }
  .nav-cta { margin: 10px auto; width: max-content; }
  .menu-toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
