/* ═══════════════════════════════════════════════════════════ */
/* DESIGN SYSTEM                                               */
/* ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0A0A12;
    --bg-secondary: #0F0F1A;
    --bg-card: #111118;
    --bg-card-hover: #161625;
    --border: #1E1E32;
    --border-hover: #2D2D44;

    --accent: #FF6B35;
    --accent-light: #FF8A5C;
    --accent-dark: #E55A2B;
    --accent-glow: rgba(255, 107, 53, 0.15);

    --blue: #3B82F6;
    --green: #22C55E;
    --purple: #8B5CF6;

    --text-primary: #E8E8F0;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 4px 24px rgba(255, 107, 53, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════════════ */
/* NAVIGATION                                                  */
/* ═══════════════════════════════════════════════════════════ */

nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    transition: box-shadow 0.3s;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.15rem; color: var(--accent);
}

.nav-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex; align-items: center; gap: 28px;
}

.nav-links a {
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-btn {
    background: var(--accent) !important; color: #fff !important;
    padding: 8px 18px; border-radius: var(--radius-sm);
    font-weight: 600 !important; transition: all 0.2s !important;
}

.nav-btn:hover {
    background: var(--accent-dark) !important;
    box-shadow: var(--shadow-accent) !important;
}

.mobile-menu {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 1.5rem; cursor: pointer;
}

.mobile-nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border);
    padding: 16px 32px; z-index: 99; flex-direction: column; gap: 12px;
}

.mobile-nav a {
    color: var(--text-secondary); font-size: 1rem; font-weight: 500;
    padding: 8px 0;
}

.mobile-nav.open { display: flex; }

/* ═══════════════════════════════════════════════════════════ */
/* BUTTONS                                                     */
/* ═══════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px;
    font-weight: 700; font-size: 0.95rem;
    transition: all 0.25s; cursor: pointer; border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.45);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff; color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }

.btn-outline-white {
    background: transparent; color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-outline-white:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════ */
/* HERO                                                        */
/* ═══════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh; padding: 120px 32px 80px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}

.hero-bg-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 1120px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-glow); color: var(--accent-light);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 6px 16px; border-radius: 100px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3px;
    margin-bottom: 20px;
    animation: fadeUp 0.5s ease both;
}

.pulse-dot {
    width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900; letter-spacing: -2px; line-height: 1.08;
    margin-bottom: 20px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem; color: var(--text-secondary);
    line-height: 1.7; max-width: 480px; margin-bottom: 28px;
    animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px;
    animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
    display: flex; gap: 32px; flex-wrap: wrap;
    animation: fadeUp 0.6s 0.4s ease both;
}

.stat-num {
    font-size: 1.7rem; font-weight: 800; letter-spacing: -1px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-top: 2px;
}

/* App Preview */
.hero-visual {
    animation: fadeUp 0.8s 0.5s ease both;
}

