/* ===================================
   PDF Unbundler - Landing Page Styles
   Legal Ready Brand
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Legal/Chambers aesthetic */
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    --navy-500: #64748b;
    
    /* Accent - Brass/Gold */
    --gold-500: #d4a853;
    --gold-400: #e4bc6a;
    --gold-600: #b8923f;
    
    /* Neutrals */
    --cream: #faf9f7;
    --cream-dark: #f5f3ef;
    --white: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    /* Functional */
    --success: #10b981;
    --border: #e2e8f0;
    --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);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo {
    height: 44px;
    width: auto;
}

.nav-product {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-800);
    padding-left: 0.75rem;
}

.nav-scrolled .nav-product {
    color: var(--navy-800);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--navy-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--gold-500);
}

.nav-link-secondary {
    color: var(--navy-600);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    background: var(--navy-800);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--navy-700);
    transform: translateY(-1px);
}

/* Mobile Navigation */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-800);
    transition: all 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-mobile.active {
    transform: translateY(0);
    opacity: 1;
}

.nav-mobile-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy-700);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-btn-mobile {
    margin-top: 0.5rem;
    justify-content: center;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .nav-mobile {
        display: flex;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, #e8e4dc 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold-600);
    background: rgba(212, 168, 83, 0.15);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy-900);
    margin-bottom: 1.5rem;
}

.hero-highlight {
    color: var(--gold-600);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    color: var(--white);
    background: var(--navy-800);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--navy-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    border-color: var(--navy-300);
    background: var(--cream);
}

.btn-outline {
    color: var(--navy-700);
    background: transparent;
    border: 2px solid var(--navy-700);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--navy-700);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Trust Badges */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-trust-item svg {
    color: var(--success);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-left: 4rem;
}

.hero-bundle {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bundle-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.bundle-icon svg {
    color: var(--navy-600);
    margin-bottom: 0.75rem;
}

.bundle-label {
    font-weight: 600;
    color: var(--navy-800);
}

.bundle-pages {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.transform-arrow {
    color: var(--gold-500);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--navy-700);
    animation: slideIn 0.6s ease-out backwards;
}

.doc-card-1 { animation-delay: 0.1s; }
.doc-card-2 { animation-delay: 0.2s; }
.doc-card-3 { animation-delay: 0.3s; }
.doc-card-4 { animation-delay: 0.4s; }
.doc-card-5 { animation-delay: 0.5s; }

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

.doc-icon {
    width: 24px;
    height: 28px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 3px;
    position: relative;
}

.doc-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--cream) 50%, var(--border) 50%);
}

.doc-card-more {
    background: var(--cream);
    color: var(--text-muted);
    font-style: italic;
    justify-content: center;
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 7rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .hero-bundle {
        flex-direction: column;
    }
    
    .transform-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header-light {
    color: var(--white);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 1rem;
}

.section-header-light .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.section-header-light .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   Problem Section
   =================================== */
.section-problem {
    background: var(--white);
}

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

.problem-card {
    padding: 2rem;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.problem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 12px;
    color: var(--navy-600);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 0.75rem;
}

.problem-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Solution Section
   =================================== */
.section-solution {
    background: var(--navy-800);
    position: relative;
    overflow: hidden;
}

.section-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-800);
    background: var(--gold-500);
    border-radius: 50%;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.step-content strong {
    color: var(--gold-400);
}

.features-highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item svg {
    color: var(--gold-400);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .features-highlight {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Security Section
   =================================== */
.section-security {
    background: var(--cream);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.security-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-feature {
    display: flex;
    gap: 1rem;
}

.security-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 10px;
    color: var(--gold-600);
    box-shadow: var(--shadow-sm);
}

.security-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 0.25rem;
}

.security-feature p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.security-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    color: var(--navy-700);
}

.security-badge svg {
    margin-bottom: 0.5rem;
}

.security-badge-text {
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    color: var(--navy-800);
}

.security-stats {
    display: flex;
    gap: 2rem;
}

.security-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy-800);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    max-width: 100px;
}

@media (max-width: 900px) {
    .security-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .security-content .section-title {
        text-align: center;
    }
    
    .security-intro {
        text-align: center;
    }
}

/* ===================================
   Integration Section
   =================================== */
.section-integration {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.integration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.integration-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-600);
    margin-bottom: 1rem;
}

.integration-text .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.integration-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.integration-features {
    list-style: none;
    margin-bottom: 2rem;
}

.integration-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.integration-features svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.integration-logo {
    max-width: 300px;
    height: auto;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .integration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .integration-text .section-title {
        text-align: center;
    }
    
    .integration-text p {
        text-align: center;
    }
    
    .integration-features {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .integration-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ===================================
   CTA Section
   =================================== */
.section-cta {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-cta .btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
}

.section-cta .btn-primary:hover {
    background: var(--gold-400);
}

.cta-signin {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-signin a {
    color: var(--gold-400);
    text-decoration: none;
    font-weight: 500;
}

.cta-signin a:hover {
    text-decoration: underline;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-location svg {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
