/* =========================================
   4e Client — style.css (clean recode)
   ========================================= */

/* ---------- Design Tokens ---------- */
:root {
    --bg: #070709;
    --bg-2: #0d0c12;
    --bg-3: #131118;
    --border: rgba(255, 255, 255, 0.07);
    --border-hi: rgba(168, 85, 247, 0.35);

    --purple: #a855f7;
    --purple-dim: rgba(168, 85, 247, 0.15);

    --text: #f0eef8;
    --muted: #6b6880;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --transition: .22s var(--ease);
    --cont: 1160px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- Utility ---------- */
.cont {
    max-width: var(--cont);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    background: var(--purple);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--r-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    background: #9333ea;
    box-shadow: 0 8px 24px rgba(168, 85, 247, .35);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    background: transparent;
    color: var(--muted);
    font-weight: 500;
    font-size: .95rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .03);
}

/* ---------- Labels ---------- */
.label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1rem;
}

/* ---------- Section layout ---------- */
.section-inner {
    max-width: var(--cont);
    margin: 0 auto;
    padding: 7rem 1.5rem;
}

.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-head h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .6rem;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* =====================
   NAVBAR
   ===================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: .9rem 0;
    background: rgba(7, 7, 9, .7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

#navbar.scrolled {
    background: rgba(7, 7, 9, .92);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.nav-inner {
    max-width: var(--cont);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    flex-shrink: 0;
}

.brand i {
    color: var(--purple);
    font-size: 1.5rem;
}

.brand em {
    font-style: normal;
    color: var(--muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    font-size: .88rem;
    font-weight: 600;
    padding: .55rem 1.25rem;
    background: var(--purple);
    color: #fff;
    border-radius: var(--r-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-cta:hover {
    background: #9333ea;
    box-shadow: 0 4px 16px rgba(168, 85, 247, .3);
}

/* =====================
   HERO
   ===================== */
#hero {
    padding: 13rem 1.5rem 6rem;
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(168, 85, 247, .12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--purple);
    background: var(--purple-dim);
    border: 1px solid rgba(168, 85, 247, .25);
    border-radius: 100px;
    padding: .4rem 1rem;
    margin-bottom: 2rem;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple);
    animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

#hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 1.4rem;
    color: var(--text);
}

#hero h1 span {
    color: var(--purple);
}

#hero>.hero-inner>p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2.5rem;
}

.stat-item strong {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
}

.stat-item span {
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .1rem;
}

.stat-sep {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* =====================
   PREVIEW
   ===================== */
#preview {
    padding: 0 1.5rem 6rem;
}

.preview-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.preview-img-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-hi);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, .08),
        0 24px 60px rgba(0, 0, 0, .6),
        0 0 80px rgba(168, 85, 247, .12);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.preview-img-wrap:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, .15),
        0 32px 80px rgba(0, 0, 0, .7),
        0 0 100px rgba(168, 85, 247, .18);
}

.preview-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

/* =====================
   MODULES
   ===================== */
#modules {
    background: var(--bg-2);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: start;
}

.module-col {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.module-col:hover {
    border-color: rgba(168, 85, 247, .2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
}

.col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .95rem 1.1rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    transition: background var(--transition);
}

.col-header:hover {
    background: rgba(255, 255, 255, .04);
}

.col-header-left {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.col-header-left i {
    color: var(--purple);
    font-size: 1.1rem;
}

.col-header-left span {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text);
}

.col-caret {
    color: var(--muted);
    font-size: 1.1rem;
    transition: transform .25s var(--ease);
    flex-shrink: 0;
}

.module-col.collapsed .col-caret {
    transform: rotate(180deg);
}

.module-list {
    padding: .3rem 0;
    transition: max-height .28s var(--ease), opacity .2s;
    overflow: hidden;
}

.module-col.collapsed .module-list {
    max-height: 0 !important;
    opacity: 0;
}

.module-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 1.1rem;
    font-size: .82rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, .025);
    transition: background var(--transition), color var(--transition);
    cursor: default;
}

