/* ============================================
   CSS STYLESHEET - Modern UI Design System
   Layout: 左右分栏 + 大留白 (Asymmetric Split)
   Design: Glassmorphism + Micro-interactions + Gradients
   ============================================ */

/* ----------------------------------------
   1. CSS VARIABLES & ROOT CONFIGURATION
   ---------------------------------------- */
:root {
    /* Primary Colors */
    --primary-100: #e8e4f8;
    --primary-200: #c4bce9;
    --primary-300: #9f94da;
    --primary-400: #7a6ccb;
    --primary-500: #5a4db8;
    --primary-600: #483e94;
    --primary-700: #362f70;
    --primary-800: #241f4c;
    --primary-900: #121028;

    /* Accent Colors */
    --accent-100: #ffe8e4;
    --accent-200: #ffc7bf;
    --accent-300: #ff9b8a;
    --accent-400: #ff6f55;
    --accent-500: #e84a2f;
    --accent-600: #c73a20;
    --accent-700: #a62c17;
    --accent-800: #85200e;
    --accent-900: #641405;

    /* Neutral Colors */
    --neutral-50: #f8f9fc;
    --neutral-100: #f0f2f8;
    --neutral-200: #e4e7f0;
    --neutral-300: #cdd2e0;
    --neutral-400: #a8b0c4;
    --neutral-500: #7a85a0;
    --neutral-600: #565f7a;
    --neutral-700: #3d435b;
    --neutral-800: #272b3d;
    --neutral-900: #12151f;

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 100%);
    --gradient-bg: linear-gradient(180deg, var(--neutral-50) 0%, var(--neutral-100) 50%, var(--primary-100) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(90, 77, 184, 0.15);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', var(--font-primary);
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --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;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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-glass: 0 8px 32px 0 var(--glass-shadow);
    --shadow-glow: 0 0 40px rgba(90, 77, 184, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ----------------------------------------
   2. CSS RESET & BASE STYLES
   ---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--neutral-800);
    background: var(--gradient-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(90, 77, 184, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(232, 74, 47, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-500);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Selection Styles */
::selection {
    background: var(--primary-200);
    color: var(--primary-900);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary-400);
    outline-offset: 2px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-300);
    border-radius: var(--radius-full);
    border: 2px solid var(--neutral-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
}

/* ----------------------------------------
   3. TYPOGRAPHY STYLES
   ---------------------------------------- */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 {
    font-size: var(--text-6xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

.text-display {
    font-family: var(--font-display);
    font-size: var(--text-7xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-lead {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--neutral-600);
}

/* ----------------------------------------
   4. LAYOUT SYSTEM - 左右分栏布局
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

/* Asymmetric Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

.split-layout--reversed {
    direction: rtl;
}

.split-layout--reversed > * {
    direction: ltr;
}

.split-sidebar {
    position: sticky;
    top: var(--space-8);
}

.split-main {
    min-width: 0;
}

/* Large Whitespace Areas */
.whitespace-section {
    padding: var(--space-32) var(--space-16);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.card-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

/* ----------------------------------------
   5. NAVIGATION COMPONENT
   ---------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    background: rgba(248, 249, 252, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-3) 0;
    background: rgba(248, 249, 252, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--neutral-900);
}

.navbar-brand:hover {
    color: var(--primary-600);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: var(--text-lg);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.navbar-link {
    position: relative;
    font-weight: 500;
    color: var(--neutral-700);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.navbar-link:hover {
    color: var(--primary-600);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active {
    color: var(--primary-600);
}

.navbar-link.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Mobile Navigation */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    cursor: pointer;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--neutral-800);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 968px) {
    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 249, 252, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        border-bottom: 1px solid var(--neutral-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-toggle {
        display: flex;
    }
}

/* ----------------------------------------
   6. CARD COMPONENT - Glassmorphism Style
   ---------------------------------------- */
.card {
    position: relative;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.5);
}

.card--elevated {
    background: white;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-md);
}

.card--elevated:hover {
    box-shadow: var(--shadow-xl);
}

.card--gradient {
    background: var(--gradient-card);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.card-header {
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-2);
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

.card-body {
    color: var(--neutral-600);
    line-height: 1.7;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card--elevated .card-footer {
    border-top-color: var(--neutral-200);
}

/* Card Variants */
.card--primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.card--primary .card-title,
.card--primary .card-body {
    color: white;
}

.card--primary .card-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.card--accent {
    background: var(--gradient-accent);
    color: white;
    border: none;
}

.card--rounded {
    border-radius: var(--radius-full);
}

/* Geometric Decoration */
.card-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    filter: blur(60px);
    pointer-events: none;
}

.card-decoration--top {
    top: -50px;
    right: -50px;
}

.card-decoration--bottom {
    bottom: -50px;
    left: -50px;
}

/* ----------------------------------------
   7. BUTTON COMPONENT
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
    border-radius: var(--radius-xl);
}

/* Button Variants */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(90, 77, 184, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 77, 184, 0.5);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--neutral-100);
    color: var(--neutral-800);
    border-color: var(--neutral-300);
}

.btn-secondary:hover {
    background: var(--neutral-200);
    border-color: var(--neutral-400);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 14px rgba(232, 74, 47, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 74, 47, 0.5);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--neutral-700);
}

.btn-ghost:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-500);
}

