/**
 * Client Communication Page - Stripe-Inspired Design
 * Based on homepage mockup aesthetic with gradient orbs and sublime design
 */

:root {
    /* Mirian Blue Gradient (from homepage) */
    --gradient-primary: linear-gradient(135deg, #017ACA 0%, #0096E5 100%);
    --gradient-orb-1: radial-gradient(circle at center, rgba(1, 122, 202, 0.12) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle at center, rgba(0, 150, 229, 0.10) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle at center, rgba(1, 122, 202, 0.08) 0%, transparent 70%);
    
    /* Colors */
    --color-primary-dark: #0a2540;
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-background: #ffffff;
    --color-surface: #f7f9fc;
    --color-border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-background);
    color: var(--color-text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main-wrapper {
    background: transparent !important;
}

/* ============================================================================
   HERO SECTION - Gradient Orbs Background
   ============================================================================ */

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 50%);
}

/* Gradient Orbs */
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: 20%;
    left: -10%;
    background: var(--gradient-orb-1);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 1;
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: 20%;
    right: -5%;
    background: var(--gradient-orb-2);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 1;
    animation: float 30s ease-in-out infinite 7s;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(40px, 20px) scale(1.02);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Badge with Gradient */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.08) 0%, rgba(0, 115, 230, 0.08) 100%);
    border: 1px solid rgba(99, 91, 255, 0.2);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

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

/* Title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 400;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
}

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

/* Buttons with Gradient & Shimmer */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(1, 122, 202, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 122, 202, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid rgba(10, 37, 64, 0.1);
}

.btn-outline:hover {
    border-color: rgba(10, 37, 64, 0.2);
    background: rgba(10, 37, 64, 0.02);
}

/* ============================================================================
   CONTENT SECTION
   ============================================================================ */

.section {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(180deg, #ffffff 20%, #f7f9fc 50%, #ffffff 100%);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 2rem;
}

/* Table of Contents */
.toc-container {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.toc-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(1, 122, 202, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.toc-container:hover::before {
    opacity: 1;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.toc-nav li {
    margin: 0;
}

.toc-nav a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9375rem;
    font-weight: 500;
}

.toc-nav a:hover {
    background: var(--color-surface);
    color: var(--color-text);
    transform: translateX(4px);
}

/* Section Content */
.section-content {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.animated {
    opacity: 1;
    transform: translateY(0);
}

.section-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: left;
}

.section-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 1rem;
}

.section-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 2.5rem 0 1rem;
}

.section-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
}

.section-content ul, .section-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.section-content li {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.section-content ul li {
    list-style: none;
    position: relative;
    padding-left: 2rem;
}

.section-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

/* Communication Strategy Cards */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.strategy-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(1, 122, 202, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.strategy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    border-color: rgba(1, 122, 202, 0.3);
}

.strategy-card:hover::before {
    opacity: 1;
}

.strategy-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(1, 122, 202, 0.08) 0%, rgba(0, 150, 229, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.strategy-card:hover .strategy-icon {
    transform: scale(1.05);
}

.strategy-icon i {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.strategy-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.75rem 0;
}

.strategy-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.strategy-card p:last-child {
    margin-bottom: 0;
}

/* Special Boxes */
.example-box, .callout-box, .quote-box {
    border-radius: 16px;
    padding: 1.75rem;
    margin: 2.5rem 0;
}

.example-box {
    background: var(--color-surface);
    border-left: 4px solid var(--color-border);
}

.example-box h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.callout-box {
    background: linear-gradient(135deg, rgba(1, 122, 202, 0.05) 0%, rgba(0, 150, 229, 0.05) 100%);
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.callout-box h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.quote-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 2rem;
    position: relative;
}

.quote-box blockquote {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    position: relative;
}

.quote-box blockquote::before {
    content: '"';
    position: absolute;
    left: -1rem;
    top: -1rem;
    font-size: 4rem;
    color: rgba(1, 122, 202, 0.2);
    font-family: Georgia, serif;
}

.quote-box cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-style: normal;
    color: var(--color-text-secondary);
}

/* CTA Box with Gradient & Shimmer */
.cta-box {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.cta-box h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #017ACA;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .container, .container-narrow {
        padding: 0 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 3rem 0;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .toc-nav ul {
        grid-template-columns: 1fr;
    }

    .toc-container {
        padding: 1.5rem;
    }

    .example-box, .callout-box, .quote-box {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }
}

