:root {
  --ink: #1d1b22;
  --grey: #5d5a66;
  --line: #e4e1ea;
  --purple: #6a47b9;
  --purple-dark: #4a3190;
  --tint: #f5f2fb;
  --grad: linear-gradient(180deg, #8f6be0 0%, #6a47b9 52%, #52368f 100%);
  --grad-hover: linear-gradient(180deg, #9a78e8 0%, #7352c4 52%, #5a3d9a 100%);
  --grad-block: linear-gradient(150deg, #8d69df 0%, #6a47b9 45%, #432c82 100%);
  --raise: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(106,71,185,.10), 0 1px 2px rgba(48,30,96,.08), 0 14px 28px -14px rgba(74,49,144,.40);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ------------- buttons (raised) ------------- */
.btn {
  display: inline-block; padding: 15px 26px; border-radius: 12px; border: 0;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn--s { padding: 10px 18px; font-size: .92rem; border-radius: 10px; }
.btn--purple {
  color: #fff; background: var(--grad);
  text-shadow: 0 1px 1px rgba(40,22,86,.45);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 -3px 0 rgba(30,15,70,.28) inset, 0 1px 2px rgba(48,30,96,.3), 0 12px 22px -10px rgba(82,54,143,.75);
}
.btn--purple:hover { background: var(--grad-hover); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 -3px 0 rgba(30,15,70,.28) inset, 0 1px 2px rgba(48,30,96,.3), 0 18px 26px -10px rgba(82,54,143,.8); }
.btn--purple:active, .btn--white:active, .btn--outline:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(30,15,70,.35) inset; }
.btn--outline { color: var(--ink); background: linear-gradient(180deg, #fff, #f1eef7); box-shadow: 0 1px 0 #fff inset, 0 -3px 0 rgba(60,40,110,.10) inset, 0 0 0 1px rgba(60,40,110,.18), 0 10px 18px -10px rgba(48,30,96,.35); }
.btn--outline:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 -3px 0 rgba(60,40,110,.10) inset, 0 0 0 1px rgba(60,40,110,.3), 0 16px 22px -10px rgba(48,30,96,.4); }
.btn--white { color: var(--purple-dark); background: linear-gradient(180deg, #fff, #ece6fa); box-shadow: 0 1px 0 #fff inset, 0 -3px 0 rgba(74,49,144,.18) inset, 0 14px 22px -10px rgba(20,8,60,.6); }
.btn--white:hover { transform: translateY(-2px); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #b79df0; outline-offset: 3px; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------- top bar ------------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 8px 20px -16px rgba(48,30,96,.35); }
.top__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.logo img { border-radius: 9px; box-shadow: 0 4px 10px -4px rgba(74,49,144,.5); }
.top nav { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; font-weight: 500; color: var(--grey); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* ------------- phones ------------- */
.phone {
  width: 100%; max-width: 270px; padding: 8px; border-radius: 34px;
  background: linear-gradient(145deg, #3a3446, #17141d 55%, #2b2536);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 0 0 1px rgba(0,0,0,.4), 0 30px 50px -18px rgba(48,30,96,.55), 0 12px 18px -10px rgba(29,27,34,.4);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1080 / 2380; object-fit: cover; object-position: top; border-radius: 27px; }

/* ------------- hero ------------- */
.hero { overflow: hidden; background: radial-gradient(70% 90% at 85% 30%, #e4dafa 0%, rgba(228,218,250,0) 70%), linear-gradient(180deg, #f6f3fc 0%, #ece5fa 100%); }

/* ------------- features (list + switching phone) ------------- */
.feat { padding: 120px 0 20px; }
.feat h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 40px; }
.feat__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.feat__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feat__list button {
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 18px 22px; border-radius: 16px; border: 0;
  background: #fff; box-shadow: var(--raise);
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.feat__list button:hover { transform: translateY(-2px); }
.feat__list b { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; position: relative; padding-right: 30px; }
.feat__list b::after { content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.5rem; color: var(--purple); }
.feat__list span { display: block; max-height: 0; overflow: hidden; opacity: 0; color: var(--grey); font-size: .96rem; line-height: 1.55; transition: max-height .35s ease, opacity .3s ease, margin .3s; }
.feat__list button[aria-selected="true"] { background: var(--grad); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 -3px 0 rgba(30,15,70,.25) inset, 0 18px 28px -14px rgba(82,54,143,.8); }
.feat__list button[aria-selected="true"]:hover { transform: none; }
.feat__list button[aria-selected="true"] b { color: #fff; text-shadow: 0 1px 1px rgba(40,22,86,.4); }
.feat__list button[aria-selected="true"] b::after { content: '–'; color: #e4d8fc; }
.feat__list button[aria-selected="true"] span { max-height: 160px; opacity: 1; margin-top: 8px; color: #efe8fd; }
.feat__phone { display: flex; justify-content: center; }
.feat__phone .phone { max-width: 270px; }
.phone__screen { position: relative; aspect-ratio: 1080 / 2380; border-radius: 27px; overflow: hidden; background: #fcf7ff; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s ease; border-radius: 0; }
.phone__screen img.on { opacity: 1; }

/* ------------- footer ------------- */
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: .9rem; color: var(--grey); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot__links { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
            .feat { padding-top: 100px; }
  .feat__grid { grid-template-columns: 1fr; gap: 28px; }
  .feat__phone { order: -1; }
  .feat__phone .phone { max-width: 220px; }
  .buttons .btn { flex: 1 1 100%; text-align: center; }
}

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

/* extras */

/* free + maker */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags span { display: inline-block; padding: 7px 14px; border-radius: 9px; font-size: .86rem; font-weight: 800; letter-spacing: .01em; }
.tag-free { color: #fff; background: var(--grad); text-shadow: 0 1px 1px rgba(40,22,86,.4); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 -2px 0 rgba(30,15,70,.25) inset, 0 8px 14px -8px rgba(82,54,143,.8); }
.tag-sale { color: var(--purple-dark); background: linear-gradient(180deg, #fff, #f1ecfb); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(106,71,185,.22), 0 8px 14px -10px rgba(48,30,96,.4); }
.foot a[href*="instagram"] { color: var(--ink); font-weight: 600; }

/* closing CTA */
.btn--ghost { color: #fff; background: rgba(255,255,255,.12); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 0 0 1px rgba(255,255,255,.35), 0 12px 20px -12px rgba(20,8,60,.6); }
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }
.btn--sun { color: #2b1d00; background: linear-gradient(180deg, #ffe08a, #f4c542 60%, #dca820); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 -3px 0 rgba(120,80,0,.25) inset, 0 14px 22px -10px rgba(20,8,60,.6); }
.btn--sun:hover { transform: translateY(-2px); }
.cta { padding: 20px 0 100px; }
.cta__in { background: var(--grad-block); color: #fff; border-radius: 26px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 40px 50px -30px rgba(40,22,86,.75); }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; text-shadow: 0 2px 10px rgba(30,15,70,.3); }
.cta p { margin: 0; color: #e9e1fb; max-width: 30em; }
.cta__btns { display: grid; gap: 12px; }
.cta__btns .btn { text-align: center; }
@media (max-width: 820px) { .cta__in { grid-template-columns: 1fr; gap: 26px; } .cta { padding-bottom: 60px; } }

/* hero v2: centered text + 4 phones */
.hero { padding-top: 76px; }
.hero__in { text-align: center; }
.hero__text { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--grey); max-width: 30em; margin: 0 auto 30px; }
.tags, .buttons { justify-content: center; }
.byline { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; color: var(--grey); font-size: .95rem; font-weight: 600; text-decoration: none; }
.byline:hover { color: var(--purple); }
.byline svg { color: var(--purple); }
.hero__phones-wrap { container-type: inline-size; max-width: 1000px; margin: 48px auto 0; }
.hero__phones { --g: clamp(14px, 2.4vw, 30px); --w: min(232px, calc((100cqw - 3 * var(--g)) / 4)); display: flex; justify-content: center; align-items: flex-start; gap: var(--g); height: calc(var(--w) * 1.47 - 13px); overflow: hidden; }
.hero__phones .phone { flex: 1 1 0; max-width: 232px; }
.hero__phones .phone:nth-child(even) { margin-top: calc(var(--w) * .16); }
@media (max-width: 820px) {
  .hero { padding-top: 48px; }
  .hero__phones-wrap { margin-top: 32px; }
  .hero__phones { --g: 8px; }
  .hero__phones .phone { padding: 4px; border-radius: 18px; }
  .hero__phones .phone img { border-radius: 14px; }
}

/* features: titles only */
.feat__list { gap: 10px; }
.feat__list button { padding: 16px 22px; }
.feat__list b { font-size: 1.08rem; padding-right: 0; }
.feat__list b::after { display: none; }
.feat__list button[aria-selected="true"] b { padding-right: 0; }
.feat__grid { align-items: center; }
@media (max-width: 820px) {
  .feat { padding-top: 70px; }
  .feat h2 { margin-bottom: 24px; }
  .feat__grid { gap: 16px; }
  .feat__phone .phone { max-width: 210px; }
  .feat__list { position: relative; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -24px; padding: 6px 24px 14px; scrollbar-width: none; }
  .feat__list::-webkit-scrollbar { display: none; }
  .feat__list li { flex: none; scroll-snap-align: center; }
  .feat__list button { padding: 11px 18px; border-radius: 999px; white-space: nowrap; }
  .feat__list b { font-size: .95rem; }
}

/* print scene inside features */
.feat__phone { position: relative; }
.phone--main { transition: opacity .35s ease; }
.is-print .phone--main { opacity: 0; }
.scene { position: absolute; left: 50%; bottom: 0; width: 380px; height: 100%; margin-left: -190px; display: flex; align-items: flex-end; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.is-print .scene { opacity: 1; }
.phone--sm { width: 150px; flex: none; margin-bottom: 34px; padding: 6px; border-radius: 24px; }
.phone--sm .phone__screen { border-radius: 18px; }
.phone--sm .phone__screen img { opacity: 1; }
.pbox { position: relative; width: 218px; flex: none; align-self: stretch; }
.receipt { position: absolute; left: 50%; bottom: 112px; width: 178px; margin-left: -89px; padding: 14px 12px 18px; background: #fffdf8; color: #2a2620; font: 500 9.6px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; box-shadow: 0 10px 26px -12px rgba(30,15,70,.5); z-index: 1; transform: translateY(330px);
  -webkit-mask: linear-gradient(#000 0 0) 0 4px / 100% calc(100% - 4px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / 8px 4px repeat-x;
  mask: linear-gradient(#000 0 0) 0 4px / 100% calc(100% - 4px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / 8px 4px repeat-x; }
.go .receipt { transform: none; transition: transform 3s cubic-bezier(.3,.7,.25,1); }
.rc { white-space: nowrap; }
.rc--c { text-align: center; }
.rc--b { font-weight: 800; }
.rc--gap { margin-bottom: 7px; }
.rc--row { display: flex; justify-content: space-between; gap: 6px; }
.rc--sub { padding-left: 8px; color: #5a554b; }
.rc--rule { text-align: center; margin: 2px 0 5px; padding: 2px 0; border-top: 1px dashed #8d887d; border-bottom: 1px dashed #8d887d; }
.printer { position: absolute; left: 0; bottom: 0; width: 218px; height: 124px; z-index: 2; }
.printer__slot { position: absolute; left: 12px; right: 12px; top: 0; height: 20px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #08060d, #1f1a29); }
.printer__face { position: absolute; left: 0; right: 0; top: 14px; bottom: 0; border-radius: 18px 18px 14px 14px; background: linear-gradient(160deg, #3b3448 0%, #1a1623 55%, #2a2436 100%); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 -4px 0 rgba(0,0,0,.35) inset, 0 26px 34px -16px rgba(40,22,86,.7); }
.printer__face::before { content: 'DEWAKASIR'; position: absolute; left: 0; right: 0; top: 34px; text-align: center; font: 800 .7rem/1 var(--font); letter-spacing: .28em; color: rgba(255,255,255,.22); }
.printer__led { position: absolute; left: 22px; bottom: 24px; width: 10px; height: 10px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 4px rgba(94,224,138,.18), 0 0 12px #5ee08a; }
.printer__btn { position: absolute; right: 22px; bottom: 18px; width: 44px; height: 24px; border-radius: 8px; background: linear-gradient(180deg, #4a4160, #2b2539); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 3px 6px rgba(0,0,0,.4); }
@media (prefers-reduced-motion: reduce) { .receipt { transform: none; } .go .receipt { transition: none; } }
@media (max-width: 820px) {
  .scene { transform: scale(.82); transform-origin: center bottom; }
}

/* Harga source code */
.buy { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.1); box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 1px 0 rgba(255,255,255,.35) inset; }
.buy__price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; }
.buy__badge { grid-column: 1 / -1; justify-self: start; background: #ff4d4f; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(255,77,79,.7); }
.buy__old { color: #d9cdf5; font-weight: 600; font-size: 1.05rem; text-decoration-thickness: 2px; text-decoration-color: #ff8a8c; }
.buy__new { color: #ffe08a; font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; text-shadow: 0 2px 12px rgba(30,15,70,.35); }
.buy__note { grid-column: 1 / -1; color: #e9e1fb; font-size: .85rem; }
.buy .btn { text-align: center; }
.buy--row { min-width: 300px; }
@media (max-width: 820px) { .buy--row { min-width: 0; width: 100%; } }

/* Section teknologi (developer) */
.tech { padding: 120px 0 20px; }
.tech__eyebrow { margin: 0 0 8px; color: var(--purple); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.tech h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.tech__lead { color: var(--grey); font-size: 1.08rem; max-width: 40em; margin: 0 0 36px; }
.tech h3 { font-size: 1.05rem; margin: 0 0 12px; }
.tech code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .88em; background: var(--tint); color: var(--purple-dark); padding: 1px 6px; border-radius: 6px; }
.tech__stats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tech__stats li { background: #fff; border-radius: 16px; box-shadow: var(--raise); padding: 18px 20px; }
.tech__stats b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--purple-dark); }
.tech__stats span { display: block; margin-top: 4px; color: var(--grey); font-size: .88rem; line-height: 1.4; }
.tech__arch { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-bottom: 24px; align-items: stretch; }
.tech__code { background: #1b1530; border-radius: 18px; padding: 22px 24px; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 28px 40px -26px rgba(30,15,70,.7); overflow-x: auto; }
.tech__code pre { margin: 0; }
.tech__code code { background: none; color: #efe8fd; padding: 0; font-size: .86rem; line-height: 1.75; white-space: pre; }
.tech__code .c { color: #9b8fc4; }
.tech__points { background: #fff; border-radius: 18px; box-shadow: var(--raise); padding: 24px 26px; }
.tech__points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tech__points li { position: relative; padding-left: 18px; color: #34313c; font-size: .95rem; line-height: 1.6; }
.tech__points li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); opacity: .55; }
.tech__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.tech__card { background: #fff; border-radius: 18px; box-shadow: var(--raise); padding: 22px 24px; }
.tech__card p { margin: 14px 0 0; color: var(--grey); font-size: .92rem; line-height: 1.6; }
.tech__pk { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tech__pk li { display: inline-flex; align-items: baseline; gap: 6px; background: var(--tint); border-radius: 8px; padding: 3px 8px; }
.tech__pk code { background: none; padding: 0; font-size: .8rem; }
.tech__pk i { font-style: normal; color: var(--grey); font-size: .74rem; }
.tech__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tech__foot > div { background: var(--tint); border-radius: 18px; padding: 22px 26px; box-shadow: 0 0 0 1px rgba(106,71,185,.12) inset; }
.tech__foot p { margin: 0; color: #34313c; font-size: .93rem; line-height: 1.65; }
@media (max-width: 900px) { .tech__stats { grid-template-columns: repeat(2, 1fr); } .tech__arch, .tech__foot { grid-template-columns: 1fr; } .tech__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tech { padding-top: 80px; } .tech__grid { grid-template-columns: 1fr; } .tech__code { padding: 18px; } }
.tech--preview { padding-bottom: 56px; }
.tech__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.tech__more .tech__pk { flex: 1 1 320px; }
.tech__more .tech__pk code { font-size: .86rem; }