.btn-outline:hover {
    background: var(--primary-500);
    color: white;
}

/* Glass Button */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Button with Icon */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
}

.btn-icon.btn-lg {
    width: 56px;
    height: 56px;
}

/* Button Hover Animation */
.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:hover::before {
    width: 300px;
    height: 300px;
}

/* ----------------------------------------
   8. FORM COMPONENTS
   ---------------------------------------- */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--neutral-900);
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-input:hover {
    border-color: var(--neutral-300);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(90, 77, 184, 0.1);
    background: white;
}

.form-input::placeholder {
    color: var(--neutral-400);
}

.form-input--error {
    border-color: var(--accent-500);
}

.form-input--error:focus {
    box-shadow: 0 0 0 4px rgba(232, 74, 47, 0.1);
}

/* Glass Input */
.form-input-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
}

.form-input-glass::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Textarea */
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23565f7a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 20px;
    padding-right: var(--space-10);
}

/* Form Validation */
.form-error {
    font-size: var(--text-sm);
    color: var(--accent-500);
    margin-top: var(--space-2);
}

.form-hint {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin-top: var(--space-2);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background: white;
}

.form-check-input:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
    background-image: none;
    box-shadow: inset 0 0 0 4px white;
}

/* ----------------------------------------
   9. HERO SECTION STYLES
   ---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-32) 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(90, 77, 184, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(232, 74, 47, 0.1) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, var(--text-7xl));
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--neutral-600);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Geometric Decorations */
.hero-decoration {
    position: absolute;
    border-radius: var(--radius-xl);
    opacity: 0.1;
}

.hero-decoration--1 {
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    transform: rotate(15deg);
    animation: float 15s ease-in-out infinite;
}

.hero-decoration--2 {
    bottom: 30%;
    right: 25%;
    width: 100px;
    height: 100px;
    background: var(--gradient-accent);
    border-radius: 50%;
    animation: float 18s ease-in-out infinite reverse;
}

.hero-decoration--3 {
    top: 60%;
    right: 5%;
    width: 60px;
    height: 60px;
    background: var(--primary-400);
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite;
}

/* ----------------------------------------
   10. FEATURE SECTION
   ---------------------------------------- */
.features {
    padding: var(--space-24) 0;
}

.features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

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

.feature-card {
    text-align: center;
    padding: var(--space-10);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: white;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.feature-desc {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ----------------------------------------
   11. SECTION HEADERS
   ---------------------------------------- */
.section-header {
    margin-bottom: var(--space-16);
}

.section-header--center {
    text-align: center;
}

.section-header--left {
    text-align: left;
}

.section-tag {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--primary-100);
    color: var(--primary-600);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    max-width: 600px;
}

.section-header--center .section-desc {
    margin: 0 auto;
}

/* ----------------------------------------
   12. SIDEBAR COMPONENT
   ---------------------------------------- */
.sidebar {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    position: sticky;
    top: var(--space-8);
}

.sidebar-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--neutral-600);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-600);
}

.sidebar-link.active {
    background: var(--gradient-primary);
    color: white;
}

.sidebar-link-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.sidebar-link:hover .sidebar-link-icon,
.sidebar-link.active .sidebar-link-icon {
    opacity: 1;
}

/* ----------------------------------------
   13. FOOTER COMPONENT
   ---------------------------------------- */
.footer {
    background: var(--neutral-900);
    color: white;
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.footer-desc {
    color: var(--neutral-400);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: var(--neutral-800);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
}

.footer-column-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-6);
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    color: var(--neutral-400);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--neutral-500);
    font-size: var(--text-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-link {
    color: var(--neutral-500);
}

.footer-bottom-link:hover {
    color: white;
}

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

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ----------------------------------------
   14. BADGE & TAG COMPONENTS
   ---------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-accent {
    background: var(--accent-100);
    color: var(--accent-700);
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--neutral-100);
    color: var(--neutral-700);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tag:hover {
    background: var(--primary-100);
    color: var(--primary-700);
}

.tag--primary {
    background: var(--primary-500);
    color: white;
}

/* ----------------------------------------
   15. AVATAR COMPONENT
   ---------------------------------------- */
.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: var(--text-xs);
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: var(--text-sm);
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: var(--text-lg);
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: var(--text-xl);
}

