/* ==========================================================================
   Sky Connectiva Studio — design system
   ========================================================================== */

:root {
  --bg:        #05060a;
  --bg-2:      #090c14;
  --surface:   rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .18);
  --ink:       #eef2f8;
  --ink-2:     #9aa6bd;
  --ink-3:     #667089;
  --accent:    #4cc9f0;
  --accent-2:  #b5179e;
  --gold:      #d4af37;
  --ok:        #2bd98a;
  --warn:      #ffb020;
  --danger:    #ff5c72;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 24px 60px rgba(0, 0, 0, .55);
  --maxw:      1240px;

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1rem; color: var(--ink-2); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace; }
.hidden { display: none !important; }

/* --------------------------------------------------------------- nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 10, .88), rgba(5, 6, 10, .5));
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--gold), var(--accent));
  box-shadow: 0 0 24px rgba(76, 201, 240, .45);
}
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { color: var(--ink-2); font-size: .92rem; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

@media (max-width: 560px) {
  .nav__actions .btn { display: none; }
}

@media (max-width: 940px) {
  .nav__links { display: none; }
  .brand .muted { display: none; }          /* sembunyikan kata "Studio" */
  .nav__inner { gap: .75rem; }
  .nav__actions { margin-left: auto; }
  .brand { font-size: .95rem; white-space: nowrap; }
}

.langtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.langtoggle button {
  border: 0; background: none; color: var(--ink-3); font: inherit; font-size: .8rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 999px; cursor: pointer;
}
.langtoggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .78rem 1.35rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), #7aa9ff 45%, var(--accent-2));
  color: #04060c;
  box-shadow: 0 10px 34px rgba(76, 201, 240, .28);
}
.btn--primary:hover { box-shadow: 0 16px 44px rgba(76, 201, 240, .4); }
.btn--ghost { background: transparent; }
.btn--sm { padding: .45rem .9rem; font-size: .84rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------- hero --- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 7rem 0 4rem; isolation: isolate; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(5, 6, 10, .94) 8%, rgba(5, 6, 10, .72) 34%, transparent 62%),
    radial-gradient(130% 85% at 50% 0%, transparent 40%, rgba(5, 6, 10, .72) 100%),
    linear-gradient(to bottom, transparent 58%, var(--bg) 99%);
}
@media (max-width: 820px) {
  .hero::after { background:
    linear-gradient(180deg, rgba(5, 6, 10, .42) 0%, rgba(5, 6, 10, .80) 42%, var(--bg) 100%); }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: 999px; background: rgba(5, 6, 10, .5); margin-bottom: 1.5rem;
}
.hero__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 52ch; font-size: 1.08rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.5rem; }
@media (max-width: 700px) {
  .hero { padding: 6rem 0 3rem; }
  .hero__lead { font-size: .98rem; }
  .hero__stats { gap: 1.5rem; margin-top: 2.5rem; }
  .hero__cta .btn { width: 100%; }
  .section { padding: 4rem 0; }
  .modal__panel { padding: 1.4rem; }
}
.hero__stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.hero__stat span { font-size: .8rem; color: var(--ink-3); }

