html {
    scroll-behavior: smooth;
}

:root{
    --bg0: #05060c;
    --bg1: #070a12;
    --fg: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.62);

    --glass: rgba(255,255,255,.055);
    --glass2: rgba(255,255,255,.035);
    --stroke: rgba(255,255,255,.10);
    --stroke2: rgba(255,255,255,.16);

    --shadow: 0 24px 90px rgba(0,0,0,.55);
    --shadow2: 0 16px 45px rgba(0,0,0,.45);

    --a: #2b70ff;
    --b: #b500ff;
    --c: #ff3bd4;

    --grad: linear-gradient(90deg, var(--a) 0%, var(--b) 55%, var(--c) 100%);
    --ring: 0 0 0 4px rgba(161,74,255,.14);
}

html, body { height: 100%; }

body{
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--fg);
    overflow-x: hidden;
    background:
            url("./steam-bg.png"),
            radial-gradient(900px 520px at 55% -10%, rgba(181,0,255,.22), transparent 60%),
            radial-gradient(900px 520px at 0% 25%, rgba(43,112,255,.18), transparent 55%),
            radial-gradient(900px 620px at 90% 85%, rgba(0,255,199,.10), transparent 60%),
            linear-gradient(180deg, rgba(5,6,12,1) 0%, rgba(7,10,18,1) 40%, rgba(4,6,12,1) 100%);
    background-size: cover, auto, auto, auto, cover;
    background-position: center, center, center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: fixed, fixed, fixed, fixed, fixed;
}

::selection{
    background: rgba(181,0,255,.25);
}

body:before{
    content:"";
    position: fixed;
    inset: 0;
    pointer-events:none;
    z-index: -1;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ===== glass system ===== */
.glass{
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow2);
    backdrop-filter: blur(22px) saturate(150%) contrast(110%);
    -webkit-backdrop-filter: blur(22px) saturate(150%) contrast(110%);
    position: relative;
}

/* inner highlight + top sheen */
.glass::before{
    content:"";
    position:absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events:none;
    background:
            radial-gradient(600px 220px at 20% 0%, rgba(255,255,255,.12), transparent 55%),
            radial-gradient(500px 240px at 90% 10%, rgba(255,255,255,.10), transparent 60%);
    opacity: .9;
}

/* subtle edge glow */
.glass::after{
    content:"";
    position:absolute;
    inset:-1px;
    border-radius: inherit;
    pointer-events:none;
    background: linear-gradient(90deg, rgba(43,112,255,.22), rgba(181,0,255,.22), rgba(255,59,212,.16));
    opacity: .18;
    filter: blur(10px);
}

/* ===== pills ===== */
.pill{
    border-radius: 15px;
    padding: 10px 14px;
    font-weight: 650;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.pill:hover{
    border-color: rgba(255,255,255,.16);
    transform: translateY(-1px);
}

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

/* ===== main CTA ===== */
.btn-grad{
    background: var(--grad);
    box-shadow:
            0 18px 70px rgba(181,0,255,.20),
            0 10px 28px rgba(43,112,255,.14);
    position: relative;
    overflow: hidden;
}

.btn-grad::before{
    content:"";
    position:absolute;
    inset: 0;
    background:
            radial-gradient(500px 200px at 30% 0%, rgba(255,255,255,.20), transparent 55%),
            radial-gradient(420px 220px at 80% 100%, rgba(255,255,255,.12), transparent 60%);
    opacity: .85;
}

.btn-grad:hover{ filter: brightness(1.03); }
.btn-grad:active{ transform: translateY(1px); filter: brightness(.98); }

/* ===== inputs ===== */
.input{
    width: 100%;
    padding: 14px 14px;
    border-radius: 16px;
    outline: none;

    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 12px 30px rgba(0,0,0,.26);
    color: var(--fg);
}

.input::placeholder{ color: rgba(255,255,255,.36); }

.input:focus{
    border-color: rgba(161,74,255,.45);
    box-shadow: var(--ring), 0 14px 34px rgba(0,0,0,.35);
}

/* ===== chips ===== */
.chip{
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 650;

    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 24px rgba(0,0,0,.30);
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, filter .12s ease;
    color: rgba(255,255,255,.86);
}

.chip:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.18);
}

.chip.active{
    border-color: rgba(181,0,255,.50);
    box-shadow: 0 0 0 4px rgba(181,0,255,.14), 0 14px 30px rgba(0,0,0,.35);
    filter: brightness(1.03);
}

/* divider */
.divider{
    height: 1px;
    background: rgba(255,255,255,.10);
}

/* typography helpers */
.hint{
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.35;
}

/* subtle badge dot */
.dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
    box-shadow: 0 0 0 6px rgba(255,255,255,.05);
}

/* headings feel tighter */
h1, .font-extrabold{ letter-spacing: -0.02em; }

/* make panels feel more “product” */
#form{
    box-shadow: 0 30px 120px rgba(0,0,0,.55);
    border-color: rgba(255,255,255,.12);
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
    *{ transition: none !important; }
}

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

    padding: 4px 10px;
    border-radius: 999px;

    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.12);

    color: rgba(255,255,255,.82);
    font-weight: 650;
    letter-spacing: .2px;

    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.badge::before{
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    box-shadow: 0 0 0 5px rgba(255,255,255,.06);
}

.badge:hover{
    border-color: rgba(255,255,255,.18);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
}