/* ============================================
   PEEL2POWER - MODERN FINTECH DESIGN SYSTEM
   Inspired by: Stripe, Revolut, Linear, Apple
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 50%, #f0f3f7 100%);
    color: #1a202c;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

/* ============================================
   COLOR SYSTEM - PREMIUM FINTECH
   ============================================ */

:root {
    /* Primary - Modern Green (Climate/Energy) */
    --primary: #0b3d2f;
    --primary-50: #edf8f4;
    --primary-100: #d9efe7;
    --primary-200: #bfe3d6;
    --primary-300: #9dd2be;
    --primary-400: #77bca6;
    --primary-500: #4b9b82;
    --primary-600: #2f7d67;
    --primary-700: #1d5f4e;
    --primary-800: #12473b;
    --primary-900: #0b3d2f;
    --primary-dark: #062d24;
    
    /* Secondary - Premium Blue (Trust/Finance) */
    --secondary: #3b82f6;
    --secondary-50: #eff6ff;
    --secondary-100: #dbeafe;
    --secondary-200: #bfdbfe;
    --secondary-300: #93c5fd;
    --secondary-400: #60a5fa;
    --secondary-500: #3b82f6;
    --secondary-600: #2563eb;
    --secondary-700: #1d4ed8;
    --secondary-800: #1e40af;
    --secondary-900: #1e3a8a;
    
    /* Accent - Vibrant Purple (Premium) */
    --accent: #8b5cf6;
    --accent-light: #ede9fe;
    --accent-50: #faf5ff;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #ecf9fb;
    
    /* Neutral Colors - Premium Grays */
    --gray-0: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-overlay-light: rgba(0, 0, 0, 0.1);
    
    /* Border Colors */
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;
    
    /* Spacing System - Premium Rhythm */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-7: 1.75rem;   /* 28px */
    --space-8: 2rem;      /* 32px */
    --space-9: 2.25rem;   /* 36px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-14: 3.5rem;   /* 56px */
    --space-16: 4rem;     /* 64px */
    
    /* Shadow System - Soft & Premium */
    --shadow-none: none;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Shadow Elevated (Premium) */
    --shadow-elevation-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-elevation-2: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-elevation-3: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10);
    --shadow-elevation-4: 0 15px 35px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
    
    /* Radius System */
    --radius-none: 0;
    --radius-xs: 0.25rem;    /* 4px */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-3xl: 2rem;      /* 32px */
    --radius-full: 9999px;
    
    /* Typography System */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Monaco', 'Courier New', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    --font-thin: 100;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
    
    /* Z-Index Scale */
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-black);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: var(--font-bold);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: var(--font-bold);
}

h4 {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
}

h5 {
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
}

