/* 
   Refundly Pay Design System 
   Theme: Premium Fintech (Dark Emerald/Navy)
*/

:root {
    /* --- Color Palette --- */

    /* Primary (Money/Growth/Success) */
    --color-primary-50: #ecfdf5;
    --color-primary-100: #d1fae5;
    --color-primary-200: #a7f3d0;
    --color-primary-300: #6ee7b7;
    --color-primary-400: #34d399;
    --color-primary-500: #10b981;
    --color-primary-600: #059669;
    /* Main Brand Color */
    --color-primary-700: #047857;
    --color-primary-800: #065f46;
    --color-primary-900: #064e3b;

    /* Secondary (Trust/Professional/Dark) */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    /* Main Text / Dark Bg */

    /* Accents */
    --color-accent-blue: #3b82f6;
    --color-accent-indigo: #6366f1;
    --color-accent-amber: #f59e0b;

    /* Functional */
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* Surfaces */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-color: #e2e8f0;

    /* --- Typography --- */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* --- Shadows --- */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-colored: 0 10px 25px -5px rgba(5, 150, 105, 0.25);

    /* --- Spacing --- */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Resets & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--color-slate-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-slate-900);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

p {
    color: var(--color-slate-600);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-700);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-primary-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Background Mesh */
.bg-mesh {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(167, 243, 208, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(226, 232, 240, 0.5) 0px, transparent 50%);
}

/* Glass Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- Responsive Utilities --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .flex-column-mobile {
        flex-direction: column !important;
    }

    .stack-mobile {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .text-center-mobile {
        text-align: center !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}