/* ══════════════════════════════════════════════════════════════
   Muhaseb Theme — Main Stylesheet
   Light theme for UAE Smart Accounting website
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
    --color-bg: #FAF7F2;
    --color-text: #1E293B;
    --color-text-muted: #6B7280;
    --color-primary: #1A4A99;
    --color-primary-dark: #0F3B7A;
    --color-accent-gold: #D4A34A;
    --color-accent-gold-light: rgba(212, 163, 74, 0.12);
    --color-success: #22C55E;
    --color-danger: #EF4444;
    
    --color-card-bg: #FFFFFF;
    --color-card-border: #E8E2D8;
    --color-card-border-selected: #1A4A99;
    
    --color-input-bg: #FAF7F2;
    --color-nav-bg: rgba(250, 247, 242, 0.85);
    --color-section-alt: #F3EFE8;
    
    --color-icon-bg-blue: rgba(26, 74, 153, 0.08);
    --color-icon-bg-gold: rgba(212, 163, 74, 0.12);
    
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --max-width: 1200px;
    --header-height: 81px;
    
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 12px 24px -8px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 0 4px rgba(26, 74, 153, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 60px; 
    font-weight: 700; 
    line-height: 1.08;
}

h2 { 
    font-size: 36px; 
    font-weight: 600; 
    text-align: center; 
    margin-bottom: 2.5rem; 
}

h3 { 
    font-size: 24px; 
    font-weight: 600; 
    line-height: 1.3;
}

h4 { 
    font-size: 20px; 
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
}

p { 
    margin-bottom: 1.5rem; 
    color: var(--color-text-muted); 
}

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

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

::selection {
    background: var(--color-primary);
    color: #fff;
}

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

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-card-border);
    z-index: 1000;
    transition: background 0.3s ease;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-logo:hover { color: var(--color-primary); }

.site-logo img {
    height: 40px;
    width: auto;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-link.current {
    color: var(--color-primary);
}

.nav-cta {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-pill);
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ────────────────────────────────────────── */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(var(--header-height) + 4rem) 24px 4rem;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
    position: relative;
    overflow: hidden;
}

/* Geometric background pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 163, 74, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 74, 153, 0.04) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(212, 163, 74, 0.02) 40px,
            rgba(212, 163, 74, 0.02) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(26, 74, 153, 0.015) 40px,
            rgba(26, 74, 153, 0.015) 41px
        );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
    pointer-events: none;
}

.hero * { position: relative; z-index: 1; }

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 20px;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent-gold-light);
    border: 1px solid rgba(212, 163, 74, 0.25);
    color: #8B6F30;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
}

.hero-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(26, 74, 153, 0.08);
    border: 1px solid rgba(26, 74, 153, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.hero-free-tag {
    font-size: 15px !important;
    color: var(--color-primary) !important;
    font-weight: 600;
    margin-bottom: 2rem !important;
    opacity: 0.85;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-sm {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

.btn-outline {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-card-border);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    color: var(--color-primary);
    background: rgba(26, 74, 153, 0.05);
    border-radius: var(--radius-sm);
}

.btn-pill {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-pill:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
    padding: 96px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-alt {
    background: var(--color-section-alt);
    max-width: 100%;
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
            90deg,
            transparent,
            transparent 60px,
            rgba(212, 163, 74, 0.02) 60px,
            rgba(212, 163, 74, 0.02) 61px
        );
    pointer-events: none;
}

.section-alt .container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Grids ───────────────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    font-size: 24px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--color-icon-bg-blue);
    color: var(--color-primary);
}

.card-icon.gold {
    background: var(--color-icon-bg-gold);
    color: var(--color-accent-gold);
}

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

.card p {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 0;
}

/* ── Pricing Cards ───────────────────────────────────────── */
.pricing-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.pricing-card.popular {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-left: 4px;
}

.pricing-card .description {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text);
    font-size: 15px;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
}

/* Pricing Toggle */
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--color-bg);
    padding: 4px;
    border-radius: var(--radius-pill);
    position: relative;
}

.pricing-toggle button {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-toggle button.active {
    background: #fff;
    color: var(--color-text);
    box-shadow: var(--shadow-subtle);
}

.pricing-toggle .save-badge {
    position: absolute;
    right: -20px;
    top: -15px;
    background: var(--color-accent-gold);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transform: rotate(5deg);
}

/* ── Trust Badges ────────────────────────────────────────── */
.trust-badges {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
}

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

.blog-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--color-bg);
}

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

.blog-card-body h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text);
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: 14px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-card .category-badge {
    display: inline-block;
    background: var(--color-icon-bg-blue);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
}

/* ── Comparison Table ────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-card-border);
    background: var(--color-card-bg);
    box-shadow: var(--shadow-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

thead {
    background: var(--color-bg);
}

thead th {
    padding: 20px 24px;
    text-align: left;
    color: var(--color-text);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-card-border);
}

tbody td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-card-border);
    vertical-align: top;
    line-height: 1.5;
    color: var(--color-text-muted);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-bg); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    line-height: 1;
    font-family: var(--font-display);
    color: var(--color-accent-gold);
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    pointer-events: none;
}

.testimonial-content blockquote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-gold));
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.testimonial-footer {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* ── Lead Magnet ─────────────────────────────────────────── */
.lead-magnet {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #153E7A 50%, var(--color-primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 64px 32px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px -12px rgba(15, 59, 122, 0.25);
    position: relative;
    overflow: hidden;
}

