/* 
  D-Modulus Design System
  Based on UX Architecture Document v2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');


:root {
    /* Colors */
    --primary-green: #1B5E20;
    /* Forest Green from Stitch */
    --primary-green-dark: #0F3A14;
    --accent-yellow: #FEDB41;
    /* Vibrant Yellow from Stitch */

    --text-dark: #1A1A1A;
    --text-medium: #4A5568;
    --text-light: #718096;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-accent: #FFFBF0;
    --border-light: #E2E8F0;
    --error: #E74C3C;
    --success: #27AE60;

    --bg-header-rgb: 255, 255, 255;
    --bg-card: rgba(255, 255, 255, 0.45);
    --bg-card-hover: rgba(255, 255, 255, 0.6);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-heading-serif: 'DM Serif Display', serif;
    --font-body: 'Poppins', sans-serif;


    /* Spacing */
    --space-xs: 4px;
    --space-s: 8px;
    --space-m: 16px;
    --space-l: 32px;
    --space-xl: 64px;
    --section-padding-desktop: 100px 0;
    --section-padding-mobile: 60px 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
    --shadow-green: 0 8px 24px rgba(46, 204, 113, 0.2);
}

[data-theme="dark"] {
    --text-dark: #FFFFFF;
    --text-medium: #E2E8F0;
    --text-light: #A0AEC0;
    --bg-white: #0A0A0A;
    --bg-light: #121212;
    --bg-accent: #1A202C;
    --border-light: rgba(255, 255, 255, 0.08);
    
    --bg-header-rgb: 10, 10, 10;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-card-hover: rgba(30, 30, 30, 0.7);
    
    --primary-green: #2ecc71;
    --primary-green-dark: #1B5E20;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Respect the OS-level "reduce motion" preference site-wide. Previously only
   prism.html had any reduced-motion handling; every other page ignored it. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Smooth dark/light theme toggle instead of an abrupt color snap. */
body, .main-header, .modern-card, .pricing-card, .feature-cluster,
.problem-card, .faq-item, .mission-card, .hero-dashboard-card,
.hero-float-card, .loop-node, .pillar-card {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--border-light);
}

/* Modern Card Component */
.modern-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(1deg) rotateY(-1deg);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.1), 0 1px 0 rgba(255,255,255,0.2) inset;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

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

section {
    padding: var(--section-padding-desktop);
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile);
    }
}


/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 20px 0;
}

.main-header.scrolled {
    background: rgba(var(--bg-header-rgb), 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo i {
    font-size: 28px;
}



.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-medium);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-dark);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-green);
}


.dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-light);
}

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

.dropdown-menu li a {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Carousel */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 0;
}

.carousel-container {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.4s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-size: clamp(32px, 5vw, 64px);
    color: white;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active {
    background: var(--primary-green);
    width: 24px;
    border-radius: 4px;
}

.scroll-prompt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--bg-card);
    border-radius: 2px;
    margin-left: -2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .slide-content {
        text-align: center;
    }

    .slide-actions {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .slide-actions .btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 280px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero-premium {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Animated multi-stop gradient background */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(27, 94, 32, 0.18) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(254, 219, 65, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(27, 94, 32, 0.1) 0%, transparent 50%),
                var(--bg-white);
    animation: heroBgShift 12s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
    0%   { opacity: 1; background-position: 0% 50%; }
    100% { opacity: 1; background-position: 100% 50%; }
}

/* Subtle grid overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Inner layout */
.hero-premium-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0 100px;
}

/* ── LEFT COLUMN ── */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(27, 94, 32, 0.1);
    border: 1px solid rgba(27, 94, 32, 0.25);
    color: var(--primary-green);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 32px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-headline {
    font-family: var(--font-heading-serif);
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--text-dark);
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero-headline-accent {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2ecc71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 44px;
}

.hero-subheadline strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #2ecc71 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(27, 94, 32, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(27, 94, 32, 0.45);
}

.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-dark);
    padding: 16px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1.5px solid var(--border-light);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-btn-ghost:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(27, 94, 32, 0.05);
}

/* Trust strip */
.hero-trust-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.trust-item i {
    color: var(--primary-green);
    font-size: 14px;
}

.trust-divider {
    width: 1px;
    height: 16px;
    background: var(--border-light);
}

