/* ===========================
   Redchil static (HTML/CSS/jQuery)
   Generated from Base44 React UI
   =========================== */

:root {
    --bg: #ffffff;
    --text: #1A1A1A;
    --muted: #606876;
    --muted2: #8A94A3;
    --surface: #F5F6FA;
    --border: #E5E7EB;
    --brand1: #5C7BFF;
    --brand2: #9A3CFF;
    --brand3: #C74FFF;
    --shadow: 0 4px 20px rgba(0,0,0,.12);
    --shadowSoft: 0 4px 20px rgba(0,0,0,.08);
    --radius: 18px;
    --radiusLg: 22px;
    --maxw: 1120px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font: inherit;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

    .section.surface {
        background: var(--surface);
    }

.h1 {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.1;
    margin: 0 0 16px;
    font-weight: 800;
}

.h2 {
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 800;
}

.h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 800;
}

.p-lg {
    font-size: 1.125rem;
    color: var(--muted);
    font-weight: 500;
}

.p-md {
    font-size: 1rem;
    color: var(--muted);
}

.p-sm {
    font-size: .95rem;
    color: var(--muted);
}

.center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-64 {
    margin-bottom: 64px;
}

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

    .card.white {
        background: #fff;
    }

    .card.pad-26 {
        padding: 26px;
    }

    .card.pad-32 {
        padding: 32px;
    }

    .card.pad-48 {
        padding: 48px;
    }

.lift {
    transition: transform .35s ease, box-shadow .35s ease;
}

    .lift:hover {
        transform: translateY(-8px);
    }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 2px solid var(--brand2);
    color: var(--brand2);
    background: #fff;
    font-weight: 700;
    font-size: .9rem;
}

.btn {
    border: 0;
    cursor: pointer;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand1) 0%, var(--brand2) 50%, var(--brand3) 100%);
    box-shadow: 0 4px 20px rgba(154,60,255,.3);
}

    .btn-primary:hover {
        filter: brightness(1.03);
    }

.btn-ghost {
    background: transparent;
    color: var(--brand2);
    padding: 10px 0;
}

    .btn-ghost:hover {
        color: var(--text);
    }

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--brand2);
    color: var(--brand2);
}

    .btn-icon:hover {
        background: var(--brand2);
        color: #fff;
    }

.btn-full {
    width: 100%;
}

.gradient-text {
    background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ Navbar ============ */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: all .25s ease;
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(8px);
}

    .navbar.is-scrolled {
        background: rgba(255,255,255,.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

    .navbar .bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 0;
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .nav-links a,
    .nav-links button {
        font-size: .95rem;
        font-weight: 700;
        color: var(--muted);
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 10px 0;
    }

        .nav-links a:hover,
        .nav-links button:hover {
            color: var(--brand2);
        }

.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    display: none;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 12px 14px;
    font-size: .95rem;
    color: var(--muted);
}

    .dropdown a:hover {
        background: var(--surface);
        color: var(--text);
    }

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-mobile-btn {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

/* mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    padding-top: 88px;
    display: none;
}

    .mobile-menu.is-open {
        display: block;
    }

    .mobile-menu .menu-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding: 24px;
    }

.mobile-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .mobile-group .label {
        color: var(--brand2);
        font-weight: 900;
        font-size: 1.05rem;
    }

@media (max-width: 860px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .nav-mobile-btn {
        display: block;
    }
}

/* ============ Hero ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0 90px;
    overflow: hidden;
}

    .hero .actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

.play-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--brand2);
    font-weight: 800;
}

    .play-btn:hover {
        color: var(--text);
    }

.play-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 2px solid var(--brand2);
    display: grid;
    place-items: center;
}

/* ============ Lists / bullets ============ */
.bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

    .bullets li {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        color: var(--muted);
        cursor: default;
    }

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    margin-top: 9px;
    flex: 0 0 auto;
    background: var(--brand2);
}

/* ============ Service cards ============ */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadowSoft);
    border: 2px solid var(--brand2);
    color: var(--brand2);
}

/* ============ Workflow ============ */
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    position: absolute;
    top: -24px;
    left: 32px;
    box-shadow: var(--shadow);
    border: 2px solid var(--brand2);
}

/* ============ Testimonials slider ============ */
.testimonial {
    text-align: center;
}

.quote-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    opacity: .3;
    color: var(--brand2);
}

.testimonial .avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid var(--brand2);
}

.dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.dot-btn {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(154,60,255,.30);
    border: 0;
    cursor: pointer;
    transition: all .25s ease;
}

    .dot-btn:hover {
        background: rgba(154,60,255,.50);
    }

    .dot-btn.is-active {
        width: 32px;
        background: var(--brand2);
    }

/* ============ Blog cards ============ */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media {
    height: 192px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
}

    .card-media img {
        transition: transform .5s ease;
    }

.card:hover .card-media img {
    transform: scale(1.05);
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .82rem;
    color: var(--muted2);
    align-items: center;
}

    .meta .pill {
        display: inline-flex;
        gap: 6px;
        align-items: center;
    }

/* ============ Contact form ============ */
.field {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .field:focus {
        border-color: rgba(154,60,255,.9);
        box-shadow: 0 0 0 4px rgba(154,60,255,.15);
    }

textarea.field {
    min-height: 150px;
    resize: none;
}

/* ============ Footer ============ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 64px 0 32px;
    position: relative;
}

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.social {
    display: flex;
    gap: 10px;
}

    .social a {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        border: 2px solid var(--brand2);
        color: var(--brand2);
        background: #fff;
        display: grid;
        place-items: center;
        transition: all .2s ease;
    }

        .social a:hover {
            background: var(--brand2);
            color: #fff;
        }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: .9rem;
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--brand1) 0%, var(--brand2) 50%, var(--brand3) 100%);
    box-shadow: 0 4px 20px rgba(154,60,255,.3);
    display: none;
    z-index: 60;
}

    .scroll-top.is-visible {
        display: grid;
        place-items: center;
    }

/* ============ Simple fade-up reveal ============ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ============ Utility ============ */
.hr {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}