.lead-magnet::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 51px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 50px,
            rgba(255, 212, 163, 0.015) 50px,
            rgba(255, 212, 163, 0.015) 51px
        );
    pointer-events: none;
}

.lead-magnet * { position: relative; z-index: 1; }

.lead-magnet h3 { 
    margin-bottom: 16px; 
    color: #fff;
    font-size: 32px;
}

.lead-magnet p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 18px;
}

.lead-magnet-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.lead-magnet-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.lead-magnet-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.lead-magnet-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.lead-magnet-form .btn {
    background: var(--color-accent-gold);
    color: #fff;
    border: none;
}

.lead-magnet-form .btn:hover {
    background: #C9952E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 163, 74, 0.3);
}

.lead-magnet-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 1.5rem;
}

/* ── Affiliate Disclosure ────────────────────────────────── */
.affiliate-disclosure {
    padding: 16px;
    background: var(--color-icon-bg-gold);
    border: 1px solid rgba(245, 159, 10, 0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ── Single Post ─────────────────────────────────────────── */
.post-header {
    padding: calc(var(--header-height) + 64px) 24px 48px;
    text-align: center;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-card-border);
}

.post-header h1 {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 48px;
}

.post-meta {
    color: var(--color-text-muted);
    font-size: 16px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.post-content {
    max-width: 720px;
    margin: 48px auto;
    padding: 0 24px;
}

.post-content h2 {
    font-size: 32px;
    text-align: left;
    margin: 48px 0 24px;
}

.post-content h3 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.post-content p,
.post-content li {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 18px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 32px 0;
    box-shadow: var(--shadow-subtle);
}

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

.post-content li {
    margin-bottom: 8px;
}

.post-content .cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    margin: 16px 0;
    transition: all 0.3s ease;
}

.post-content .cta-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ── Archive / Blog Listing ──────────────────────────────── */
.archive-header {
    padding: calc(var(--header-height) + 64px) 24px 48px;
    text-align: center;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-card-border);
}

.archive-posts {
    padding: 48px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 48px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #fff;
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: transparent;
    padding: 48px 24px 24px;
    border-top: 1px solid var(--color-card-border);
    margin-top: 64px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-col h4 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.footer-col p,
.footer-col li {
    color: var(--color-text-muted);
    font-size: 16px;
}

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

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

.footer-col ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--color-text-muted);
    font-size: 20px;
    transition: color 0.3s ease;
}

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

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ── Page Content ────────────────────────────────────────── */
.page-content {
    max-width: 720px;
    margin: 48px auto;
    padding: 0 24px;
}

.page-content h2 {
    text-align: left;
}

/* ── Animations (Intersection Observer Support) ──────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal system */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    .hero h1 { font-size: 48px; }

    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-card-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 24px;
        padding-top: 48px;
        transition: right 0.4s ease;
        border-top: 1px solid var(--color-card-border);
        box-shadow: var(--shadow-hover);
    }

    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 18px; }

    .section { padding: 64px 24px; }
    .grid-2 { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .lead-magnet { padding: 48px 24px; }
    .lead-magnet-form { flex-direction: column; align-items: stretch; }
    .lead-magnet-form input[type="email"] { width: 100%; min-width: unset; }

    .post-header h1 { font-size: 32px; }
    .post-content { padding: 0 16px; }

    .btn-group { flex-direction: column; align-items: stretch; }
    .btn-group .btn,
    .btn-group .btn-outline { width: 100%; text-align: center; }

    .archive-header { padding: calc(var(--header-height) + 48px) 24px 32px; }
    .archive-posts { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .container { padding: 0 16px; }
    .section { padding: 48px 16px; }
    .pricing-card .price { font-size: 36px; }
}

/* ?? Pricing Table (New) ??????????????????????????????????? */
.pricing-section-inner {
    width: 100%;
}

.pricing-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-subtle);
    margin-top: 2rem;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    text-align: center;
}

.pricing-table th, .pricing-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--color-card-border);
    border-right: 1px solid var(--color-card-border);
}

.pricing-table th:last-child, .pricing-table td:last-child {
    border-right: none;
}

.pricing-table thead th {
    background: var(--color-bg);
    vertical-align: top;
    position: relative;
}

.pricing-table .feature-col {
    text-align: left;
    width: 25%;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    vertical-align: bottom;
}

.pricing-table .feature-name {
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
}

.pricing-table .plan-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-table .plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
}

.pricing-table .plan-price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-table .yearly-price {
    display: none;
}

.show-yearly .monthly-price {
    display: none;
}

.show-yearly .yearly-price {
    display: inline-block;
}

.pricing-table .check {
    color: var(--color-success);
    font-weight: bold;
    font-size: 1.25rem;
}

.pricing-table .dash {
    color: var(--color-text-muted);
    font-weight: bold;
}

