/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a1a; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== VARIABLES ===== */
:root {
    --red: #6C3483;
    --red-dark: #5B2C6F;
    --red-light: #f5eefa;
    --gold: #F4D03F;
    --gold-dark: #D4AC0D;
    --gray: #f5f5f5;
    --gray-mid: #e8e8e8;
    --gray-dark: #666;
    --text: #1a1a1a;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(108,52,131,0.10);
    --shadow-lg: 0 8px 40px rgba(108,52,131,0.15);
}

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
    background: #1a0a2e;
    border-bottom: 3px solid var(--gold);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 16px rgba(108,52,131,0.25);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; color: #fff; }
.logo span { font-weight: 400; color: #fff; }
.logo strong { font-weight: 800; color: var(--gold); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-size: 14px; font-weight: 500; color: #ccc; transition: color 0.2s; }
.site-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: #fff; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #1a0a2e 0%, #3d1a6e 60%, #6C3483 100%);
    padding: 70px 20px 60px;
    text-align: center;
    border-bottom: 1px solid #3d1a6e;
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.80); margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ===== DOWNLOADER BOX ===== */
.downloader-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid var(--gray-mid);
}
.url-row { display: flex; gap: 10px; margin-bottom: 16px; }
.url-row input {
    flex: 1; padding: 14px 18px; border: 2px solid var(--gray-mid);
    border-radius: 10px; font-size: 15px; font-family: inherit;
    transition: border-color 0.2s; outline: none;
}
.url-row input:focus { border-color: var(--red); }
.url-row input::placeholder { color: #aaa; }
.btn-paste {
    padding: 14px 18px; background: var(--gray); border: 2px solid var(--gray-mid);
    border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; white-space: nowrap; font-family: inherit;
}
.btn-paste:hover { background: var(--gray-mid); }

.options-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.options-row select {
    flex: 1; min-width: 140px; padding: 12px 16px; border: 2px solid var(--gray-mid);
    border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff;
    outline: none; cursor: pointer; transition: border-color 0.2s;
}
.options-row select:focus { border-color: var(--red); }

.btn-download {
    width: 100%; padding: 16px; background: var(--gold); color: #1a0a2e;
    border: none; border-radius: 10px; font-size: 17px; font-weight: 800;
    cursor: pointer; transition: background 0.2s, transform 0.1s; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-download:hover { background: var(--gold-dark); }
.btn-download:active { transform: scale(0.99); }
.btn-download:disabled { background: #ccc; cursor: not-allowed; }

/* ===== PROGRESS & RESULT ===== */
#status-box { margin-top: 20px; display: none; }
.progress-bar-wrap { background: var(--gray); border-radius: 50px; height: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { height: 100%; background: var(--red); border-radius: 50px; width: 0%; transition: width 0.3s; }
.status-msg { font-size: 14px; color: var(--gray-dark); text-align: center; }
.status-msg.error { color: var(--red); }

.result-card {
    margin-top: 20px; background: var(--red-light); border: 1px solid #ffd0d0;
    border-radius: var(--radius); padding: 20px; display: none;
    text-align: left;
}
.result-card img { width: 120px; border-radius: 8px; float: left; margin-right: 16px; }
.result-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.result-info p { font-size: 13px; color: var(--gray-dark); margin-bottom: 14px; }
.btn-dl-now {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff; padding: 12px 24px;
    border-radius: 8px; font-size: 15px; font-weight: 700;
    transition: background 0.2s;
}
.btn-dl-now:hover { background: var(--red-dark); }
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== FEATURES ===== */
.features { padding: 60px 20px; background: #fff; }
.features h2 { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.features .subtitle { text-align: center; color: var(--gray-dark); margin-bottom: 40px; font-size: 15px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features-grid .feature-card:nth-child(5) { grid-column: 2; }
.features-grid .feature-card:nth-child(6) { grid-column: 3; }
.feature-card {
    background: var(--gray); border-radius: var(--radius); padding: 28px 22px;
    text-align: center; transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { font-size: 32px; margin-bottom: 14px; color: var(--red); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray-dark); }

/* ===== HOW TO ===== */
.how-to { padding: 60px 20px; background: linear-gradient(135deg, #1a0a2e 0%, #3d1a6e 100%); }
.how-to h2 { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 40px; color: #fff; }
.how-to .step h3 { color: #fff; }
.how-to .step p { color: rgba(255,255,255,0.65); }
.steps { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.step { text-align: center; max-width: 220px; }
.step-num {
    width: 52px; height: 52px; background: var(--gold); color: #1a0a2e;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; margin: 0 auto 14px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--gray-dark); }

/* ===== FAQ ===== */
.faq { padding: 60px 20px; }
.faq h2 { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 36px; }
.faq-item { border: 1px solid var(--gray-mid); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q {
    padding: 18px 22px; font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; transition: background 0.2s;
}
.faq-q:hover { background: var(--gray); }
.faq-q .icon { font-size: 16px; color: var(--red); transition: transform 0.3s; width: 20px; text-align: center; }
.faq-q.open .icon { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; font-size: 14px; color: var(--gray-dark); }
.faq-a.open { max-height: 200px; padding: 0 22px 18px; }

/* ===== PAGE CONTENT ===== */
.page-hero { background: linear-gradient(135deg, #1a0a2e, #6C3483); color: #fff; padding: 50px 20px; text-align: center; }
.page-hero h1 { font-size: 36px; font-weight: 800; }
.page-hero p { opacity: 0.85; margin-top: 8px; }
.page-content { max-width: 820px; margin: 0 auto; padding: 50px 20px; }
.page-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; color: var(--red-dark); }
.page-content p, .page-content li { font-size: 15px; line-height: 1.8; color: #333; margin-bottom: 12px; }
.page-content ul { padding-left: 20px; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding: 50px 20px; max-width: 1100px; margin: 0 auto; }
.blog-card { border: 1px solid var(--gray-mid); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-img { height: 180px; background: linear-gradient(135deg, #1a0a2e, #6C3483); display: flex; align-items: center; justify-content: center; font-size: 52px; color: var(--gold); }
.blog-card-body { padding: 20px; }
.blog-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--red); letter-spacing: 0.05em; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.blog-card-body p { font-size: 13px; color: var(--gray-dark); margin-bottom: 14px; }
.read-more { font-size: 13px; font-weight: 700; color: var(--red); }
.read-more:hover { text-decoration: underline; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; padding: 50px 20px; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 12px 16px; margin-bottom: 14px;
    border: 2px solid var(--gray-mid); border-radius: 8px;
    font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); }
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form button {
    width: 100%; padding: 14px; background: var(--gold); color: #1a0a2e;
    border: none; border-radius: 8px; font-size: 16px; font-weight: 800;
    cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.contact-form button:hover { background: var(--gold-dark); }
.contact-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item-icon { font-size: 20px; color: var(--red); flex-shrink: 0; margin-top: 4px; width: 24px; text-align: center; }
.contact-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--gray-dark); }

/* ===== FOOTER ===== */
.site-footer { background: #0d0618; color: #ccc; padding: 50px 20px 20px; margin-top: 60px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; display: inline-flex; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: #888; }
.footer-links h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13px; color: #888; margin-bottom: 8px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1f0f35; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #555; }
.footer-bottom a { color: var(--gold); transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid .feature-card:nth-child(5),
    .features-grid .feature-card:nth-child(6) { grid-column: auto; }
}
@media (max-width: 768px) {
    .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #1a0a2e; padding: 16px 20px; border-bottom: 2px solid var(--gold); gap: 16px; }
    .site-nav.open { display: flex; }
    .site-header { position: relative; }
    .nav-toggle { display: block; }
    .url-row { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .downloader-box { padding: 20px 16px; }
    .options-row { flex-direction: column; }
    .options-row select { min-width: unset; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
