:root {
    --page: #f5f8ff;
    --surface: rgba(255, 255, 255, .9);
    --surface-strong: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #dbe7f5;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --violet: #7c3aed;
    --green: #16a34a;
    --red: #e11d48;
    --shadow: 0 34px 100px rgba(15, 23, 42, .13);
    --soft-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, var(--page) 48%, #eef8ff 100%);
    overflow-x: hidden;
}

.background-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.background-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37, 99, 235, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 74%);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(26px);
    opacity: .56;
}

.orb-one {
    width: 420px;
    height: 420px;
    background: rgba(37, 99, 235, .20);
    top: -160px;
    left: -120px;
}

.orb-two {
    width: 360px;
    height: 360px;
    background: rgba(6, 182, 212, .18);
    top: 24px;
    right: -120px;
}

.orb-three {
    width: 300px;
    height: 300px;
    background: rgba(124, 58, 237, .13);
    bottom: 60px;
    left: 42%;
}

.page-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 22px;
}

.site-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 42px;
    padding: 10px 14px 10px 10px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(219, 231, 245, .9);
    border-radius: 30px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .07);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 242px;
    height: auto;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.top-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.top-nav a:hover {
    color: var(--blue-dark);
    background: #eff6ff;
}

.language-form {
    margin: 0;
}

.language-select {
    appearance: none;
    height: 42px;
    min-width: 160px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 40px 0 16px;
    color: var(--ink);
    background-color: rgba(255, 255, 255, .95);
    background-image: linear-gradient(45deg, transparent 50%, #475569 50%), linear-gradient(135deg, #475569 50%, transparent 50%);
    background-position: calc(100% - 19px) 18px, calc(100% - 14px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    font-weight: 900;
    outline: none;
    cursor: pointer;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
    gap: 38px;
    align-items: center;
}

.hero-copy {
    padding: 14px 0 34px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: rgba(239, 246, 255, .88);
    border: 1px solid rgba(191, 219, 254, .95);
    font-size: 13px;
    font-weight: 900;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 0 0 6px rgba(37, 99, 235, .10);
}

h1 {
    margin: 0 0 20px;
    font-family: Sora, Inter, sans-serif;
    font-size: clamp(38px, 5.6vw, 68px);
    line-height: .98;
    letter-spacing: -.065em;
}

.lead {
    width: min(650px, 100%);
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.guide-card {
    width: min(680px, 100%);
    display: grid;
    gap: 10px;
}

.guide-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(219, 231, 245, .96);
    border-radius: 22px;
    background: rgba(255, 255, 255, .74);
    box-shadow: var(--soft-shadow);
}

.guide-row span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 13px;
    font-weight: 900;
}

.guide-row strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 900;
}

.guide-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.68;
}

.ad-slot {
    padding: 12px;
    min-height: 104px;
    border: 1px solid rgba(219, 231, 245, .96);
    border-radius: 22px;
    background: rgba(255, 255, 255, .68);
    box-shadow: var(--soft-shadow);
}

.ad-slot > span {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ad-content {
    min-height: 70px;
}

.setup-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 30px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(219, 231, 245, .96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.card-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -120px;
    right: -110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, .22), transparent 68%);
    pointer-events: none;
}

.setup-card-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.setup-card h2, .contact-form h2 {
    margin: 0 0 8px;
    font-family: Sora, Inter, sans-serif;
    font-size: 28px;
    letter-spacing: -.045em;
}

.setup-card-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.mini-device {
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #dbeafe;
    box-shadow: 0 16px 38px rgba(37, 99, 235, .13);
}

.mini-device span {
    width: 34px;
    height: 24px;
    border: 3px solid var(--blue);
    border-radius: 8px;
    position: relative;
}

.mini-device span::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 3px;
    border-radius: 99px;
    background: var(--cyan);
    left: 7px;
    bottom: -10px;
}

