/* ============================================
   OrderSync Pro — Premium Design System
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Primary palette — sophisticated indigo-to-blue */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --primary-glow: rgba(79, 70, 229, 0.15);

    /* Accent — warm amber for CTAs and highlights */
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --accent-light: #FFFBEB;

    /* Neutrals */
    --gray-950: #0C0A1D;
    --gray-900: #111027;
    --gray-800: #1E1B3A;
    --gray-700: #2D2A4A;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;

    /* Semantic */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --surface: #FFFFFF;
    --surface-raised: #FFFFFF;
    --surface-sunken: #F9FAFB;
    --border: #E5E7EB;
    --border-subtle: #F3F4F6;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows — layered for depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 0 3px var(--primary-glow);

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

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.025em;
}
h1 { font-size: 3.75rem; font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-hover); }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }

/* --- Buttons — Premium Design --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    text-decoration: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4), 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}
.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* --- Header & Navigation --- */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 38px; display: block; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links > li > a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.925rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
}
.nav-links > li > a:hover {
    color: var(--text-primary);
    background: var(--gray-50);
}
.nav-links > li > a::after { display: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a { padding-right: 28px !important; }
.dropdown > a::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--gray-400);
    transition: transform var(--transition-fast);
}
.dropdown:hover > a::before,
.dropdown.is-open > a::before { transform: translateY(-50%) rotate(180deg); }

.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--white);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    z-index: 1001;
}
.mega-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}
.dropdown:hover .mega-menu,
.dropdown.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mega-menu-column h4 {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.mega-menu-column a {
    display: block;
    padding: 7px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}
.mega-menu-column a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Focus */
.nav-links > li > a:focus-visible,
.mega-menu-column a:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #0C0A1D 0%, #1a1145 40%, #2d1b69 70%, #1E1B3A 100%);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 70, 229, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero .subtitle {
    font-size: 1.2rem;
    max-width: 660px;
    margin: 0 auto 2.5rem auto;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-weight: 400;
}
.hero .btn-primary {
    background: var(--white);
    color: var(--gray-900);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.hero .btn-primary:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.hero .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 16px 6px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    backdrop-filter: blur(8px);
}
.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: #34D399;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

/* --- General Sections --- */
.section-padding { padding: 100px 0; }
.bg-light { background: var(--surface-sunken); }
.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

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

/* --- Cards — Premium Style --- */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}
.card-icon {
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--primary);
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* --- Workflow Diagram --- */
.workflow-diagram img { max-width: 100%; height: auto; }

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: left;
    transition: all var(--transition-base);
    position: relative;
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}
.pricing-card.popular {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-glow);
    z-index: 10;
    transform: scale(1.03);
}
.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 16px;
    border-radius: var(--radius-full);
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.pricing-card .price-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.pricing-card ul { list-style: none; margin: 1.5rem 0 2rem; }
.pricing-card ul li {
    margin-bottom: 0.875rem;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.pricing-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--primary-light);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* --- Page Header — Dark Gradient (shared across all subpages) --- */
.page-header {
    background: linear-gradient(135deg, #0C0A1D 0%, #1a1145 40%, #2d1b69 70%, #1E1B3A 100%);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(79, 70, 229, 0.2) 0%, transparent 60%);
    pointer-events: none;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.75rem;
}
.page-header .subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.page-header .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: rgba(255, 255, 255, 0.9); }
.breadcrumb .separator { color: rgba(255, 255, 255, 0.3); }
.breadcrumb .current { color: rgba(255, 255, 255, 0.7); }

/* --- Solutions Page --- */
.solution-section .solution-content { display: flex; align-items: center; gap: 50px; }
.solution-section.reverse .solution-content { flex-direction: row-reverse; }
.solution-text { flex: 1; }
.solution-text ul { list-style: none; margin-top: 1.5rem; }
.solution-text ul li { padding-left: 25px; position: relative; margin-bottom: 0.5rem; }
.solution-text ul li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; background: var(--primary-light); border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 9px; }
.solution-icon { flex-basis: 200px; text-align: center; color: var(--primary); }
.solution-icon img { max-width: 100px; }

/* --- Integrations Page --- */
.integrations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 3rem; }
.grid-span-full { grid-column: 1 / -1; margin-bottom: 1rem; }

/* --- Legal Pages (Privacy, Terms) --- */
.legal-page {
    padding: 72px 0 100px;
    background: var(--white);
}
.legal-page .container {
    max-width: 780px;
}
.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.legal-page h2 {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.legal-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}
.legal-page strong { color: var(--text-primary); }
.legal-page em { color: var(--text-muted); }

/* --- Blog Article Template (250+ pages) --- */
.article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 24px 100px;
}
.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.article-meta {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}
.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}
.article-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.article-content p {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-secondary);
}
.article-content ul, .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-primary);
    font-style: italic;
}
.article-content strong { color: var(--text-primary); }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--primary-hover); }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.article-content th {
    background: var(--surface-sunken);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
}
.article-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.article-content .svg-diagram,
.article-content .workflow-diagram-svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

/* --- Blog Index Styles --- */
.blog-search {
    max-width: 500px;
    margin: 24px auto 0;
    position: relative;
}
.blog-search input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}
.blog-search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.blog-search input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}
.blog-search .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
}
.filter-tabs-container {
    padding: 24px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
}
.filter-tab {
    padding: 7px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
    color: inherit;
}
.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.blog-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.blog-card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    flex: 1;
}
.blog-card-footer {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Error Page (404) --- */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-sunken);
}
.error-page h1 {
    font-size: 6rem;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    letter-spacing: -0.04em;
}
.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.error-page p {
    max-width: 460px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.error-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Full-Width Button --- */
.btn-full { width: 100%; justify-content: center; }

/* --- Glossary Card Styles --- */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}
.glossary-card {
    display: block;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}
