:root {
    --panel: rgba(15, 23, 42, .73);
    --border: rgba(255, 255, 255, .10);
    --text: #f8fafc;
    --muted: #94a3b8;
    --purple: #8b5cf6;
    --cyan: #22d3ee;
    --green: #22c55e;
    --red: #fb7185;
}

* {
    box-sizing: border-box
}

html {
    min-height: 100%
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Noto Sans SC", sans-serif;
    color: var(--text);
    background-image: radial-gradient(circle at 12% 10%, rgba(139, 92, 246, .23), transparent 31%),
    radial-gradient(circle at 88% 18%, rgba(34, 211, 238, .14), transparent 28%),
    url("/assets/bg.webp"),
    linear-gradient(155deg, #060910, #0b1020 52%, #07131d);
    background-size: auto, auto, cover, auto;
    background-position: center, center, center, center;
    background-repeat: no-repeat;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

button, input {
    font: inherit
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-rows:auto 1fr auto;
    position: relative;
    z-index: 1
}

.topbar, .main, .footer {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 0 8px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 850;
    letter-spacing: -.035em
}

.brandmark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139, 92, 246, .98), rgba(34, 211, 238, .95));
    box-shadow: 0 12px 32px rgba(139, 92, 246, .34), inset 0 1px 0 rgba(255, 255, 255, .18)
}

.brandmark::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
    pointer-events: none
}

.brandmark svg {
    position: relative;
    z-index: 1
}

.language-picker {
    position: relative;
    z-index: 60
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 11px;
    color: #e5e7eb;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(14px);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 10px 30px rgba(0, 0, 0, .12)
}

.language-trigger:hover {
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .16)
}

.language-trigger:focus-visible {
    outline: none;
    border-color: rgba(103, 232, 249, .55);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .08)
}

.language-globe {
    display: grid;
    place-items: center;
    color: #a5b4fc
}

.language-current-flag {
    font-size: 1.05rem;
    line-height: 1
}

.language-current {
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .055em
}

.language-chevron {
    color: #94a3b8;
    transition: transform .18s ease
}

.language-picker.open .language-chevron {
    transform: rotate(180deg)
}

.language-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 230px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(9, 14, 26, .96);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .045);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(.985);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease
}

.language-picker.open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1)
}

.language-option {
    display: grid;
    grid-template-columns:26px 1fr auto 17px;
    align-items: center;
    gap: 9px;
    min-height: 43px;
    padding: 8px 10px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 11px
}

.language-option:hover {
    color: #fff;
    background: rgba(255, 255, 255, .055)
}

.language-option.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .07))
}

.language-flag {
    font-size: 1.12rem;
    line-height: 1
}

.language-name {
    font-size: .86rem;
    font-weight: 700
}

.language-code {
    color: #64748b;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .06em
}

.language-check {
    color: #67e8f9
}

.main {
    display: grid;
    grid-template-columns:minmax(0, 1.08fr) minmax(400px, .72fr);
    gap: 58px;
    align-items: center;
    padding: 48px 0 72px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .11);
    border: 1px solid rgba(167, 139, 250, .16);
    color: #ddd6fe;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    font-weight: 850
}

.check {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(34, 197, 94, .18);
    color: #86efac;
    font-size: .72rem
}

h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: .96;
    letter-spacing: -.065em;
    max-width: 780px
}

.gradient {
    background: linear-gradient(90deg, #c4b5fd, #67e8f9 52%, #e879f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.lead {
    max-width: 650px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.7
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 31px
}

.step {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .035);
    padding: 9px 12px;
    border-radius: 13px;
    color: #cbd5e1;
    font-size: .86rem
}

.step b {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: rgba(139, 92, 246, .25);
    font-size: .73rem;
    color: #fff
}

.card {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .068), rgba(255, 255, 255, .025)), var(--panel);
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .45)
}

.card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    right: -90px;
    top: -105px;
    background: rgba(34, 211, 238, .12);
    filter: blur(7px);
    pointer-events: none
}

.cardhead, .voucherbox, .form {
    position: relative;
    z-index: 1
}

.cardhead {
    margin-bottom: 19px
}

.cardhead h2 {
    font-size: 1.34rem;
    letter-spacing: -.03em;
    margin: 0 0 6px
}

.cardhead p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5
}

.voucherbox {
    display: grid;
    gap: 10px;
    padding: 15px;
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(2, 6, 23, .38);
    margin-bottom: 19px
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center
}

.row span {
    font-size: .8rem;
    color: var(--muted)
}

.row strong {
    font-size: .9rem;
    text-align: right
}

.form {
    display: grid;
    gap: 15px
}

.field {
    display: grid;
    gap: 8px
}

label {
    font-size: .86rem;
    font-weight: 750;
    color: #e5e7eb
}

.control {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(2, 6, 23, .53);
    color: #fff;
    padding: 14px 15px;
    border-radius: 15px;
    outline: none;
    transition: .2s
}

.control::placeholder {
    color: #64748b
}

.control:focus {
    border-color: rgba(103, 232, 249, .55);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .08)
}

.submit {
    border: 0;
    border-radius: 15px;
    padding: 15px 18px;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    background: linear-gradient(100deg, var(--purple), #6d5dfc 52%, #0ea5e9);
    box-shadow: 0 13px 34px rgba(139, 92, 246, .27);
    transition: .2s
}

.submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.06)
}

.submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none
}

.note {
    margin: 0;
    color: #7c8aa0;
    text-align: center;
    font-size: .77rem;
    line-height: 1.55
}

.message {
    display: none;
    padding: 13px 14px;
    border-radius: 13px;
    font-size: .89rem;
    line-height: 1.45
}

.message.show {
    display: block
}

.message.success {
    color: #d1fae5;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .20)
}

.message.error {
    color: #ffe4e6;
    background: rgba(251, 113, 133, .08);
    border: 1px solid rgba(251, 113, 133, .20)
}

.errorcard {
    text-align: center;
    padding: 38px 28px
}

.erroricon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    background: rgba(251, 113, 133, .09);
    border: 1px solid rgba(251, 113, 133, .16);
    color: #fda4af;
    font-size: 1.5rem
}

.errorcard h2 {
    margin: 0 0 10px;
    font-size: 1.45rem
}

.errorcard p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65
}

.errorcard p + p {
    margin-top: 8px
}

.footer {
    padding: 0 0 26px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #64748b;
    font-size: .78rem
}

@media (max-width: 900px) {
    .main {
        grid-template-columns:1fr;
        gap: 34px;
        padding-top: 34px
    }

    .hero {
        text-align: center
    }

    .lead {
        margin-inline: auto
    }

    .steps {
        justify-content: center
    }

    .card {
        width: min(100%, 590px);
        margin-inline: auto
    }

    h1 {
        font-size: clamp(2.75rem, 12vw, 4.9rem)
    }
}

@media (max-width: 560px) {
    .topbar, .main, .footer {
        width: min(100% - 24px, 1160px)
    }

    .topbar {
        padding-top: 17px
    }

    .main {
        padding: 25px 0 48px
    }

    .card {
        padding: 20px;
        border-radius: 22px
    }

    .steps {
        display: grid;
        grid-template-columns:1fr
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .language-current-flag {
        display: none
    }

    .language-menu {
        width: min(230px, calc(100vw - 24px))
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important
    }
}

