/* ==========================================================================
   Anacoder Official Website Design System
   Theme: Modern Clean White / Slate & Electric Blue
   Typography: Plus Jakarta Sans / Inter
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Color Palette */
    --color-bg: #ffffff;
    --color-bg-subtle: #f8fafc;
    --color-bg-muted: #f1f5f9;
    --color-bg-card: #ffffff;
    
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #eff6ff;
    --color-primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
    
    --color-secondary: #0f172a;
    --color-accent: #f59e0b;
    --color-accent-light: #fef3c7;
    
    --color-text-main: #0f172a;
    --color-text-body: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;
    --color-border-focus: #93c5fd;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-primary: 0 10px 25px -5px rgba(37, 99, 235, 0.3);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text-body);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button, input, select, textarea {
    font: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

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

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

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

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-text-main);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* Header & Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-body);
    position: relative;
    padding: 6px 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.nav-badge-blog {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--color-text-main);
}

/* Hero Section */
.hero-section {
    padding: calc(var(--header-height) + 60px) 0 80px 0;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(239, 246, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.hero-tag-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-title {
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.stat-item h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Hero Interactive Card / Demo Window */
.hero-demo-window {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.window-header {
    background: var(--color-bg-subtle);
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.window-body {
    padding: 24px;
}

/* Feature Cards Grid */
.features-section {
    padding: 90px 0;
    background: var(--color-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Product Showcase Section */
.product-showcase-section {
    padding: 90px 0;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cat-tab-btn {
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-body);
    cursor: pointer;
    transition: var(--transition);
}

.cat-tab-btn.active, .cat-tab-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}

.calc-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .calc-preview-grid,
    .directory-grid {
        grid-template-columns: 1fr;
    }
}

.calc-pill-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
    min-width: 0;
    overflow: hidden;
}

.calc-pill-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.calc-pill-card > span:first-child,
.calc-pill-card .pill-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.calc-pill-card > div,
.calc-pill-card .pill-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.calc-pill-card h4,
.calc-pill-card .pill-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 4px;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
}

.calc-pill-card code {
    display: inline-block;
    max-width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-primary);
    background: #eff6ff;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid #dbeafe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calc-pill-card code:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.calc-pill-card .pill-info span {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: #ffffff;
}

.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

@media (max-width: 1080px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 750px;
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.03);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    min-height: 40px;
}

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.price-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1;
}

.price-period {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text-body);
    margin-bottom: 12px;
}

.plan-features li svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
    background: var(--color-bg-subtle);
}

.comparison-table-wrap {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--color-bg-muted);
    font-weight: 700;
}

.comparison-table th.col-pro {
    background: #eff6ff;
    color: var(--color-primary);
}

.comparison-table td.col-pro {
    background: #fcfdff;
    font-weight: 600;
}

/* Blog Teaser Grid */
.blog-teaser-section {
    padding: 90px 0;
    background: #ffffff;
}

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

.blog-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-hover);
}

.blog-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* Blog Skeleton Loading State */
.blog-skeleton-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-title {
    height: 22px;
    width: 85%;
    margin-bottom: 8px;
}

.skeleton-meta {
    height: 12px;
    width: 40%;
}

.skeleton-desc {
    height: 14px;
    width: 100%;
}

.skeleton-desc-short {
    height: 14px;
    width: 70%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* FAQ Accordion */
.faq-section {
    padding: 90px 0;
    background: var(--color-bg-subtle);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text-main);
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    transition: transform 0.2s ease;
}

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

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Banner */
.cta-banner-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    text-align: center;
}

.cta-banner-section h2 {
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-banner-section p {
    color: #cbd5e1;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 36px auto;
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    padding: 70px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 14px 0 16px 0;
    max-width: 320px;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.footer-social-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
    color: var(--color-text-main);
}

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

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin: 0 auto 32px auto;
    }
    .hero-cta-wrap, .hero-stats {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-xl);
        border-bottom: 1px solid var(--color-border);
        display: none;
        gap: 20px;
    }
    .nav-menu.open {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .pricing-card.featured {
        transform: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}




