/* ── Design tokens ───────────────────────────────────────────── */
:root {
    --bg: #0b1220;
    --bg-soft: #0f172a;
    --card: rgba(17, 24, 39, 0.72);
    --card-2: rgba(15, 23, 42, 0.72);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --border: rgba(148, 163, 184, 0.14);
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --glow: rgba(37, 99, 235, 0.2);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

html[data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --card: rgba(255, 255, 255, 0.82);
    --card-2: rgba(248, 250, 252, 0.96);
    --text: #0f172a;
    --muted: #64748b;
    --muted-2: #334155;
    --border: rgba(15, 23, 42, 0.09);
    --glow: rgba(37, 99, 235, 0.12);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

/* ── Base ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

a {
    text-decoration: none;
}

/* ── Background layers ───────────────────────────────────────── */
.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -10;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(59, 130, 246, 0.12),
            transparent 24%
        ),
        radial-gradient(
            circle at 80% 85%,
            rgba(37, 99, 235, 0.12),
            transparent 24%
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0)
        );
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -9;
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar-shell {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(11, 18, 32, 0.62);
    border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .navbar-shell {
    background: rgba(255, 255, 255, 0.72);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand img {
    width: 40px;
    height: 40px;
    padding: 5px;
    object-fit: contain;
    border-radius: 99px;
    backdrop-filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}
.brand span {
    font-size: 1rem;
}

.nav-link-lite {
    color: var(--muted-2);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-link-lite:hover,
.nav-link-lite.active {
    color: var(--text);
    background: rgba(37, 99, 235, 0.12);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    font-weight: 700;
    padding: 0.7rem 1rem;
    transition: 0.2s ease;
}

.btn-ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
    color: var(--text);
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 14px;
    font-weight: 700;
    padding: 0.78rem 1.15rem;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.btn-archive {
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 96px;
    padding-bottom: 48px;
}

.hero-badge {
    text-align: center;
    padding: 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.1);
    color: #7fb0ff;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    margin: 0 5rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 900;
    margin: 1.4rem 0 1rem;
    max-width: 10.5ch;
}

.hero .lead {
    color: var(--muted);
    max-width: 46rem;
    font-size: 1.08rem;
    line-height: 1.85;
}
.hero-meta {
    margin-top: 1rem;
    color: var(--muted-2);
    font-weight: 600;
    text-align: center;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--muted-2);
    font-weight: 700;
    font-size: 0.93rem;
}

/* ── Video / cards ───────────────────────────────────────────── */
.card-shell,
.video-shell,
.stat-shell,
.mini-shell,
.feature-shell,
.testimonial-shell,
.faq-shell,
.pricing-shell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.video-shell {
    overflow: hidden;
    position: relative;
    padding: 0.85rem;
}

.video-shell video {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.2),
        rgba(15, 23, 42, 0.8)
    );
}

.video-overlay {
    position: absolute;
    inset: 0.85rem;
    border-radius: 20px;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(11, 18, 32, 0.75),
        transparent 42%
    );
}

.video-badge {
    position: absolute;
    top: 1.35rem;
    left: 1.35rem;
    z-index: 2;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 700;
}

.video-copy {
    position: absolute;
    left: 1.35rem;
    right: 1.35rem;
    bottom: 1.2rem;
    z-index: 2;
}