h6 {
    font-size: 1rem;
    font-weight: var(--font-semibold);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

small {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

.container-lg {
    max-width: 1280px;
}

.container-md {
    max-width: 896px;
}

.container-sm {
    max-width: 640px;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Flex Layout */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* ============================================
   NAVBAR - PREMIUM OFF-CANVAS STYLE
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: linear-gradient(135deg, #f0fbf7 0%, #f0f9fa 50%, #e9f5fa 100%);
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); */
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
    /* border-bottom: 1px solid rgba(226, 232, 240, 0.5); */
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-black);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.navbar-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active {
    color: var(--primary);
    font-weight: var(--font-bold);
    background: var(--primary-50);
}

.navbar-link.active::after {
    width: 100%;
}

.navbar-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    font-weight: var(--font-bold);
    padding: var(--space-3) var(--space-6) !important;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    margin-left: var(--space-4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.navbar-cta:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.navbar-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.navbar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ============================================
   OFF-CANVAS SIDEBAR - PREMIUM DRAWER
   ============================================ */

.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    z-index: var(--z-modal-backdrop);
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 50%, #f0f3f7 100%);
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border-right: 1px solid rgba(226, 232, 240, 0.5);
}

.offcanvas-menu.active {
    transform: translateX(0);
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.offcanvas-title {
    font-size: 1.5rem;
    font-weight: var(--font-black);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
}

.offcanvas-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.offcanvas-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.offcanvas-body {
    padding: var(--space-6);
}

.offcanvas-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.offcanvas-nav-item {
    margin: 0;
}

.offcanvas-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    font-weight: var(--font-medium);
    position: relative;
}

.offcanvas-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.offcanvas-nav-link:hover {
    background: var(--primary-50);
    color: var(--primary);
    transform: translateX(4px);
}

.offcanvas-nav-link:hover::before {
    opacity: 1;
}

.offcanvas-nav-link.active {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: var(--font-bold);
}

.offcanvas-nav-link.active::before {
    opacity: 1;
}

.offcanvas-divider {
    height: 1px;
    background: rgba(226, 232, 240, 0.5);
    margin: var(--space-6) 0;
}

.offcanvas-footer {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.offcanvas-cta {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    text-decoration: none;
    font-weight: var(--font-bold);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-4);
}

.offcanvas-cta:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.offcanvas-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.offcanvas-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}

.offcanvas-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .offcanvas-menu {
        width: 280px;
    }
}

/* ============================================
   BUTTONS - PREMIUM INTERACTIVE
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

/* Primary Button */
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: none;
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: #059669;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Danger Button */
.btn-danger {
    background: var(--error);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-block {
    width: 100%;
}

/* Button Disabled State */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* ============================================
   CARDS - MODERN DESIGN
   ============================================ */

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-elevation-2);
    border-color: var(--border);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin: var(--space-2) 0 0;
}

.card-body {
    margin-bottom: var(--space-6);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.card-footer {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-4);
    justify-content: space-between;
    align-items: center;
}

/* Card Variants */
.card-compact {
    padding: var(--space-4);
}

