/* ============================================
   OfflineApp - Blue Theme Styles
   ============================================ */

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

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #172554;

    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;

    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --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 -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- Bankruptcy Banner --- */
.bankruptcy-banner {
    background: linear-gradient(135deg, var(--red-600) 0%, var(--red-700) 100%);
    color: var(--white);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    animation: banner-pulse 3s ease-in-out infinite;
}

@keyframes banner-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); }
}

.bankruptcy-banner .banner-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: icon-shake 2s ease-in-out infinite;
}

@keyframes icon-shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-5deg); }
    20% { transform: rotate(5deg); }
    30% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
}

.bankruptcy-banner .banner-content {
    max-width: 700px;
    text-align: center;
}

.bankruptcy-banner h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.bankruptcy-banner p {
    font-size: 1.05rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 8px;
}

.bankruptcy-banner .banner-email {
    display: inline-block;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.bankruptcy-banner .banner-email:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: var(--white);
    transform: translateY(-1px);
}

/* --- Header --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: var(--blue-600);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-800);
    letter-spacing: -0.03em;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(160deg, var(--blue-600) 0%, var(--blue-800) 50%, var(--blue-950) 100%);
    color: var(--white);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    animation: hero-bg-rotate 20s linear infinite;
}

@keyframes hero-bg-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--blue-700);
    border-color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--blue-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --- Section Titles --- */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blue-900);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
    border-radius: 2px;
    margin: 16px auto 0;
}

/* --- Features --- */
.features {
    padding: 100px 24px;
    background: var(--gray-50);
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-300);
}

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

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 24px;
    background: var(--white);
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* --- Contact --- */
.contact {
    padding: 100px 24px;
    background: linear-gradient(160deg, var(--blue-50), var(--blue-100));
    text-align: center;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.contact .btn-primary {
    background: var(--blue-600);
    color: var(--white);
    border-color: var(--blue-600);
}

.contact .btn-primary:hover {
    background: var(--blue-700);
    border-color: var(--blue-700);
}

/* --- Footer --- */
.site-footer {
    background: var(--blue-950);
    color: var(--blue-200);
    padding: 60px 24px 40px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 16px;
}

.footer-email {
    color: var(--blue-300);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--white);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .bankruptcy-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        gap: 12px;
    }

    .bankruptcy-banner h1 {
        font-size: 1.2rem;
    }

    .bankruptcy-banner p {
        font-size: 0.95rem;
    }

    .bankruptcy-banner .banner-icon {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero {
        padding: 60px 24px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .features,
    .about,
    .contact {
        padding: 60px 16px;
    }

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

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }
}
