/* ============================================================
   Lookt.ru — 21st.dev Redesign CSS
   Все стили изолированы в папке 21st-dev-redesign
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #07070f;
    --bg-card: #0f0f1e;
    --bg-card-2: #13132a;
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 0, 200, 0.35);
    --pink: #ff00c8;
    --cyan: #00ffcc;
    --purple: #9000ff;
    --text: #eceff4;
    --text-muted: #8b90b7;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.25s ease;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #ff00c8 0%, #00ffcc 100%);
    --grad-purple: linear-gradient(135deg, #9000ff 0%, #00e5ff 100%);
    --grad-text: linear-gradient(135deg, #ff00c8, #c060ff, #00ffcc);

    /* Shadows */
    --shadow-pink: 0 0 40px rgba(255, 0, 200, 0.2);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-glow);
    border-radius: 3px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 0, 200, 0.3);
    border-radius: 999px;
    background: rgba(255, 0, 200, 0.06);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 20px;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--pink);
}



.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn21 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(255, 0, 200, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(255, 0, 200, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgb(255 255 255 / 28%);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: rgba(255, 0, 200, 0.4);
    background: rgba(255, 0, 200, 0.05);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: 14px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 10px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.r-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Animated background */
.r-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Grid lines */
.r-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 60%, transparent 110%);
}

/* Glowing orbs */
.r-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.r-hero__orb--1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(144, 0, 255, 0.4) 0%, transparent 70%);
    animation: orbFloat 8s ease-in-out infinite;
}

.r-hero__orb--2 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 0, 200, 0.3) 0%, transparent 70%);
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.r-hero__orb--3 {
    width: 400px;
    height: 400px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 255, 204, 0.2) 0%, transparent 70%);
    animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Particles canvas */
#r-particles {
    position: absolute;
    inset: 0;
}

.r-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 50px 0;
}

/* Eyebrow badge */
.r-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 8px;
    border: 1px solid rgba(255, 0, 200, 0.25);
    border-radius: 999px;
    background: rgba(255, 0, 200, 0.06);
    backdrop-filter: blur(12px);
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--text-muted);
    animation: fadeUp 0.6s ease both;
}

.r-hero__eyebrow-badge {
    background: var(--grad-primary);
    color: #0a0a14;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Title */
.r-hero__title {
    font-size: clamp(42px, 6vw, 84px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.r-hero__title-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.r-hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeUp 0.6s ease 0.2s both;
}

/* CTA buttons */
.r-hero__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 64px;
    animation: fadeUp 0.6s ease 0.3s both;
}



/* Glow below screen */
.r-hero__screen-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80px;
    background: var(--pink);
    filter: blur(50px);
    opacity: 0.2;
    border-radius: 50%;
    pointer-events: none;
}

/* Stats row */
.r-hero__stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 64px;
    animation: fadeUp 0.6s ease 0.5s both;
}

.r-hero__stat {
    text-align: center;
}

.r-hero__stat-num {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.r-hero__stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}



/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 200, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 0, 200, 0);
    }
}

/* Scroll-driven fade-in (progressive enhancement) */
.r-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.r-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .r-steps--5col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .r-hero {
        padding: 100px 0 64px;
    }

    .r-navbar__links,
    .r-navbar__actions {
        display: none;
    }

    .r-navbar__burger {
        display: flex;
    }

    .r-steps--5col {
        grid-template-columns: 1fr 1fr;
    }

    .r-pricing-card--popular {
        transform: none;
    }

    .r-pricing-card--popular:hover {
        transform: translateY(-4px);
    }

    .r-events__shell {
        padding: 40px 24px;
    }
}

@media (max-width: 500px) {
    .r-steps--5col {
        grid-template-columns: 1fr;
    }

    .r-hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .r-hero__stats {
        gap: 24px;
    }
}