.pricing-table .featured-col, .pricing-table .featured-cell {
    background: rgba(245, 159, 10, 0.03);
    border-left: 2px solid var(--color-accent-gold);
    border-right: 2px solid var(--color-accent-gold);
}

.pricing-table thead .featured-col {
    border-top: 2px solid var(--color-accent-gold);
}

.pricing-table tfoot .featured-cell {
    border-bottom: 2px solid var(--color-accent-gold);
}

.pricing-table .plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent-gold);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: var(--shadow-subtle);
}

.pricing-table .plan-badge.coming-soon {
    background: var(--color-text-muted);
}

.pricing-table .disabled-col, .pricing-table .disabled-cell {
    opacity: 0.6;
    background: var(--color-bg);
}

.pricing-table tfoot td {
    border-bottom: none;
    padding: 2rem 1rem;
}

/* Mobile Table Collapse */
@media (max-width: 768px) {
    .pricing-table-wrapper {
        border: none;
        box-shadow: none;
        background: transparent;
        overflow-x: visible;
    }
    
    .pricing-table, .pricing-table thead, .pricing-table tbody, .pricing-table tfoot, .pricing-table th, .pricing-table td, .pricing-table tr {
        display: block;
    }
    
    .pricing-table thead {
        display: none;
    }
    
    .pricing-table tr {
        margin-bottom: 2rem;
        background: var(--color-card-bg);
        border: 1px solid var(--color-card-border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-subtle);
        padding: 1.5rem;
        position: relative;
        padding-top: 4rem;
    }
    
    .pricing-table tfoot tr {
        padding-top: 1.5rem;
    }
    
    .pricing-table td {
        border: none;
        border-bottom: 1px solid var(--color-card-border);
        padding: 1rem 0;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .pricing-table td:last-child {
        border-bottom: none;
    }
    
    .pricing-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text);
        text-align: left;
    }
    
    .pricing-table .feature-name {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: var(--color-bg);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--color-card-border);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        font-weight: 700;
        text-align: center;
    }
}

/* ?? Feature Squares (Slim) ??????????????????????????????????? */
.features-squares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .features-squares-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-squares-grid {
        grid-template-columns: 1fr;
    }
}

.feature-square {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-square:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    z-index: 2;
}

.feature-square .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.feature-square:hover .feature-icon {
    transform: scale(1.1);
}

.feature-square .feature-icon img {
    width: 20px;
    height: 20px;
}

.feature-square.tint-blue .feature-icon {
    background: var(--color-icon-bg-blue);
}

.feature-square.tint-gold .feature-icon {
    background: var(--color-icon-bg-gold);
}

.feature-square:hover.tint-blue .feature-icon {
    background: rgba(59, 130, 246, 0.25);
}

.feature-square:hover.tint-gold .feature-icon {
    background: rgba(245, 159, 10, 0.25);
}

.feature-square h3 {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.feature-square:hover h3 {
    color: var(--color-primary);
}

.feature-square p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
    max-width: 100%;
}

/* Mobile expanded state */
@media (max-width: 768px) {
    .features-squares-grid {
        gap: 12px;
    }

    .feature-square {
        padding: 0.6rem 0.75rem 0.75rem;
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
    }

    .feature-square .feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .feature-square .feature-text {
        flex: 1;
        min-width: 0;
    }

    .feature-square h3 {
        margin-bottom: 0;
    }

    .feature-square p {
        display: none;
    }

    .feature-square.expanded p {
        display: block;
        margin-top: 0.25rem;
    }
}

/* ?? About Page ???????????????????????????????????????????? */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: 80px 24px;
    text-align: center;
    margin-top: -1px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px
        ),
        radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(212, 163, 74, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero * { position: relative; z-index: 1; }

.page-hero h1 {
    color: #fff;
    font-size: 48px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.page-content-wide {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* About Intro */
.about-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.about-intro h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.about-cta {
    margin-top: 1.5rem;
}

/* Mission Cards */
.about-mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

@media (max-width: 768px) {
    .about-mission-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.mission-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.mission-card:hover::before {
    transform: scaleY(1);
}

.mission-card .mission-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-icon-bg-blue);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mission-card:hover .mission-icon {
    transform: scale(1.15);
}

.mission-card .mission-text {
    flex: 1;
    min-width: 0;
}

.mission-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.mission-card:hover h3 {
    color: var(--color-primary);
}

.mission-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.mission-card .mission-details {
    display: none;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    align-items: center;
    gap: 0.35rem;
}

.mission-card.expanded .mission-details {
    display: inline-flex;
}

/* Animated Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.stat-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    line-height: 1.1;
}

.stat-card:nth-child(2) .stat-number { color: var(--color-accent-gold); }
.stat-card:nth-child(3) .stat-number { color: #10B981; }
.stat-card:nth-child(4) .stat-number { color: var(--color-accent-gold); }

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    vertical-align: super;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

/* Team Section */
.about-team {
    text-align: center;
    margin-bottom: 0;
}

.about-team h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.team-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.08);
}

.team-avatar-initials {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.team-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.82rem;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Fade-in on scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
