:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #10b981;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links .btn-outline {
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--text-main);
}
.nav-links .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* HERO SECTION */
.hero {
    margin-top: 72px;
    padding: 80px 5%;
    text-align: center;
    background: var(--bg-light);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    max-width: 800px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}
.btn-accent {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}
.btn-accent:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* FEATURES GRID */
.features {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.features-header {
    text-align: center;
    margin-bottom: 48px;
}
.features-header h2 {
    font-size: 32px;
    font-weight: 700;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.feature-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-icon {
    font-size: 32px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 12px;
    background: var(--bg-gray);
    border-radius: 12px;
}
.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* REFERRAL BANNER */
.ref-banner {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    display: none;
    margin-top: 72px; /* Below navbar */
}

/* FORMS (TRIAL / KOC) */
.form-section {
    padding: 60px 5%;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.form-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.form-container h2 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}
.form-container p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}
.form-group label small {
    color: var(--text-muted);
    font-weight: normal;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background-color: var(--bg-light);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* RESULT BOX */
.result-box {
    text-align: center;
    padding: 32px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    border: 1px dashed var(--accent);
}
.result-box h3 {
    color: var(--accent);
    margin-bottom: 16px;
}
.key-display {
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    padding: 16px;
    background: #e0e7ff;
    border-radius: 8px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

/* LEADERBOARD (PARTNER PAGE) */
.leaderboard-section {
    max-width: 600px;
    margin: 0 auto;
}
.lb-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.lb-item:hover {
    background: var(--bg-gray);
}
.lb-rank {
    width: 40px;
    font-weight: 700;
    color: var(--text-muted);
}
.lb-rank.top-1 { color: #f59e0b; font-size: 20px; }
.lb-rank.top-2 { color: #94a3b8; font-size: 18px; }
.lb-rank.top-3 { color: #b45309; font-size: 16px; }
.lb-name {
    flex: 1;
    font-weight: 600;
}
.lb-earnings {
    font-weight: 700;
    color: var(--primary);
}

/* LIVE TICKER */
.live-ticker-container {
    background: #0f172a;
    color: white;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
    margin-bottom: 40px;
}
.live-ticker-label {
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    margin-right: 16px;
    z-index: 2;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}
.live-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.live-ticker {
    display: flex;
    white-space: nowrap;
    animation: scrollTicker 25s linear infinite;
}
.live-ticker span {
    margin-right: 40px;
    font-size: 14px;
}
.live-ticker span strong {
    color: #38bdf8;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px 5%;
    background: var(--bg-light);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links a { display: none; }
    .nav-links .btn-outline { display: block; }
}