/* ── RIGHT COLUMN — DASHBOARD CARD ── */
.hero-right {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.hero-dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255,255,255,0.05) inset;
    overflow: hidden;
    width: 100%;
    animation: heroCardFloat 6s ease-in-out infinite;
}

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Topbar (macOS-style) */
.hdc-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.hdc-dots { display: flex; gap: 6px; }
.hdc-dot { width: 12px; height: 12px; border-radius: 50%; }
.hdc-dot.red { background: #FF5F57; }
.hdc-dot.yellow { background: #FFBD2E; }
.hdc-dot.green { background: #28C840; }

.hdc-title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

.hdc-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-green);
}

.hdc-status-dot {
    width: 7px;
    height: 7px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Stats row */
.hdc-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border-light);
}

.hdc-stat {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--border-light);
}

.hdc-stat:last-child { border-right: none; }

.hdc-stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.hdc-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.hdc-stat-value.green { color: var(--primary-green); }

.hdc-stat-delta {
    font-size: 11px;
    font-weight: 700;
}

.hdc-stat-delta.up { color: var(--primary-green); }
.hdc-stat-delta.neutral { color: var(--text-light); }

/* Bar Chart */
.hdc-chart-area {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
}

.hdc-chart-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.hdc-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.hdc-bar {
    flex: 1;
    height: var(--h);
    background: var(--border-light);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease;
}

.hdc-bar.active {
    background: linear-gradient(180deg, var(--primary-green) 0%, rgba(27, 94, 32, 0.4) 100%);
}

.hdc-chart-days {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.hdc-chart-days span {
    flex: 1;
    text-align: center;
    font-size: 9px;
    color: var(--text-light);
    font-weight: 600;
}

/* Activity feed */
.hdc-activity {
    padding: 8px 0;
}

.hdc-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
}

.hdc-activity-item:last-child { border-bottom: none; }
.hdc-activity-item:hover { background: var(--bg-light); }

