/* 
 * Apex Prime — Global Design System
 * Modern, Native Mobile-First UI/UX Overhaul
 */

:root {
    /* Colors */
    --primary: #3451b2;
    --primary-dark: #2a408e;
    --bg-light: #f9fafb;
    --surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-label: #9ca3af;
    --border: #f1f5f9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    /* Typography */
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 1. Global Reset & Viewport Setup */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    zoom: 0.9;
}

/* 2. Strict Typography Scale */
.hero-balance, .hero-number {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

h1, .page-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: var(--text-main);
}

h2, .section-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
}

p, span, div, button, input {
    font-size: 1rem; /* 16px */
    font-weight: 500;
}

.label, label, .subtitle {
    font-size: 0.75rem !important; /* 12px */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-label);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* 3. Component Proportions */
button, .btn, .input-field, input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select {
    min-height: 48px !important;
    border-radius: 12px !important;
    padding: 0 20px !important;
    font-size: 16px !important; /* Prevent iOS Zoom */
    border: 1px solid var(--border);
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    font-family: var(--font-stack);
}

button, .btn {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

button:active, .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(52, 81, 178, 0.1);
}

.card, .container-box {
    background: var(--surface);
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: var(--shadow) !important;
    border: none !important;
    margin-bottom: 1rem;
}

/* Responsive Utilities */
.mobile-hidden {
    display: none;
}

@media (min-width: 768px) {
    .mobile-hidden {
        display: block;
    }
}


