:root {
    --bg: #131314;
    --surface: #1e1f20;
    --surface-card: #1e1f20;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #a8c7fa;
    --accent-purple: #c58af9;
    --text: #e3e3e3;
    --text-muted: #9aa0a6;
    --success: #81c995;
    --warning: #fdd663;
    --error: #f28b82;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Google Sans", sans-serif;
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(66, 133, 244, 0.18) 0%, rgba(155, 114, 207, 0.1) 40%, rgba(217, 101, 112, 0.04) 65%, transparent 80%),
        var(--bg);
    color: var(--text); line-height: 1.6; overflow-x: hidden; min-height: 100vh;
}
header {
    display: flex; justify-content: space-between; align-items: center; padding: 18px 6%;
    border-bottom: 1px solid var(--border); backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 50; background: rgba(19, 19, 20, 0.85);
}
.logo { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: #fff; letter-spacing: -0.5px; }
.btn {
    background: var(--surface-card); border: 1px solid var(--border); color: var(--text);
    padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); user-select: none;
}
.btn:hover { 
    transform: translateY(-1px); border-color: rgba(168, 199, 250, 0.4); 
    background: #242628; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); 
}
.btn:active { transform: translateY(0); }
.btn-outline {
    background: var(--surface-card); border: 1px solid var(--border); color: var(--text);
    box-shadow: none; border-radius: 999px;
}
.btn-outline:hover { background: #242628; border-color: rgba(168, 199, 250, 0.4); }
.hero { text-align: center; padding: 90px 20px 70px; max-width: 900px; margin: 0 auto; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
    background: var(--surface-card); border: 1px solid var(--border);
    border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 24px;
}
.badge-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }
.hero h1 {
    font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.18; margin-bottom: 22px;
    letter-spacing: -0.8px; color: #d1d5db; 
}
.hero p { font-size: clamp(16px, 2vw, 18px); color: var(--text-muted); margin: 0 auto 36px; line-height: 1.65; max-width: 720px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stats-bar { display: flex; justify-content: center; gap: 40px; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-item h4 { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.stat-item p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1100px; margin: 40px auto 90px; padding: 0 6%; }
.feature-card {
    background: var(--surface-card); padding: 32px 28px; border-radius: 24px; border: 1px solid var(--border);
    backdrop-filter: blur(12px); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
    user-select: none; display: flex; flex-direction: column; justify-content: space-between;
}
.feature-card:hover {
    transform: translateY(-4px); border-color: rgba(168, 199, 250, 0.4); background: #242628;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(155, 114, 207, 0.12);
}
.feature-card:active { transform: scale(0.98); }
.feature-card .icon-box {
    width: 44px; height: 44px; background: rgba(168, 199, 250, 0.08); border: 1px solid rgba(168, 199, 250, 0.18);
    border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.feature-card p { color: var(--text-muted); line-height: 1.55; font-size: 14px; margin-bottom: 16px; }
.card-action {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
    color: var(--accent); transition: gap 0.2s ease;
}
.feature-card:hover .card-action { gap: 10px; color: #d3e3fd; }

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center;
    padding: 20px; z-index: 100; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card {
    background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 28px;
    width: 100%; max-width: 480px; padding: 36px 32px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-card { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-header h2 { font-size: 21px; font-weight: 700; color: #fff; }
.modal-header p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.modal-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; display: flex; }
.modal-close:hover { color: #fff; }
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #c4c7c5; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 13px 16px; background: #131314; border: 1px solid var(--border);
    border-radius: 14px; color: #fff; font-size: 14px; outline: none; transition: all 0.2s ease;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 199, 250, 0.2); }
.alert-box {
    background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5;
    padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 20px; display: none; align-items: center; gap: 10px;
}
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }

.toast-hud {
    position: fixed; bottom: 30px; right: 30px; background: #1e1f20; border: 1px solid rgba(168, 199, 250, 0.3);
    border-radius: 16px; padding: 16px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex; align-items: flex-start; gap: 14px; z-index: 200; max-width: 380px;
    transform: translateY(100px); opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-hud.active { transform: translateY(0); opacity: 1; visibility: visible; }
.toast-icon { flex-shrink: 0; color: var(--success); margin-top: 2px; }
.toast-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.toast-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

footer { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border); }
@keyframes spin { 100% { transform: rotate(360deg); } }