.app-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.app-titlebar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.app-dots { display: flex; gap: 6px; }
.app-dots span {
    width: 10px; height: 10px; border-radius: 50%;
}
.app-dots span:nth-child(1) { background: #EF4444; }
.app-dots span:nth-child(2) { background: #F59E0B; }
.app-dots span:nth-child(3) { background: #22C55E; }

.app-title {
    color: var(--accent); font-size: 0.82rem; font-weight: 600;
}

.app-body { padding: 16px; }

.app-tabs {
    display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}

.app-tabs span {
    padding: 6px 14px; border-radius: 6px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.tab-active {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

.app-content { padding: 12px 0; }

.app-log-line {
    font-family: 'Consolas', monospace;
    font-size: 0.82rem; color: var(--text-secondary);
    padding: 6px 0;
}

.app-log-line .log-ok { color: var(--green); margin-right: 6px; }
.app-log-line.dim { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════ */
/* SECTIONS                                                    */
/* ═══════════════════════════════════════════════════════════ */

.section-header { margin-bottom: 48px; }

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

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800; letter-spacing: -1px; margin-bottom: 12px;
}

.section-sub {
    color: var(--text-secondary); font-size: 1rem;
    line-height: 1.7; max-width: 520px;
}

/* ═══════════════════════════════════════════════════════════ */
/* FEATURES                                                    */
/* ═══════════════════════════════════════════════════════════ */

.features-section { padding: 100px 0; }

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0; transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    font-size: 1.8rem; margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════ */
/* PLATFORMS                                                   */
/* ═══════════════════════════════════════════════════════════ */

.platforms-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.platform-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 800; margin-bottom: 16px;
    color: #fff;
}

.platform-icon.qc { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.platform-icon.mtk { background: linear-gradient(135deg, #F59E0B, #D97706); }
.platform-icon.sam { background: linear-gradient(135deg, #1D4ED8, #1E40AF); }
.platform-icon.exy { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.platform-icon.spd { background: linear-gradient(135deg, #22C55E, #16A34A); }
.platform-icon.adb { background: linear-gradient(135deg, #6366F1, #4F46E5); }

.platform-card h3 {
    font-size: 1.15rem; font-weight: 700; margin-bottom: 8px;
}

.platform-card p {
    color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6;
    margin-bottom: 14px;
}

.platform-brands {
    font-size: 0.78rem; color: var(--text-muted); font-weight: 500;
    padding-top: 14px; border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════ */
/* DOWNLOAD                                                    */
/* ═══════════════════════════════════════════════════════════ */

.download-section { padding: 100px 0; }

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center;
}

.download-specs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin: 24px 0 28px;
}

.spec {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.spec span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.spec strong { font-size: 0.92rem; }

.dl-steps { display: flex; flex-direction: column; gap: 20px; }

.dl-step {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s;
}

.dl-step:hover { border-color: var(--accent); transform: translateX(4px); }

.step-num {
    width: 40px; height: 40px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; color: #fff;
}

.dl-step strong { font-size: 0.95rem; }
.dl-step span { font-size: 0.82rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════ */
/* REGISTER                                                    */
/* ═══════════════════════════════════════════════════════════ */

.register-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.register-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: start;
}

.register-benefits {
    display: flex; flex-direction: column; gap: 12px; margin-top: 24px;
}

.benefit {
    font-size: 0.92rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
}

.benefit::before { content: none; }

.register-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.form-header { margin-bottom: 24px; }
.form-header h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.form-header p { color: var(--text-muted); font-size: 0.88rem; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block; font-size: 0.72rem; font-weight: 700;
    color: var(--text-muted); letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%; padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem; font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-message {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 0.88rem; font-weight: 500;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--green);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.form-footer {
    text-align: center; margin-top: 16px;
    font-size: 0.82rem; color: var(--text-muted);
}

.form-footer strong { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════ */
/* CTA                                                         */
/* ═══════════════════════════════════════════════════════════ */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 50%, #C0451A 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800; letter-spacing: -1px; margin-bottom: 12px;
}

.cta-content p {
    opacity: 0.85; font-size: 1rem; margin-bottom: 28px;
    max-width: 440px; margin-left: auto; margin-right: auto;
}

.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER                                                      */
/* ═══════════════════════════════════════════════════════════ */

footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex; justify-content: space-between; gap: 48px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-muted); font-size: 0.88rem;
    margin-top: 12px; max-width: 280px;
}

.footer-links { display: flex; gap: 64px; }

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.footer-col a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════ */
/* ANIMATIONS                                                  */
/* ═══════════════════════════════════════════════════════════ */

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

.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.on { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                  */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .download-card { grid-template-columns: 1fr; }
    .register-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .hide-mobile { display: none; }
    .hero h1 { letter-spacing: -1px; }
    .hero-stats { gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .platform-cards { grid-template-columns: 1fr; }
    .download-card { padding: 28px; }
    .footer-content { flex-direction: column; }
    .footer-links { gap: 32px; }
}
