/* ==============================
   REELSAVE — MAIN STYLESHEET
================================ */

:root {
    --bg: #111225;
    --card: #1b1c35;
    --card-light: #222440;
    --purple: #8065f5;
    --purple-light: #a18cff;
    --text: #ffffff;
    --muted: #a6a7bd;
    --border: rgba(255, 255, 255, 0.09);
    --green: #20c997;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

/* BACKGROUND EFFECTS */

.ambient {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.17;
    pointer-events: none;
    z-index: -1;
}

.ambient-one {
    background: #7048ff;
    top: -120px;
    left: -100px;
}

.ambient-two {
    background: #345bff;
    right: -120px;
    top: 450px;
}

/* HEADER */

.navbar {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.brand-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-highlight {
    color: var(--purple-light);
}

.nav-icons-bar {
    display: flex;
    gap: 10px;
}

.nav-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-icon-circle.active, .nav-icon-circle:hover {
    background: rgba(128, 101, 245, 0.25);
    border-color: var(--purple);
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c8c9d8;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #20d99a;
    border-radius: 50%;
    box-shadow: 0 0 10px #20d99a;
}

.install-btn {
    border: 1px solid var(--border);
    background: var(--card-light);
    color: white;
    border-radius: 10px;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 600;
}

.install-btn:hover {
    background: var(--purple);
}

/* MAIN */

.main-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 0 22px;
    margin: auto;
}

/* HERO */

.hero {
    text-align: center;
    padding-top: 50px;
}

/* PROMINENT CATEGORY TABS */
.category-tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 24px;
    overflow-x: auto;
    padding: 4px;
    max-width: 520px;
}

.tab-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tab-chip.active {
    background: linear-gradient(135deg, var(--purple), #6248dc);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(128, 101, 245, 0.35);
}

.hero h1 {
    margin-top: 15px;
    font-size: clamp(38px, 6.5vw, 64px);
    line-height: 1.15;
    letter-spacing: -2px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(90deg, #a18cff, #6f8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 540px;
    margin: 16px auto 30px;
    color: var(--muted);
    font-size: 15px;
}

/* DOWNLOADER CARD */

.downloader-card {
    max-width: 650px;
    margin: auto;
    padding: 27px;
    text-align: left;
    background: linear-gradient(145deg, #20213d, #191a30);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.heading-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(128, 101, 245, 0.18);
    color: #b5a5ff;
    font-size: 22px;
}

.card-heading h2 {
    font-size: 18px;
    font-weight: 700;
}

.card-heading p {
    color: var(--muted);
    font-size: 13px;
}

/* INPUT */

.input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 7px 9px 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: #121329;
    transition: border 0.2s, box-shadow 0.2s;
}

.input-container:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(128, 101, 245, 0.13);
}

.link-icon {
    font-size: 17px;
}

.input-container input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 14px;
}

.input-container input::placeholder {
    color: #777990;
}

.paste-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(161, 140, 255, 0.25);
    border-radius: 9px;
    padding: 9px 12px;
    background: rgba(128, 101, 245, 0.13);
    color: #c4b8ff;
    font-size: 13px;
    font-weight: 700;
}

.paste-btn:hover {
    background: rgba(128, 101, 245, 0.27);
}

/* MAIN BUTTON */

.download-btn {
    width: 100%;
    min-height: 55px;
    margin-top: 16px;
    padding: 13px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(100deg, #8065f5, #6248dc);
    color: white;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(100, 72, 220, 0.25);
    transition: transform 0.2s, filter 0.2s;
}

.download-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: scale(0.98);
}

.download-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* STATUS MESSAGE */

.message {
    margin-top: 13px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.message.error {
    color: #ff8585;
}

.message.success {
    color: #55dca9;
}

.message.info {
    color: #b8a8ff;
}

.privacy-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 19px;
    color: #9294aa;
    font-size: 12px;
}

/* MODERN RESULT CARD */

.result-modern-card {
    margin-top: 24px;
    background: rgba(17, 18, 37, 0.85);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 18px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.video-wrapper video {
    width: 100%;
    max-height: 420px;
    display: block;
    object-fit: contain;
}

.download-action-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 330px;
    margin: 0 auto;
}

.btn-server {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.15s, filter 0.2s;
}

.btn-server:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
}

.btn-audio {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.btn-server:hover {
    filter: brightness(1.1);
}

.dl-icon {
    font-size: 16px;
}

.btn-download-again {
    background: transparent;
    border: none;
    color: var(--purple-light);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 6px;
    padding: 8px;
}

/* HIDDEN */

.hidden,
[hidden] {
    display: none !important;
}

/* ADVERTISEMENT */

.ad-section {
    max-width: 650px;
    margin: 30px auto 0;
}

.ad-container {
    min-height: 95px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.ad-container span {
    color: #62647b;
    font-size: 10px;
    letter-spacing: 2px;
}

/* HOW IT WORKS */

.how-section,
.faq-section {
    padding-top: 85px;
}

.section-intro {
    text-align: center;
    margin-bottom: 35px;
}

.section-label {
    color: #a18cff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-intro h2 {
    margin-top: 9px;
    font-size: clamp(25px, 4vw, 34px);
    letter-spacing: -1px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.step-card {
    position: relative;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.step-number {
    display: inline-block;
    margin-bottom: 17px;
    color: #a18cff;
    font-size: 27px;
    font-weight: 800;
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--muted);
    font-size: 13px;
}

/* FAQ */

.faq-list {
    max-width: 750px;
    margin: auto;
    display: grid;
    gap: 12px;
}

.faq-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.faq-toggle {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border: none;
    background: transparent;
    color: white;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
}

.faq-toggle span {
    color: #a18cff;
    font-size: 22px;
    transition: transform 0.2s;
}

.faq-card.active .faq-toggle span {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 13px;
}

.faq-card.active .faq-answer {
    display: block;
}

/* FOOTER */

.footer {
    margin-top: 100px;
    padding: 35px 22px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.12);
}

.footer-inner,
.footer-bottom {
    max-width: 1100px;
    margin: auto;
}

.footer-description {
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 20px;
}

.footer-links a {
    color: #b5b6c8;
    font-size: 12px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: #777990;
    font-size: 11px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 800px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .category-tabs-container {
        justify-content: flex-start;
    }

    .tab-chip {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
