/* ================================
   GLOBAL
================================ */
/* ================================
   COLOR SYSTEM
================================ */

:root {
    --primary: #0ea5e9;
    --secondary: #10b981;
    --accent: #22c55e;
    --dark: #111827;
    --gray: #6b7280;
    --light: #f3f4f6;
    --border: #e5e7eb;

        /* Brand Colors */
    --color-primary: #0ea5e9;
    --color-primary-hover: #0284c7;

    --color-accent: #22c55e;
    --color-accent-hover: #16a34a;

    --color-warning: #facc15;
    --color-danger: #ef4444;

    /* Neutral */
    --color-bg: #f4f6f9;
    --color-surface: #ffffff;
    --color-surface-soft: #f9fafb;

    --color-text: #1f2937;
    --color-text-muted: #6b7280;

    --color-border: #e5e7eb;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.12);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    /* Transition */
    --transition: 0.25s ease;

}

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

/* =========================
   LOGO SYSTEM
========================= */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-accent)
    );
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo-text2 {
    font-size: 20px;
    color: var(--color-text);
}

.logo-text2 span {
    color: var(--color-primary);
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f9;
    color: #1f2937;
    line-height: 1.6;
}

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

.container {
    width: 100%;
}

/* ================================
   HEADER
================================ */

.header {
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__mark {
    width: 46px;
}

.logo__title {
    display: flex;
    flex-direction: column;
}

.logo__brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #111827;
}

.logo__brand .domain {
    color: #ff6b00;
}

.logo__tag {
    font-size: 12px;
    color: #6b7280;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: #374151;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #0ea5e9;
}

/* ================================
   HERO
================================ */

.hero {
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 10px;
}

.gradient-text {
    font-size: 22px;
    background: linear-gradient(to right, #facc15, #fffb00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================================
   DOWNLOAD CARD
================================ */

.download-section {
    margin-top: -40px;
    padding: 0 20px 60px;
}

.download-card {
    max-width: 1440px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
}

/* ================================
   ALERT
================================ */

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

/* ================================
   INPUT GROUP
================================ */

.input-group {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.input-url {
    flex: 1;
    border: none;
    padding: 18px;
    font-size: 15px;
    background: transparent;
    outline: none;
}

.btn-paste,
.btn-clear {
    border: none;
    background: transparent;
    padding: 0 15px;
    cursor: pointer;
    color: #6b7280;
}

.btn-submit {
    background: #22c55e;
    border: none;
    padding: 0 28px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #16a34a;
}

/* ================================
   PROGRESS
================================ */

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #0ea5e9, #10b981);
}

.progress-text {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

/* ================================
   VIDEO RESULT
================================ */

.video-result {
    margin-top: 40px;
}

.video-info {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.video-thumbnail {
    position: relative;
    width: 240px;
}

.video-thumbnail img {
    width: 100%;
    border-radius: 10px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-details {
    flex: 1;
}

.video-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    gap: 15px;
    color: #6b7280;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================
   QUALITY LIST
================================ */

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quality-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: 0.3s;
}

.quality-item:hover {
    background: #ecfdf5;
    border-color: #10b981;
}

.quality-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
}

.red-badge {
    background: #fee2e2;
    color: #991b1b;
}

#toggleBtn {
    margin-top: 15px;
    padding: 10px 14px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ================================
   HOW TO
================================ */

.how-to {

    background: #ffffff;
    text-align: center;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    background-color: #ededed;
    border-radius: 10px 10px 0px 0px;
    padding: 10px;
    text-transform: uppercase;
}
.introduction_content{    padding: 15px;}
.bodyintro {
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    background: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    max-width: 1440px;
    margin: 0 auto 30px auto;
}
.step img{max-width: 545px;
    width: 100%;} 
.howtotext{    text-align: center;
    font-size: 11px;
    padding: 7px;
    text-decoration: underline;
    color: #1877f2;}
.rate-limit-info{    text-align: center;}    
.steps {
    display: grid;
/*grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));*/
    gap: 15px;
    max-width: 1200px;
    margin: auto;
}

.step {
    background: #f9fafb;
    padding: 4px;
    border-radius: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #0ea5e9;
    color: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ================================
   FEATURES
================================ */

.features {
    padding: 40px 0px;
    background: #f4f6f9;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: auto;
}

.feature-icon svg{width: 64px;
            height:64px;}
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16), 0 2px 10px 0 rgba(0, 0, 0, .12);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.feature-card:hover,
.feature-card:active {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15), 0 4px 12px rgba(0, 0, 0, .1);
    background: #fff5f5;
}

.feature-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    background: #ffe8e8;
}

.feature-card .feature-icon svg {
    transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.15) rotate(-5deg);
}

/* ================================
   FAQ
================================ */

.faq {
    padding: 80px 20px;
    margin: auto;
}

.faq details {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px 20px;
    background: #ffffff;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

.answer {
    
    color: #4b5563;
}

/* ================================
   FOOTER
================================ */

.footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

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

.footer-bottom {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .video-info {
        flex-direction: column;
    }

    .download-card {
        padding: 25px;
    }

    .hero-title {
        font-size: 30px;
    }
    
}