/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    border: 2px solid #e2e8f0;
    color: #333;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.btn-large {
    padding: 14px 32px;
    font-size: 17px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
}

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

.nav a {
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}

.nav a.nav-link-active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

/* Tools Dropdown */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-btn::after {
    content: '▼';
    font-size: 8px;
    transition: transform 0.2s;
}

.nav-item-dropdown:hover .nav-dropdown-btn::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    transition: all 0.15s;
}

.nav-dropdown-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.nav-dropdown-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.nav-dropdown-icon {
    font-size: 18px;
}

.btn.nav-btn-active {
    background: #1d4ed8;
}

/* Ad Container - small banner */
.ad-container {
    max-width: 728px;
    margin: 0 auto 32px;
    padding: 0 20px;
    text-align: center;
}

.ad-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-placeholder {
    width: 320px;
    height: 100px;
    margin: 0 auto;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #94a3b8;
}

/* Tool Page Ad */
.tool-page .ad-container {
    margin-top: 32px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .ad-container {
        padding: 0 12px;
    }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 32px;
}

.hero-actions {
    margin-bottom: 16px;
}

.hero-note {
    font-size: 14px;
    color: #94a3b8;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #f8fafc;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
    text-align: center;
    margin-bottom: 48px;
}

.hero h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.page-updated {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 32px;
}

.policy-section {
    margin-bottom: 32px;
}

.policy-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
}

.policy-section p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-section ul {
    margin-left: 24px;
    margin-bottom: 12px;
}

.policy-section li {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 6px;
}

.policy-section a {
    color: #3b82f6;
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tool-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.2s;
}

.tool-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.tool-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 14px;
    color: #64748b;
}

/* Steps */
.steps {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.step {
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #64748b;
}

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

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: #64748b;
}

/* Pricing */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.pricing-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    width: 280px;
    text-align: center;
    position: relative;
}

.pricing-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.price {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
}

.pricing-features {
    margin-bottom: 24px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-card-popular {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 48px 0 24px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    font-size: 13px;
    color: #64748b;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    width: 100%;
    text-align: center;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.blog-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.blog-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.blog-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.blog-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card a {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.blog-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: flex;
        align-items: center;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px 0;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 28px;
    }

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

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}