/* ═══════════════════════════════════════
   RunbeBlockBot — Black & White Premium
   ═══════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --bg: #0A0A0A;
    --card: #111111;
    --border: #1C1C1C;
    --border2: #222222;
    --white: #FFFFFF;
    --gray: #BDBDBD;
    --gray2: #777777;
    --gray3: #444444;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--white);
    color: var(--black);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.center {
    text-align: center;
    margin-bottom: 72px;
}

/* ─── LOGO ─── */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.logo-img-sm {
    width: 28px;
    height: 28px;
}

.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-light {
    font-weight: 400;
    color: var(--gray);
}

/* ─── CURSOR ─── */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    will-change: left, top;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ─── NAVBAR ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-center {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray2);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-nav {
    padding: 9px 20px;
    background: var(--white);
    color: var(--black);
}

.btn-nav:hover {
    background: var(--gray);
}

.btn-hero {
    padding: 16px 32px;
    font-size: 15px;
    background: var(--white);
    color: var(--black);
    border-radius: var(--radius);
}

.btn-hero:hover {
    background: var(--gray);
    transform: translateY(-2px);
}

.btn-hero-outline {
    padding: 16px 32px;
    font-size: 15px;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
}

.btn-hero-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* ─── TAG ─── */
.tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.heading {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.stroke-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
}

.subheading {
    font-size: 17px;
    color: var(--gray2);
    max-width: 420px;
    margin: 0 auto;
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    top: -200px;
    right: -150px;
    animation: drift 25s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.025);
    bottom: -100px;
    left: -100px;
    animation: drift2 30s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.15); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--border2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 36px;
    letter-spacing: 0.5px;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(44px, 8vw, 88px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--gray2);
    max-width: 460px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* ─── MOCKUP ─── */
.mockup {
    max-width: 480px;
    margin: 0 auto;
}

.mockup-frame {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.mockup-bar {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 7px;
    margin-right: 14px;
}

.mockup-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gray3);
}

.mockup-dots span:first-child { background: #555; }

.mockup-label {
    font-size: 12px;
    color: var(--gray2);
    font-weight: 500;
}

.mockup-chat {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    display: flex;
    gap: 10px;
    max-width: 88%;
}

.msg-bot {
    align-self: flex-start;
}

.msg-user {
    align-self: flex-end;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray);
    flex-shrink: 0;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.msg-bot .msg-bubble {
    background: var(--border);
    border: 1px solid var(--border2);
}

.msg-user .msg-bubble {
    background: var(--white);
    color: var(--black);
    font-weight: 500;
}

.mockup-shadow {
    margin-top: -2px;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* ─── SECTIONS ─── */
.section {
    padding: 140px 0;
    position: relative;
}

.section-alt {
    background: var(--bg);
}

/* ─── FEATURES ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.card-feature {
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.card-feature:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: var(--border2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.card-feature:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    transition: all 0.4s;
}

.card-feature:hover .card-icon {
    background: var(--white);
    color: var(--black);
}

.card-feature h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-feature p {
    font-size: 14px;
    color: var(--gray2);
    line-height: 1.6;
}

/* ─── COMMANDS ─── */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.card-cmd {
    padding: 24px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.card-cmd:hover {
    transform: translateY(-3px) translateZ(0);
    border-color: var(--white);
}

.cmd-slash {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray3);
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.cmd-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.card-cmd p {
    font-size: 12px;
    color: var(--gray2);
    line-height: 1.5;
}

/* ─── STEPS ─── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    text-align: center;
    padding: 48px 24px;
    position: relative;
}

.step-num {
    font-size: 56px;
    font-weight: 900;
    color: var(--border2);
    line-height: 1;
    margin-bottom: 20px;
}

.step-line {
    width: 40px;
    height: 1px;
    background: var(--border2);
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--gray2);
    line-height: 1.6;
}

/* ─── ADVANTAGES ─── */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card-adv {
    padding: 40px;
}

.card-adv:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: var(--border2);
}

.adv-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray3);
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

.card-adv h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-adv p {
    font-size: 14px;
    color: var(--gray2);
    line-height: 1.6;
}

/* ─── FAQ ─── */
.faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s;
    background: var(--card);
}

.faq-item.open {
    border-color: var(--border2);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}

.faq-q:hover {
    color: var(--gray);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--gray3);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--white);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
}

.faq-a p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--gray2);
    line-height: 1.7;
}

/* ─── CTA ─── */
.cta-block {
    text-align: center;
    padding: 100px 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.cta-block h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.cta-block p {
    font-size: 17px;
    color: var(--gray2);
    margin-bottom: 40px;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── FOOTER ─── */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-desc {
    font-size: 14px;
    color: var(--gray3);
    margin-top: 14px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--gray3);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray3);
}

.footer-tg {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--gray3);
    transition: all 0.3s;
}

.footer-tg:hover {
    color: var(--white);
    border-color: var(--white);
}

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .features-grid,
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .commands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 999;
    }
    .nav-center.active {
        display: flex;
    }
    .nav-center .nav-link {
        font-size: 28px;
        font-weight: 600;
        color: var(--white);
    }
    .burger {
        display: flex;
        z-index: 1001;
    }
    .btn-nav {
        display: none;
    }
    .hero {
        padding: 110px 0 60px;
        min-height: auto;
    }
    .hero-title {
        letter-spacing: -1.5px;
    }
    .features-grid,
    .commands-grid,
    .steps-grid,
    .adv-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 80px 0;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
    .cta-block {
        padding: 60px 24px;
    }
    .logo-img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 36px;
    }
    .heading {
        font-size: 28px;
    }
    .card-feature,
    .card-adv {
        padding: 28px;
    }
    .logo-img {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
    .hero-title {
        font-size: 96px;
    }
}