.module-list li:last-child {
    border-bottom: none;
}

.module-list li:hover {
    background: rgba(255, 255, 255, .025);
    color: var(--text);
}

/* Toggle switch */
.toggle {
    width: 28px;
    height: 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .1);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .22s;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted);
    transition: left .22s var(--ease), background .22s;
}

.toggle.on {
    background: rgba(168, 85, 247, .3);
}

.toggle.on::after {
    left: calc(100% - 14px);
    background: #fff;
    box-shadow: 0 0 8px rgba(168, 85, 247, .8);
}

.module-list li:hover .toggle:not(.on) {
    background: rgba(255, 255, 255, .18);
}

/* =====================
   SHOWCASE
   ===================== */
#showcase {
    background: var(--bg);
}

.yt-wrap {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-hi);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, .06),
        0 24px 60px rgba(0, 0, 0, .6),
        0 0 80px rgba(168, 85, 247, .1);
}

.yt-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =====================
   DOWNLOAD
   ===================== */
#download {
    background: var(--bg);
}

/* Trust Bar */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    background: rgba(59, 130, 246, .07);
    border: 1px solid rgba(59, 130, 246, .2);
    border-radius: 100px;
    padding: .55rem 1.25rem;
    margin: 0 auto 3rem;
    width: fit-content;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 500;
    color: #10b981;
}

.trust-item i {
    font-size: 1.1rem;
}

.trust-item.blue {
    color: #3b82f6;
}

.trust-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 .75rem;
}

/* Install Steps */
.install-steps {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.install-step {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.install-step:last-child {
    border-bottom: none;
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--purple-dim);
    border: 1px solid rgba(168, 85, 247, .3);
    color: var(--purple);
    font-size: .9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .1rem;
}

.step-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.step-body>p {
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.step-body a[href]:not(.btn-primary) {
    color: var(--purple);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity var(--transition);
}

.step-body a[href]:hover {
    opacity: .75;
}

.step-body code {
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--border);
    padding: .1rem .45rem;
    border-radius: 4px;
    font-size: .88em;
    font-family: 'Courier New', monospace;
    color: var(--text);
}

kbd {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    padding: .15rem .55rem;
    border-radius: 5px;
    font-size: .85em;
    font-family: 'Courier New', monospace;
    color: var(--text);
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    padding: .75rem 1.6rem;
    margin-bottom: .9rem;
    width: auto;
    align-self: flex-start;
}

.dl-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.dl-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: var(--muted);
}

.dl-meta i {
    font-size: 1rem;
}

/* =====================
   FAQ
   ===================== */
#faq {
    background: var(--bg-2);
}

.faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.open {
    border-color: rgba(168, 85, 247, .25);
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.4rem;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: .97rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.faq-q:hover {
    color: #fff;
}

.faq-q i {
    color: var(--muted);
    font-size: 1.2rem;
    transition: transform .25s var(--ease);
    flex-shrink: 0;
}

.faq-item.open .faq-q i {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s var(--ease);
}

.faq-a p {
    padding: 0 1.4rem 1.3rem;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.7;
}

/* =====================
   FOOTER
   ===================== */
#footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 0 1.5rem;
}

.footer-inner {
    max-width: var(--cont);
    margin: 0 auto;
    padding: 3rem 0 2rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-nav {
    display: flex;
    gap: 1.75rem;
}

.footer-nav a {
    font-size: .88rem;
    color: var(--muted);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-socials {
    display: flex;
    gap: .75rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: .82rem;
    color: var(--muted);
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
}

.footer-legal a {
    font-size: .82rem;
    color: var(--muted);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--text);
}

/* =====================
   SCROLL REVEAL
   ===================== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
    .module-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section-inner {
        padding: 5rem 1.25rem;
    }

    .module-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dl-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-sep {
        width: 40px;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}