.video-copy h5 {
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
}
.video-copy p {
    margin: 0;
    color: rgba(226, 232, 240, 0.84);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Hero stacks ─────────────────────────────────────────────── */
.hero-stacks {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.telegram-shell {
    padding: 1.15rem;
}

.telegram-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.telegram-top i {
    color: #60a5fa;
    font-size: 1.2rem;
}

.bubble {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.96rem;
}

.bubble.user {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.16);
}
.bubble.bot {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.inline-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.inline-buttons span {
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    font-size: 0.88rem;
    font-weight: 700;
}

.stats-shell {
    padding: 1.2rem;
}

.stat-box {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.stat-box span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.stat-box strong {
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.insight-shell {
    padding: 1.2rem;
    border-left: 3px solid var(--primary);
}
.insight-shell h6 {
    font-weight: 800;
    margin-bottom: 0.45rem;
}
.insight-shell p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
    padding: 96px 0;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.08);
    color: #7fb0ff;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.05em;
    line-height: 1.02;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--muted);
    max-width: 52rem;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ── Feature / testimonial / faq / pricing cards ─────────────── */
.feature-card,
.testimonial-card,
.faq-card,
.pricing-card,
.info-card {
    height: 100%;
    padding: 1.45rem;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.feature-card:hover,
.testimonial-card:hover,
.info-card:hover {
    transform: translateY(-4px);
    transition: 0.25s ease;
    border-color: rgba(37, 99, 235, 0.3);
}

.feature-card .icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-card h5,
.testimonial-card h5,
.faq-card h5 {
    letter-spacing: -0.03em;
    font-weight: 800;
    text-align: left;
}

.feature-card p,
.testimonial-card p,
.faq-card p,
.pricing-card p {
    color: var(--muted);
    line-height: 1.7;
    text-align: left;
}

/* ── Feature row layout ──────────────────────────────────────── */
.feature-row {
    align-items: center;
    row-gap: 1.5rem;
}

.screenshot-frame {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    background:
        radial-gradient(
            circle at top,
            rgba(37, 99, 235, 0.14),
            transparent 42%
        ),
        rgba(255, 255, 255, 0.03);
    color: var(--muted-2);
}

.screenshot-frame .label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.feature-image img {
    width: 100%;
    border-radius: 16px;
}
/* ── Workflow ────────────────────────────────────────────────── */
.workflow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.workflow-item {
    display: flex;
    align-items: center;
}

.workflow-item:not(:last-child)::after {
    content: "";
    width: 40px;
    height: 12px;
    margin-left: 1rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12'%3E%3Cpath d='M1 6H29M29 6L24 1M29 6L24 11' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.workflow-step {
    padding: 1rem 1.35rem;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .workflow {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .workflow-item {
        flex-direction: column;
    }

    .workflow-item:not(:last-child)::after {
        width: 14px;
        height: 32px;
        margin: 0.75rem 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 32'%3E%3Cpath d='M6 1V29M6 29L1 24M6 29L11 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    .workflow-step {
        width: 220px;
        text-align: center;
    }
}
/* ── Testimonials ────────────────────────────────────────────── */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.stars {
    color: #fbbf24;
    letter-spacing: 0.12rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #93c5fd;
    font-weight: 900;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-card {
    padding: 2rem;
    text-align: center;
}

.price-value {
    font-size: clamp(2.7rem, 4vw, 4rem);
    letter-spacing: -0.06em;
    font-weight: 900;
    margin: 0.25rem 0 0.6rem;
}

.pricing-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 1.8rem;
}

.pricing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.pricing-item span:first-child {
    color: var(--muted);
    font-weight: 600;
}

/* ── Accordion / FAQ ─────────────────────────────────────────── */
.accordion-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 0.9rem;
}

.accordion-button {
    background: transparent;
    color: var(--text);
    font-weight: 800;
    box-shadow: none;
    padding: 1.05rem 1.1rem;
}

.accordion-button:not(.collapsed) {
    background: rgba(37, 99, 235, 0.07);
    color: var(--text);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.accordion-body {
    color: var(--muted);
    line-height: 1.8;
    padding-top: 0.2rem;
}

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta {
    padding-top: 120px;
}

.final-cta-card {
    padding: 3rem 1.5rem;
    border-radius: 34px;
    background:
        radial-gradient(
            circle at top,
            rgba(37, 99, 235, 0.18),
            transparent 38%
        ),
        var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.final-cta h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    margin-bottom: 1rem;
}

.final-cta p {
    color: var(--muted);
    max-width: 44rem;
    margin: 0 auto 1.8rem;
    line-height: 1.8;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    padding: 36px 0 48px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 800;
}

.footer-brand img {
    width: 34px;
    height: 34px;
}

/* ── Utilities ───────────────────────────────────────────────── */
.muted {
    color: var(--muted);
}

/* ── Reveal animation ────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar scroll shadow ────────────────────────────────────── */
.nav-scrolled {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero {
        padding-top: 110px;
        min-height: auto;
    }
    .hero h1 {
        max-width: 100%;
    }
    .video-shell video {
        min-height: 300px;
    }
    .nav-links {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 76px 0;
    }
    .hero-actions,
    .trust-row {
        justify-content: center;
    }
    .hero .lead,
    .section-desc,
    .final-cta p {
        text-align: center;
    }
    .pricing-card {
        padding: 1.4rem;
    }
}
