:root {
    --gwb-bg: #080d19;
    --gwb-bg-soft: #0d1424;
    --gwb-card: rgba(18, 26, 43, .78);
    --gwb-card-strong: rgba(18, 26, 43, .92);
    --gwb-border: rgba(255, 255, 255, .12);
    --gwb-text: #f3f7ff;
    --gwb-muted: #a8b3c7;
    --gwb-blue: #4f8cff;
    --gwb-blue-strong: #2f6df6;
    --gwb-green: #42d392;
    --gwb-shadow: 0 24px 90px rgba(0, 0, 0, .42);
    --gwb-radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gwb-text);
    background:
        radial-gradient(circle at 18% 12%, rgba(79, 140, 255, .28), transparent 34%),
        radial-gradient(circle at 78% 4%, rgba(66, 211, 146, .16), transparent 30%),
        radial-gradient(circle at 55% 90%, rgba(79, 140, 255, .13), transparent 38%),
        var(--gwb-bg);
}

a {
    color: inherit;
}

.gwb-page {
    position: relative;
    overflow: hidden;
}

.gwb-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 78%);
}

.gwb-container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.gwb-header {
    position: relative;
    z-index: 2;
    padding: 24px 0;
}

.gwb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.gwb-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.03em;
}

.gwb-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gwb-blue), #7aa8ff);
    box-shadow: 0 12px 34px rgba(79, 140, 255, .34);
}

.gwb-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gwb-nav-links a,
.gwb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: var(--gwb-text);
}

.gwb-nav-links a {
    color: var(--gwb-muted);
}

.gwb-nav-links a:hover {
    color: var(--gwb-text);
    background: rgba(255,255,255,.06);
}

.gwb-btn {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
}

.gwb-btn-primary {
    background: linear-gradient(135deg, var(--gwb-blue), var(--gwb-blue-strong));
    border-color: transparent;
    box-shadow: 0 16px 42px rgba(79, 140, 255, .28);
}

.gwb-btn-primary:hover {
    transform: translateY(-1px);
}

.gwb-hero {
    position: relative;
    z-index: 1;
    padding: 58px 0 48px;
}

.gwb-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: 28px;
    align-items: center;
}

.gwb-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #cfe0ff;
    background: rgba(79, 140, 255, .12);
    border: 1px solid rgba(79, 140, 255, .22);
    font-size: 14px;
    font-weight: 700;
}

.gwb-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--gwb-green);
    box-shadow: 0 0 0 5px rgba(66, 211, 146, .12);
}

.gwb-title {
    margin: 22px 0 18px;
    max-width: 780px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: .96;
    letter-spacing: -.07em;
    font-weight: 800;
}

.gwb-lead {
    margin: 0;
    max-width: 720px;
    color: var(--gwb-muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.62;
}

.gwb-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.gwb-note {
    margin-top: 18px;
    color: var(--gwb-muted);
    font-size: 14px;
}

.gwb-card {
    background: var(--gwb-card);
    border: 1px solid var(--gwb-border);
    border-radius: var(--gwb-radius);
    box-shadow: var(--gwb-shadow);
    backdrop-filter: blur(18px);
}

.gwb-phone {
    padding: 22px;
}

.gwb-chat-preview {
    display: grid;
    gap: 14px;
}

.gwb-message {
    padding: 14px 15px;
    border-radius: 18px;
    line-height: 1.45;
    color: #dce7fa;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
}

.gwb-message.me {
    margin-left: 38px;
    background: rgba(79, 140, 255, .20);
    border-color: rgba(79, 140, 255, .24);
}

.gwb-message small {
    display: block;
    margin-top: 7px;
    color: var(--gwb-muted);
}

.gwb-section {
    position: relative;
    z-index: 1;
    padding: 34px 0;
}

.gwb-section-title {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 42px);
    letter-spacing: -.04em;
    font-weight: 800;
}

.gwb-section-sub {
    margin: 0 0 24px;
    color: var(--gwb-muted);
    line-height: 1.6;
    max-width: 760px;
}