.hdc-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.hdc-activity-icon.green { background: rgba(27, 94, 32, 0.12); color: var(--primary-green); }
.hdc-activity-icon.orange { background: rgba(249, 178, 51, 0.15); color: #F9B233; }
.hdc-activity-icon.red { background: rgba(231, 76, 60, 0.12); color: #E74C3C; }

.hdc-activity-icon + div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hdc-activity-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.hdc-activity-time {
    font-size: 10px;
    color: var(--text-light);
}

.hdc-activity-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.hdc-activity-badge.paid { background: rgba(27, 94, 32, 0.12); color: var(--primary-green); }
.hdc-activity-badge.transit { background: rgba(249, 178, 51, 0.15); color: #D4900A; }
.hdc-activity-badge.alert { background: rgba(231, 76, 60, 0.12); color: #E74C3C; }

/* Floating notification cards */
.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    backdrop-filter: blur(10px);
    z-index: 5;
}

.hero-float-card i {
    font-size: 20px;
    flex-shrink: 0;
}

.hero-float-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.hero-float-card span {
    font-size: 11px;
    color: var(--text-light);
}

.fc1 {
    top: -20px;
    left: -40px;
    animation: floatA 5s ease-in-out infinite;
}

.fc2 {
    bottom: 80px;
    left: -50px;
    animation: floatB 6s ease-in-out infinite;
}

.fc3 {
    top: 40%;
    right: -40px;
    animation: floatA 7s ease-in-out infinite 1s;
}

@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.hero-scroll-hint span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

.scroll-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Dark mode hero tweaks */
[data-theme="dark"] .hero-dashboard-card {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
}

[data-theme="dark"] .hero-bg-layer {
    background: radial-gradient(ellipse at 20% 50%, rgba(46, 204, 113, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(254, 219, 65, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(46, 204, 113, 0.08) 0%, transparent 50%),
                var(--bg-white);
}

[data-theme="dark"] .hero-float-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Responsive hero */
@media (max-width: 992px) {
    .hero-premium-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-left { align-items: center; }
    .hero-pill-badge { margin: 0 auto 32px; }
    .hero-subheadline { margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
    .hero-trust-strip { justify-content: center; }
    .fc1, .fc2, .fc3 { display: none; }
}

@media (max-width: 576px) {
    .hero-premium { padding-top: 70px; min-height: auto; padding-bottom: 40px; }
    .hero-premium-inner { padding: 40px 0; }
    .hero-headline { font-size: 38px; }
    .hdc-stats-row { grid-template-columns: 1fr; }
    .hdc-stat { border-right: none; border-bottom: 1px solid var(--border-light); }
    .hdc-stat:last-child { border-bottom: none; }
    .hdc-chart-area { display: none; }
}


.hero-carousel.editorial .slide {
    background: var(--bg-white);
    color: var(--primary-green);
}

.hero-carousel.editorial .slide-content h1 {
    color: var(--primary-green);
    line-height: 1;
    font-weight: 700;
}

.hero-carousel.editorial .slide-content p {
    color: var(--text-medium);
}

.hero-carousel.editorial .slide-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    height: 100%;
    padding: 0 5%;
}

.hero-carousel.editorial .slide-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.hero-mockup-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.hero-mockup-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
}

.hero-floating-status {
    position: absolute;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    animation: float 4s ease-in-out infinite;
}

.hero-floating-status i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.15);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-tag {
    background: rgba(198, 40, 40, 0.15);
    color: #ff6b6b;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-solid-green {
    background: #2fb78c !important;
    color: white !important;
}

.hero-solid-green .slide-content h1,
.hero-solid-green .slide-content p {
    color: white !important;
}

.hero-solid-green .btn-secondary {
    border-color: white !important;
    color: white !important;
    background: transparent !important;
}

.hero-solid-green .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.text-red-highlight {
    color: #ff6b6b;
}

.text-green-highlight {
    color: var(--primary-green);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 992px) {
    .hero-carousel.editorial .slide-split {
        grid-template-columns: 1fr;
        padding-top: 100px;
        gap: 40px;
        overflow-y: auto;
    }

    .hero-mockup-container {
        display: none;
        /* Hide complex mockups on mobile for clean UI */
    }
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    pointer-events: none;
}

.carousel-controls button {
    background: var(--bg-card);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-normal);
    pointer-events: auto;
}

.carousel-controls button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.carousel-controls button i {
    color: var(--primary-green);
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
    align-items: stretch;
}

.problem-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.problem-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(1deg) rotateY(-1deg);
    border-color: rgba(249, 178, 51, 0.4);
    box-shadow: 0 20px 40px rgba(249, 178, 51, 0.1), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.problem-card .icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: block;
    font-size: 30px;
    margin-bottom: 32px;
    color: #F9B233;
}



.problem-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.problem-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Solution Section */
.solution-section .container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.solution-content {
    flex: 1;
}

.solution-image {
    flex: 1;
}

.solution-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.badge {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.solution-features {
    margin: 32px 0;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.solution-features li span {
    color: var(--primary-green);
    font-weight: 700;
}

@media (max-width: 992px) {
    .solution-section .container {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .solution-features li {
        justify-content: center;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }
}

/* Products Overview */
.products-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.product-card-large {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    flex: 1;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-light);
}

.product-badge.accent {
    color: var(--accent-yellow);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.product-card-large:nth-child(2) .product-icon {
    background: rgba(249, 178, 51, 0.1);
}


.product-header h3 {
    font-size: 28px;
}

.product-header p {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 14px;
}

.feature-list {
    margin-bottom: 32px;
}

.feature-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 16px;
    font-size: 15px;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

.integration-arrow {
    text-align: center;
    color: var(--text-light);
}

.integration-arrow .arrow {
    font-size: 48px;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--primary-green);
}

.integration-arrow p {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Feature Clusters */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.feature-cluster {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
    box-shadow: var(--shadow-sm);
}

.feature-cluster:hover {
    transform: translateY(-8px) scale(1.02) rotateX(1deg) rotateY(-1deg);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.1), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.cluster-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.feature-cluster:hover .cluster-icon {
    background: var(--primary-green);
    color: white !important;
}

.feature-cluster:hover .cluster-icon i {
    color: white !important;
}


.feature-cluster h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-cluster .tagline {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.feature-cluster ul {
    font-size: 14px;
    color: var(--text-light);
}

.feature-cluster ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.feature-cluster ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
}

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

@media (max-width: 992px) {
    .products-grid {
        flex-direction: column;
    }

    .integration-arrow .arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Workflow Flow */
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
}

.step {
    flex: 1;
    text-align: center;
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border-light);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 24px;
}

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

.step p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.step img {
    border-radius: 8px;
    width: 100%;
}

.step-connector {
    font-size: 32px;
    color: var(--primary-green);
    font-weight: 700;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 48px 32px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(1deg) rotateY(-1deg);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.1), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.pricing-card.featured {
    border-color: var(--primary-green);
    box-shadow: 0 12px 36px rgba(46, 204, 113, 0.15);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.03) rotateX(1deg) rotateY(-1deg);
    box-shadow: 0 25px 50px rgba(46, 204, 113, 0.25), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-audience {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

.price {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

.plan-note {
    font-size: 14px;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 32px;
}

.plan-features {
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
}

.plan-features li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    font-size: 14px;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

.small-note {
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .workflow-steps {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

/* FAQ Section */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.faq-question h3 {
    font-size: 16px;
    margin-right: 16px;
}

.faq-toggle {
    font-size: 20px;
    color: var(--primary-green);
    font-weight: 700;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background: var(--bg-light);
}

.faq-answer p {
    padding: 24px;
    font-size: 14px;
    color: var(--text-light);
}

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

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--text-dark) 0%, #333 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.final-cta .section-title {
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-actions {
    margin-top: 48px;
}

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

/* About Page Specifics */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mission-card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mission-card .icon {
    font-size: 48px;
    margin-bottom: 24px;
}

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

.founder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-title {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 12px;
}

.founder-quote {
    font-style: italic;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.founder-social a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

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

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

.value-card {
    text-align: center;
    padding: 32px;
}

.value-card .icon {
    font-size: 32px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .founders-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

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

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

/* Ratio Page Specifics */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.use-case-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.use-case-card.featured {
    border-color: var(--primary-green);
    background: rgba(46, 204, 113, 0.08);
}

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

.use-case-card .tagline {
    font-style: italic;
    color: var(--primary-green);
    font-size: 14px;
    margin-bottom: 20px;
}

.deep-dive-item {
    display: flex;
    align-items: center;
    gap: 100px;
    padding: 100px 0;
}

.deep-dive-item.rev {
    flex-direction: row-reverse;
}

.deep-dive-text {
    flex: 1;
}

.deep-dive-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.deep-dive-img {
    flex: 1;
}

.deep-dive-img img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.integration-promo {
    padding: 100px 0;
}

@media (max-width: 992px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .deep-dive-item {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .deep-dive-item.rev {
        flex-direction: column;
    }
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 48px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

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

.comparison-table th,
.comparison-table td {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--bg-light);
    font-family: var(--font-heading);
    font-weight: 700;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

/* Guarantee Section */
.guarantee-section {
    padding: 100px 0;
}

.guarantee-badge {
    font-size: 64px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {

    .comparison-table th,
    .comparison-table td {
        padding: 16px 20px;
        font-size: 14px;
    }
}

/* Contact Page Specifics */
.contact-flex {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.contact-form-wrapper {
    flex: 1.2;
    background: var(--bg-card);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.w-100 {
    width: 100%;
}

.trust-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.stat strong {
    display: block;
    font-size: 24px;
    color: var(--primary-green);
}

.stat span {
    font-size: 14px;
    color: var(--text-light);
}

/* Form Success State */
.form-success-message {
    text-align: center;
    padding: 40px 0;
}

.form-success-message .icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.form-success-message h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.form-success-message p {
    margin-bottom: 32px;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .contact-flex {
        flex-direction: column;
        gap: 60px;
    }
}

/* Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    /* --reveal-i is set per-element by script.js so siblings in the same grid
       (cards, pricing tiles, FAQ items…) stagger in instead of popping at once. */
    transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
.main-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-light);
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
}

.footer-links h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 24px;
}

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

.footer-links ul li a {
    color: var(--text-light);
    font-size: 15px;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
}


.legal-links {
    display: flex;
    gap: 24px;
}

@media (max-width: 992px) {
    /* Mobile nav-links/menu-toggle/nav-cta rules consolidated into one place —
       see the "MASTER RESPONSIVE OVERRIDES" block further down. Duplicating
       them here previously caused conflicting z-index/position/display values
       between three separate blocks in this file. */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    border-radius: 40px;
    /* Pill shape */
}


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

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

.btn-secondary:hover {
    background-color: rgba(46, 204, 113, 0.05);
    transform: translateY(-2px);
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Editorial Layouts (About Page) */
.editorial-hero {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 120px 0;
}

.editorial-content {
    flex: 1;
}

.editorial-image {
    flex: 1;
}

.editorial-image img {
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.label-caps {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 24px;
    display: block;
}

.serif-title {
    font-family: var(--font-heading-serif);
    font-size: 64px;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.editorial-stats {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.stat-item h2 {
    font-size: 56px;
    margin-bottom: 4px;
}

.stat-item p {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.mission-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-editorial {
    padding: 60px;
    border-radius: 12px;
}

.card-editorial.light {
    background: var(--bg-light);
}

.card-editorial.dark {
    background: var(--primary-green);
    color: white;
}

.card-editorial.dark h2,
.card-editorial.dark h3 {
    color: white;
}

.team-grid-circle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.team-member-editorial {
    text-align: center;
}

.member-photo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 4px solid var(--bg-light);
}

.member-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophical-quote {
    font-style: italic;
    font-size: 15px;
    color: var(--text-light);
    margin-top: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.value-card-editorial {
    padding: 60px;
    border-radius: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
    box-shadow: var(--shadow-sm);
}

.value-card-editorial:hover {
    transform: translateY(-8px) scale(1.02) rotateX(1deg) rotateY(-1deg);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.1), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.value-card-editorial.accent {
    background: var(--accent-yellow) !important;
    border: none !important;
    color: #1A1A1A;
}

.value-card-editorial.accent:hover {
    box-shadow: 0 20px 45px rgba(254, 219, 65, 0.35), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.value-card-editorial.accent h3,
.value-card-editorial.accent p,
.value-card-editorial.accent i {
    color: #1A1A1A;
}

.cta-banner-dark {
    background: var(--primary-green);
    color: white;
    padding: 100px 0;
    text-align: center;
    border-radius: 20px;
    margin: 0 40px 100px;
}

.cta-banner-dark h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 40px;
}

.cta-banner-dark .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

@media (max-width: 992px) {

    .editorial-hero,
    .about-split {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .editorial-hero {
        padding: 60px 0;
    }

    .team-grid-circle {
        grid-template-columns: 1fr;
    }

    .cta-banner-dark {
        margin: 0 20px 60px;
        padding: 60px 20px;
    }
}

/* Ratio Page Specific (Editorial) */
.badge-pill-editorial {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.ratio-hero-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
}

.ratio-hero-visual {
    flex: 1.2;
}

.ratio-hero-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.feature-grid-editorial {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
    align-items: stretch;
}

.feature-card-editorial {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
    box-shadow: var(--shadow-sm);
}

.feature-card-editorial i {
    font-size: 32px;
    margin-bottom: 24px;
    display: block;
    color: var(--primary-green);
}

.feature-card-editorial h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.feature-card-editorial p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 15px;
}

.feature-card-editorial:hover {
    transform: translateY(-8px) scale(1.02) rotateX(1deg) rotateY(-1deg);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.1), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.synergy-card-dark {
    background: var(--primary-green-dark);
    color: white;
    padding: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 100px 0;
    overflow: hidden;
    position: relative;
}

.synergy-content {
    flex: 1;
    z-index: 2;
}

.synergy-visual {
    flex: 1;
    z-index: 1;
    position: relative;
}

.synergy-visual img {
    border-radius: 12px;
    opacity: 0.6;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.synergy-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.synergy-stat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.synergy-stat i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.synergy-stat-text h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: white;
}

.synergy-stat-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.sync-section {
    background: #F1F1F1;
    border-radius: 24px;
    padding: 80px;
    display: flex;
    align-items: center;
    gap: 80px;
    margin: 80px 0;
}

.sync-list {
    list-style: none;
    margin-top: 32px;
}

.sync-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.sync-list i {
    color: var(--primary-green);
}

.sync-visual-overlap {
    position: relative;
    flex: 1.2;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D simulated glass web device */
.mockup-web-device {
    position: absolute;
    width: 320px;
    height: 220px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateX(-40px) translateY(-30px) perspective(1000px) rotateY(8deg) rotateX(2deg);
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.mwd-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .mwd-topbar {
    background: rgba(255, 255, 255, 0.03);
}

.mwd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .mwd-dot {
    background: rgba(255, 255, 255, 0.2);
}

.mwd-address {
    font-size: 9px;
    color: var(--text-light);
    margin-left: 10px;
    font-family: monospace;
}

.mwd-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.mwd-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.mwd-chart-bar {
    flex: 1;
    height: var(--h);
    background: var(--primary-green);
    border-radius: 4px;
    opacity: 0.75;
}

.mwd-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* 3D simulated glass phone device */
.mockup-phone-device {
    position: absolute;
    width: 160px;
    height: 280px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateX(110px) translateY(40px) perspective(1000px) rotateY(-8deg) rotateX(2deg);
    z-index: 2;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.mpd-earpiece {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-light);
    position: absolute;
    top: 10px;
}

.mpd-screen {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary-green);
}
[data-theme="dark"] .mpd-screen {
    background: rgba(255, 255, 255, 0.02);
}

.mpd-screen i {
    font-size: 36px;
}

.mpd-screen span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 0.5px;
}

.device-card i {
    font-size: 48px;
    color: rgba(27, 94, 32, 0.2);
    margin-bottom: 24px;
}

.device-card h4 {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* Bento Grid Toolkit */
.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    align-items: stretch;
}

.toolkit-card {
    padding: 40px;
    border-radius: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
    box-shadow: var(--shadow-sm);
}

.toolkit-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(1deg) rotateY(-1deg);
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.1), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.toolkit-card.span-2 {
    grid-column: span 2;
}

.toolkit-card.green {
    background: linear-gradient(135deg, var(--primary-green) 0%, #2ecc71 100%) !important;
    border: none !important;
    color: white !important;
}

.toolkit-card.green:hover {
    box-shadow: 0 20px 45px rgba(46, 204, 113, 0.35), 0 1px 0 rgba(255,255,255,0.2) inset;
}

.toolkit-card.white {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.toolkit-card.grey {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

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

.toolkit-card.white h3 {
    color: var(--primary-green);
}

.uptime-stat {
    font-size: 64px;
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

.mockup-inventory {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 32px;
    margin-top: 24px;
    border: 1px solid #eee;
}

.progress-bar-toolkit {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: #8B5E20;
    /* Brownish color from screenshot */
    width: 40%;
}

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

.staff-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.staff-icon-circle {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-green);
}

@media (max-width: 992px) {
    .sync-section {
        flex-direction: column;
        padding: 40px;
    }

    .toolkit-grid {
        grid-template-columns: 1fr;
    }

    .toolkit-card.span-2 {
        grid-column: span 1;
    }

    .sync-visual-overlap {
        height: 300px;
    }
}

/* Picker Page Specific */
.picker-ui-card-hero {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 320px;
}

@media (max-width: 992px) {
    .picker-ui-card-hero {
        position: relative;
        left: 0;
        bottom: 0;
        margin: 24px auto 0;
        width: 100%;
    }
}
/* ═══ RESPONSIVE: Tablet (max 992px) ═══ */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .feature-grid-editorial {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .slide-split {
        flex-direction: column;
        text-align: center;
    }
    .hero-mockup-container {
        margin-top: 40px;
    }
    .cta-banner-dark {
        margin: 0 20px 60px;
        padding: 60px 20px;
    }
    .editorial-hero, .about-split {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .team-grid-circle {
        grid-template-columns: 1fr;
    }
    .ratio-hero-section {
        flex-direction: column !important;
        text-align: center;
    }
    .ratio-hero-visual {
        margin-top: 40px;
    }
    .toolkit-grid {
        grid-template-columns: 1fr !important;
    }
    .toolkit-card.span-2 {
        grid-column: span 1 !important;
    }
    h1.serif-title {
        font-size: clamp(36px, 8vw, 72px) !important;
    }
}

/* ═══ RESPONSIVE: Mobile (max 576px) ═══ */
@media (max-width: 576px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }
    .feature-grid-editorial {
        grid-template-columns: 1fr !important;
    }
    .modern-card {
        padding: 24px;
        border-radius: 16px;
    }
    .btn {
        padding: 14px 24px !important;
        font-size: 14px;
    }
    .slide-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .slide-actions a {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
    .cta-actions a:last-child {
        margin-left: 0 !important;
        margin-top: 12px;
    }
    section {
        padding: 60px 0;
    }
    .cta-banner-dark {
        margin: 0 16px 40px;
        padding: 48px 20px;
        border-radius: 16px;
    }
    .cta-banner-dark h2 {
        font-size: 28px !important;
    }
    h2.section-title, h2.serif-title {
        font-size: clamp(24px, 7vw, 40px) !important;
    }
    .team-member-editorial {
        padding: 24px;
    }
    .step-connector {
        display: none;
    }
    .workflow-steps {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE — GLOBAL SAFETY OVERRIDES
   Ensures full contrast when data-theme="dark" is active
   ═══════════════════════════════════════════════════════════════════════════ */

[data-theme="dark"] body {
    background-color: var(--bg-white);
    color: var(--text-medium);
}

/* All headings become bright white */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-dark);
}

/* All section backgrounds switch */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .pricing-section {
    background-color: var(--bg-white);
}

/* Cards — universal dark mode */
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .problem-card,
[data-theme="dark"] .feature-cluster,
[data-theme="dark"] .feature-card-editorial,
[data-theme="dark"] .value-card-editorial,
[data-theme="dark"] .card-editorial.light,
[data-theme="dark"] .use-case-card,
[data-theme="dark"] .scale-card,
[data-theme="dark"] .step,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .toolkit-card {
    background: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text-medium);
}

/* Text inside cards */
[data-theme="dark"] .pricing-card h3,
[data-theme="dark"] .problem-card h3,
[data-theme="dark"] .feature-card-editorial h3,
[data-theme="dark"] .value-card-editorial h3,
[data-theme="dark"] .scale-card h3,
[data-theme="dark"] .step h3,
[data-theme="dark"] .faq-question,
[data-theme="dark"] .toolkit-card h3 {
    color: var(--text-dark);
}

/* Plan features list */
[data-theme="dark"] .plan-features li {
    color: var(--text-medium);
}

/* Floating status widgets */
[data-theme="dark"] .hero-floating-status {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

[data-theme="dark"] .hero-floating-status span,
[data-theme="dark"] .hero-floating-status div {
    color: var(--text-medium);
}

/* Footer */
[data-theme="dark"] .main-footer {
    background: #0A0A0A;
    border-top: 1px solid var(--border-light);
}

[data-theme="dark"] .footer-links h4,
[data-theme="dark"] .footer-brand .logo,
[data-theme="dark"] .footer-bottom p {
    color: var(--text-dark);
}

[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-brand p {
    color: var(--text-light);
}

/* Dropdown menu */
[data-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .dropdown-menu a {
    color: var(--text-medium);
}

[data-theme="dark"] .dropdown-menu a:hover {
    color: var(--text-dark);
    background: var(--bg-card-hover);
}

/* Picker toolkit grey cards */
[data-theme="dark"] .toolkit-card.grey,
[data-theme="dark"] .toolkit-card.white {
    background: var(--bg-card);
}

/* About page value cards */
[data-theme="dark"] .value-card-editorial {
    background: var(--bg-card);
}

/* Keep the yellow accent card always light (not dark) */
[data-theme="dark"] .value-card-editorial.accent {
    background: var(--accent-yellow);
    color: #1A1A1A;
}

[data-theme="dark"] .value-card-editorial.accent h3,
[data-theme="dark"] .value-card-editorial.accent p,
[data-theme="dark"] .value-card-editorial.accent i {
    color: #1A1A1A;
}

/* Labels */
[data-theme="dark"] .label-caps {
    color: var(--text-light);
}

/* Plan note and audience */
[data-theme="dark"] .plan-note,
[data-theme="dark"] .plan-audience {
    color: var(--text-light);
}

/* FAQ answer text */
[data-theme="dark"] .faq-answer {
    color: var(--text-medium);
}

/* Form section */
[data-theme="dark"] .contact-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

/* Sync section */
[data-theme="dark"] .sync-section {
    background: var(--bg-card) !important;
}

/* Picker UI card hero (floating card on warehouse image) */
[data-theme="dark"] .picker-ui-card-hero {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

/* Step numbers */
[data-theme="dark"] .step-number {
    background: var(--primary-green);
    color: white;
}

/* Price text */
[data-theme="dark"] .price {
    color: var(--text-dark);
}

/* Bar chart / progress bar track */
[data-theme="dark"] .progress-bar-toolkit {
    background: var(--border-light) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM SUBPAGE HERO & CSS CUSTOM DASHBOARDS (MODULUS FLUID HEROES)
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-premium.subpage {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 80px;
}

/* 1. About Page: Real-time Modulus Footprint Terminal Mockup */
.about-footprint-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
}

.afc-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.afc-metric {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition-normal);
}

.afc-metric:hover {
    transform: translateY(-3px);
    border-color: var(--primary-green);
}

.afc-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.afc-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* 2. Ratio POS: Quick-Billing Checkout Simulator */
.ratio-billing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    overflow: hidden;
}

.rbc-items {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid var(--border-light);
}

.rbc-item {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.rbc-item-name {
    font-weight: 600;
    color: var(--text-dark);
}

.rbc-item-price {
    font-weight: 700;
    color: var(--text-medium);
}

.rbc-total {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}

.rbc-total-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rbc-total-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-green);
}

.rbc-payment-status {
    padding: 14px;
    background: rgba(46, 204, 113, 0.12);
    color: var(--primary-green);
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 3. Picker: Dispatch Logistics Fleet Simulator */
.picker-dispatch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
}

.pdc-feed {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.pdc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pdc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(27, 94, 32, 0.12);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.pdc-icon.orange {
    background: rgba(249, 178, 51, 0.15);
    color: #F9B233;
}

.pdc-details {
    flex: 1;
    font-size: 13px;
}

.pdc-title {
    font-weight: 700;
    color: var(--text-dark);
}

.pdc-meta {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.pdc-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary-green);
}

.pdc-badge.orange {
    background: rgba(249, 178, 51, 0.1);
    color: #D4900A;
}

/* 4. Pricing: cost / ROI comparison module */
.pricing-roi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    padding: 24px;
}

.prc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    font-size: 14px;
    border-bottom: 1px dashed var(--border-light);
}

.prc-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prc-label {
    color: var(--text-medium);
    font-weight: 500;
}

.prc-val {
    font-weight: 700;
    color: var(--text-dark);
}

.prc-val.strike {
    text-decoration: line-through;
    color: var(--error);
}

.prc-val.green {
    color: var(--primary-green);
    font-weight: 800;
    font-size: 16px;
}

/* 5. Contact: Online Founder Status indicator */
.contact-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    padding: 24px;
}

.csc-agent {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.csc-agent:last-child {
    margin-bottom: 0;
}

.csc-agent img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.csc-info {
    flex: 1;
}

.csc-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 15px;
}

.csc-role {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 1px;
}

.csc-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-green);
}

.csc-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RATIO APP PREVIEW GALLERY (INTERACTIVE TABS)
   ═══════════════════════════════════════════════════════════════════════════ */
.app-gallery-section {
    padding: 120px 0;
    position: relative;
}

.gallery-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.gallery-tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 992px) {
    .gallery-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.gallery-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.gallery-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 204, 113, 0.3);
}

.gallery-tab.active {
    border-color: var(--primary-green);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.1);
}

.gallery-tab-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(27, 94, 32, 0.08);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.gallery-tab.active .gallery-tab-icon {
    background: var(--primary-green);
    color: white;
}

.gallery-tab-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.gallery-tab-text p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Screenshot display viewport */
.gallery-viewport {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.viewport-frame {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.viewport-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.viewport-image.active {
    display: block;
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MASTER RESPONSIVE OVERRIDES (TABLET & MOBILE)
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- TABLET (992px and below) --- */
@media (max-width: 992px) {
    /* Header & Navigation — single source of truth for the mobile menu.
       Uses opacity/transform/visibility (not display) so open/close animates
       smoothly instead of snapping instantly. */
    .nav-links {
        position: fixed;
        top: 70px; /* Header height */
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        gap: 24px;
        background: var(--bg-white);
        z-index: 1000;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-16px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .nav-cta {
        display: none; /* Hide CTAs on mobile nav */
    }

    @media (max-width: 576px) {
        .nav-links {
            font-size: 20px;
            justify-content: center;
        }
    }

    /* Grids */
    .features-grid, 
    .problem-grid, 
    .pricing-grid, 
    .footer-grid, 
    .stats-grid, 
    .process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .solution-section .container {
        flex-direction: column !important;
        gap: 40px !important;
    }
}

/* --- MOBILE (768px and below) --- */
@media (max-width: 768px) {
    /* Global Padding */
    section {
        padding: var(--section-padding-mobile) 0 !important;
    }

    /* Hero Sections */
    .hero-premium-inner, 
    .editorial-hero, 
    .about-split {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        text-align: center;
        gap: 40px !important;
    }
    
    .hero-left, .hero-right {
        align-items: center !important;
    }
    
    .hero-cta-group {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .hero-trust-strip {
        justify-content: center !important;
        flex-wrap: wrap;
    }
    
    .hero-headline {
        font-size: 42px !important;
        line-height: 1.2 !important;
    }
    
    /* Grids */
    .features-grid, 
    .problem-grid, 
    .pricing-grid, 
    .footer-grid, 
    .stats-grid, 
    .process-grid,
    .integration-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Footer */
    .footer-grid {
        text-align: center;
    }
    .footer-brand {
        align-items: center;
    }
    
    /* Misc Components */
    .integration-flow {
        flex-direction: column !important;
    }
    
    .gallery-container {
        grid-template-columns: 1fr !important;
    }
    
    .pricing-header h2 {
        font-size: 32px !important;
    }
}

/* --- SMALL MOBILE (480px and below) --- */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 36px !important;
    }
    .hero-subheadline {
        font-size: 16px !important;
    }
    .hdc-stats-row {
        grid-template-columns: 1fr !important;
    }
    .hdc-stat {
        border-right: none !important;
        border-bottom: 1px solid var(--border-light);
    }
    .hdc-stat:last-child {
        border-bottom: none;
    }
    .hero-float-card {
        display: none !important; /* Hide floating decorative cards on small screens */
    }
}

