:root {
  --brand: #e62886; --brand-hi: #ff4fa3; --brand-lo: #b3176a;
  --glow: rgba(230, 40, 134, .38); --soft: rgba(230, 40, 134, .14);
  --bg: #07070b; --bg2: #0c0c12; --s1: #111118; --s2: #181821; --s3: #20202b;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --text: #f4f4f8; --text2: #c9c9d6; --muted: #8b8b9e; --ok: #3ddc97; --warn: #ffb86b; --bad: #ff6b8a;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Poppins", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: var(--brand-hi); text-decoration: none; }
input, button, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.pink { color: var(--brand); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .5px; }
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; background:
  radial-gradient(900px 520px at 10% -10%, rgba(230,40,134,.30), transparent 60%),
  radial-gradient(700px 500px at 110% 20%, rgba(130,40,230,.16), transparent 60%),
  radial-gradient(800px 400px at 50% 110%, rgba(230,40,134,.12), transparent 60%); }

/* header */
.top { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 20px; }
.brand img { height: 38px; display: block; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top-nav a { color: var(--text2); font-weight: 500; }
.top-nav a:hover { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line2); background: var(--s3); color: var(--text); font-weight: 600; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, filter .2s, background .2s; white-space: nowrap; }
.btn:hover { background: #2a2a37; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--brand-hi), var(--brand) 55%, var(--brand-lo)); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px var(--glow); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -8px var(--glow); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--s2); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; height: 52px; font-size: 17px; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: rgba(255,80,120,.12); border-color: rgba(255,80,120,.4); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { background: none; border: 0; color: var(--brand-hi); cursor: pointer; padding: 0; font-weight: 500; margin-top: 14px; }

/* forms */
label { display: block; margin: 0 0 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
label .opt { font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 7px; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { height: auto; padding: 12px 16px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--soft); }
#in-id, #in-key { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 2px; font-size: 19px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error { color: var(--bad); min-height: 1.3em; margin: 12px 0 0; font-size: 14px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); margin: 18px 0 20px; }
.seg button { flex: 1; height: 42px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg button.active { background: var(--s3); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* cards */
.card { background: linear-gradient(160deg, rgba(24,24,33,.92), rgba(17,17,24,.92)); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); backdrop-filter: blur(10px); }
.card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.card-head h2 { margin: 0 0 2px; font-size: 22px; }
.card-head p { margin: 0; font-size: 14px; }
.card-icon { width: 54px; height: 54px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 16px var(--glow)); }

/* hero */
.view { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 48px 0 70px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-hi); margin-bottom: 14px; }
h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.02; margin: 0 0 20px; font-weight: 800; letter-spacing: -1.5px; }
.lead { font-size: 19px; color: var(--text2); margin: 0 0 26px; max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; color: var(--text2); }
.ticks i { width: 22px; height: 22px; border-radius: 50%; background: var(--soft); flex: none; position: relative; }
.ticks i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid var(--brand-hi); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.where { margin-top: 16px; }
.mock-screen { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: #000; border: 1px solid var(--line2); }
.mock-screen img { width: 46px; }
.mock-lines { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; }
.mock-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.mock-lines b { font-family: ui-monospace, Consolas, monospace; color: #fff; letter-spacing: 1px; }

/* sections */
.section-title { text-align: center; font-size: 34px; margin: 20px 0 30px; font-weight: 700; }
.section-title.left { text-align: left; font-size: 24px; margin: 34px 0 18px; display: flex; align-items: center; gap: 10px; }
.section-title .count { font-size: 14px; color: var(--muted); font-weight: 500; }
.steps { padding: 30px 0 60px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 26px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px; box-shadow: 0 8px 20px -6px var(--glow); }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.downloads { padding: 10px 0 40px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.dl { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: 20px; background: linear-gradient(160deg, var(--s2), var(--s1)); border: 1px solid var(--line); color: var(--text); transition: .25s var(--ease); }
.dl:hover { transform: translateY(-4px); border-color: rgba(230,40,134,.5); box-shadow: 0 20px 50px -20px var(--glow); }
.dl-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--brand-hi); margin-bottom: 12px; }
.dl-ic svg { width: 26px; height: 26px; }
.dl b { font-size: 19px; }
.dl-go { margin-top: 14px; color: var(--brand-hi); font-weight: 600; }
.dl-go::after { content: " →"; }

/* dashboard */
.dash-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.dev { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 260px; }
.dev .eyebrow { margin-bottom: 2px; }
.dev h2 { margin: 0; font-size: 28px; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.license { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; margin-top: 8px; }
.license.trial { background: rgba(255,184,107,.12); color: var(--warn); }
.license.active { background: rgba(61,220,151,.12); color: var(--ok); }
.license.expired, .license.disabled { background: rgba(255,107,138,.12); color: var(--bad); }
.notice { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--soft); border: 1px solid rgba(230,40,134,.3); color: var(--text2); font-size: 15px; }
.notice i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); flex: none; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pl { padding: 22px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: border-color .2s; }
.pl:hover { border-color: var(--line2); }
.pl-top { display: flex; align-items: center; gap: 10px; }
.pl h3 { margin: 0; font-size: 19px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 7px; background: var(--soft); color: var(--brand-hi); }
.pl .detail { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .actions { display: flex; gap: 8px; margin-top: 12px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; border: 1px dashed var(--line2); border-radius: 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 19px; margin-bottom: 6px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(3,3,6,.72); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-card { position: relative; width: 540px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-card h2 { margin: 0; font-size: 24px; }
.x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--s3); color: var(--muted); cursor: pointer; }
.x:hover { color: #fff; }

.foot { max-width: 1180px; margin: 40px auto 0; padding: 30px 24px 50px; border-top: 1px solid var(--line); text-align: center; }
.foot img { height: 30px; margin-bottom: 8px; }
.foot p { margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 13px 22px; border-radius: 14px; background: var(--s3); border: 1px solid var(--line2); font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: .3s var(--ease); z-index: 90; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 20px; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .top-nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .card { padding: 22px; border-radius: 20px; }
  .step-grid { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .brand img { height: 30px; }
  .dash-actions, .dash-actions .btn { width: 100%; }
  .pl-grid { grid-template-columns: 1fr; }
}
