/* ===== CSS Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Green Color Palette */
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #34d399;
    --primary-green-lighter: #6ee7b7;
    --primary-green-lightest: #d1fae5;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== Global Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: white;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    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;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}

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

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

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

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

.btn-outline:hover {
    background: var(--primary-green-lightest);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-download {
    width: 100%;
    justify-content: center;
}

.btn-download:not(:last-of-type) {
    margin-bottom: 16px;
}

.btn-primary-alt {
    background: var(--primary-green-dark);
    color: white;
}

.btn-primary-alt:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-badge {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    background: var(--primary-green-lightest);
    color: var(--primary-green-dark);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

/* ===== App Screenshot ===== */
.screenshot-preview {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    padding: 8px;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* ===== Features Section ===== */
.features {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green-light);
    background: white;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-green-lightest);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== Download Section ===== */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-green-lightest) 0%, white 100%);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.download-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.download-description {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.requirements {
    margin-bottom: 32px;
}

.requirements h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.requirements-list {
    list-style: none;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--gray-700);
}

.miktex-notice {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-green-light);
}

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

.notice-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.notice-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.6;
}

.download-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.download-icon {
    margin-bottom: 24px;
}

.download-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.version {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.size {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.download-note {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 16px;
}

.installation-steps {
    margin-top: 32px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.installation-steps h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.installation-steps ol {
    padding-left: 20px;
}

.installation-steps li {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
    line-height: 1.6;
}

.installation-steps a {
    color: var(--primary-green);
    text-decoration: underline;
}

/* ===== About Section ===== */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.about-description {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
}

.features-list {
    margin: 32px 0;
}

.features-list h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
}

.features-list strong {
    color: var(--gray-900);
}

.fh-steyr {
    margin-top: 40px;
    padding: 24px;
    background: var(--primary-green-lightest);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-green);
}

.university-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-green);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 18px;
    color: var(--gray-900);
}

.badge-text span {
    font-size: 14px;
    color: var(--gray-600);
}

.fh-steyr p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: start;
    gap: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 4px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary-green-light);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.footer-note {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.feature-card,
.download-card {
    animation: fadeInUp 0.6s ease-out;
}
