/* ==========================================================================
   Floreant POS Theme — Main Stylesheet
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-primary-bg: #eff6ff;
    --color-secondary: #0f172a;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-dark: #0f172a;
    --color-border: #e2e8f0;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-success: #10b981;
    --color-star: #f59e0b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    line-height: 1.2;
    font-weight: 700;
}

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

.container-narrow {
    max-width: 800px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-text-dark);
    border-color: var(--color-border);
}

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

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

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

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.site-branding {
    flex-shrink: 0;
}

.site-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 18px;
}

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

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

.footer-logo-img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity var(--transition);
}

.footer-logo:hover .footer-logo-img {
    opacity: 1;
}

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

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

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--color-text-dark);
    background: var(--color-bg-alt);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.nav-dropdown .nav-link {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav-cta {
    margin-left: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

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

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37,99,235,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(37,99,235,0.06) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 28px;
    border: 1px solid rgba(37,99,235,0.15);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.hero-usps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 32px;
    max-width: 700px;
}

.hero-usp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: 100px;
}

.hero-usp::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
}

.hero-oropos {
    color: #ea580c;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-oropos:hover {
    color: #c2410c;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

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

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

.hero-badge {
    margin-top: 40px;
}

.hero-badge img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
    transition: transform 0.3s ease;
}

.hero-badge img:hover {
    transform: scale(1.05);
}

/* ---------- Social Proof ---------- */
.social-proof {
    padding: 100px 0;
    background: var(--color-bg);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.proof-grid-featured {
    grid-template-columns: repeat(2, 1fr);
}

.proof-grid-featured .proof-card:not(.proof-card-featured) {
    /* After the 2 featured cards, switch back to 3-col by using subgrid-like spanning */
}

/* Use a clean approach: 2-col grid, non-featured cards span fractional */
.proof-grid-featured {
    grid-template-columns: repeat(6, 1fr);
}

.proof-card-featured {
    grid-column: span 3;
}

.proof-grid-featured .proof-card:not(.proof-card-featured) {
    grid-column: span 2;
}

.proof-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.proof-image {
    height: 200px;
    overflow: hidden;
}

.proof-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-body {
    padding: 24px;
}

.proof-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.proof-location {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.proof-text {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.65;
}

.proof-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.proof-author {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
}

.proof-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.proof-link:hover {
    color: var(--color-primary-dark);
}

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

    .proof-grid-featured {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-card-featured,
    .proof-grid-featured .proof-card:not(.proof-card-featured) {
        grid-column: span 1;
    }
}

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

    .proof-card-featured,
    .proof-grid-featured .proof-card:not(.proof-card-featured) {
        grid-column: span 1;
    }
}

/* ---------- Section Common ---------- */
.features,
.screenshots,
.testimonials {
    padding: 100px 0;
}

.features {
    background: var(--color-bg-alt);
}

.screenshots {
    background: var(--color-bg);
}

.testimonials {
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

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

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

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

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* ---------- Screenshots ---------- */
.screenshot-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-window {
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.08);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.window-dot:nth-child(1) { background: #ff5f57; }
.window-dot:nth-child(2) { background: #febc2e; }
.window-dot:nth-child(3) { background: #28c840; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono);
}

.window-content {
    padding: 0;
}

.window-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Screenshot Carousel */
.ss-carousel {
    position: relative;
    overflow: hidden;
}

.ss-slide {
    display: none;
}

.ss-slide--active {
    display: block;
    animation: ssFadeIn 1.2s ease;
}

@keyframes ssFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}

.ss-current-title {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 20px 0 0;
    letter-spacing: -0.01em;
}

.ss-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.ss-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ss-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.ss-nums {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ss-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ss-num:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.ss-num--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

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

.testimonial-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}

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

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: var(--color-star);
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    color: var(--color-text-dark);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ---------- Download CTA ---------- */
.download-cta {
    padding: 100px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 64px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col .footer-logo {
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.footer-col .footer-logo:hover {
    color: var(--color-primary-light);
}

.footer-about {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
}

.footer-heading {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-nav li a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-nav li a:hover {
    color: #fff;
}

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

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.footer-address {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
}

/* ---------- Page Content ---------- */
.page-content {
    padding: 140px 0 80px;
    min-height: 60vh;
}

.page-content:has(.case-study) {
    padding-top: 0;
    padding-bottom: 80px;
}

/* -- Case Study Hero (full-bleed dark banner) -- */
.cs-hero {
    background: #0a2540;
    padding: 100px 0 56px;
    margin: 0 calc(-50vw + 50%) 0;
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.cs-hero .cs-hero-text {
    max-width: 720px;
    margin: 0 auto;
}

.cs-hero .cs-label {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
}

.cs-hero .cs-hero-text h2 {
    color: #fff;
}

.cs-hero .cs-intro {
    color: rgba(255,255,255,0.55);
    margin-bottom: 0;
}

/* -- Hero meta bar inside dark hero -- */
.cs-hero + .cs-meta-bar {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -28px;
    position: relative;
    z-index: 1;
    background: #fff;
    box-shadow: 0 20px 60px rgba(10,37,64,0.12);
    border: none;
}

.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.entry-meta {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.meta-sep {
    margin: 0 8px;
}

.entry-meta-with-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.entry-meta-with-avatar .avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.meta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.meta-author {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 14px;
}

.meta-text time {
    font-size: 13px;
    color: var(--color-text-light);
}

.entry-thumbnail {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 1.5rem;
    margin: 2em 0 0.8em;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin: 1.8em 0 0.6em;
}

.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.2em 1.5em;
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 0.4em;
}

.entry-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-text);
}

.entry-content pre {
    background: var(--color-bg-dark);
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    margin: 1.5em 0;
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.entry-content pre code {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-light);
}

.entry-footer a {
    color: var(--color-text-light);
}

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

.cat-links,
.tag-links {
    display: block;
    margin-bottom: 8px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.post-navigation a {
    font-size: 14px;
    color: var(--color-primary);
}

/* ---------- Archive / Posts List ---------- */
.archive-header {
    margin-bottom: 48px;
}

.archive-description {
    margin-top: 12px;
    color: var(--color-text-light);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: rgba(37,99,235,0.2);
    box-shadow: var(--shadow-md);
}

.post-card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.post-card-title a {
    color: var(--color-text-dark);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-thumb {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: auto;
}

.post-card-body .entry-meta {
    margin-bottom: 8px;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.read-more:hover {
    color: var(--color-primary-dark);
}

.entry-summary {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* Pagination */
.pagination,
.nav-links {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ---------- 404 ---------- */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-code {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    color: var(--color-primary-bg);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.error-404 p {
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Animations ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 16px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
    }

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

    .hero {
        padding: 130px 0 70px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .cta-card {
        padding: 48px 28px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

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

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Case Study ---------- */
.case-study {
    max-width: 720px;
    margin: 0 auto;
}

.cs-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    background: rgba(59,130,246,0.12);
    padding: 5px 14px;
    border-radius: 100px;
}

.cs-hero-text p:has(.cs-label) {
    margin-bottom: 0;
    line-height: 1;
}

.cs-hero-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.cs-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 36px;
}

/* -- Meta bar -- */
.cs-meta-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 48px;
}

.cs-meta-item {
    padding: 20px 24px;
}

.cs-meta-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.cs-meta-item strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #727f96;
    margin-bottom: 6px;
    font-weight: 500;
}

.cs-meta-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: 0.01em;
}

/* -- Body typography -- */
.case-study h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 2.5em 0 0.75em;
    color: var(--color-text-dark);
}

.case-study h3:first-of-type {
    margin-top: 0;
}

.case-study p {
    font-size: 1.0625rem;
    margin-bottom: 1.4em;
    line-height: 1.7;
    color: var(--color-text);
}

.case-study ul {
    margin: 0 0 1.8em 0;
    padding: 0;
    list-style: none;
}

.case-study ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.65;
    font-size: 1.0625rem;
    color: var(--color-text);
}

.case-study ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* -- Images -- */
.cs-image {
    margin: 40px 0;
    text-align: center;
}

.cs-image img {
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(10,37,64,0.1);
    margin: 0 auto;
}

.cs-caption {
    font-size: 14px;
    color: #727f96;
    margin-top: 14px;
    font-style: normal;
    letter-spacing: 0.01em;
}

/* -- Results grid -- */
.cs-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 32px 0 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cs-result {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
}

.cs-result:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.cs-result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.cs-result-label {
    display: block;
    font-size: 13px;
    color: #727f96;
    letter-spacing: 0.01em;
}

/* -- Blockquote -- */
.case-study blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 0 0 0 28px;
    margin: 2em 0;
    background: none;
    border-radius: 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.6;
    position: relative;
}

/* -- CTA -- */
.cs-cta {
    text-align: center;
    background: #0a2540;
    border: none;
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    margin-top: 56px;
}

.cs-cta h3 {
    margin-top: 0;
    color: #fff;
}

.cs-cta p {
    color: rgba(255,255,255,0.55);
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .cs-meta-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-meta-item:not(:last-child) {
        border-right: none;
    }
    .cs-meta-item:nth-child(odd) {
        border-right: 1px solid var(--color-border);
    }
    .cs-meta-item:nth-child(1),
    .cs-meta-item:nth-child(2) {
        border-bottom: 1px solid var(--color-border);
    }
    .cs-results {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-result:not(:last-child) {
        border-right: none;
    }
    .cs-result:nth-child(odd) {
        border-right: 1px solid var(--color-border);
    }
    .cs-result:nth-child(1),
    .cs-result:nth-child(2) {
        border-bottom: 1px solid var(--color-border);
    }
    .cs-hero + .cs-meta-bar {
        margin-top: 0;
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 480px) {
    .cs-meta-bar {
        grid-template-columns: 1fr;
    }
    .cs-meta-item:nth-child(odd) {
        border-right: none;
    }
    .cs-meta-item:not(:last-child) {
        border-bottom: 1px solid var(--color-border);
    }
    .cs-results {
        grid-template-columns: 1fr;
    }
    .cs-result:nth-child(odd) {
        border-right: none;
    }
    .cs-result:not(:last-child) {
        border-bottom: 1px solid var(--color-border);
    }
}

/* ---------- Case Study Highlight ---------- */
.cs-highlight {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin: 48px 0;
    position: relative;
}

.cs-highlight::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 32px;
    font-size: 4rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.15;
    font-family: Georgia, serif;
}

.cs-highlight .cs-highlight-quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    padding-left: 0;
}

.cs-highlight-attribution {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cs-highlight-attribution img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cs-highlight .cs-highlight-author {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0;
}

.cs-highlight .cs-highlight-role {
    font-size: 13px;
    color: #727f96;
    margin-bottom: 0;
}

/* ---------- Features Page ---------- */
.fp-page-wrap {
    width: 100%;
}

.fp-page-wrap .entry-header {
    display: none;
}

/* Page header */
.fp-page-header {
    text-align: center;
    padding: 120px 24px 40px;
    max-width: 640px;
    margin: 0 auto;
}

.fp-page-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-dark);
    margin: 0 0 14px;
}

.fp-page-header p {
    font-size: 1.1rem;
    color: #727f96;
    line-height: 1.6;
    margin: 0;
}

/* Z-flow rows */
.fp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 24px;
}

.fp-row--reverse {
    direction: rtl;
}

.fp-row--reverse > * {
    direction: ltr;
}

.fp-row-text {
    max-width: 460px;
}

.fp-row-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.fp-row-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-dark);
    margin: 0 0 14px;
    line-height: 1.25;
}

.fp-row-text p {
    font-size: 1rem;
    color: #727f96;
    line-height: 1.7;
    margin: 0;
}

.fp-row-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(10,37,64,0.1);
}

