/* ============================================================
   Redemption Analytics — Shared Design Tokens
   theme.css — loaded by index.html, waas.html, technology.html
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {

    /* Backgrounds */
    --bg-body:    #030305;
    --bg-surface: #0e0e11;
    --bg-glass:   rgba(255, 255, 255, 0.03);

    /* Text */
    --text-main:  #ffffff;
    --text-muted: #c4c4cc;
    --text-dim:   #71717a;

    /* Accent — indigo / purple */
    --accent:          #6366f1;
    --accent-dark:     #4f46e5;
    --accent-glow:     #818cf8;
    --accent-lighter:  rgba(129, 140, 248, 0.14);
    --accent-light:    #0077ed;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Layout */
    --nav-height: 80px;

    /* Neutrals */
    --black:    #000000;
    --white:    #ffffff;
    --gray-50:  #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
}

/* ── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* ── Shared Utilities ───────────────────────────────────────── */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-glow);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 640px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: var(--bg-glass);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