.setup-form {
    position: relative;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

input[type="text"], input[type="url"], input[type="password"], textarea {
    width: 100%;
    border: 1px solid #d6e0ec;
    border-radius: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, .97);
    font: inherit;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

input[type="text"], input[type="url"], input[type="password"] {
    height: 54px;
    padding: 0 17px;
}

textarea {
    min-height: 160px;
    resize: vertical;
    padding: 15px 17px;
    line-height: 1.6;
}

input[type="text"]:focus, input[type="url"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: rgba(37, 99, 235, .74);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .10);
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mode-tab {
    position: relative;
    min-height: 58px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d6e0ec;
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.mode-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.mode-tab input {
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
}

.mode-tab:has(input:checked) {
    border-color: rgba(37, 99, 235, .55);
    background: linear-gradient(180deg, #ffffff, #f2f7ff);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
}

.mode-tab span {
    font-size: 13px;
    font-weight: 900;
}

.input-panel {
    display: none;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #dfe8f4;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(255, 255, 255, .86));
}

.input-panel.active {
    display: block;
}

.dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dual-grid .field, .input-panel .field:last-child {
    margin-bottom: 0;
}

.recaptcha-area {
    margin: 18px 0 16px;
    min-height: 78px;
    display: flex;
    align-items: center;
}

.config-warning {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff1f2;
    color: var(--red);
    border: 1px solid #fecdd3;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
}

.submit-button {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--blue), var(--violet) 52%, var(--cyan));
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 20px 44px rgba(37, 99, 235, .24);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.submit-button svg {
    width: 22px;
    height: 22px;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 54px rgba(37, 99, 235, .30);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
    box-shadow: none;
}

.content-shell {
    width: 100%;
}

.content-card {
    width: 100%;
    padding: 46px;
    border-radius: 34px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(219, 231, 245, .96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.content-card h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: clamp(34px, 4.6vw, 58px);
}

.content-intro {
    max-width: 980px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.82;
}

.content-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.content-sections article {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #dfe8f4;
    background: linear-gradient(180deg, rgba(248, 251, 255, .9), rgba(255, 255, 255, .92));
}

.content-sections h2 {
    margin: 0 0 10px;
    font-family: Sora, Inter, sans-serif;
    font-size: 20px;
    letter-spacing: -.035em;
}

.content-sections p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.78;
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 900;
}

.contact-form {
    margin-top: 30px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #dfe8f4;
    background: rgba(255, 255, 255, .76);
}

.contact-submit {
    width: auto;
    min-width: 190px;
    padding: 0 28px;
}

.site-footer {
    margin-top: 46px;
    padding: 22px 4px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(219, 231, 245, .9);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.site-footer p {
    margin: 0;
    max-width: 620px;
}

.site-footer div {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--blue-dark);
    font-weight: 900;
    text-decoration: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(8px);
}

.modal-backdrop.show {
    display: flex;
}

.result-modal {
    width: min(460px, 100%);
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(219, 231, 245, .95);
    background: #ffffff;
    box-shadow: 0 38px 120px rgba(15, 23, 42, .32);
}

.modal-mark {
    width: 54px;
    height: 54px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: #fff1f2;
    color: var(--red);
    font-size: 27px;
    font-weight: 900;
}

.result-modal.success .modal-mark {
    background: #dcfce7;
    color: var(--green);
}

.result-modal h3 {
    margin: 0 0 9px;
    font-family: Sora, Inter, sans-serif;
    font-size: 24px;
    letter-spacing: -.04em;
}

.result-modal p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

.playlist-code {
    display: none;
    margin: 14px 0 20px;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    color: var(--ink);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: .02em;
}

.playlist-code.show {
    display: block;
}

.result-modal button {
    min-width: 112px;
    height: 44px;
    border: 0;
    border-radius: 15px;
    background: var(--ink);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-bottom: 0;
    }
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .content-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 660px) {
    .page-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 14px;
    }

    .site-header {
        border-radius: 26px;
        padding: 12px;
        margin-bottom: 28px;
    }

    .brand img {
        width: 214px;
    }

    .header-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        width: 100%;
    }

    .top-nav a {
        padding: 0 10px;
        font-size: 12px;
    }

    .language-select, .language-form {
        width: 100%;
    }

    h1 {
        font-size: clamp(36px, 12vw, 48px);
    }

    .lead {
        font-size: 16px;
    }

    .guide-row {
        grid-template-columns: 38px 1fr;
        padding: 14px;
    }

    .guide-row span {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .setup-card, .content-card {
        padding: 22px;
        border-radius: 28px;
    }

    .setup-card-head {
        flex-direction: column;
    }

    .dual-grid, .mode-tabs {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer div {
        justify-content: flex-start;
    }
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid #d6e0ec;
    border-radius: 17px;
    background: rgba(255,255,255,.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #0f172a;
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.about-card .content-intro {
    max-width: 980px;
}

.about-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-grid article {
    min-height: 260px;
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,248,255,.92));
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.about-grid article::before {
    content: "";
    width: 48px;
    height: 48px;
    display: block;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 34px rgba(37, 99, 235, .20);
}

.about-grid article:nth-child(2)::before {
    background: linear-gradient(135deg, var(--violet), var(--blue));
}

.about-grid article:nth-child(3)::before {
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.about-grid article:nth-child(4)::before {
    background: linear-gradient(135deg, #f59e0b, var(--violet));
}

.contact-card {
    overflow: hidden;
}

.contact-card .content-intro {
    max-width: 860px;
}

.contact-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 30px;
}

.contact-info-grid article {
    position: relative;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

.contact-info-grid article::before {
    content: "";
    display: block;
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    border-radius: 15px;
    background: linear-gradient(135deg, #dbeafe, #ffffff);
    border: 1px solid #bfdbfe;
}

.contact-form-shell {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    gap: 22px;
    align-items: stretch;
    margin-top: 12px;
}

.contact-aside {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(150deg, #0f172a, #1d4ed8 58%, #06b6d4);
    box-shadow: 0 24px 60px rgba(37, 99, 235, .24);
}

.contact-aside::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -88px;
    bottom: -96px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 12px;
    font-weight: 900;
}

.contact-aside h2 {
    position: relative;
    margin: 22px 0 14px;
    font-family: Sora, Inter, sans-serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.055em;
}

.contact-aside p {
    position: relative;
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.75;
    font-size: 15px;
}

.contact-form {
    margin-top: 0;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

@media (max-width: 1180px) {
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 12px;
        gap: 12px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-actions {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 10px;
    }

    .header-actions.menu-open {
        display: flex;
    }

    .top-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .top-nav a {
        min-height: 46px;
        justify-content: center;
        border: 1px solid #dbe7f5;
        background: rgba(255,255,255,.86);
    }

    .language-form, .language-select {
        width: 100%;
    }

    .contact-form-shell {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 660px) {
    .site-header {
        flex-direction: unset;
        align-items: center;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-grid article {
        min-height: auto;
    }

    .contact-form, .contact-aside {
        padding: 22px;
        border-radius: 26px;
    }

    .contact-submit {
        width: 100%;
    }
}