/* Alternating light background */
.fp-row:nth-child(even) {
    background: #f6f9fc;
    max-width: none;
    padding-left: calc((100% - 1080px) / 2 + 24px);
    padding-right: calc((100% - 1080px) / 2 + 24px);
}

/* More features grid */
.fp-more {
    max-width: 1080px;
    margin: 0 auto;
    padding: 72px 24px;
    border-top: 1px solid var(--color-border);
}

.fp-more h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 0 0 32px;
    text-align: center;
}

.fp-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fp-more-item {
    padding: 24px;
    background: #f6f9fc;
    border-radius: var(--radius-md);
}

.fp-more-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.fp-more-item p {
    font-size: 0.9rem;
    color: #727f96;
    line-height: 1.6;
    margin: 0;
}

/* PRO section */
.fp-pro {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.fp-pro h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 0 0 8px;
}

.fp-pro > p {
    color: #727f96;
    margin: 0 0 24px;
}

.fp-pro-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fp-pro-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.fp-pro-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Bottom CTA */
.fp-bottom-cta {
    text-align: center;
    background: #f6f9fc;
    padding: 64px 24px;
}

.fp-bottom-cta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin: 0 0 10px;
}

.fp-bottom-cta p {
    color: #727f96;
    margin: 0 0 28px;
}

/* Responsive */
@media (max-width: 1024px) {
    .fp-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fp-row {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 20px;
    }

    .fp-row--reverse {
        direction: ltr;
    }

    .fp-row:nth-child(even) {
        padding-left: 20px;
        padding-right: 20px;
    }

    .fp-row-text {
        max-width: none;
    }

    .fp-page-header {
        padding: 100px 20px 24px;
    }

    .fp-more-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- WordPress Core ---------- */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 8px;
}

.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin: 1.5em auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}
