/* ============================================
   ADMS Homepage - Professional Styles
   Matching Profile Page Design System
   ============================================ */

/* CSS Variables - Aligned with Profile Page */
:root {
    /* Primary Palette - Blue Purple (matching profile) */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #4361ee;
    --primary-600: #3f37c9;
    --primary-700: #3730a3;
    --primary-800: #312e81;
    --primary-900: #1e1b4b;

    /* Accent - Indigo */
    --accent-50: #eef2ff;
    --accent-100: #e0e7ff;
    --accent-200: #c7d2fe;
    --accent-300: #a5b4fc;
    --accent-400: #818cf8;
    --accent-500: #6366f1;
    --accent-600: #4f46e5;
    --accent-700: #4338ca;
    --accent-800: #3730a3;
    --accent-900: #312e81;

    /* Neutrals - Cool Gray (matching profile) */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow: radial-gradient(circle, rgba(67, 97, 238, 0.3) 0%, transparent 70%);

    /* Typography - Inter (matching profile) */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius (matching profile) */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 12px;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows (matching profile) */
    --shadow-sm: 0 1px 2px 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-glow: 0 0 40px rgba(67, 97, 238, 0.25);
    --shadow-glow-accent: 0 0 40px rgba(99, 102, 241, 0.25);

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

/* ============================================
   Animated Background
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(67, 97, 238, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 90%, rgba(67, 97, 238, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.bg-mesh {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(67, 97, 238, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: meshMove 30s linear infinite;
}

@keyframes meshMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-80px, -80px); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-600);
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-600);
    top: 55%;
    right: 5%;
    animation-delay: -7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-500);
    bottom: 15%;
    left: 25%;
    animation-delay: -14s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--accent-500);
    top: 25%;
    right: 25%;
    animation-delay: -20s;
}

.shape-5 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    bottom: 5%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.02); }
    50% { transform: translate(-15px, 15px) scale(0.98); }
    75% { transform: translate(15px, 8px) scale(1.01); }
}

/* Particle Field */
.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-md) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.header__logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.header__logo-icon:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.header__logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.header__logo-main {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__logo-sub {
    font-size: 0.65rem;
    color: var(--gray-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header__nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    white-space: nowrap;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
    transform: translateX(-50%);
    border-radius: 1px;
}

.header__nav-link:hover {
    color: var(--gray-900);
}

.header__nav-link:hover::after {
    width: calc(100% - var(--space-xl));
}

.nav-link__icon {
    font-size: 0.8rem;
    color: var(--primary-500);
    opacity: 0.8;
}

.nav-link__text {
    display: inline-block;
}

/* Auth Buttons */
.header__auth {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-base);
    white-space: nowrap;
}

.header__btn--ghost {
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
    background: transparent;
}

.header__btn--ghost:hover {
    color: var(--gray-900);
    border-color: var(--primary-500);
    background: rgba(67, 97, 238, 0.08);
}

.header__btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.3);
}

.header__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

/* Mobile Toggle */
.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--gray-600);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px var(--space-xl) var(--space-4xl);
    position: relative;
}

.hero__container {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero__content {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem var(--space-md);
    background: rgba(67, 97, 238, 0.08);
    border: 1px solid rgba(67, 97, 238, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 8px var(--primary-500);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-600);
    letter-spacing: 0.02em;
}

/* Title */
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero__title-line {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero__title-line:nth-child(1) { animation-delay: 0.15s; }
.hero__title-line:nth-child(2) { animation-delay: 0.25s; }
.hero__title-line:nth-child(3) { animation-delay: 0.35s; }

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

/* Description */
.hero__description {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 500px;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.45s forwards;
    opacity: 0;
    line-height: 1.7;
}

/* CTA Boxes */
.hero__cta-boxes {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.55s forwards;
    opacity: 0;
}

.cta-box {
    position: relative;
    flex: 1;
    max-width: 260px;
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background: white;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.cta-box__glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.cta-box--login .cta-box__glow {
    background: radial-gradient(circle at 30% 30%, rgba(67, 97, 238, 0.15) 0%, transparent 60%);
}

.cta-box--register .cta-box__glow {
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

.cta-box:hover .cta-box__glow {
    opacity: 1;
}

.cta-box:hover {
    transform: translateY(-6px);
    border-color: var(--primary-200);
}

.cta-box--login:hover {
    box-shadow: 0 16px 48px rgba(67, 97, 238, 0.2);
}

.cta-box--register:hover {
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.2);
}

.cta-box__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cta-box__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.cta-box--login .cta-box__icon {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
}

.cta-box--register .cta-box__icon {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: white;
}

.cta-box__text {
    flex: 1;
    min-width: 0;
}

.cta-box__title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.cta-box__subtitle {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.cta-box__arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: var(--transition-base);
    flex-shrink: 0;
}

.cta-box:hover .cta-box__arrow {
    background: var(--primary-100);
    color: var(--primary-600);
    transform: translateX(3px);
}

/* Trust Indicators */
.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.65s forwards;
    opacity: 0;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--gray-500);
}

.hero__trust-item i {
    color: var(--primary-500);
    font-size: 0.9rem;
}

/* ============================================
   Hero Visual - Clean Aligned Design
   ============================================ */
.hero__visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    animation: fadeInRight 0.8s ease 0.4s forwards;
    opacity: 0;
    padding: 10px;
}

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

