/* ===== CSS Variables ===== */
:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-radius: var(--radius-md);
    color: var(--white);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-600);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: var(--white);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    box-shadow: var(--shadow-lg), 0 0 20px 0 rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-600);
    border: 2px solid var(--primary-200);
}

.btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

.btn-download {
    background: var(--primary-600);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-download:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 2rem;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius);
    color: var(--primary-600);
}

.hero-card-icon svg {
    width: 24px;
    height: 24px;
}

.hero-card span {
    font-weight: 600;
    color: var(--gray-800);
}

/* ===== Software Section ===== */
.software-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-500);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.software-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition-slow);
}

.software-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-100);
}

.software-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--white);
}

.software-icon svg {
    width: 28px;
    height: 28px;
}

.software-icon.openoffice {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
}

.software-icon.acrobat {
    background: linear-gradient(135deg, #b30b00, #e02b1d);
}

.software-icon.docservice {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.software-icon.vpn {
    background: linear-gradient(135deg, #ff7e00, #ffa940);
}

.software-icon.zip {
    background: linear-gradient(135deg, #4a5568, #718096);
}

.software-icon.chrome {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.software-icon.notepad {
    background: linear-gradient(135deg, #90be6d, #6ba54a);
}

.software-info {
    flex: 1;
}

.software-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.software-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.software-meta {
    display: flex;
    gap: 1rem;
}

.software-version,
.software-size {
    font-size: 0.8125rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.software-version::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    border-radius: 50%;
}

.software-size::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gray-300);
    border-radius: 50%;
}

/* ===== Support Section ===== */
.support-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.support-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    flex-direction: column;
}

.support-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.support-icon svg {
    width: 36px;
    height: 36px;
}

.support-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.support-text p {
    color: var(--primary-100);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.support-section .btn-secondary {
    background: var(--white);
    color: var(--primary-700);
    border: none;
}

.support-section .btn-secondary:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 0;
    background: var(--gray-900);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 600;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-600);
}

.footer-logo .logo-icon svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.footer-link {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-400);
}

.footer-text {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        padding-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-card {
        flex: 1;
        min-width: 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 64px;
    }
    
    .nav {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        flex-direction: column;
    }
    
    .hero-card {
        min-width: 100%;
    }
    
    .software-card {
        padding: 1.25rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.software-card {
    animation: fadeInUp 0.5s ease forwards;
}

.software-card:nth-child(1) { animation-delay: 0.1s; }
.software-card:nth-child(2) { animation-delay: 0.2s; }
.software-card:nth-child(3) { animation-delay: 0.3s; }
.software-card:nth-child(4) { animation-delay: 0.4s; }
.software-card:nth-child(5) { animation-delay: 0.5s; }
.software-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.25rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-text svg {
    width: 32px;
    height: 32px;
    color: var(--primary-600);
    flex-shrink: 0;
}

.cookie-text p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary-600);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cookie-accept {
    background: var(--primary-600);
    color: var(--white);
}

.cookie-accept:hover {
    background: var(--primary-700);
}

.cookie-decline {
    background: var(--gray-100);
    color: var(--gray-700);
}

.cookie-decline:hover {
    background: var(--gray-200);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
    }
}
