/* ============================================================
   WaHoOLA — Unified Brand CSS
   Source of truth: WAHOOLA_BRAND_GUIDELINES_V2.md
   Dark-mode first. One file for all pages.
   ============================================================ */

/* --- Font Imports --- */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables (from Brand Guidelines Section 6) --- */
:root {
    /* Brand Colours */
    --w-violet: #6B2FD6;
    --w-purple: #7C3AED;
    --w-purple-deep: #5B21B6;
    --w-cyan: #00E5FF;
    --w-blue: #4A7BF7;
    --w-orange: #FF6B35;
    --w-green: #00E676;

    /* Dark Surfaces */
    --w-void: #13141F;
    --w-night: #1A1B2E;
    --w-dusk: #252640;
    --w-twilight: #363752;

    /* Light Surfaces */
    --w-cloud: #EEEEF2;
    --w-mist: #F5F5F8;
    --w-white: #FFFFFF;

    /* Text */
    --w-text-light: #F0F0F5;
    --w-text-silver: #94A3B8;
    --w-text-dark: #2D2D3F;
    --w-text-slate: #64748B;

    /* Typography */
    --w-font-display: 'Clash Display', system-ui, sans-serif;
    --w-font-body: 'DM Sans', system-ui, sans-serif;
    --w-font-mono: 'JetBrains Mono', monospace;

    /* Glows */
    --w-glow-purple: 0 0 40px rgba(107, 47, 214, 0.5), 0 0 80px rgba(107, 47, 214, 0.2);
    --w-glow-cyan: 0 0 40px rgba(0, 229, 255, 0.4), 0 0 80px rgba(0, 229, 255, 0.15);
    --w-glow-text: 0 0 30px rgba(107, 47, 214, 0.6);
    --w-ambient-purple: 0 0 20px rgba(107, 47, 214, 0.1);

    /* Gradients */
    --w-gradient: linear-gradient(135deg, #7C3AED 0%, #4A7BF7 100%);
    --w-gradient-dark: linear-gradient(180deg, #1A1B2E 0%, #13141F 100%);

    /* Spacing */
    --w-space-xs: 4px;
    --w-space-sm: 8px;
    --w-space-md: 16px;
    --w-space-lg: 24px;
    --w-space-xl: 32px;
    --w-space-2xl: 48px;
    --w-space-3xl: 64px;

    /* Radius */
    --w-radius-sm: 8px;
    --w-radius-md: 10px;
    --w-radius-lg: 14px;
    --w-radius-xl: 18px;
    --w-radius-round: 50%;
    --w-radius-full: 9999px;

    /* Shadows */
    --w-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --w-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --w-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --w-shadow-glow: 0 0 30px rgba(107, 47, 214, 0.3);

    /* Transitions */
    --w-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --w-duration: 0.25s;
}


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

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

body {
    font-family: var(--w-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--w-text-light);
    background-color: var(--w-void);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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-family: inherit;
}


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--w-font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--w-text-light);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--w-text-silver);
    line-height: 1.7;
}

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

.text-center { text-align: center; }
.text-mono { font-family: var(--w-font-mono); }


/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--w-space-lg);
}

.container--narrow { max-width: 800px; }
.container--wide { max-width: 1400px; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--w-space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--w-space-lg);
}


/* --- Buttons (from Brand Guidelines Section 5) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--w-space-sm);
    padding: 12px 28px;
    font-family: var(--w-font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--w-radius-md);
    transition: all var(--w-duration) ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--w-violet);
    color: var(--w-text-light);
}

.btn-primary:hover {
    background: var(--w-purple);
    box-shadow: 0 0 25px rgba(107, 47, 214, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--w-purple);
    border: 1.5px solid var(--w-purple);
}

.btn-secondary:hover {
    background: rgba(107, 47, 214, 0.1);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--w-radius-lg);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--w-radius-sm);
}

.btn-green {
    background: linear-gradient(135deg, var(--w-green), #00c853);
    color: var(--w-void);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.45);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-group {
    display: flex;
    gap: var(--w-space-md);
    flex-wrap: wrap;
}


/* --- Cards (from Brand Guidelines Section 5) --- */
.card {
    background: var(--w-night);
    border: 1px solid var(--w-twilight);
    border-radius: var(--w-radius-lg);
    padding: 24px;
    transition: all var(--w-duration) ease;
}

.card:hover {
    border-color: var(--w-violet);
    box-shadow: var(--w-ambient-purple);
}


/* --- Inputs (from Brand Guidelines Section 5) --- */
.input {
    background: var(--w-dusk);
    border: 1px solid var(--w-twilight);
    color: var(--w-text-light);
    padding: 12px 16px;
    border-radius: var(--w-radius-md);
    font-family: var(--w-font-body);
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s;
}

.input:focus {
    border-color: var(--w-violet);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 47, 214, 0.2);
}


/* --- Sections --- */
.section {
    position: relative;
    padding: var(--w-space-3xl) 0;
    z-index: 1;
}

.section-alt {
    background: var(--w-night);
}

.section-label {
    display: inline-block;
    font-family: var(--w-font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--w-purple);
    margin-bottom: 12px;
}

.section h2 {
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-sub {
    color: var(--w-text-silver);
    font-size: 16px;
    max-width: 560px;
    margin-bottom: var(--w-space-2xl);
    line-height: 1.7;
}


/* --- Pills / Badges --- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--w-space-xs);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--w-radius-full);
    background: rgba(124, 58, 237, 0.15);
    color: var(--w-purple);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.pill--cyan {
    background: rgba(0, 229, 255, 0.1);
    color: var(--w-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}

.pill--green {
    background: rgba(0, 230, 118, 0.1);
    color: var(--w-green);
    border-color: rgba(0, 230, 118, 0.3);
}

.pill--orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--w-orange);
    border-color: rgba(255, 107, 53, 0.3);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--w-radius-full);
    background: linear-gradient(135deg, var(--w-orange), #ff9800);
    color: #fff;
}

.badge--popular {
    background: var(--w-gradient);
}

.badge--best {
    background: linear-gradient(135deg, var(--w-green), var(--w-cyan));
    color: var(--w-void);
}


/* --- Glow Utilities (Brand Signature) --- */
.glow-purple { box-shadow: var(--w-glow-purple); }
.glow-cyan { box-shadow: var(--w-glow-cyan); }
.glow-text { text-shadow: var(--w-glow-text); }
.glow-ambient { box-shadow: var(--w-ambient-purple); }


/* --- Grid Overlay (subtle brand pattern) --- */
.grid-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(107, 47, 214, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 47, 214, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}


/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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


/* --- Spacing Utilities --- */
.mt-sm { margin-top: var(--w-space-sm); }
.mt-md { margin-top: var(--w-space-md); }
.mt-lg { margin-top: var(--w-space-lg); }
.mt-xl { margin-top: var(--w-space-xl); }
.mb-sm { margin-bottom: var(--w-space-sm); }
.mb-md { margin-bottom: var(--w-space-md); }
.mb-lg { margin-bottom: var(--w-space-lg); }
.mb-xl { margin-bottom: var(--w-space-xl); }


/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --w-space-3xl: 48px;
    }

    .container {
        padding: 0 var(--w-space-md);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-group .btn {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
}
