/* --- Core Reset & Variable Tokens --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f9;
    --text-main: #222222;
    --text-muted: #666666;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --header-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border-color: #333333;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(18, 18, 18, 0.95);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Layout Elements --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

.logo-text span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Interactive Components --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* --- Structural Sections --- */
section {
    padding: 90px 0 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-section {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 14px 0 80px 0;
    margin-top: 70px;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* --- Feature Display Grid --- */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.screenshot-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--border-color);
    margin-bottom: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    border: 1px dashed var(--text-muted);
}

/* --- Data Presentation Tables & Timelines --- */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.specs-table th, .specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

/* --- Pricing Component --- */
.pricing-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.price-card {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

.price-card.featured {
    border-color: var(--accent);
    position: relative;
}

.price-card.featured::top {
    content: 'BEST VALUE';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
}

.price-amt {
    font-size: 46px;
    font-weight: 800;
    margin: 20px 0;
    color: var(--accent);
}

/* --- Contact & Footer --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-main);
    border-radius: 6px;
}

.site-footer {
    background-color: var(--bg-secondary);
    padding: 50px 0 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Responsive Media Viewports --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .main-nav.active {
        max-height: 350px;
    }

    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        display: block;
    }

    .nav-download {
        display: none;
    }

    .hero-title {
        font-size: 30px;
    }
}