/* ------------------------------------------------------------ section --- */
.section { padding: 6rem 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section__head { max-width: 62ch; margin-bottom: 3rem; }
.eyebrow { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; font-weight: 600; }

/* ------------------------------------------------------------ product --- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), rgba(255, 255, 255, .012));
  padding: 1.6rem; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.card__badge {
  position: absolute; top: 1rem; right: 1rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; background: rgba(76, 201, 240, .14); color: var(--accent); font-weight: 700;
}
.card__cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.card ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .4rem; }
.card ul li { position: relative; padding-left: 1.3rem; font-size: .9rem; color: var(--ink-2); }
.card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.price { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; }
.price s { font-size: .9rem; color: var(--ink-3); font-weight: 400; margin-left: .5rem; }
.card__foot { display: grid; gap: .8rem; margin-top: auto; padding-top: 1.2rem; }
.card__foot .btn { width: 100%; }

/* ------------------------------------------------------------ builder --- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
@media (max-width: 1000px) { .builder { grid-template-columns: 1fr; } }

.steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.steps button {
  font: inherit; font-size: .82rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-3); cursor: pointer; transition: .2s;
}
.steps button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.steps button.done { color: var(--ok); border-color: rgba(43, 217, 138, .35); }

.step { display: none; animation: fade .35s var(--ease); }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink-2); }
.input, select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .7rem .9rem; transition: border-color .2s, background .2s;
}
.input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(255, 255, 255, .06); outline: none; }
textarea { min-height: 110px; resize: vertical; }
select option { background: var(--bg-2); color: var(--ink); }
.field--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

.optiongrid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.option {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; cursor: pointer; background: rgba(255, 255, 255, .02); transition: .22s var(--ease);
}
.option:hover { border-color: var(--line-2); transform: translateY(-2px); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__title { font-weight: 600; display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.option__price { font-size: .85rem; color: var(--accent); white-space: nowrap; }
.option__desc { font-size: .84rem; color: var(--ink-3); margin-top: .3rem; }
.option:has(input:checked) { border-color: var(--accent); background: rgba(76, 201, 240, .08); box-shadow: 0 0 0 1px rgba(76, 201, 240, .35) inset; }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.swatches { display: flex; gap: .3rem; margin-top: .6rem; }
.swatches i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  position: relative; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem;
  font-size: .86rem; cursor: pointer; color: var(--ink-2); transition: .2s;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--accent); color: var(--ink); background: rgba(76, 201, 240, .12); }

.groupline { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 1.6rem 0 .7rem; }

/* team */
.team-row {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: .6rem; align-items: center;
  padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem;
  background: rgba(255, 255, 255, .02);
}
@media (max-width: 720px) { .team-row { grid-template-columns: 1fr 1fr; } }
.team-row .rate { font-size: .78rem; color: var(--ink-3); grid-column: 1 / -1; }
.iconbtn {
  border: 1px solid var(--line); background: transparent; color: var(--ink-3); border-radius: 10px;
  width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; line-height: 1; transition: .2s;
}
.iconbtn:hover { color: var(--danger); border-color: var(--danger); }

.rangewrap { display: flex; align-items: center; gap: 1rem; }
input[type="range"] { flex: 1; accent-color: var(--accent); }

/* ------------------------------------------------------------ summary --- */
.summary { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); padding: 1.5rem; }
.summary h3 { margin-bottom: 1rem; }
.summary__lines { display: grid; gap: .5rem; max-height: 40vh; overflow-y: auto; padding-right: .3rem; }
.sline { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; align-items: baseline; }
.sline span:first-child { color: var(--ink-2); }
.sline b { font-weight: 600; white-space: nowrap; }
.sline small { display: block; color: var(--ink-3); font-size: .76rem; }
.summary__total { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: grid; gap: .45rem; }
.summary__total .grand { font-size: 1.35rem; font-family: var(--font-display); font-weight: 700; }
.duebox { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: rgba(76, 201, 240, .1); border: 1px solid rgba(76, 201, 240, .3); }
.duebox .amt { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--accent); }

/* ------------------------------------------------------------- modal --- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(2, 3, 6, .82); backdrop-filter: blur(10px); }
.modal__panel {
  position: relative; width: min(100%, 640px); max-height: 88vh; overflow-y: auto;
  background: linear-gradient(170deg, #0c1018, #070a11); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.modal__panel--wide { width: min(100%, 900px); }
.modal__close { position: absolute; top: 1rem; right: 1rem; }

.qrbox { display: grid; place-items: center; gap: 1rem; }
.qrbox__canvas { background: #fff; padding: 14px; border-radius: 14px; width: 236px; height: 236px; display: grid; place-items: center; }
.qrbox__canvas img, .qrbox__canvas canvas { display: block; max-width: 100%; height: auto; }
.paystatus { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s infinite; }
.dot.ok { background: var(--ok); animation: none; }
.dot.bad { background: var(--danger); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.promptbox {
  white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: .78rem; line-height: 1.6;
  background: #05070c; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem; max-height: 44vh; overflow-y: auto; color: #cfe3f5;
}
.licenselist { display: grid; gap: .5rem; margin: 1rem 0; }
.licenselist code { background: rgba(212, 175, 55, .12); color: var(--gold); padding: .5rem .8rem; border-radius: 10px; display: block; }

.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%) translateY(140%);
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: .9rem;
  padding: .7rem 1.3rem; border-radius: 999px; z-index: 120; transition: transform .35s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------ footer --- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; margin-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer a { color: var(--ink-2); display: block; font-size: .9rem; margin-bottom: .4rem; }

.steps-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* ringkasan ringkas layar kecil */
.mobilebar { display: none; }
@media (max-width: 1000px) {
  .mobilebar:not(.hidden) {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: .7rem max(1rem, env(safe-area-inset-left)) calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(9, 12, 20, .93); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .mobilebar b { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); }
  body.has-mobilebar { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
