/* ==========================================================================
   Nyappa — situs marketing (dark luxe)
   Charcoal canvas, satu aksen kuning brand, Hanken Grotesk, minimal & clean.
   Static murni: tanpa build step.
   ========================================================================== */

:root {
  --bg: #0E0F11;
  --bg-2: #121316;
  --surface: #16181B;
  --surface-2: #1C1F23;
  --border: #272A30;
  --hairline: #1E2125;
  --ink: #ECEEF1;
  --muted: #9A9EA6;
  --faint: #6C7077;
  --brand: #FCC903;
  --brand-2: #FFD83A;
  --brand-ink: #1A1408;
  --brand-glow: rgba(252, 201, 3, 0.16);
  --danger: #FF6670;

  --maxw: 1140px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 18px 50px -24px rgba(0, 0, 0, 0.65);
}

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

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

body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Atmosfer: glow brand + grain ------------------------------------------- */
.glow {
  position: fixed;
  top: -28vh;
  left: 50%;
  width: min(1100px, 120vw);
  height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}
.glow--low {
  top: auto;
  bottom: -30vh;
  opacity: 0.6;
}

body::before { /* grain overlay */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.06; font-weight: 800; }
.brand-text { color: var(--brand); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 15, 17, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--brand);
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: 0.3s var(--ease); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 14px 34px -14px var(--brand-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -16px rgba(252, 201, 3, 0.45); background: var(--brand-2); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--faint); }
.btn--sm { padding: 11px 18px; font-size: 14px; }

