﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    line-height: 1.6;
}

:root {
    --bg-color: #f4f7fb;
    --surface: #ffffff;
    --text-color: #1f2937;
    --muted-color: #475569;
    --primary-color: #2563eb;
    --secondary-color: #6b7280;
    --border-color: #e2e8f0;
    --shadow-color: 0 15px 35px rgba(15, 23, 42, 0.08);
}

body.light-mode {
    background: #111827;
    color: #f8fafc;
}

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

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.nav-menu a {
    color: var(--muted-color);
    text-decoration: none;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

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

.theme-toggle button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    font-size: 1rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 auto 2rem;
    color: var(--muted-color);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary {
    background: var(--primary-color);
    color: #ffffff;
}

.secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d4ed8;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    text-decoration: none;
    margin: 1rem 0 1.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.download-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.download-link {
    color: var(--primary-color);
    font-weight: 700;
}

.download-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.download-hero .container {
    position: relative;
    z-index: 1;
}

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

.hero-icon {
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.download-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.download-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.download-actions .primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.download-actions .primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.download-actions .secondary {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.download-actions .secondary:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.resources {
    padding: 5rem 0;
}

.resources h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.resources-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.resource-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.resource-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
}

.resource-card p {
    color: var(--muted-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.file-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.file-info span {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.download-btn:not(.secondary) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}

.download-btn:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.download-btn.secondary {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.download-btn.secondary:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.resource-notes {
    margin-top: 4rem;
    text-align: center;
    color: var(--muted-color);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .download-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .resource-card {
        padding: 2rem;
    }
}

.ref-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ref-card-link:hover .ref-card {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}

.store-badge svg {
    flex-shrink: 0;
}

.features,
section {
    padding: 4rem 0;
}

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

.feature-card,
.card,
.tool-card,
.ref-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-color);
}

.feature-card h3,
.card h4,
.tool-card h3,
.ref-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-card p,
.card p,
.tool-card p,
.ref-card p {
    color: var(--muted-color);
    line-height: 1.7;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h3 {
    font-size: 1.45rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price {
    font-size: 1.1rem;
    margin: 0.75rem 0 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.details {
    margin-top: 0.8rem;
}

.details ul {
    list-style: disc inside;
    color: var(--muted-color);
}

.mockup img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-color);
}

.card img,
.ref-card img,
.mockup img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: contain;
}

.mockup {
    max-width: 420px;
    margin: 0 auto;
}

.code-mockup {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.code-mockup pre {
    margin: 0;
    overflow-x: auto;
}

.code-mockup code {
    color: #0f172a;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--muted-color);
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding-top: 4rem;
    }
}
