﻿:root {
    --bg: #0b1220;
    --bg-soft: #111b31;
    --card: rgba(255, 255, 255, 0.06);
    --card-strong: rgba(255, 255, 255, 0.1);
    --text: #e5ecf7;
    --muted: #9fb0c8;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #5eead4;
    --accent-2: #7c9aff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background:
            radial-gradient(circle at top left, rgba(124, 154, 255, 0.12), transparent 28%),
            radial-gradient(circle at top right, rgba(94, 234, 212, 0.08), transparent 24%),
            linear-gradient(180deg, #0b1220 0%, #0d1324 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(11, 18, 32, 0.72);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand-badge {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #04111b;
    font-weight: 900;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
}

.nav a:hover { color: var(--text); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #06121b;
    font-weight: 800;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.hero {
    padding: 72px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 28px;
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(94, 234, 212, 0.24);
    background: rgba(94, 234, 212, 0.08);
    color: #b8fff2;
    font-size: 13px;
    font-weight: 700;
}

h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.lead {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(18px, 2.4vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #06121b;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--text);
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.hero-points li {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.panel h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.quicksteps {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.quickstep {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.quickstep-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(124,154,255,0.16);
    color: #dbe4ff;
    font-weight: 900;
}

.api-box label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #d9e5f8;
}

.api-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.api-row input {
    flex: 1 1 260px;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.22);
    color: var(--text);
    padding: 0 14px;
    font-size: 14px;
    outline: none;
}

.api-row input:focus {
    border-color: rgba(124,154,255,0.5);
    box-shadow: 0 0 0 4px rgba(124,154,255,0.12);
}

.small-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn-small {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.btn-small:hover { border-color: rgba(255,255,255,0.18); }

.micro {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.preview-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.bubble {
    background: linear-gradient(180deg, rgba(124,154,255,0.14), rgba(124,154,255,0.08));
    border: 1px solid rgba(124,154,255,0.22);
    border-radius: 16px;
    padding: 13px 14px;
}

.bubble strong {
    display: block;
    margin-bottom: 2px;
}

.section {
    padding: 56px 0;
}

.section-head {
    max-width: 860px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 10px 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.grid-3,
.grid-4,
.grid-2 {
    display: grid;
    gap: 16px;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.card h3, .card h4 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(94,234,212,0.10);
    border: 1px solid rgba(94,234,212,0.20);
    font-size: 20px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 12px;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #05111b;
    font-weight: 900;
    margin-bottom: 10px;
}

.usecase {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px dashed var(--line);
    color: #dfe9fa;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.code-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.05));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 0 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(124,154,255,0.12);
    border: 1px solid rgba(124,154,255,0.22);
    color: #dce5ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.copy-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.copy-btn:hover { border-color: rgba(255,255,255,0.18); }

.code-card p {
    margin: 8px 18px 0;
    color: var(--muted);
    font-size: 14px;
}

pre {
    margin: 14px 0 0;
    padding: 18px;
    overflow: auto;
    background:
            linear-gradient(180deg, rgba(9, 14, 26, 0.96), rgba(9, 13, 24, 0.96));
    border-top: 1px solid var(--line);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.65;
    color: #d9edff;
    white-space: pre;
}

.subsection-title {
    margin: 22px 0 14px;
    font-size: 22px;
    font-weight: 800;
}

.note-box {
    padding: 16px 18px;
    border-radius: var(--radius);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: #ffe6b2;
    margin-top: 16px;
}

.pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.price-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.price-card.featured {
    border-color: rgba(94,234,212,0.35);
    background:
            linear-gradient(180deg, rgba(94,234,212,0.10), rgba(255,255,255,0.06));
    transform: translateY(-2px);
}

.price-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(94,234,212,0.14);
    border: 1px solid rgba(94,234,212,0.24);
    color: #bdfff5;
    font-size: 12px;
    font-weight: 800;
}

.price-name {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.price-value {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.price-value small {
    font-size: 16px;
    color: var(--muted);
    font-weight: 700;
}

.price-card ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.price-card li + li { margin-top: 8px; }

details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

details + details {
    margin-top: 12px;
}

summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    position: relative;
    padding-right: 26px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--muted);
    font-weight: 900;
}

details[open] summary::after {
    content: "–";
}

details p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.final-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(124,154,255,0.24);
    background:
            radial-gradient(circle at top right, rgba(124,154,255,0.18), transparent 22%),
            radial-gradient(circle at bottom left, rgba(94,234,212,0.14), transparent 26%),
            rgba(255,255,255,0.05);
    box-shadow: var(--shadow);
}

.final-card h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.final-card p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.footer {
    padding: 30px 0 46px;
    color: var(--muted);
    font-size: 14px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a:hover { color: var(--text); }

#toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    min-width: 220px;
    max-width: 340px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(6, 10, 18, 0.92);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-grid,
    .final-card,
    .grid-4,
    .grid-3,
    .grid-2,
    .pricing,
    .code-grid,
    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .nav-wrap { align-items: flex-start; padding: 12px 0; }
    .nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        justify-content: flex-start;
    }

    .hero-grid,
    .final-card,
    .grid-4,
    .grid-3,
    .grid-2,
    .pricing,
    .code-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero-points {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 38px; }
    .section { padding: 44px 0; }

    .lang-switcher {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .lang-switcher a {
        color: var(--text);
        opacity: .7;
        text-decoration: none;
        font-weight: 600;
    }

    .lang-switcher a.active {
        opacity: 1;
    }

    .lang-switcher a:hover {
        opacity: 1;
    }
}

.webpush-modal
{
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.7);

    z-index: 99999;
}

.webpush-modal-content
{
    width: 420px;

    max-width: 90%;

    margin: 80px auto;

    padding: 20px;

    background: white;

    border-radius: 10px;

    text-align: center;

    box-shadow:
            0 10px 40px rgba(0,0,0,.3);
}

.webpush-modal-content a {
    color: #2563eb;
    word-break: break-all;
}

.webpush-modal-content р3 {
    color: #2563eb;
    word-break: break-all;
}

#webpush-qr
{
    display: flex;

    justify-content: center;

    align-items: center;

    margin: 20px 0;
}

#webpush-qr canvas,
#webpush-qr img
{
    display: block;
}

#webpush-link
{
    display: block;

    margin-top: 10px;

    word-break: break-all;
}

.webpush-modal-content
{
    color: #222;
}

.webpush-modal-content h3
{
    color: #222;
}

.webpush-modal-content p
{
    color: #444;
}

.webpush-modal-content a
{
    color: #2563eb;
}

#webpush-link
{
    display: block;

    max-width: 100%;

    word-break: break-all;

    line-height: 1.5;
}

.webpush-close
{
    position: absolute;

    top: 15px;
    right: 15px;

    border: none;
    background: none;

    font-size: 24px;
    cursor: pointer;
}

.webpush-modal-content
{
    position: relative;
}

#webpush-qr
{
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#webpush-qr img,
#webpush-qr canvas
{
    margin: 0 auto;
}
