/* ===================================
   CSS RESET & BASE STYLES
   =================================== */

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

/* ===================================
   CSS VARIABLES - LEGAL THEME
   =================================== */

:root {
    /* Legal Color Palette - Deep Blue & Gold Accents */
    --primary-color: #1a2332;
    --primary-dark: #0f1419;
    --primary-light: #2a3b4e;
    --accent-color: #d4a574;
    --accent-dark: #b48c36;
    --accent-light: #e6dbc9;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #fafaf9;
    --light-gray: #f5f5f4;
    --gray: #e7e5e4;
    --medium-gray: #a8a29e;
    --dark-gray: #57534e;
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    
    /* Status Colors */
    --success: #166534;
    --warning: #ea580c;
    --info: #0369a1;
    
    /* Typography */
    --font-serif: 'Crimson Pro', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ===================================
   BASE STYLES
   =================================== */

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-base);
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    padding: var(--space-md) var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
}

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

.mobile-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--light-gray);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.1) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    width: 16px;
    height: 16px;
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--accent-light);
    margin-bottom: var(--space-md);
    font-family: var(--font-serif);
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn i {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-download {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-cta {
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 1.125rem;
    padding: var(--space-md) var(--space-2xl);
}

.btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.feature-icon i {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

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

/* ===================================
   ARTICLES SECTION
   =================================== */

.articles-section {
    background: var(--light-gray);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.article-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    transition: height var(--transition-base);
}

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

.article-card:hover::before {
    height: 100%;
}

.article-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

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

/* ===================================
   COMPLIANCE SECTION
   =================================== */

.compliance-section {
    background: var(--white);
}

.compliance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.compliance-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.compliance-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.compliance-item i {
    width: 24px;
    height: 24px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 4px;
}

.compliance-item strong {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.compliance-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

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

.compliance-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--accent-color);
}

.compliance-badge i {
    width: 80px;
    height: 80px;
    color: var(--accent-color);
}

.badge-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.badge-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.badge-subtitle {
    font-size: 1rem;
    color: var(--accent-light);
}

/* ===================================
   USE CASES SECTION
   =================================== */

.use-cases {
    background: var(--off-white);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.use-case-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray);
    transition: all var(--transition-base);
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.use-case-card i {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    margin-bottom: var(--space-md);
}

.use-case-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.use-case-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ===================================
   DOWNLOAD SECTION
   =================================== */

.download-section {
    background: var(--light-gray);
}

.download-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--accent-color);
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.download-content h2 {
    margin-bottom: var(--space-md);
}

.download-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.download-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
    display: inline-block;
}

.download-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.download-features i {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.download-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.download-note i {
    width: 16px;
    height: 16px;
    color: var(--info);
}

/* ===================================
   NOTICES SECTION
   =================================== */

.notices-section {
    background: var(--white);
}

.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.notice-card {
    padding: var(--space-xl);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray);
}

.notice-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.notice-icon.warning {
    background: rgba(234, 88, 12, 0.1);
}

.notice-icon.info {
    background: rgba(3, 105, 161, 0.1);
}

.notice-icon i {
    width: 24px;
    height: 24px;
}

.notice-icon.warning i {
    color: var(--warning);
}

.notice-icon.info i {
    color: var(--info);
}

.notice-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

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

/* ===================================
   FAQ SECTION
   =================================== */

.faq-section {
    background: var(--off-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    border: 1px solid var(--gray);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    transition: all var(--transition-base);
}

.faq-question:hover {
    color: var(--accent-dark);
}

.faq-question i {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-brand i {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
}

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

.footer-section h4 {
    color: var(--accent-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    font-family: var(--font-sans);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.footer-disclaimer {
    font-size: 0.8125rem;
    font-style: italic;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .compliance-content {
        grid-template-columns: 1fr;
    }
    
    .compliance-visual {
        order: -1;
    }
    
    .features-grid,
    .articles-grid,
    .use-cases-grid,
    .notices-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: var(--space-md);
    }
    
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .download-card {
        padding: var(--space-xl);
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card,
.article-card,
.use-case-card,
.notice-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .navbar,
    .mobile-menu,
    .hero-actions,
    .download-section,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    @page {
        margin: 0.5in;
        @top-center {
            content: "Non-Disclosure Agreement";
        }
        @bottom-center {
            content: "Created by Helium";
        }
    }
}