.card-elevated {
    box-shadow: var(--shadow-elevation-3);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.form-control:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.form-select {
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.form-checkbox, .form-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-help {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

.form-error {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-900);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-error {
    background: var(--error-light);
    color: var(--error);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

/* ============================================
   HERO SECTION - PREMIUM
   ============================================ */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: var(--space-12) var(--space-6);
    text-align: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 50%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-200) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    padding: 6rem 2rem 4rem !important;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    margin-bottom: var(--space-6);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    color: var(--text-primary);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--space-16) var(--space-6);
}

.section-sm {
    padding: var(--space-12) var(--space-6);
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-12);
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation utilities */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-delay-1 {
    animation-delay: 100ms;
}

.animate-delay-2 {
    animation-delay: 200ms;
}

.animate-delay-3 {
    animation-delay: 300ms;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-error {
    color: var(--error);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.bg-primary {
    background: var(--primary-50);
}

.bg-secondary {
    background: var(--bg-secondary);
}

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.shadow {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.w-full {
    width: 100%;
}

.max-w-full {
    max-width: 100%;
}

.max-w-md {
    max-width: 896px;
}

.max-w-sm {
    max-width: 640px;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.cursor-pointer {
    cursor: pointer;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-8) var(--space-6);
    }
    
    .hero {
        min-height: calc(100vh - 60px);
        padding: var(--space-8) var(--space-4);
    }
}

@media (max-width: 640px) {
    .section {
        padding: var(--space-6) var(--space-4);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .grid-auto {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER - MODERN
   ============================================ */

.footer {
    background: #0b3d2f;
    color: #f5faf7;
    padding: var(--space-12) var(--space-6) var(--space-6);
    margin-top: var(--space-16);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-section h4 {
    color: var(--bg-primary);
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--gray-400);
}

/* ============================================
   STATUS & ALERTS
   ============================================ */

.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    margin-bottom: var(--space-6);
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-error {
    background: var(--error-light);
    border-color: var(--error);
    color: var(--error);
}

.alert-info {
    background: var(--info-light);
    border-color: var(--info);
    color: var(--info);
}

/* Theme switch */
.theme-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
}

.theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --primary-50: #102a20;
    --primary-100: #173a2b;
    --primary-200: #24523b;
    --primary-300: #34704e;
    --accent-light: #302348;
    --accent-50: #241d36;
    --success-light: #123426;
    --warning-light: #392b14;
    --error-light: #3a1e22;
    --info-light: #132d35;
    --gray-0: #101a15;
    --gray-50: #121e18;
    --gray-100: #1a2921;
    --gray-200: #26362d;
    --gray-300: #35463c;
    --gray-400: #74857b;
    --gray-500: #8b9a91;
    --gray-600: #a5b2aa;
    --gray-700: #c0cbc4;
    --gray-800: #d5ded8;
    --gray-900: #e8efeb;
    --text-primary: #e8efeb;
    --text-secondary: #b4c1b9;
    --text-tertiary: #87968d;
    --text-inverse: #101a15;
    --bg-primary: #121e18;
    --bg-secondary: #0e1813;
    --bg-tertiary: #1b2a22;
    --border: #293a30;
    --border-light: #213128;
    --border-dark: #3b4e43;
}

html[data-theme="dark"] body {
    background: #0e1813;
    color: var(--text-primary);
}

html[data-theme="dark"] .footer {
    background: #071f1a;
    color: #f5faf7;
}

html[data-theme="dark"] .footer-bottom {
    border-color: #293a30;
    color: #87968d;
}

html[data-theme="dark"] .navbar {
    background: rgba(17, 29, 23, .96);
    border-color: var(--border);
}

html[data-theme="dark"] .offcanvas-menu {
    background: #121e18;
    border-color: var(--border);
}

html[data-theme="dark"] .offcanvas-header,
html[data-theme="dark"] .offcanvas-divider {
    border-color: var(--border);
}

html[data-theme="dark"] .offcanvas-nav-link,
html[data-theme="dark"] .offcanvas-link {
    color: var(--text-secondary);
}

html[data-theme="dark"] .section-alt,
html[data-theme="dark"] .bg-secondary,
html[data-theme="dark"] .bg-tertiary {
    background: var(--bg-secondary);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .st,
html[data-theme="dark"] .pc,
html[data-theme="dark"] .p2p-modal-box,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .section details {
    background: var(--bg-primary);
    border-color: var(--border);
    color: var(--text-primary);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .tab,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .btn-line,
html[data-theme="dark"] .seg button.on {
    background-color: var(--bg-primary);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--text-tertiary);
}

html[data-theme="dark"] table.t th,
html[data-theme="dark"] table.t td,
html[data-theme="dark"] hr {
    border-color: var(--border);
}

html[data-theme="dark"] .side {
    background: var(--bg-secondary);
    border-color: var(--border);
}

html[data-theme="dark"] .side a:hover,
html[data-theme="dark"] .side a.on,
html[data-theme="dark"] .chip.on {
    background: var(--primary-50);
    color: #74d9a2;
}

html[data-theme="dark"] .empty {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
}

html[data-theme="dark"] .sum {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--text-primary);
}

html[data-theme="dark"] .seg {
    background: var(--bg-tertiary);
}

html[data-theme="dark"] .skel {
    background: linear-gradient(90deg, #1a2921 25%, #26362d 37%, #1a2921 63%);
    background-size: 400% 100%;
}

html[data-theme="dark"] .seg button.on {
    background: var(--bg-primary);
    color: #74d9a2;
}

html[data-theme="dark"] .tag.swap,
html[data-theme="dark"] .swapline {
    background: var(--accent-light);
    color: #d0b8ff;
}

html[data-theme="dark"] .tag.want {
    background: var(--warning-light);
    color: #f5d18b;
}

html[data-theme="dark"] .tag.cash {
    background: var(--success-light);
    color: #8be0ad;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
