/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: var(--radius);
    font-size: 1.25rem;
    font-weight: 900;
}

.logo-text {
    font-size: 1.125rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 8px 16px;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--gray-50);
}

.nav-link.nav-cta {
    background: var(--primary);
    color: var(--white);
}

.nav-link.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--gray-700);
    transition: var(--transition);
}

@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--gray-50);
    padding: 12px 0;
    margin-top: 70px;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--gray-500);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--gray-400);
    margin: 0 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-300);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .hero {
        padding: 140px 0 100px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }
}

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

.section-white {
    background: var(--white);
}

.section-gray {
    background: var(--gray-50);
}

.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: var(--gray-400);
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* SEO Pillars */
.seo-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.pillar {
    text-align: center;
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.pillar h3 {
    margin-bottom: 12px;
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 1.0625rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

/* Tools Section */
.tool-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .tool-preview {
        grid-template-columns: 1fr 1fr;
    }
}

.tool-intro h3 {
    margin-bottom: 16px;
}

.tool-intro p {
    margin-bottom: 16px;
    color: var(--gray-600);
}

.tool-widget {
    display: flex;
    align-items: center;
}

.tool-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.tool-card h4 {
    margin-bottom: 16px;
}

.tool-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.tool-input:focus {
    outline: none;
    border-color: var(--primary);
}

.tool-result {
    margin-top: 20px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: none;
}

.tool-result.active {
    display: block;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
}

.tool-link:hover {
    background: var(--primary);
    color: var(--white);
}

.tool-link .tool-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-link .tool-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.tool-link:hover .tool-icon {
    background: rgba(255,255,255,0.2);
}

.tool-link:hover .tool-icon svg {
    color: var(--white);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature {
    padding: 24px;
}

.feature-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 12px;
}

.section-dark .feature-number {
    color: var(--accent);
}

.feature h3 {
    margin-bottom: 12px;
}

.feature p {
    color: var(--gray-400);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--gray-600);
}

/* Blog Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.post-image {
    aspect-ratio: 16/9;
    background: var(--gray-100);
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.post-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
}

.post-content {
    padding: 24px;
}

.post-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.post-content h3 {
    margin: 8px 0 12px;
    font-size: 1.125rem;
}

.post-content h3 a {
    color: var(--gray-900);
}

.post-content h3 a:hover {
    color: var(--primary);
}

.post-content p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* SEO Description */
.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 32px;
}

.seo-content p {
    margin-bottom: 20px;
    color: var(--gray-600);
}

.seo-content strong {
    color: var(--gray-800);
}

/* CTA Section */
.section-cta-full {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.section-cta-full h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.section-cta-full p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.footer-logo .logo-text {
    color: var(--white);
    font-weight: 700;
}

.footer-brand p {
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.footer-contact p {
    font-size: 0.875rem;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
    font-size: 0.875rem;
}

/* Blog Page Specific */
.blog-header {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.blog-header h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.blog-header p {
    color: var(--gray-400);
    font-size: 1.125rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 64px 0;
}

/* Article Page */
.article-header {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 80px 0 60px;
}

.article-header h1 {
    color: var(--white);
    font-size: 2rem;
    max-width: 800px;
}

@media (min-width: 768px) {
    .article-header h1 {
        font-size: 2.5rem;
    }
}

.article-meta {
    margin-top: 16px;
    color: var(--gray-400);
    font-size: 0.9375rem;
}

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

.article-content h2 {
    margin: 48px 0 20px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.article-content h3 {
    margin: 32px 0 16px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.0625rem;
    color: var(--gray-700);
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content blockquote p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--gray-600);
}

.article-cta {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
}

.article-cta h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.article-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

/* Related Posts */
.related-posts {
    padding: 64px 0;
    background: var(--gray-50);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 32px;
}

/* Contact Form */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

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

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-item-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9375rem;
}

.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.about-hero p {
    color: var(--gray-400);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    padding: 64px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

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

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.about-image {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image svg {
    width: 120px;
    height: 120px;
    color: var(--gray-400);
}

/* Services Page */
.services-hero {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.services-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.services-hero p {
    color: var(--gray-400);
    font-size: 1.125rem;
}

.service-detail {
    padding: 80px 0;
    border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .service-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-detail:nth-child(even) .service-detail-content {
        order: 2;
    }
}

.service-detail-content h2 {
    margin-bottom: 16px;
}

.service-detail-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.service-detail-features {
    margin: 24px 0;
}

.service-detail-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.service-detail-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* Tools Page */
.tools-hero {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.tools-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
}

.tools-hero p {
    color: var(--gray-400);
    font-size: 1.125rem;
}

.tool-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--gray-200);
}

.tool-section:last-child {
    border-bottom: none;
}

.tool-container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-container h2 {
    text-align: center;
    margin-bottom: 16px;
}

.tool-description {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.tool-box {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.tool-box h3 {
    margin-bottom: 16px;
}

.tool-output {
    margin-top: 24px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    display: none;
}

.tool-output.active {
    display: block;
}

.tool-output h4 {
    margin-bottom: 12px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.score-circle.good {
    background: var(--success);
}

.score-circle.medium {
    background: var(--warning);
}

.score-circle.poor {
    background: var(--error);
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.check-list li:last-child {
    border-bottom: none;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon.pass {
    background: var(--success);
    color: var(--white);
}

.check-icon.fail {
    background: var(--error);
    color: var(--white);
}

.check-icon.warn {
    background: var(--warning);
    color: var(--white);
}

/* Privacy & Terms */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 20px;
}

.legal-content h1 {
    margin-bottom: 32px;
}

.legal-content h2 {
    margin: 40px 0 16px;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mt-8 {
    margin-top: 32px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9375rem;
    }

    .services-grid,
    .posts-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}
