/* ========================================
   ShareChiro - Modern Design System
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #0096FF;
    --blue-dark: #0078CC;
    --blue-light: #E8F4FF;
    --blue-glow: rgba(0, 150, 255, 0.15);
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Header / Navigation
   ======================================== */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 0.75rem 0;
}

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

.nav-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.login-brand {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 1px 3px rgba(0, 150, 255, 0.3);
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 150, 255, 0.35);
}

.btn-primary.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    padding: 0.875rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gray-500);
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-ghost:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(160deg, #001a33 0%, #003366 30%, #0066CC 60%, #0096FF 100%);
    color: var(--white);
    padding: 7rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 150, 255, 0.25), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Library / Features Section
   ======================================== */
.library-section {
    padding: 6rem 0;
    background: var(--white);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.content-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all var(--transition);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 150, 255, 0.2);
}

.card-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon {
    font-size: 1.5rem;
}

.content-card h3 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.content-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 300px;
    padding: 0 1.5rem;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    margin-top: 30px;
    flex-shrink: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--blue);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 14px rgba(0, 150, 255, 0.3);
}

.step h3 {
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.step p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ========================================
   Social Proof / Stats Section
   ======================================== */
.social-section {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}

.social-section .section-header h2 {
    font-size: 2.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 500;
}

.social-text {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-top: 1rem;
    font-weight: 500;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(160deg, #001a33 0%, #003366 40%, #0096FF 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #001a33 0%, #003366 40%, #0096FF 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(0, 150, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-logo .logo-image {
    height: 80px;
    width: auto;
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.75rem 1.5rem;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.login-card .logo-image {
    height: 80px;
    margin: 0 auto 1rem auto;
}

.login-subtitle {
    color: var(--gray-500);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.login-card input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--gray-50);
}

.login-card input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
    background: var(--white);
}

.btn-full {
    width: 100%;
}

.error-message {
    color: #ef4444;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 5rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

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

    .section-header h2,
    .social-section .section-header h2,
    .cta-section h2 {
        font-size: 1.75rem;
    }

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .step {
        max-width: 100%;
    }

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

    .stat-number {
        font-size: 2.25rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .nav-link {
        display: none;
    }

    .nav-buttons {
        gap: 0.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.75rem;
    }
}