/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --secondary: #dc2626;
    --accent: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #525a66;
    --gray-700: #3a4451;
    --gray-800: #202938;
    --gray-900: #0f172a;
    --dark-bg: #111827;
    --dark-card: #1f2937;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-200);
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f172a 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--dark-card);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

/* Header styles */
header {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid var(--gray-600);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.025em;
    margin: 0;
}

.nav-subtitle {
    font-size: 0.875rem;
    color: var(--gray-300);
    font-weight: 500;
    padding-left: 1rem;
    border-left: 2px solid var(--gray-500);
}

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

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--gray-600);
}

/* Page header for document pages */
.page-header {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-500);
}

.page-header h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.last-updated {
    color: var(--gray-200);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Language switcher */
.language-switcher {
    display: flex;
    background: var(--gray-600);
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--gray-300);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.75rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    background: var(--gray-500);
    color: var(--white);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Main content */
main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* App Information Section */
.app-info-section {
    margin-bottom: 4rem;
}

.app-hero {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    border-radius: 1.5rem;
    border: 1px solid var(--gray-500);
    box-shadow: var(--shadow-md);
}

.app-logo-large {
    flex-shrink: 0;
}

.app-logo-large img {
    width: 120px;
    height: 120px;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.app-hero:hover .app-logo-large img {
    transform: scale(1.05);
}

.app-description h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.app-description p {
    color: var(--gray-200);
    line-height: 1.7;
    font-size: 1rem;
}

.app-features-detailed {
    margin-bottom: 3rem;
}

.app-features-detailed h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

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

.feature-item {
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.feature-item .material-icons {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .material-icons {
    transform: scale(1.1);
}

.feature-item h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.feature-item p {
    color: var(--gray-200);
    font-size: 0.875rem;
    line-height: 1.6;
}

.premium-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 1.75rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.premium-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(-45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(-45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(-45deg); }
}

.premium-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.premium-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.legal-documents-section {
    margin-top: 2rem;
}

/* Premium Features Section - Subtle Version */
.premium-features-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.premium-info-subtle {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    border: 1px solid var(--gray-500);
    color: var(--gray-200);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-info-subtle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.premium-info-subtle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.8;
}

.premium-info-subtle::after {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.premium-info-subtle:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.premium-info-subtle h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
    color: var(--white);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-info-subtle h3::before {
    content: '✨';
    font-size: 1rem;
    opacity: 0.8;
}

.premium-info-subtle p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.95;
    color: var(--gray-200);
    max-width: 600px;
    margin: 0 auto;
}

.legal-documents-section h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

/* Document links */
.document-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.link-card {
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.link-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    margin-bottom: 1rem;
}

.card-icon .material-icons {
    font-size: 2.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.link-card:hover .card-icon .material-icons {
    transform: scale(1.1);
}

.link-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.link-card h2,
.link-card h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.link-card p {
    color: var(--gray-200);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

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

.btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Document content styles */
.document-content {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--gray-700);
    border-radius: 1rem;
    border: 1px solid var(--gray-600);
    box-shadow: var(--shadow-sm);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: var(--white);
    font-size: 1.375rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.section-content {
    color: var(--gray-200);
    line-height: 1.7;
    font-size: 0.9rem;
    font-weight: 400;
}

.section-content br {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--gray-800);
    padding: 2rem;
    text-align: center;
    color: var(--gray-300);
    border-top: 1px solid var(--gray-600);
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 400;
}

footer p {
    margin-bottom: 0.25rem;
}

/* Responsive design */
@media (max-width: 968px) {
    .main-nav {
        padding: 1rem;
    }
    
    .nav-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .nav-subtitle {
        border-left: none;
        padding-left: 0;
        font-size: 0.75rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        box-shadow: none;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .app-hero {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .app-logo-large img {
        width: 100px;
        height: 100px;
    }
    
    .app-description h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .premium-info {
        padding: 2rem;
    }
    
    .premium-info-subtle {
        padding: 1.5rem;
    }
    
    .premium-info-subtle h3 {
        font-size: 1.125rem;
    }
    
    .document-links {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .link-card {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.25rem;
    }
    
    .section-content {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.125rem;
    }
    
    .app-hero {
        padding: 1.5rem;
    }
    
    .app-logo-large img {
        width: 80px;
        height: 80px;
    }
    
    .app-description h2 {
        font-size: 1.25rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .premium-info {
        padding: 1.5rem;
    }
    
    .premium-info-subtle {
        padding: 1.25rem;
    }
    
    .premium-info-subtle h3 {
        font-size: 1rem;
    }
    
    .premium-info-subtle p {
        font-size: 0.875rem;
    }
    
    .link-card {
        padding: 1.25rem;
    }
    
    .content-section {
        padding: 1.25rem;
    }
    
    .lang-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Print styles */
@media print {
    .language-switcher,
    .nav-links,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        box-shadow: none;
        max-width: none;
    }
    
    header {
        background: none !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .app-hero,
    .feature-item,
    .premium-info,
    .link-card,
    .content-section {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}