/* ScoreWala - Main Stylesheet */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #10b981;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-white { background: var(--white); color: var(--gray-800); }
.btn-white:hover { background: var(--gray-50); }
.btn-outline { border-color: var(--gray-300); color: var(--gray-700); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.navbar-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}
.navbar-link:hover, .navbar-link.active { color: var(--primary); }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--gray-700); }

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #f0fdf4 100%);
    overflow: hidden;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 20px;
}
.hero-title span { color: var(--primary); }
.hero-desc {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 520px;
}
.hero-buttons { display: flex; gap: 12px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat-value { font-size: 24px; font-weight: 800; color: var(--secondary); }
.hero-stat-label { font-size: 13px; color: var(--gray-500); }

/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    width: 320px;
    position: relative;
    z-index: 2;
}
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-card-avatar {
    width: 44px; height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.hero-card-info h4 { font-size: 15px; font-weight: 600; }
.hero-card-info p { font-size: 12px; color: var(--gray-500); }
.hero-score { text-align: center; }
.hero-score-circle { position: relative; width: 160px; height: 160px; margin: 0 auto 16px; }
.hero-score-circle svg { width: 160px; height: 160px; transform: rotate(-90deg); }
.hero-score-circle .bg { fill: none; stroke: var(--gray-200); stroke-width: 8; }
.hero-score-circle .progress {
    fill: none; stroke: var(--accent); stroke-width: 8;
    stroke-dasharray: 440; stroke-dashoffset: 57;
    stroke-linecap: round; transition: stroke-dashoffset 1s;
}
.hero-score-value {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero-score-number { font-size: 36px; font-weight: 800; color: var(--secondary); }
.hero-score-label { font-size: 12px; color: var(--gray-500); }
.hero-score-status {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ecfdf5; color: var(--accent);
    padding: 6px 16px; border-radius: 50px;
    font-size: 13px; font-weight: 600;
}
.hero-score-status svg { width: 16px; height: 16px; }

/* Floating badges */
.hero-float {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}
.hero-float-1 { top: 20px; left: -30px; }
.hero-float-2 { bottom: 20px; right: -30px; animation-delay: 1.5s; }
.hero-float-icon {
    width: 36px; height: 36px;
    background: #eff6ff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.hero-float-icon svg { width: 18px; height: 18px; }
.hero-float-text strong { display: block; font-size: 13px; font-weight: 600; }
.hero-float-text span { font-size: 11px; color: var(--gray-500); }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Sections */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-50); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #eff6ff; color: var(--primary);
    padding: 6px 14px; border-radius: 50px;
    font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.section-badge svg { width: 16px; height: 16px; }
.section-title { font-size: 32px; font-weight: 800; color: var(--secondary); margin-bottom: 12px; }
.section-desc { font-size: 16px; color: var(--gray-500); }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
    width: 48px; height: 48px;
    background: #eff6ff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.step-number {
    width: 48px; height: 48px;
    background: var(--primary); color: var(--white);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
    margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-500); }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial-stars svg { width: 18px; height: 18px; fill: #f59e0b; }
.testimonial-text { font-size: 14px; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 40px; height: 40px;
    background: var(--primary); color: var(--white);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.testimonial-info h4 { font-size: 14px; font-weight: 600; }
.testimonial-info p { font-size: 12px; color: var(--gray-500); }

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
}
.cta-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; }

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-links h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: var(--gray-400); margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--gray-400); }
.form-error { font-size: 13px; color: var(--danger); margin-top: 4px; }
.form-hint { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* OTP Input */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-input {
    width: 50px; height: 56px;
    text-align: center; font-size: 22px; font-weight: 700;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    outline: none; transition: border-color 0.2s;
}
.otp-input:focus { border-color: var(--primary); }

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    padding: 20px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo h2 { font-size: 24px; font-weight: 800; color: var(--secondary); }
.auth-logo p { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--gray-500); }

/* Score Display */
.score-circle-wrap { text-align: center; padding: 40px 0; }
.score-circle-lg { width: 200px; height: 200px; margin: 0 auto; position: relative; }
.score-circle-lg svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.score-circle-lg .bg { fill: none; stroke: var(--gray-200); stroke-width: 10; }
.score-circle-lg .progress { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 565; transition: stroke-dashoffset 1.5s ease; }
.score-value-lg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.score-number-lg { font-size: 48px; font-weight: 800; }
.score-label-lg { font-size: 14px; color: var(--gray-500); }
.score-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; border-radius: 50px;
    font-size: 14px; font-weight: 600; margin-top: 16px;
}
.score-excellent { background: #ecfdf5; color: #065f46; }
.score-good { background: #eff6ff; color: #1e40af; }
.score-fair { background: #fffbeb; color: #92400e; }
.score-poor { background: #fef2f2; color: #991b1b; }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.plan-card.popular { border-color: var(--primary); }
.plan-popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: var(--white);
    padding: 4px 16px; border-radius: 50px;
    font-size: 12px; font-weight: 600;
}
.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--gray-500); }
.plan-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.plan-features { list-style: none; text-align: left; margin-bottom: 28px; }
.plan-features li {
    padding: 8px 0; font-size: 14px; color: var(--gray-600);
    display: flex; align-items: center; gap: 10px;
}
.plan-features li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.plan-features li.locked { color: var(--gray-400); }
.plan-features li.locked svg { color: var(--gray-300); }

/* Dashboard */
.dashboard { padding: 100px 0 40px; min-height: 100vh; background: var(--gray-50); }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-size: 24px; font-weight: 800; }
.dashboard-header p { font-size: 14px; color: var(--gray-500); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
}
.stat-card h3 { font-size: 13px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 800; color: var(--secondary); }

/* Customer Nav */
.customer-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
}
.customer-nav .container { display: flex; align-items: center; justify-content: space-between; }
.customer-nav-brand { font-size: 18px; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.customer-nav-links { display: flex; align-items: center; gap: 20px; }
.customer-nav-link {
    font-size: 13px; font-weight: 500; color: var(--gray-500);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.customer-nav-link svg { width: 20px; height: 20px; }
.customer-nav-link.active { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px 24px; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--gray-200); }
    .navbar-menu.open { display: flex; }
    .navbar-toggle { display: block; }
    .hero { padding: 120px 0 60px; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 32px; }
    .hero-visual { display: none; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { gap: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .plans-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .otp-input { width: 44px; height: 50px; font-size: 20px; }
    .auth-card { padding: 28px 20px; }
}
