/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main, 'Inter', sans-serif);
    line-height: 1.6;
    color: #1a1a2e;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 36px;
    width: auto;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-item a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-item a:hover,
.nav-item.active a {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 16px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-list {
        flex-direction: column;
        gap: 4px;
    }
    .nav-item a {
        padding: 12px 16px;
    }
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    background: var(--primary);
    padding: 80px 0;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, transparent 70%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-subtext {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--primary-dark);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== CONTENT ===== */
.content-section {
    padding: 64px 0;
}
.page-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}
.page-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #1a1a2e;
}
.page-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #1a1a2e;
}
.page-body p {
    margin-bottom: 16px;
}
.page-body ul, .page-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.page-body li {
    margin-bottom: 8px;
    list-style: disc;
}
.page-body ol li {
    list-style: decimal;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}
.feature-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0f172a;
    color: #fff;
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}
.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-contact {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 4px;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    transition: 0.2s;
}
.footer-social a:hover {
    color: #fff;
    background: var(--primary);
}
.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cbd5e1;
    margin-bottom: 16px;
}
.footer-column ul li {
    margin-bottom: 8px;
}
.footer-column ul li a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: 0.2s;
}
.footer-column ul li a:hover {
    color: #fff;
}
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .hero-section { padding: 60px 0; }
}

/* ===== ERROR PAGE ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
