:root {
    --bg-dark: #08090d;
    --bg-card: rgba(18, 20, 28, 0.75);
    --bg-card-hover: rgba(26, 30, 42, 0.85);
    --bg-sub: #11131a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 95, 97, 0.35);
    
    --accent: #ff5f61;
    --accent-glow: #ff3b5c;
    --accent-gradient: linear-gradient(135deg, #ff5f61 0%, #ff385c 100%);
    
    --text-main: #ffffff;
    --text-muted: #8d90a5;
    --text-dim: #5a5d72;
    
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.12);
    --success-border: rgba(52, 211, 153, 0.3);

    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --danger-border: rgba(248, 113, 113, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(255, 95, 97, 0.35);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(255, 95, 97, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 85% 30%, rgba(255, 59, 92, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 15% 70%, rgba(138, 58, 255, 0.05) 0%, transparent 50%),
                var(--bg-dark);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #252836;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 9, 13, 0.75);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 95, 97, 0.4));
    transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
    transform: rotate(-5deg) scale(1.05);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 40%, #ff8587 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 95, 97, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 95, 97, 0.55);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
    padding-top: 170px;
    padding-bottom: 90px;
    text-align: center;
    position: relative;
}

.hero-badge-wrap {
    display: inline-flex;
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px auto;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-features-bar {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-pill svg {
    color: var(--accent);
}

/* Download Section & License Gate */
.download-section {
    padding: 60px 0 100px 0;
}

.gate-card {
    background: linear-gradient(145deg, rgba(20, 22, 32, 0.95) 0%, rgba(14, 15, 22, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.gate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.gate-header-box {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px auto;
}

.gate-badge-locked {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 95, 97, 0.12);
    border: 1px solid rgba(255, 95, 97, 0.3);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.gate-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.gate-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Key Input Form */
.key-entry-wrap {
    max-width: 580px;
    margin: 0 auto 32px auto;
}

.key-input-box {
    display: flex;
    gap: 12px;
    background: #12141c;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    transition: all 0.25s ease;
}

.key-input-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 95, 97, 0.35);
}

.key-text-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 16px;
    letter-spacing: 1px;
}

.key-text-field::placeholder {
    color: var(--text-dim);
    font-weight: 500;
}

.gate-msg {
    margin-top: 14px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.gate-msg.error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}

.gate-msg.success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

/* Unlocked Download Box */
.unlocked-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.unlocked-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.unlocked-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.unlocked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 700;
}

.unlocked-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.license-info-pill-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.license-info-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.license-info-pill strong {
    color: var(--accent);
}

.file-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.spec-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}

.spec-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.spec-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 95, 97, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(12px);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 95, 97, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(255, 95, 97, 0.12);
    border: 1px solid rgba(255, 95, 97, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 95, 97, 0.5);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* System Requirements */
.req-section {
    padding: 100px 0;
}

.req-table-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.req-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
}

.req-row:last-child {
    border-bottom: none;
}

.req-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.req-val {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-badge {
    background: rgba(52, 211, 153, 0.15);
    color: var(--success);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* FAQ Accordion */
.faq-section {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: rgba(255, 95, 97, 0.3);
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    user-select: none;
}

.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 28px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding-bottom: 24px;
}

/* CTA Footer Box */
.footer-cta {
    padding: 80px 0 120px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(255, 95, 97, 0.15) 0%, rgba(20, 22, 32, 0.9) 100%);
    border: 1px solid rgba(255, 95, 97, 0.3);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-box h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 36px auto;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background: rgba(8, 9, 13, 0.9);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(18, 20, 28, 0.95);
    border: 1px solid var(--accent);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .unlocked-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .file-specs {
        grid-template-columns: 1fr;
    }
    .key-input-box {
        flex-direction: column;
    }
    .req-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
