/* GT Vitals (gtmetrix.in) — Precision Metric Glass CSS */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-primary: #0284c7;
    --brand-secondary: #10b981;
    --brand-dark: #0f172a;
    --brand-surface: #f8fafc;
    --brand-danger: #ef4444;
    --brand-warning: #f59e0b;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-feature-settings: 'tnum' on, 'zero' on;
}

/* Glassmorphism Surface */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03), 0 2px 4px -2px rgba(15, 23, 42, 0.02);
}

.glass-card-hover {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
}

/* Circular Score Gauge */
.gauge-svg {
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: #e2e8f0;
}

.gauge-progress {
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

/* Grade status colors */
.score-fast {
    stroke: #10b981;
    color: #10b981;
}

.score-avg {
    stroke: #f59e0b;
    color: #f59e0b;
}

.score-poor {
    stroke: #ef4444;
    color: #ef4444;
}

/* Button & Micro-Interactions */
.btn-primary {
    background: #0284c7;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background: #0369a1;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
    transform: scale(0.98);
}

/* Modal and Bottom Sheet (Responsive) */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
    .modal-bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }
}

/* Dot matrix engineering pattern */
.bg-grid-pattern {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}
