/* ═══════════════════════════════════════════════════════════════
   AutoMart Digital — Core styles
   Reset · Design tokens · Typography · Buttons · Utilities
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Brand palette */
    --primary:   #0A2540;
    --secondary: #00D4FF;
    --accent:    #6C4AB6;
    --success:   #10B981;
    --warning:   #F59E0B;
    --danger:    #EF4444;

    /* Surfaces */
    --bg:        #070B16;
    --bg-2:      #0B1120;
    --surface:   rgba(255,255,255,0.045);
    --surface-2: rgba(255,255,255,0.08);
    --border:    rgba(255,255,255,0.09);
    --border-2:  rgba(255,255,255,0.16);

    /* Text */
    --text:      #EAF2FF;
    --muted:     #8A9AB8;

    /* Fonts */
    --f-head: 'Poppins', system-ui, -apple-system, sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Radius */
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 26px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 1rem;
    --sp-4: 1.5rem;
    --sp-5: 2rem;
    --sp-6: 3rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 10% -10%, rgba(108,74,182,0.22), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(0,212,255,0.12), transparent 55%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--f-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { color: var(--muted); }

/* ─── Glass surface ─────────────────────────────────────────── */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.4rem;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--f-body);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    color: #04101E;
    background: linear-gradient(135deg, var(--secondary), #7FD6FF 60%, var(--accent));
    box-shadow: 0 8px 30px rgba(0,212,255,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0,212,255,0.35);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-2);
    color: var(--text);
}
.btn-ghost:hover {
    background: var(--surface-2);
    border-color: var(--secondary);
}

.btn-outline {
    background: transparent;
    border-color: rgba(0,212,255,0.4);
    color: var(--secondary);
}
.btn-outline:hover {
    background: rgba(0,212,255,0.09);
    border-color: var(--secondary);
}

.btn-lg {
    min-height: 56px;
    padding: 1rem 1.75rem;
    font-size: 1rem;
}

/* ─── Utilities ─────────────────────────────────────────────── */
.hidden  { display: none !important; }
.hp      { position: absolute !important; left: -9999px !important; height: 0 !important; }
.accent  { color: var(--secondary); }
.muted   { color: var(--muted); }
.small   { font-size: 0.82rem; }

/* ─── Section rhythm ────────────────────────────────────────── */
.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 16px;
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p  { color: var(--muted); }
.section-head a  { color: var(--secondary); }