/* Document Stacks - Left and Right */
.doc-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    justify-content: center;
}

.doc-stack--left .doc-card {
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
}

.doc-stack--left .doc-card--1 { animation-delay: 0.5s; }
.doc-stack--left .doc-card--2 { animation-delay: 0.65s; }
.doc-stack--left .doc-card--3 { animation-delay: 0.8s; }

.doc-stack--right .doc-card {
    animation: slideInRight 0.6s ease forwards;
    opacity: 0;
}

.doc-stack--right .doc-card--4 { animation-delay: 0.9s; }
.doc-stack--right .doc-card--5 { animation-delay: 1.05s; }
.doc-stack--right .doc-card--6 { animation-delay: 1.2s; }

@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);
    }
}

/* Document Cards - Matching Profile Page Style */
.doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    min-width: 190px;
    max-width: 210px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.doc-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Left stack icons - different colors */
.doc-card--1 .doc-card__icon {
    background: #fee2e2;
    color: #ef4444;
}

.doc-card--2 .doc-card__icon {
    background: #fef3c7;
    color: #f59e0b;
}

.doc-card--3 .doc-card__icon {
    background: #dbeafe;
    color: #3b82f6;
}

/* Right stack icons - success state */
.doc-card__icon--success {
    background: #d1fae5 !important;
    color: #10b981 !important;
}

.doc-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.doc-card__name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-card__status {
    font-size: 0.68rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-card__status i {
    color: var(--success);
    font-size: 0.6rem;
}

.doc-card__folder {
    font-size: 0.68rem;
    color: var(--primary-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-card__folder i {
    font-size: 0.55rem;
}

/* Center Processing Animation */
.process-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    flex-shrink: 0;
    min-width: 100px;
}

.process-circle {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-circle__inner {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-glow);
}

.process-circle__ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.process-circle__ring--2 {
    width: 88%;
    height: 88%;
    top: 6%;
    left: 6%;
    border-top-color: var(--accent-500);
    animation-direction: reverse;
    animation-duration: 3s;
}

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

.process-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.process-arrows {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: -5px;
}

.arrow {
    font-size: 0.85rem;
    color: var(--gray-400);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.arrow--left {
    animation-delay: 0s;
}

.arrow--right {
    animation-delay: 0.75s;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

.arrow--left {
    animation-name: arrowPulseLeft;
}

@keyframes arrowPulseLeft {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-3px); }
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: fadeInUp 0.8s ease 0.9s forwards;
    opacity: 0;
}

.hero__scroll-text {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero__scroll-icon {
    width: 28px;
    height: 44px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-icon i {
    animation: scrollBounce 2s ease infinite;
    color: var(--primary-500);
    font-size: 0.75rem;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.4; }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
}

.features__container {
    max-width: 1320px;
    margin: 0 auto;
}

.features__header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-tag {
    display: inline-block;
    padding: 0.4rem var(--space-md);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Grid */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    position: relative;
    padding: var(--space-xl);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
}

.feature-card__glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(67, 97, 238, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-slow);
}

.feature-card:hover .feature-card__glow {
    opacity: 1;
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: white;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.feature-card__description {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: var(--space-4xl) var(--space-xl);
    background: linear-gradient(180deg, transparent 0%, rgba(67, 97, 238, 0.02) 50%, transparent 100%);
}

.how-it-works__container {
    max-width: 1100px;
    margin: 0 auto;
}

.how-it-works__header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 var(--space-sm);
}

.step__number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(180deg, rgba(67, 97, 238, 0.25) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.step__content {
    padding: 0 var(--space-sm);
}

.step__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-500);
    margin: 0 auto var(--space-md);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.step:hover .step__icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.08);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.step__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.step__description {
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.5;
}

.step__connector {
    position: absolute;
    top: 130px;
    right: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.2) 0%, rgba(67, 97, 238, 0.05) 100%);
}

.step:last-child .step__connector {
    display: none;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: var(--space-4xl) var(--space-xl);
    background: white;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.stats__container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item__number {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.stat-item__suffix {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--primary-500);
    display: inline;
}

.stat-item__label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-sm);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
    overflow: hidden;
}

.cta-section__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.cta-section__description {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.cta-section__buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.875rem var(--space-2xl);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.cta-btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3);
}

.cta-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.4);
}

.cta-btn--secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.cta-btn--secondary:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
}

/* CTA Decoration */
.cta-section__decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.cta-orb--1 {
    width: 450px;
    height: 450px;
    background: var(--primary-500);
    top: -150px;
    left: -150px;
}

.cta-orb--2 {
    width: 350px;
    height: 350px;
    background: var(--accent-500);
    bottom: -100px;
    right: -100px;
}

