/* ==========================================
   LogiTrack S.A. - Main CSS (Design System)
   Estilo industrial: Oswald + JetBrains Mono
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Backgrounds */
    --bg: #12161d;
    --panel: #1b212c;
    --panel-2: #232a37;
    --panel-3: #2a3241;

    /* Borders */
    --border: #313a4c;

    /* Text */
    --text: #e9ecf2;
    --text-muted: #8993a8;
    --text-dim: #5c6478;

    /* Accent Colors */
    --accent: #ff6a2b;
    --accent-2: #ffb020;
    --accent-dim: rgba(255, 106, 43, 0.2);

    /* Status */
    --success: #33d6a6;
    --success-dim: rgba(51, 214, 166, 0.12);
    --danger: #ff4d5e;
    --danger-dim: rgba(255, 77, 94, 0.12);
    --info: #4ea1ff;
    --info-dim: rgba(78, 161, 255, 0.12);
    --warning: #ffb020;
    --warning-dim: rgba(255, 176, 32, 0.12);

    /* Legacy compat aliases */
    --bg-primary: var(--bg);
    --bg-secondary: var(--panel);
    --bg-card: var(--panel);
    --bg-card-hover: var(--panel-2);
    --primary: var(--accent);
    --primary-hover: #e55d22;
    --primary-light: var(--accent-dim);
    --text-primary: var(--text);
    --text-secondary: var(--text-muted);
    --border-color: var(--border);
    --border-focus: var(--accent);
    --danger-bg: var(--danger-dim);
    --success-bg: var(--success-dim);
    --warning-bg: var(--warning-dim);

    /* Shapes */
    --radius: 3px;
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-full: 2px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(255,106,43,0.25);

    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-family: var(--font-body);

    /* Transitions */
    --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Fluid Protection ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    /* Grid background */
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 42px 42px;
    background-attachment: fixed;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

/* Responsive Media Protection */
img, svg, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

input, select, textarea {
    font-family: inherit;
    font-size: 16px; /* Prevents auto-zoom on iOS devices */
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

/* ===== Utility ===== */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    display: inline-block;
    flex-shrink: 0;
}

.mono {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Shared Animations ===== */
@keyframes slideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes fadeUp {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.25; }
    50%       { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
