:root {
    --bg1: #eaf4ff;
    --bg2: #f6f9ff;
    --ink: #0b1220;
    --muted: #5b6b82;
    --card: #ffffffd9;
    --stroke: #e6eefc;
    --shadow: 0 24px 70px rgba(15, 30, 65, .12);
    --shadow2: 0 10px 30px rgba(15, 30, 65, .10);
    --primary: #2f64ff;
    --primary2: #7b4dff;
    --accent: #00d4ff;
    --good: #16a34a;
    --warn: #f59e0b;
    --danger: #ef4444;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --radius: 22px;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: radial-gradient(1200px 600px at 20% 15%, rgba(47, 100, 255, .18), transparent 55%),
    radial-gradient(1000px 600px at 85% 25%, rgba(123, 77, 255, .18), transparent 55%),
    radial-gradient(900px 550px at 55% 90%, rgba(0, 212, 255, .14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
    overflow-x: hidden;
}

.grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .25;
    background: linear-gradient(to right, rgba(11, 18, 32, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 18, 32, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(600px 420px at 50% 30%, rgba(0, 0, 0, 1), transparent 70%);
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .7;
    filter: blur(.2px);
}

.dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(47, 100, 255, .7), rgba(0, 212, 255, .65));
    box-shadow: 0 0 0 6px rgba(47, 100, 255, .08);
    animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: .55
    }
    50% {
        transform: translateY(-18px) translateX(14px);
        opacity: 1
    }
}

.wrap {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 18px;
    position: relative;
    z-index: 1;
}

.phoneCard {
    width: min(420px, 92vw);
    border-radius: 28px;
    background: var(--card);
    border: 1px solid rgba(230, 238, 252, .9);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(14px);
}

.topBar {
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary2));
}

.inner {
    padding: 26px 22px 18px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 14px;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 100, 255, 1), rgba(123, 77, 255, 1));
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(47, 100, 255, .25);
    position: relative;
}

.logo:after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, .25), transparent 60%);
    filter: blur(2px);
    z-index: -1;
}

.chip {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 5px;
    position: relative;
}

.chip:before, .chip:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .95);
    border-radius: 2px;
}

.chip:before {
    width: 8px;
    height: 2px;
}

.chip:after {
    width: 2px;
    height: 8px;
}

.brand b {
    font-size: 20px;
    letter-spacing: .2px;
    color: #1c2a55;
}

h1 {
    margin: 6px 0 8px;
    font-size: 28px;
    letter-spacing: -.6px;
    text-align: center;
    line-height: 1.12;
}

.sub {
    margin: 0 auto 18px;
    color: var(--muted);
    text-align: center;
    font-size: 13.8px;
    max-width: 320px;
    line-height: 1.45;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 8px 0 14px;
}

.feat {
    border: 1px solid rgba(230, 238, 252, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .7);
    padding: 12px 10px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 30, 65, .05);
}

.feat .ico {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, .25), rgba(47, 100, 255, .12));
    border: 1px solid rgba(47, 100, 255, .18);
    color: #2452ff;
    font-weight: 900;
    font-family: var(--mono);
}

.feat span {
    display: block;
    font-size: 12px;
    color: #2b3a55;
    line-height: 1.2;
}

.dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 6px 0 18px;
}

.dots i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(91, 107, 130, .25);
}

.dots i.active {
    width: 28px;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    box-shadow: 0 8px 18px rgba(47, 100, 255, .22);
}

.fakeInput {
    border-radius: 14px;
    border: 1px solid rgba(230, 238, 252, .95);
    background: rgba(255, 255, 255, .85);
    padding: 12px 14px;
    color: rgba(91, 107, 130, .75);
    text-align: center;
    font-size: 13px;
    box-shadow: 0 12px 24px rgba(15, 30, 65, .06) inset;
    user-select: none;
}

.cta {
    margin: 14px 0 10px;
    display: flex;
    justify-content: center;
}