.cta-orb--3 {
    width: 250px;
    height: 250px;
    background: var(--primary-400);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    border-top: 1px solid var(--gray-800);
    padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

.footer__container {
    max-width: 1320px;
    margin: 0 auto;
}

.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

/* Footer Brand */
.footer__brand {
    max-width: 320px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer__logo img {
    width: 36px;
    height: 36px;
}

.footer__logo span {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__tagline {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer__social-link:hover {
    background: var(--gradient-primary);
    color: var(--gray-950);
    border-color: transparent;
    transform: translateY(-3px);
}

/* Footer Links */
.footer__links-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--gray-200);
}

.footer__links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__links-list a {
    color: var(--gray-500);
    font-size: 0.85rem;
    transition: var(--transition-base);
    display: inline-block;
}

.footer__links-list a:hover {
    color: var(--primary-400);
    transform: translateX(4px);
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__copyright {
    color: var(--gray-600);
    font-size: 0.8rem;
}

.footer__compliance {
    display: flex;
    gap: var(--space-md);
}

.footer__compliance-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__compliance-badge i {
    color: var(--success);
    font-size: 0.7rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1280px) {
    .hero__container {
        gap: var(--space-2xl);
    }
    
    .hero__visual {
        gap: 14px;
    }
    
    .doc-card {
        min-width: 175px;
        max-width: 195px;
        padding: 10px 12px;
    }
    
    .doc-card__icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    
    .doc-card__name {
        font-size: 0.72rem;
    }
    
    .process-center {
        padding: 0 10px;
    }
    
    .process-circle {
        width: 60px;
        height: 60px;
    }
    
    .process-circle__inner {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .hero__content {
        order: 1;
    }

    .hero__visual {
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero__trust {
        justify-content: center;
    }
    
    /* Tablet layout - side by side with center */
    .doc-stack {
        flex-direction: column;
        gap: 8px;
        flex: 0 0 auto;
    }
    
    .doc-card {
        min-width: 170px;
        max-width: 190px;
    }
    
    .process-center {
        padding: 10px;
        order: 0;
        flex: 0 0 auto;
    }
    
    .doc-stack--left {
        order: -1;
    }
    
    .doc-stack--right {
        order: 1;
    }
    
    .process-arrows {
        display: none;
    }

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

    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
    
    .footer__brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
    }
    
    .header {
        padding: var(--space-md) 0;
    }
    
    .header__container {
        padding: 0 var(--space-md);
    }

    .header__nav {
        display: none;
    }

    .header__mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 100px var(--space-md) var(--space-2xl);
        min-height: auto;
    }

    .hero__cta-boxes {
        flex-direction: column;
        align-items: center;
    }

    .cta-box {
        max-width: 100%;
        width: 100%;
    }
    
    /* Mobile hero visual - Vertical stacked layout */
    .hero__visual {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .doc-stack {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    
    .doc-stack--left,
    .doc-stack--right {
        order: unset;
    }
    
    .process-center {
        order: 0;
        padding: 10px 0;
    }
    
    .doc-stack--left {
        order: -1;
    }
    
    .doc-stack--right {
        order: 1;
    }
    
    .doc-card {
        min-width: unset;
        max-width: unset;
        width: 100%;
        padding: 10px 12px;
        gap: 10px;
    }
    
    .doc-card__icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .doc-card__name {
        font-size: 0.72rem;
    }
    
    .doc-card__status,
    .doc-card__folder {
        font-size: 0.65rem;
    }
    
    .process-circle {
        width: 56px;
        height: 56px;
    }
    
    .process-circle__inner {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .process-label {
        font-size: 0.65rem;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .features,
    .how-it-works,
    .stats,
    .cta-section {
        padding: var(--space-3xl) var(--space-md);
    }

    .steps {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .step__connector {
        display: none;
    }
    
    .step__number {
        font-size: 2.5rem;
    }
    
    .step__icon {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .stats__container {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .stat-item {
        flex: 1 1 45%;
    }

    .footer {
        padding: var(--space-3xl) var(--space-md) var(--space-md);
    }

    .footer__main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer__brand {
        margin-bottom: var(--space-md);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer__compliance {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-section__buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .header__auth {
        display: none;
    }
    
    .header__logo-sub {
        display: none;
    }

    .hero__trust {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: center;
    }
    
    .hero__badge {
        padding: 0.4rem 0.75rem;
    }
    
    .hero__badge-text {
        font-size: 0.7rem;
    }
    
    /* Simplified mobile view - show only 2 cards per stack */
    .hero__visual {
        gap: 10px;
        padding: 10px;
        max-width: 280px;
    }
    
    .doc-stack {
        gap: 6px;
    }
    
    .doc-card--2,
    .doc-card--5 {
        display: none;
    }
    
    .doc-card {
        min-width: unset;
        max-width: unset;
        width: 100%;
        padding: 8px 10px;
    }
    
    .doc-card__icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .doc-card__name {
        font-size: 0.68rem;
    }
    
    .process-circle {
        width: 48px;
        height: 48px;
    }
    
    .process-circle__inner {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .process-label {
        font-size: 0.6rem;
    }
    
    .cta-box__arrow {
        display: none;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }
}

/* High DPI / Retina adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .bg-mesh {
        background-size: 60px 60px;
    }
}

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