/* Root Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-3: radial-gradient(circle at top right, rgba(99, 102, 241, 0.3), transparent 50%),
                   radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.3), transparent 50%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: auto;
    max-width: 380px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    animation: cookieFadeIn 0.5s ease-out 0.5s both;
}

.cookie-consent.hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

@keyframes cookieFadeIn {
    from {
        transform: translateY(120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.cookie-content p strong {
    color: var(--text-secondary);
    font-size: 13px;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.external-icon {
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.external-link:hover .external-icon {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-3);
    opacity: 0.5;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    padding: 24px 32px;
    min-width: 200px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    min-width: 80px;
    text-align: center;
    display: block;
    min-height: 1.2em;
    line-height: 1.2em;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.btn-text {
    background: none;
    color: var(--text-secondary);
}

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

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

/* Features Section */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.feature-list code {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* Demo Section */
.demo {
    background: var(--bg-primary);
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    padding: 40px;
}

.demo-selector {
    margin-bottom: 32px;
}

.demo-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.demo-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.demo-select:hover, .demo-select:focus {
    border-color: var(--primary);
    outline: none;
}

.demo-inputs {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#demo-execute {
    width: 100%;
    margin-bottom: 32px;
}

.demo-response {
    margin-bottom: 32px;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.response-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.response-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.response-status.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.response-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.response-time {
    color: var(--text-muted);
    font-size: 14px;
}

.demo-output {
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.demo-code-example {
    position: relative;
}

.demo-code-example h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.code-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.code-tab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px 8px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.code-tab:hover {
    color: var(--text-primary);
}

.code-tab.active {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary-light);
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
    padding: 20px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 16px;
}

#copy-code {
    width: 100%;
}

/* Tech Stack Section */
.tech-stack {
    background: var(--bg-secondary);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.stack-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
}

.stack-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.stack-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.stack-card ul {
    list-style: none;
}

.stack-card li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 15px;
}

.stack-card strong {
    color: var(--primary-light);
    font-weight: 600;
}

.architecture-highlight {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 48px;
    text-align: center;
}

.architecture-highlight h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.architecture-highlight > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 18px;
}

.architecture-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    text-align: left;
}

.arch-feature strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.arch-feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--primary-light);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 48px 0;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 44px;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .features-grid,
    .stack-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .demo-container {
        padding: 24px;
    }

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

    .architecture-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-brand p {
        margin-left: 0;
    }

    .footer-copyright {
        text-align: center;
    }

    .cookie-consent {
        right: 8px;
        left: auto;
        bottom: 8px;
        max-width: calc(100% - 16px);
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Smooth Scrolling for iOS */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Enhanced Animations */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.8);
    }
}

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

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

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Animated Gradient Background */
.animated-gradient {
    background: linear-gradient(
        45deg,
        rgba(99, 102, 241, 0.2),
        rgba(139, 92, 246, 0.2),
        rgba(236, 72, 153, 0.2),
        rgba(99, 102, 241, 0.2)
    );
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Particle Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    animation: particleFloat 20s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-glow:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.1) 25%,
        rgba(99, 102, 241, 0.2) 50%,
        rgba(99, 102, 241, 0.1) 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--border-radius);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Fade Animations */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Stagger Children Animation */
.stagger-children > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

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

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* Number Animation for Stats Counter */
.number-animate-container {
    display: inline-block;
    position: relative;
}

.number-animate {
    display: inline-block;
    position: relative;
}

.number-animate-old {
    opacity: 1;
}

.number-animate-old.animate-out {
    animation: fadeOutUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.number-animate-new {
    position: absolute;
    left: 0;
    opacity: 0;
}

.number-animate-new.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.number-animate-down.number-animate-old.animate-out {
    animation: fadeOutDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.number-animate-down.number-animate-new.animate-in {
    animation: fadeInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

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

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

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

/* Login Success Page Styles */
.success-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: 60px;
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    animation: scaleIn 0.6s ease-out;
}

.success-icon svg {
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
    animation: floatAnimation 3s ease-in-out infinite;
}

.success-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.success-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 64px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.success-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.info-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.next-steps {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.next-steps h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.steps-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.steps-list li:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(8px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .success-info {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }

    .next-steps {
        padding: 24px;
    }

    .steps-list li {
        flex-direction: column;
        text-align: center;
    }

    .steps-list li:hover {
        transform: translateX(0);
    }
}
