/* =========================================================
   Awan Pintar — mengikuti Brand Guidelines
   Warna   : Kuning FFC20E · Biru 0089CF · Biru tua 2B3990 · Abu 414042
   Tipografi: Fashion Fetish (judul) · Helvetica Neue (paragraf)
   ========================================================= */

/* Fashion Fetish bukan font web publik. Letakkan file font di assets/fonts/
   agar dipakai; jika tidak ada, Comfortaa dipakai sebagai pengganti terdekat. */
@font-face {
  font-family: "Fashion Fetish";
  src: local("Fashion Fetish Light"), url("../assets/fonts/FashionFetish-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Fashion Fetish";
  src: local("Fashion Fetish"), local("Fashion Fetish Regular"), url("../assets/fonts/FashionFetish-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fashion Fetish";
  src: local("Fashion Fetish Heavy"), url("../assets/fonts/FashionFetish-Heavy.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --yellow: #FFC20E;
  --yellow-soft: #FFF6DB;
  --blue: #0089CF;
  --indigo: #2B3990;
  --gray: #414042;
  --navy: #0B2D50;        /* latar gelap dari aplikasi kartu nama */
  --navy-deep: #06213D;
  --muted: #77787B;
  --line: #E6E8EC;
  --tint: #F3F8FC;
  --white: #FFFFFF;

  --font-display: "Fashion Fetish", "Comfortaa", "Helvetica Neue", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(11, 45, 80, .35);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--gray); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--font-body); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn-yellow { background: var(--yellow); color: var(--gray); box-shadow: 0 10px 24px -10px rgba(255, 194, 14, .9); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -10px rgba(0, 137, 207, .9); }
.btn-dark { background: var(--gray); color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--blue); }

/* ---------- Brand / logo ---------- */
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { height: 34px; width: auto; }
.brand-word { height: 17px; width: auto; margin-top: 4px; }
.brand img { transition: filter .3s; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
  color: var(--white);
}
/* Varian logo "bright background": semuanya putih */
.site-header .brand img { filter: brightness(0) invert(1); }
.site-header.scrolled {
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--gray);
}
.site-header.scrolled .brand img { filter: none; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-menu { display: flex; align-items: center; gap: 2rem; font-size: .95rem; }
.nav-menu a:not(.btn) { position: relative; opacity: .9; }
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--yellow); transition: width .25s;
}
.nav-menu a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero (gaya halaman "About": biru cerah + jaringan global) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(135deg, #0A9BE3 0%, var(--blue) 45%, #0068B3 100%);
  color: var(--white);
  padding: 150px 0 110px;
}
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 300; }
.hero h1 .hl { font-weight: 700; color: var(--yellow); }
.lead { font-size: 1.15rem; max-width: 34em; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Kartu mockup di hero: game + dashboard */
.hero-visual { position: relative; min-height: 440px; }
.hcard {
  position: absolute; background: var(--white); color: var(--gray);
  border-radius: 24px; padding: 20px; box-shadow: 0 30px 70px -20px rgba(0, 30, 70, .55);
}
.hcard-game { top: 0; left: 0; width: 300px; animation: float 6s ease-in-out infinite; }
.hcard-dash { right: 0; bottom: 60px; width: 270px; animation: float 7s ease-in-out -3s infinite; }
.hcard-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .9rem; }
.hcard-head img { height: 22px; width: auto; }
.badge { margin-left: auto; font-style: normal; font-size: .72rem; padding: .25rem .6rem; border-radius: 99px; background: var(--yellow-soft); color: #9A7200; }
.domino-row { display: flex; justify-content: center; gap: 6px; padding: 1rem 0; --s: 30px; }
.score-row { display: flex; justify-content: space-between; font-size: .85rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.score-row span { color: var(--muted); }
.dash-figure { font: 700 1.35rem var(--font-display); margin: .1rem 0 .8rem; }
.up { color: var(--blue); font: 700 .75rem var(--font-body); }
.warn { color: #B58200; font-size: .75rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(0, 137, 207, .25); }
.bars span.hi { background: var(--blue); }
.bars-lg { height: 130px; gap: 10px; }
.toast {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: .6rem;
  background: var(--navy); color: var(--white); font-size: .82rem;
  padding: .75rem 1rem; border-radius: 14px; box-shadow: var(--shadow);
}
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); animation: pulse 1.6s infinite; }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,194,14,.7); } 100% { box-shadow: 0 0 0 12px rgba(255,194,14,0); } }