.avatar-2xl {
    width: 120px;
    height: 120px;
    font-size: var(--text-3xl);
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -10px;
    border: 3px solid white;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* ----------------------------------------
   16. ALERT & NOTIFICATION COMPONENTS
   ---------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid;
}

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.alert-message {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.alert-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

.alert-primary {
    background: var(--primary-100);
    border-color: var(--primary-200);
    color: var(--primary-800);
}

.alert-accent {
    background: var(--accent-100);
    border-color: var(--accent-200);
    color: var(--accent-800);
}

.alert-success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    border-left: 4px solid;
    transform: translateX(120%);
    transition: transform var(--transition-base);
    z-index: var(--z-modal);
}

.toast.show {
    transform: translateX(0);
}

.toast-primary {
    border-left-color: var(--primary-500);
}

.toast-success {
    border-left-color: #22c55e;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-danger {
    border-left-color: #ef4444;
}

/* ----------------------------------------
   17. TABLE COMPONENT
   ---------------------------------------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-4) var(--space-6);
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.table th {
    background: var(--neutral-50);
    font-weight: 600;
    color: var(--neutral-700);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    color: var(--neutral-600);
}

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--neutral-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ----------------------------------------
   18. MODAL COMPONENT
   ---------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 21, 31, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
}

.modal-title {
    font-size: var(--text-xl);
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--neutral-500);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-6);
    border-top: 1px solid var(--neutral-200);
}

/* ----------------------------------------
   19. TABS COMPONENT
   ---------------------------------------- */
.tabs {
    display: flex;
    flex-direction: column;
}

.tabs-header {
    display: flex;
    gap: var(--space-2);
    border-bottom: 2px solid var(--neutral-200);
    margin-bottom: var(--space-6);
}

.tab-btn {
    padding: var(--space-4) var(--space-6);
    font-weight: 600;
    color: var(--neutral-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-600);
}

.tab-btn.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-500);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

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

/* ----------------------------------------
   20. PROGRESS COMPONENT
   ---------------------------------------- */
.progress {
    height: 8px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-sm {
    height: 4px;
}

.progress-lg {
    height: 12px;
}

.progress-xl {
    height: 20px;
}

/* ----------------------------------------
   21. SKELETON LOADING
   ---------------------------------------- */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--neutral-200) 25%,
        var(--neutral-100) 50%,
        var(--neutral-200) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-3);
}

.skeleton-image {
    height: 200px;
    margin-bottom: var(--space-4);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

/* ----------------------------------------
   22. DIVIDER COMPONENT
   ---------------------------------------- */
.divider {
    height: 1px;
    background: var(--neutral-200);
    margin: var(--space-8) 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--neutral-200);
    margin: 0 var(--space-8);
}

.divider-gradient {
    height: 2px;
    background: var(--gradient-primary);
    border: none;
}

/* ----------------------------------------
   23. ANIMATIONS & KEYFRAMES
   ---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.4s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ----------------------------------------
   24. UTILITY CLASSES
   ---------------------------------------- */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.text-primary { color: var(--primary-600); }
.text-accent { color: var(--accent-500); }
.text-neutral { color: var(--neutral-600); }
.text-white { color: white; }

.bg-primary { background: var(--primary-500); }
.bg-accent { background: var(--accent-500); }
.bg-neutral { background: var(--neutral-100); }
.bg-white { background: white; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   25. RESPONSIVE BREAKPOINTS
   ---------------------------------------- */
@media (max-width: 1280px) {
    :root {
        --text-7xl: 3.5rem;
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    :root {
        --text-7xl: 3rem;
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .split-sidebar {
        position: static;
    }
    
    .card-grid--2col,
    .card-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-7xl: 2.5rem;
        --text-6xl: 2rem;
        --text-5xl: 1.75rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .section-lg {
        padding: var(--space-20) 0;
    }
    
    .hero {
        padding: var(--space-24) 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .card-grid--2col,
    .card-grid--3col {
        grid-template-columns: 1fr;
    }
    
    .modal {
        width: 95%;
        max-height: 85vh;
    }
}

@media (max-width: 640px) {
    :root {
        --text-7xl: 2rem;
        --text-6xl: 1.75rem;
        --text-5xl: 1.5rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.25rem;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .btn-xl {
        padding: var(--space-4) var(--space-8);
        font-size: var(--text-lg);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .card {
        padding: var(--space-6);
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }
}

/* ----------------------------------------
   26. PRINT STYLES
   ---------------------------------------- */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal-backdrop,
    .modal,
    .toast {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        text-decoration: underline;
    }
}
```