.gwb-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gwb-feature {
    padding: 22px;
}

.gwb-feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(79, 140, 255, .14);
    color: #cfe0ff;
}

.gwb-feature h3 {
    margin: 0 0 9px;
    font-size: 18px;
}

.gwb-feature p {
    margin: 0;
    color: var(--gwb-muted);
    line-height: 1.55;
}

.gwb-steps {
    display: grid;
    gap: 12px;
}

.gwb-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 18px;
}

.gwb-step-num {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
    color: #cfe0ff;
    font-weight: 800;
}

.gwb-step h3 {
    margin: 0 0 6px;
}

.gwb-step p {
    margin: 0;
    color: var(--gwb-muted);
    line-height: 1.55;
}

.gwb-footer {
    position: relative;
    z-index: 1;
    padding: 36px 0 44px;
    color: var(--gwb-muted);
    font-size: 14px;
}

.gwb-admin-wrap {
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: 34px 16px;
}

.gwb-admin-card {
    width: min(1040px, 100%);
    padding: 24px;
}

.gwb-admin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.gwb-admin-head h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.04em;
}

.gwb-admin-head p {
    margin: 7px 0 0;
    color: var(--gwb-muted);
}

.gwb-form {
    display: grid;
    gap: 14px;
}

.gwb-form-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr auto;
    gap: 12px;
    align-items: end;
}

.gwb-field label {
    display: block;
    color: var(--gwb-muted);
    font-size: 14px;
    margin-bottom: 7px;
}

.gwb-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--gwb-border);
    border-radius: 15px;
    padding: 12px 14px;
    outline: none;
    color: var(--gwb-text);
    background: rgba(255,255,255,.06);
    font: inherit;
}

.gwb-field input:focus {
    border-color: rgba(79,140,255,.75);
}

.gwb-alert {
    margin-bottom: 16px;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid var(--gwb-border);
}

.gwb-alert-ok {
    background: rgba(66,211,146,.12);
    color: #bcf8df;
}

.gwb-alert-error {
    background: rgba(255,95,109,.12);
    color: #ffd3d7;
}

.gwb-table-wrap {
    overflow: auto;
    border: 1px solid var(--gwb-border);
    border-radius: 20px;
}

.gwb-table {
    width: 100%;
    min-width: 780px;
    border-collapse: separate;
    border-spacing: 0;
}

.gwb-table th,
.gwb-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--gwb-border);
    text-align: left;
    vertical-align: middle;
}

.gwb-table th {
    color: var(--gwb-muted);
    background: rgba(255,255,255,.05);
    font-size: 13px;
}

.gwb-table tr:last-child td {
    border-bottom: 0;
}

.gwb-code {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #dbe7ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.gwb-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gwb-btn-danger {
    background: rgba(255,95,109,.18);
    color: #ffdce0;
    border-color: rgba(255,95,109,.25);
}

.gwb-btn-danger:hover {
    background: rgba(255,95,109,.28);
}

.gwb-muted {
    color: var(--gwb-muted);
}

@media (max-width: 920px) {
    .gwb-hero-grid,
    .gwb-features,
    .gwb-form-grid {
        grid-template-columns: 1fr;
    }

    .gwb-title {
        font-size: clamp(38px, 12vw, 62px);
    }
}

@media (max-width: 560px) {
    .gwb-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .gwb-nav-links {
        width: 100%;
    }

    .gwb-nav-links a,
    .gwb-btn {
        width: 100%;
    }

    .gwb-phone {
        padding: 16px;
    }

    .gwb-admin-head {
        flex-direction: column;
    }
}


/* === WeBeep ecosystem light theme override START === */

/*
   Единый визуальный стиль экосистемы webeep.online.
   Разметку не меняем. Переопределяем только фон, цвета, кнопки и базовую типографику.
*/