/* ---------- Kartu domino (diisi titiknya oleh JS dari data-d) ---------- */
.domino {
  --s: 40px;
  position: relative; display: inline-grid; grid-template-rows: 1fr 1fr;
  width: var(--s); height: calc(var(--s) * 2); flex: none;
  background: var(--white); border: 2px solid var(--gray); border-radius: calc(var(--s) * .2);
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.domino.h { grid-template-rows: none; grid-template-columns: 1fr 1fr; width: calc(var(--s) * 2); height: var(--s); }
.domino::before { content: ""; position: absolute; left: 18%; right: 18%; top: calc(50% - 1px); height: 2px; background: var(--line); }
.domino.h::before { left: calc(50% - 1px); right: auto; top: 18%; bottom: 18%; width: 2px; height: auto; }
.half { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14%; }
.pip { place-self: center; width: 70%; aspect-ratio: 1; border-radius: 50%; }
.pip.on { background: var(--gray); }
.domino .half:first-child .pip.on { background: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 3.5rem; }
.section-head h2, .split-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p:last-child { color: var(--muted); }

/* Produk */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product { padding: 2.75rem; border-radius: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.product h3 { font-size: 1.7rem; font-weight: 700; }
.product ul { list-style: none; padding: 0; margin: .5rem 0 2rem; display: grid; gap: .6rem; }
.product li { position: relative; padding-left: 1.4rem; }
.product li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.product .btn { margin-top: auto; }
.p-ico { width: 60px; height: 60px; margin-bottom: 1.5rem; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.product-game { background: var(--yellow-soft); }
.product-game .p-ico { stroke: #E0A800; }
.product-game li::before { background: var(--yellow); }
.product-biz { background: linear-gradient(145deg, var(--navy), var(--indigo)); color: rgba(255,255,255,.88); }
.product-biz h3 { color: var(--white); }
.product-biz .p-ico { stroke: var(--yellow); }
.product-biz li::before { background: #3FB4F0; }

/* Fitur / modul */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.f-ico { width: 52px; height: 52px; margin-bottom: 1.2rem; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(3n+2) .f-ico { stroke: var(--indigo); }
.feature:nth-child(3n) .f-ico { stroke: #E0A800; }
.feature h3 { font-size: 1.2rem; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; }
.feature-link { display: inline-flex; gap: .4rem; margin-top: 1.1rem; font-weight: 700; color: var(--blue); }
.feature-link span { transition: transform .2s; }
.feature-link:hover span { transform: translateX(4px); }

/* Game unggulan: Domino */
.game-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  background: var(--white); border-radius: 28px; padding: 2.5rem; box-shadow: var(--shadow);
}
.gf-visual {
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 2.5rem;
  min-height: 340px; padding: 2.5rem 1.5rem 2rem; border-radius: 22px;
  background: radial-gradient(circle at 50% 35%, #12457A, var(--navy) 70%);
}
.gf-board { display: flex; gap: 4px; --s: 38px; }
.gf-hand { display: flex; gap: 10px; --s: 32px; }
.gf-hand .domino { box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.gf-hand .lift { transform: translateY(-14px); border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255,194,14,.35), 0 10px 20px rgba(0,0,0,.4); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .35rem .8rem; border-radius: 99px; background: var(--yellow); color: var(--gray); margin-bottom: 1rem; }
.gf-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.gf-copy > p { color: var(--muted); font-size: 1.05rem; }
.gf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.gf-url { color: var(--muted); font-size: .9rem; }
.soon {
  width: fit-content; max-width: 100%; margin: 2.5rem auto 0; text-align: center;
  padding: .8rem 1.5rem; border: 2px dashed rgba(0,137,207,.35); border-radius: 99px; color: var(--muted);
}

/* Aplikasi bisnis */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 2.2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/70% no-repeat;
}
.dash { background: var(--white); border-radius: 24px; padding: 1.75rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.dash-top { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: 1.25rem; }
.dash-top img { height: 24px; width: auto; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.dash-stats > div { background: var(--tint); border-radius: 14px; padding: .9rem; }
.dash-stats small { display: block; color: var(--muted); font-size: .75rem; }
.dash-stats b { display: block; font: 700 1.15rem var(--font-display); margin: .2rem 0; }
.dash-stats span { font-size: .75rem; }
.dash-chart small { display: block; margin-bottom: .75rem; font-size: .8rem; }

/* Cara kerja */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: 16%; right: 16%;
  border-top: 2px dashed rgba(0, 137, 207, .35);
}
.step { position: relative; text-align: center; padding: 0 1rem; }
.step-num {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.4rem;
  border-radius: 50%; background: var(--white); border: 3px solid var(--blue);
  font: 700 1.5rem var(--font-display); color: var(--blue); position: relative;
}
.step:nth-child(2) .step-num { border-color: var(--yellow); color: var(--gray); }
.step:nth-child(3) .step-num { border-color: var(--indigo); color: var(--indigo); }
.step h3 { font-size: 1.25rem; font-weight: 700; }
.step p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 1rem; }
.faq details { background: var(--white); border-radius: 14px; border: 1px solid var(--line); padding: 0 1.5rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2rem 1.25rem 0; position: relative;
  font-weight: 700; color: var(--gray);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--blue); font-size: 1.2rem; transition: background .25s;
}
.faq details[open] summary::after { content: "–"; background: var(--yellow); color: var(--gray); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; }
.faq details a { color: var(--blue); text-decoration: underline; }

/* CTA (gaya halaman penutup: biru tua) */
.cta {
  position: relative; overflow: hidden; color: var(--white); text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(0,137,207,.35), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(43,57,144,.6), transparent 45%),
    var(--navy);
  padding: 100px 0;
}
.cta-inner { max-width: 760px; }
.cta-mark { width: 120px; height: auto; margin: 0 auto 1.5rem; }
.cta h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta p { opacity: .85; }
.cta-form { display: flex; gap: .75rem; max-width: 640px; margin: 2rem auto 0; }
.cta-form input, .cta-form select {
  flex: 1; min-width: 0; padding: .9rem 1.3rem; border-radius: 999px; border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: var(--white); font: 1rem var(--font-body); outline: none;
}
.cta-form select { flex: .8; appearance: none; cursor: pointer;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center/16px no-repeat;
  padding-right: 2.5rem;
}
.cta-form select option { color: var(--gray); }
.cta-form input::placeholder { color: rgba(255,255,255,.6); }
.cta-form input:focus, .cta-form select:focus { border-color: var(--yellow); }
.form-msg { min-height: 1.6em; margin-top: 1rem; color: var(--yellow); }

/* Footer (mengikuti kop surat: ikon bulat biru + garis biru di bawah) */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; padding-bottom: 50px; }
/* Varian logo "dark background": simbol berwarna, tulisan putih */
.brand-light .brand-word { filter: brightness(0) invert(1); }
.footer-about { margin-top: 1rem; max-width: 26em; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; font-size: .92rem; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-list a:hover { color: var(--yellow); }
.c-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.c-dot svg { width: 15px; height: 15px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 24px; }
.footer-stripe { height: 8px; background: var(--blue); }

/* Reveal saat scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .footer-grid, .products, .game-feature { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 130px; }
  .hero-visual { min-height: 0; display: grid; gap: 1.25rem; justify-items: center; margin-top: 1rem; }
  .hcard, .toast { position: static; }
  .hcard { width: min(340px, 100%); }
  .hcard-dash { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 76px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); color: var(--gray); border-radius: 16px; padding: .75rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s;
  }
  .nav-menu a:not(.btn) { padding: .85rem 1rem; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu .btn { margin-top: .5rem; }
  .site-header.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .features, .steps, .contact-list { grid-template-columns: minmax(0, 1fr); }
  .steps::before { display: none; }
  .product { padding: 2rem; }
  .game-feature { padding: 1.25rem; gap: 2rem; }
  .gf-visual { min-height: 0; gap: 2rem; padding: 2rem 1rem; }
  .gf-board { --s: 26px; }
  .gf-hand { --s: 26px; gap: 8px; }
  .dash-stats { grid-template-columns: minmax(0, 1fr); }
  .cta-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
