/* DpdoEngine Official Website */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --dark: #0f172a;
    --darker: #020617;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #64748b;
    --gray-800: #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* --- Nav --- */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.navbar .brand span { color: var(--accent); }
.navbar .nav-links { display: flex; gap: 2rem; align-items: center; }
.navbar .nav-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .2s;
}
.navbar .nav-links a:hover { color: #fff; }
.navbar .nav-links .btn {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, #1e3a5f 100%);
    color: #fff;
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    max-width: 700px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.15rem;
    color: var(--gray-300);
    max-width: 580px;
    margin-bottom: 2rem;
}
.hero .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.btn-outline { border: 1px solid var(--gray-600); color: var(--gray-300); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #eab308; transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* --- Sections --- */
.section { padding: 5rem 0; }
.section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
}
.section .subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-alt { background: var(--gray-100); }

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: all .2s;
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(37,99,235,0.1);
    transform: translateY(-2px);
}
.feature-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.5; }

/* --- Specs --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.spec-item {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}
.spec-item .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.spec-item .label { font-size: 0.85rem; color: var(--gray-600); }

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all .2s;
}
.pricing-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
}
.pricing-card .price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-600);
}
.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
}
.pricing-card ul li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}
.pricing-card ul li::before {
    content: '✓ ';
    color: #16a34a;
    font-weight: 700;
}
.pricing-card ul li.no::before {
    content: '✗ ';
    color: #dc2626;
}
.pricing-card .btn { width: 100%; text-align: center; }

/* --- Download --- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}
.download-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}
.download-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37,99,235,0.1);
    transform: translateY(-2px);
}
.download-card .icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.download-card h3 { font-size: 1.1rem; }
.download-card p { font-size: 0.85rem; color: var(--gray-600); margin-top: 0.3rem; }

/* --- Comparsion Table --- */
.table-wrap { overflow-x: auto; }
table.comp {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
table.comp th, table.comp td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}
table.comp th { background: var(--dark); color: #fff; font-weight: 600; }
table.comp th:first-child { text-align: left; }
table.comp td:first-child { text-align: left; font-weight: 500; }
table.comp tr:hover td { background: var(--gray-100); }
table.comp .check { color: #16a34a; font-weight: 700; }
table.comp .cross { color: #dc2626; }

/* --- Footer --- */
footer {
    background: var(--darker);
    color: var(--gray-600);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
footer a { color: var(--gray-300); text-decoration: none; }
footer a:hover { color: #fff; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 6rem 0 3rem; }
    .navbar .nav-links { gap: 1rem; }
    .navbar .nav-links a:not(.btn) { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn .6s ease forwards;
}
@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Markdown rendered content */
.md-content h2 { font-size: 1.4rem; margin: 1.5rem 0 0.8rem; font-weight: 700; }
.md-content h3 { font-size: 1.15rem; margin: 1.2rem 0 0.6rem; font-weight: 600; }
.md-content p { margin-bottom: 0.8rem; line-height: 1.8; }
.md-content code {
    background: #f1f5f9; padding: 0.15rem 0.4rem; border-radius: 4px;
    font-size: 0.85em; font-family: 'Consolas', 'Courier New', monospace;
}
.md-content pre {
    background: #1e293b; color: #e2e8f0; padding: 1rem; border-radius: 8px;
    overflow-x: auto; margin: 1rem 0;
}
.md-content pre code { background: none; padding: 0; color: inherit; font-size: 0.85rem; }
.md-content ul, .md-content ol { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.md-content li { margin-bottom: 0.3rem; }
.md-content a { color: #2563eb; text-decoration: underline; }
.md-content blockquote {
    border-left: 4px solid #2563eb; padding: 0.5rem 1rem; margin: 1rem 0;
    background: #f8fafc; color: #475569;
}
.md-content table {
    width: 100%; border-collapse: collapse; margin: 1rem 0;
}
.md-content th, .md-content td {
    border: 1px solid #e2e8f0; padding: 0.5rem 1rem; text-align: left;
}
.md-content th { background: #f1f5f9; font-weight: 600; }