:root {
    --gwb-bg: #f6f8fc;
    --gwb-bg-soft: #ffffff;
    --gwb-card: rgba(255, 255, 255, 0.86);
    --gwb-card-strong: #ffffff;
    --gwb-border: #e5e7eb;
    --gwb-text: #172033;
    --gwb-muted: #667085;
    --gwb-blue: #2563eb;
    --gwb-blue-strong: #1d4ed8;
    --gwb-green: #16a34a;
    --gwb-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    --gwb-radius: 24px;
}

html,
body {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    color: var(--gwb-text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.10), transparent 30%),
        var(--gwb-bg);
}

/* Убираем тёмную сетку старого Matrix-лендинга, если она была */
.gwb-page::before {
    display: none;
}

.gwb-logo,
.gwb-title,
.gwb-section-title,
.gwb-feature h3,
.gwb-step h3,
.gwb-admin-head h1 {
    color: var(--gwb-text);
}

.gwb-logo-mark {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.gwb-lead,
.gwb-note,
.gwb-section-sub,
.gwb-feature p,
.gwb-step p,
.gwb-footer,
.gwb-muted,
.gwb-admin-head p,
.gwb-field label,
.gwb-table th {
    color: var(--gwb-muted);
}

.gwb-badge {
    background: #eaf1ff;
    color: var(--gwb-blue-strong);
    border-color: transparent;
}

.gwb-badge-dot {
    background: var(--gwb-green);
    box-shadow: none;
}

.gwb-card,
.gwb-feature,
.gwb-step,
.gwb-admin-card {
    background: var(--gwb-card);
    color: var(--gwb-text);
    border: 1px solid var(--gwb-border);
    box-shadow: var(--gwb-shadow);
    backdrop-filter: blur(14px);
}

.gwb-phone {
    background: #0f172a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}

.gwb-message {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.10);
}

.gwb-message.me {
    background: rgba(37, 99, 235, 0.30);
    border-color: rgba(96, 165, 250, 0.34);
}

.gwb-message small {
    color: rgba(255, 255, 255, 0.58);
}

.gwb-nav-links a {
    color: var(--gwb-muted);
}

.gwb-nav-links a:hover {
    color: var(--gwb-text);
    background: rgba(37, 99, 235, 0.08);
}

.gwb-btn,
button.gwb-btn,
a.gwb-btn {
    color: var(--gwb-text);
    background: #ffffff;
    border: 1px solid var(--gwb-border);
    box-shadow: none;
}

.gwb-btn:hover,
button.gwb-btn:hover,
a.gwb-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.gwb-btn-primary,
button.gwb-btn-primary,
a.gwb-btn-primary {
    background: var(--gwb-blue);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}

.gwb-btn-primary:hover,
button.gwb-btn-primary:hover,
a.gwb-btn-primary:hover {
    background: var(--gwb-blue-strong);
}

.gwb-btn-danger,
button.gwb-btn-danger,
a.gwb-btn-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.18);
}

.gwb-btn-danger:hover,
button.gwb-btn-danger:hover,
a.gwb-btn-danger:hover {
    background: rgba(220, 38, 38, 0.12);
}

.gwb-field input {
    color: var(--gwb-text);
    background: #ffffff;
    border-color: var(--gwb-border);
}

