/* ========================================
   SCOREBUG — Global Styles
   ======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --accent-green: #00ff87;
    --accent-pink: #ff4081;
    --accent-blue: #4da6ff;
    --border-subtle: rgba(255,255,255,0.06);
    --radius: 12px;
    --radius-lg: 20px;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--accent-green);
    font-size: 22px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

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

.nav-btn {
    background: var(--accent-green) !important;
    color: var(--bg-primary) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 255, 135, 0.3);
}

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

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-menu a {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ========================================
   HERO
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-grid-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--accent-green);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

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

.btn-secondary {
    color: var(--text-secondary);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

/* Hero radar visual */
.hero-visual {
    flex: 0 0 380px;
    position: relative;
    z-index: 1;
}

.radar-demo {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.radar-svg {
    width: 100%;
    height: auto;
}

.radar-shape-1 {
    animation: radarPulse1 3s ease-in-out infinite;
}

.radar-shape-2 {
    animation: radarPulse2 3s ease-in-out infinite;
}

@keyframes radarPulse1 {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

@keyframes radarPulse2 {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.pulse-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { r: 4; }
    50% { r: 6; }
}

.radar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.green { background: var(--accent-green); }
.dot.pink { background: var(--accent-pink); }

@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { flex: none; width: 100%; max-width: 340px; }
}

/* ========================================
   FEATURES
   ======================================== */

.features {
    padding: 80px 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

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

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-secondary);
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ========================================
   PAGE TEMPLATE STYLES (shared by all pages)
   ======================================== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    min-height: 100vh;
}

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

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Coming soon placeholder */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.coming-soon h2 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
}

.coming-soon p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 400px;
}

/* ========================================
   FORM STYLES (for login/register pages)
   ======================================== */

.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent-green);
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.2);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 135, 0.25);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-green);
    font-weight: 600;
}