/* Store badges ------------------------------------------------------------ */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--faint); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .label { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .label small { font-size: 11px; color: var(--muted); font-weight: 600; }
.store-badge .label strong { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.store-badge .soon {
  position: absolute;
  top: -9px; right: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Hero -------------------------------------------------------------------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(60px, 8vw, 100px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  margin: 22px 0 0;
}
.hero .lede {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 30ch;
  margin: 22px 0 34px;
}
.hero-cta { display: flex; flex-direction: column; gap: 22px; }
.hero-note { color: var(--faint); font-size: 13.5px; }

/* Phone mockup ------------------------------------------------------------ */
.phone-stage { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: 290px;
  height: 600px;
  border-radius: 44px;
  background: linear-gradient(160deg, #202327, #0d0e10);
  padding: 11px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: rotateY(-14deg) rotateX(4deg) rotateZ(1deg);
  transition: transform 0.6s var(--ease);
}
.phone:hover { transform: rotateY(-6deg) rotateX(2deg); }
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  border: 1px solid #000;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #000; border-radius: 999px; z-index: 5;
}
.scr-top { display: flex; align-items: center; justify-content: space-between; padding: 30px 18px 12px; }
.scr-top .wm { font-size: 19px; font-weight: 900; letter-spacing: -0.05em; color: var(--brand); }
.scr-toggle { width: 42px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.scr-toggle::after { content: ""; position: absolute; right: 3px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.scr-tabs { display: flex; gap: 8px; padding: 4px 14px 12px; }
.scr-tab { flex: 1; text-align: center; font-size: 11px; font-weight: 800; padding: 9px 0; border-radius: 11px; border: 1px solid var(--border); color: var(--muted); }
.scr-tab.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.scr-match { margin: 0 14px 12px; padding: 13px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; }
.scr-match .ic { width: 18px; height: 18px; border-radius: 6px; background: var(--brand); flex: none; }
.scr-card { margin: 0 14px 10px; padding: 13px; border-radius: 13px; border: 1px solid var(--hairline); background: var(--surface); }
.scr-card .row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.scr-card .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #b98e00); flex: none; }
.scr-card .nm { height: 9px; width: 70px; background: var(--surface-2); border-radius: 4px; }
.scr-card .nm.sm { width: 44px; height: 7px; margin-top: 5px; }
.scr-card .ln { height: 7px; border-radius: 4px; background: var(--surface-2); margin-bottom: 6px; }
.scr-card .ln.w1 { width: 92%; } .scr-card .ln.w2 { width: 75%; } .scr-card .ln.w3 { width: 60%; }
.scr-nav { position: absolute; bottom: 14px; left: 14px; right: 14px; height: 50px; border-radius: 18px; background: rgba(28,31,35,0.9); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; backdrop-filter: blur(8px); }
.scr-nav .d { width: 18px; height: 18px; border-radius: 6px; background: var(--surface-2); }
.scr-nav .d.on { background: var(--brand); }

/* Section heads ----------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 620px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 18px 0 0; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012), transparent); }

/* Feature grid ------------------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 28px 26px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border); background: var(--surface-2); }
.feature .fi {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand-glow);
  border: 1px solid rgba(252, 201, 3, 0.25);
  margin-bottom: 20px;
}
.feature .fi svg { width: 24px; height: 24px; stroke: var(--brand); }
.feature h3 { font-size: 19px; font-weight: 800; }
.feature p { color: var(--muted); margin-top: 9px; font-size: 15.5px; line-height: 1.6; }

/* Steps band -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { position: relative; padding-top: 18px; }
.step .num { font-size: 15px; font-weight: 900; color: var(--brand); letter-spacing: 0.05em; }
.step h3 { font-size: 21px; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; background: var(--brand); border-radius: 3px; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(252, 201, 3, 0.08), transparent 60%),
    var(--surface);
  padding: clamp(46px, 7vw, 78px) 28px;
  box-shadow: var(--shadow-soft);
}
.cta-card h2 { font-size: clamp(30px, 4.6vw, 52px); }
.cta-card p { color: var(--muted); max-width: 46ch; margin: 16px auto 30px; font-size: 18px; }
.cta-card .stores { justify-content: center; }

/* Prose (support / privacy) ---------------------------------------------- */
.page-head { padding: clamp(70px, 10vw, 120px) 0 0; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 18px; }
.page-head .upd { color: var(--faint); margin-top: 16px; font-size: 14px; }
.prose { padding: 44px 0 clamp(70px, 10vw, 120px); max-width: 760px; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; font-weight: 800; letter-spacing: -0.02em; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; font-weight: 700; color: var(--ink); }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose ul { color: var(--muted); margin: 0 0 18px 20px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(252,201,3,0.35); }
.prose a:hover { border-bottom-color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 700; }
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p { margin: 0; color: var(--ink); }

/* FAQ --------------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 700; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }

.contact-card {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding: 26px 28px; margin-top: 30px;
}
.contact-card h3 { font-size: 20px; }
.contact-card p { color: var(--muted); margin-top: 4px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--hairline); padding: 60px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .wordmark { display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: 15px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 11px; font-size: 15px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; border-top: 1px solid var(--hairline); margin-top: 44px; padding-top: 26px; color: var(--faint); font-size: 13.5px; }

/* Reveal animations ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

@keyframes floatIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { animation: floatIn 0.7s var(--ease) both; }
.hero h1 { animation: floatIn 0.7s var(--ease) 0.08s both; }
.hero .lede { animation: floatIn 0.7s var(--ease) 0.16s both; }
.hero .hero-cta { animation: floatIn 0.7s var(--ease) 0.24s both; }
.hero .phone-stage { animation: floatIn 0.9s var(--ease) 0.3s both; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lede { max-width: 46ch; }
  .phone-stage { order: -1; margin-bottom: 8px; }
  .phone { transform: none; width: 264px; height: 548px; }
  .phone:hover { transform: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: rgba(14,15,17,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hairline); padding: 10px 24px 24px; transform: translateY(-120%); transition: transform 0.35s var(--ease); align-items: flex-start; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; width: 100%; font-size: 17px; border-bottom: 1px solid var(--hairline); }
  .nav-links a::after { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: block; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

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