.gwb-field input:focus {
    border-color: var(--gwb-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.gwb-alert {
    border-color: var(--gwb-border);
}

.gwb-alert-ok {
    background: rgba(22, 163, 74, 0.10);
    color: #166534;
}

.gwb-alert-error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.gwb-table-wrap {
    background: #ffffff;
    border-color: var(--gwb-border);
}

.gwb-table th {
    background: #f8fafc;
}

.gwb-table th,
.gwb-table td {
    border-bottom-color: var(--gwb-border);
}

.gwb-code {
    background: #eef4ff;
    color: var(--gwb-blue-strong);
}

/* === WeBeep ecosystem light theme override END === */



/* === Invite admin login/logout links and vertical centering START === */

.gwb-admin-wrap:has(.gwb-auth-card) {
    place-items: center;
}

.gwb-auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.gwb-auth-links a {
    color: var(--gwb-muted);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.gwb-auth-links a:hover {
    color: var(--gwb-blue);
}

.gwb-auth-links-center {
    justify-content: space-between;
}

.gwb-auth-links-center a:nth-child(2) {
    color: var(--gwb-blue);
}

@media (max-width: 520px) {
    .gwb-auth-links,
    .gwb-auth-links-center {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* === Invite admin login/logout links and vertical centering END === */


/* === Fix primary button hover text color START === */

.gwb-btn-primary,
.gwb-btn-primary:visited,
.gwb-btn-primary:hover,
.gwb-btn-primary:focus,
.gwb-btn-primary:active,
a.gwb-btn-primary,
a.gwb-btn-primary:visited,
a.gwb-btn-primary:hover,
a.gwb-btn-primary:focus,
a.gwb-btn-primary:active {
    color: #ffffff;
}

/* === Fix primary button hover text color END === */


/* === Mobile burger menu START === */

.gwb-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 14px;
    border: 1px solid var(--gwb-border);
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.gwb-menu-toggle:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.gwb-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--gwb-text);
    transition: 0.2s ease;
}

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

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

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

@media (max-width: 720px) {
    .gwb-nav {
        position: relative;
        flex-wrap: wrap;
        align-items: center;
    }

    .gwb-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .gwb-nav-links {
        display: none;
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        border: 1px solid var(--gwb-border);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--gwb-shadow);
        backdrop-filter: blur(14px);
    }

    .gwb-nav-links.is-open {
        display: grid;
        gap: 8px;
    }

    .gwb-nav-links a,
    .gwb-nav-links .gwb-btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
    }
}

/* === Mobile burger menu END === */


/* === Mobile burger layout fix START === */

@media (max-width: 720px) {
    .gwb-nav {
        display: flex;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .gwb-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .gwb-menu-toggle {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .gwb-nav-links {
        flex: 0 0 100%;
        width: 100%;
        justify-items: start;
        align-items: start;
    }

    .gwb-nav-links.is-open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .gwb-nav-links a,
    .gwb-nav-links .gwb-btn {
        width: auto !important;
        max-width: 100%;
        justify-self: start;
        justify-content: flex-start;
        text-align: left;
        padding-left: 14px;
        padding-right: 14px;
    }

    .gwb-nav-links .gwb-btn-primary {
        justify-content: center;
    }
}

/* === Mobile burger layout fix END === */


/* === Mobile burger overlay dropdown START === */

@media (max-width: 720px) {
    .gwb-nav {
        position: relative;
        flex-wrap: nowrap !important;
    }

    .gwb-nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        z-index: 50;

        width: 100%;
        margin-top: 0;

        display: none;
        padding: 12px;

        border: 1px solid var(--gwb-border);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(14px);
    }

    .gwb-nav-links.is-open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .gwb-header {
        position: relative;
        z-index: 100;
    }

    .gwb-hero {
        position: relative;
        z-index: 1;
    }
}

/* === Mobile burger overlay dropdown END === */


/* === Chat phone visual card like go.webeep.online START === */

.gwb-card.gwb-phone {
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 34px;
    padding: 26px;
    box-shadow: var(--gwb-shadow);
    backdrop-filter: blur(14px);
    overflow: hidden;
    color: #ffffff;
}

.gwb-card.gwb-phone::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    top: -70px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.10);
    pointer-events: none;
}

.gwb-card.gwb-phone .gwb-chat-preview {
    position: relative;
    z-index: 1;
    background: #0f172a;
    border-radius: 32px;
    padding: 20px;
    min-height: 430px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    .gwb-card.gwb-phone {
        padding: 14px;
        border-radius: 26px;
    }

    .gwb-card.gwb-phone .gwb-chat-preview {
        min-height: 360px;
        border-radius: 26px;
    }
}

/* === Chat phone visual card like go.webeep.online END === */