.glossary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: inherit;
}
.glossary-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.glossary-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- SVG Workflow Diagrams --- */
.workflow-diagram-svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

/* --- Stat Grid (reusable) --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 2rem 0;
}
.stat-item {
    text-align: center;
    padding: 1.5rem;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Footer --- */
.main-footer {
    background: var(--gray-950);
    color: var(--gray-400);
    padding: 72px 0 24px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-col a, .footer-col p {
    color: var(--gray-400);
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--white); }
.footer-logo {
    height: 36px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #0C0A1D 0%, #1a1145 50%, #2d1b69 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255, 255, 255, 0.65); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-section .btn-primary {
    background: var(--white);
    color: var(--gray-900);
    font-weight: 700;
}
.cta-section .btn-primary:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* --- Animations --- */
[data-animation] { opacity: 0; transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-animation="fade-in-up"] { transform: translateY(24px); }
[data-animation="fade-in-right"] { transform: translateX(-24px); }
[data-animation="fade-in-left"] { transform: translateX(24px); }
[data-animation="zoom-in"] { transform: scale(0.96); }
.is-visible[data-animation] { opacity: 1; transform: none; }

/* --- About Us Page --- */
.content-focus { max-width: 960px; margin: 0 auto; }
.mission-values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 3rem; }
.value-card { background: var(--surface-sunken); padding: 2rem; border-left: 3px solid var(--primary); border-radius: var(--radius-md); }
.founder-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.founder-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-lg);
}
.founder-card h4 { color: var(--text-muted); font-weight: 400; margin-bottom: 1rem; font-size: 0.95rem; }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.contact-form-wrapper h3, .contact-info h3 { margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--text-primary);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.form-group textarea { resize: vertical; }
.contact-info .contact-card {
    background: var(--surface-sunken);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
}
.contact-info .contact-card h4 { margin-bottom: 0.5rem; }
.contact-info .contact-link { font-weight: 600; font-size: 1.05rem; }

/* --- Auth Pages --- */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 20px;
    background-color: var(--surface-sunken);
}
.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.auth-box h2 { text-align: center; margin-bottom: 2rem; }
.auth-box .form-group { margin-bottom: 1.5rem; }
.auth-box .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.auth-box .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
}
.auth-box .form-switch { text-align: center; margin-top: 1.5rem; }

/* --- Thank You Page --- */
.thank-you-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 0;
    text-align: center;
    background: var(--surface-sunken);
}
.thank-you-container {
    background: var(--white);
    padding: 3rem 4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
}
.thank-you-icon { width: 80px; height: 80px; color: #10B981; margin-bottom: 1.5rem; }
.thank-you-container h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.thank-you-container .subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }
.next-steps { text-align: left; margin-bottom: 2rem; line-height: 1.8; }
.next-steps p { font-weight: 600; color: var(--text-primary); }

/* --- Process Card --- */
.process-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: all var(--transition-base);
}
.process-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
}
.process-card h3 { margin-bottom: 0.75rem; color: var(--primary); }

/* --- Hamburger --- */
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 8px; font: inherit; color: inherit; border-radius: var(--radius-sm); }
.hamburger span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text-primary); transition: all 0.3s ease-in-out; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Responsive --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 72px 0; }
    .grid-4-col { grid-template-columns: repeat(2, 1fr); }
    .grid-3-col { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pricing-card.popular { transform: scale(1); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header h1 { font-size: 2.25rem; }
    .page-header { padding: 64px 0 56px; }
    .article-header h1 { font-size: 2rem; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        box-shadow: var(--shadow-xl);
        z-index: 1001;
        border-top: 1px solid var(--border);
    }
    .nav-menu.active { display: flex; }
    .nav-links, .nav-actions { flex-direction: column; width: 100%; gap: 0; }
    .nav-links li, .nav-actions a { width: 100%; text-align: center; padding: 12px 0; }
    .nav-links li { border-bottom: 1px solid var(--border-subtle); }
    .nav-links > li > a { padding: 12px 16px !important; }
    .dropdown .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 12px;
        flex-direction: column;
        gap: 4px;
        background: var(--surface-sunken);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: max-height 0.35s ease, padding 0.35s ease;
        display: flex;
        z-index: auto;
        border: none;
    }
    .dropdown.is-open .mega-menu { max-height: 500px; padding: 12px; }
    .dropdown > a::before { border-top-color: var(--gray-400); }
    .mega-menu::before { display: none; }
    .mega-menu-column { width: 100%; }
    .mega-menu-column a { padding: 8px 10px; }
    .hamburger { display: block; }
    .solution-section .solution-content, .solution-section.reverse .solution-content { flex-direction: column; text-align: center; }
    .solution-icon { margin-top: 2rem; }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .hero { padding: 80px 0 64px; }
    .hero .subtitle { font-size: 1rem; line-height: 1.7; }
    .grid-4-col { grid-template-columns: 1fr; }
    .section-padding { padding: 56px 0; }
    .section-subtitle { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .mission-values { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { margin-top: 2rem; }
    .btn-large { padding: 14px 28px; font-size: 1rem; }
    .page-header h1 { font-size: 1.75rem; }
    .page-header { padding: 48px 0 40px; }
    .page-header .subtitle { font-size: 1rem; }
    .article-container { padding: 40px 20px 72px; }
    .article-header h1 { font-size: 1.65rem; }
    .legal-page h1 { font-size: 1.75rem; }
    .legal-page { padding: 48px 0 72px; }
    .error-page h1 { font-size: 4rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .thank-you-container { padding: 2rem 1.5rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 2rem; }
    .filter-tabs { justify-content: flex-start; }
}
