/* ==========================================================================
   Bloxlift — Base
   Design tokens, reset, and animations.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color */
    --bg: #f8f7f5;
    --surface: #ffffff;
    --text-primary: #1c1b1f;
    --text-secondary: #65636a;
    --text-tertiary: #94929a;

    --primary: #6868d6;
    --primary-hover: #5353ab;
    --primary-soft: rgba(104, 104, 214, 0.07);
    --primary-ring: rgba(104, 104, 214, 0.16);

    --success: #1f9d55;
    --success-soft: rgba(31, 157, 85, 0.1);
    --danger: #d92645;
    --danger-soft: rgba(217, 38, 69, 0.1);

    --border: rgba(28, 27, 31, 0.09);
    --border-strong: rgba(28, 27, 31, 0.16);

    /* Legacy aliases (kept for older templates) */
    --bg-color: var(--bg);
    --primary-color: var(--primary);
    --glass-bg: var(--surface);
    --glass-border: var(--border);
    --card-hover-bg: var(--surface);

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(28, 27, 31, 0.04), 0 2px 8px rgba(28, 27, 31, 0.04);
    --shadow-md: 0 2px 6px rgba(28, 27, 31, 0.05), 0 8px 24px rgba(28, 27, 31, 0.08);
    --shadow-lg: 0 4px 12px rgba(28, 27, 31, 0.06), 0 16px 48px rgba(28, 27, 31, 0.12);

    /* Shape & layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;
    --container: 1100px;
    --header-h: 68px;

    /* Type */
    --font: 'Bricolage Grotesque', system-ui, sans-serif;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Google anchor/auto ads add margin or padding at the html/body level to
       make room for themselves; the exposed canvas below the footer paints in
       this color, so the footer never looks lifted off the bottom. */
    background-color: var(--surface);
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Soft brand glow behind the whole page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(640px 320px at 12% -8%, rgba(104, 104, 214, 0.06), transparent 70%),
        radial-gradient(720px 360px at 88% -12%, rgba(88, 101, 242, 0.05), transparent 70%);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Google Auto ads sometimes inject a placement after the footer, pushing it
   up with an ad slot (or reserved blank space) underneath. Never allow ads
   below the footer. */
.footer ~ .google-auto-placed,
.footer ~ ins.adsbygoogle {
    display: none !important;
}

img {
    max-width: 100%;
}

input,
button {
    font-family: var(--font);
}

::selection {
    background: var(--primary-ring);
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   12. Animations
   -------------------------------------------------------------------------- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

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