.btn {
    width: 100%;
    border: 0;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .2px;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    box-shadow: 0 18px 38px rgba(47, 100, 255, .22);
    transition: transform .15s ease, filter .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.btn:active {
    transform: translateY(0px) scale(.99);
}

.btn .miniIcon {
    font-family: var(--mono);
    font-weight: 900;
    opacity: .95;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 10px 0 0;
    color: rgba(91, 107, 130, .85);
    font-size: 12px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge .bico {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: rgba(22, 163, 74, .10);
    color: var(--good);
    border: 1px solid rgba(22, 163, 74, .18);
    font-family: var(--mono);
    font-weight: 900;
    font-size: 12px;
}

.foot {
    padding: 10px 22px 18px;
    text-align: center;
    color: rgba(91, 107, 130, .78);
    font-size: 11.5px;
    line-height: 1.35;
}

/* ---------- Modals ---------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 18, .55);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 18px;
}

.overlay.show {
    display: flex;
}

.modal {
    width: min(520px, 92vw);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(230, 238, 252, .95);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.modalHead {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(230, 238, 252, .95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, rgba(47, 100, 255, .08), transparent);
}

.modalTitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .2px;
}

.pill {
    font-family: var(--mono);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(47, 100, 255, .22);
    background: rgba(47, 100, 255, .08);
    color: #2452ff;
    font-weight: 800;
}

.x {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: rgba(11, 18, 32, .55);
    padding: 6px 10px;
    border-radius: 12px;
}

.x:hover {
    background: rgba(15, 30, 65, .06);
}

.modalBody {
    padding: 16px 18px 18px;
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.field {
    flex: 1 1 240px;
    border: 1px solid rgba(230, 238, 252, .95);
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.field label {
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(91, 107, 130, .8);
    white-space: nowrap;
}

.field input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .6px;
    background: transparent;
    color: #0b1220;
    text-transform: uppercase;
}

.hint {
    font-size: 12px;
    color: rgba(91, 107, 130, .85);
    margin: 10px 0 0;
    line-height: 1.45;
}

.codeBox {
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 30, 65, .12);
    background: radial-gradient(circle at 20% 10%, rgba(0, 212, 255, .12), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(123, 77, 255, .12), transparent 55%),
    #070b14;
    color: #d9e5ff;
    overflow: hidden;
    box-shadow: var(--shadow2);
}

.codeTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(217, 229, 255, .78);
}

.lights {
    display: flex;
    gap: 6px;
    align-items: center;
}

.light {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: .85;
}

.r {
    background: #ff5f57
}

.y {
    background: #febc2e
}

.g {
    background: #28c840
}

pre {
    margin: 0;
    padding: 12px;
    font-family: var(--mono);
    font-size: 12.6px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 260px;
    overflow: auto;
}

.kbd {
    font-family: var(--mono);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: rgba(217, 229, 255, .82);
}

.modalActions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.btn2 {
    flex: 1 1 200px;
    border: 0;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    color: #fff;
    box-shadow: 0 16px 30px rgba(47, 100, 255, .22);
    transition: transform .15s ease, filter .15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn2:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn2:active {
    transform: translateY(0) scale(.99);
}

.ghost {
    flex: 1 1 160px;
    border: 1px solid rgba(91, 107, 130, .25);
    background: rgba(255, 255, 255, .75);
    color: #0b1220;
    box-shadow: none;
}

.fineprint {
    margin-top: 10px;
    font-size: 11.5px;
    color: rgba(91, 107, 130, .88);
    line-height: 1.45;
}

.fineprint b {
    color: #0b1220;
}

/* ---------- Boot Screen ---------- */
.boot {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    background: radial-gradient(900px 500px at 20% 10%, rgba(47, 100, 255, .25), transparent 55%),
    radial-gradient(800px 500px at 85% 18%, rgba(123, 77, 255, .22), transparent 60%),
    radial-gradient(800px 520px at 50% 90%, rgba(0, 212, 255, .18), transparent 60%),
    #050812;
    color: #d9e5ff;
    overflow: hidden;
}

.boot.show {
    display: block;
}

.bootWrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.terminal {
    width: min(860px, 92vw);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(8, 12, 22, .72);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.termTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(217, 229, 255, .78);
}

.termTitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: rgba(0, 212, 255, .8);
    margin-left: 2px;
    animation: blink 1s steps(2, end) infinite;
    border-radius: 2px;
    vertical-align: -2px;
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

.termBody {
    padding: 14px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.55;
    max-height: min(62vh, 520px);
    overflow: auto;
    color: rgba(217, 229, 255, .92);
}

.line {
    opacity: .95
}

.dim {
    opacity: .65
}

.ok {
    color: #64ffb1
}

.info {
    color: #8fd3ff
}

.warnText {
    color: #ffd18a
}

.fail {
    color: #ff8f8f
}

@media (max-width: 420px) {
    h1 {
        font-size: 26px;
    }

    .features {
        gap: 8px;
    }

    .feat {
        padding: 10px 8px;
    }
}
