/* ==========================================
   FLOWFOUNDRY CUSTOM DESIGN SYSTEM & STYLES
   ========================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-dark: #f8fafc; /* Crisp light grey-white */
    --bg-card: #ffffff; /* Clean pure white card */
    --bg-card-hover: #ffffff;
    --bg-modal: #ffffff;
    
    --color-primary: #3b82f6; /* Premium Royal Blue */
    --color-primary-hover: #2563eb;
    --color-secondary: #0ea5e9; /* Light Cyan Blue */
    --color-secondary-hover: #0284c7;
    
    --color-freshdesk: #00875a;
    --color-freshservice: #007ac1;
    
    /* App category theme colors */
    --glow-indigo: rgba(59, 130, 246, 0.06);
    --glow-emerald: rgba(16, 185, 129, 0.06);
    --glow-blue: rgba(59, 130, 246, 0.06);
    --glow-rose: rgba(244, 63, 94, 0.06);
    --glow-amber: rgba(245, 158, 11, 0.06);
    --glow-violet: rgba(139, 92, 246, 0.06);
    
    --text-primary: #0f172a; /* High contrast dark charcoal */
    --text-secondary: #475569; /* Soft charcoal */
    --text-muted: #64748b; /* Muted slate */
    --border-glass: rgba(15, 23, 42, 0.08); /* Clean thin grey borders */
    --border-glass-hover: rgba(59, 130, 246, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elastic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* --- Decorative Glowing Backgrounds --- */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    opacity: 0.08; /* Very soft opacity for light theme */
    pointer-events: none;
}

.blob-1 {
    top: 5%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    animation: floatBlob 20s infinite alternate;
}

.blob-2 {
    top: 40%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    animation: floatBlob 25s infinite alternate-reverse;
}

.blob-3 {
    bottom: 10%;
    left: 20%;
    width: 350px;
    height: 350px;
    background: #8b5cf6;
    animation: floatBlob 18s infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* --- Typography Helpers --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}

.gradient-text {
    background: linear-gradient(135deg, #90e0ef 0%, #00b4d8 50%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0077b6 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

.btn i {
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* --- Glassmorphic Panels --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Header & Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(248, 250, 252, 0.85); /* Light glassy background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.logo-accent {
    color: var(--color-secondary);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

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

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-trust strong {
    color: var(--text-secondary);
}

/* --- Hero Workspace Mockup Visual --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.mock-workspace {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    background: #ffffff; /* Clean light workspace */
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.mock-header {
    height: 38px;
    background: #f1f5f9;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.mock-dots {
    display: flex;
    gap: 0.4rem;
}

.mock-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.15);
}

.mock-title {
    margin-left: 2rem;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-weight: 500;
}

.mock-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    height: 300px;
}

.mock-ticket-left {
    padding: 1rem;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ticket-header-mock {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.avatar-mock {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.ticket-meta-mock {
    overflow: hidden;
}

.ticket-subject {
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ticket-author {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ticket-content-mock p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ticket-action-mock {
    margin-top: auto;
}

.mock-input-field {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mock-sidebar-right {
    background: #f8fafc;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

.sidebar-widget-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

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

.sidebar-widget-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.ai-pill-badge {
    align-self: flex-start;
    padding: 0.15rem 0.4rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 4px;
    font-size: 0.6rem;
    color: #1e3a8a;
    font-weight: 600;
}

.widget-desc-preview {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.widget-summary-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.65rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.btn-widget-mock {
    font-size: 0.65rem;
    padding: 0.4rem;
    border-radius: 4px;
    margin-top: auto;
}

/* --- Stats Strip --- */
.stats-section {
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.02); /* Crisp soft background overlay */
    backdrop-filter: blur(5px);
    padding: 2.5rem 0;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* --- Apps Listing Filters --- */
.filter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn, .platform-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover, .platform-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active, .platform-btn.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border-glass);
}

.platform-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.dot-fd { background-color: var(--color-freshdesk); }
.dot-fs { background-color: var(--color-freshservice); }

/* --- Apps Grid & Cards --- */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Coming Soon Placeholder Card */
.coming-soon-card {
    grid-column: 1 / -1;
    max-width: 620px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.coming-soon-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.coming-soon-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    margin-bottom: 0.5rem;
}

.coming-soon-icon i {
    width: 28px;
    height: 28px;
}

.coming-soon-title {
    font-size: 1.8rem;
    margin: 0;
}

.coming-soon-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
}

.coming-soon-subdesc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: var(--transition-smooth);
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
    background: var(--bg-card-hover);
}

/* Card Glows based on icons */
.app-card:hover#app-bulk-creator { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 25px rgba(16, 185, 129, 0.1); }

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.app-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-glow-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.logo-glow-emerald { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
.logo-glow-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
.logo-glow-rose { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4); }
.logo-glow-amber { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
.logo-glow-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); }

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: white;
}

.badge-fd { background-color: rgba(0, 135, 90, 0.15); border: 1px solid rgba(0, 135, 90, 0.3); color: #8ef7ca; }
.badge-fs { background-color: rgba(0, 122, 193, 0.15); border: 1px solid rgba(0, 122, 193, 0.3); color: #7ad1ff; }

.app-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.app-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.app-pricing {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.app-card-footer {
    margin-top: auto;
}

/* Hidden Cards Styling */
.app-card.hidden {
    display: none;
}

/* --- ROI Calculator Section --- */
.roi-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    padding: 3.5rem;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-group:last-child {
    margin-bottom: 0;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.slider-label-row label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.slider-val {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
}

/* Custom Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.08);
    outline: none;
    transition: background 450ms ease-in;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--color-secondary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
    transform: scale(1.15);
}

.slider-minmax {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.roi-outputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.output-title {
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
    text-align: center;
}

.output-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.output-card {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.output-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
}

.icon-hours { background: rgba(99, 102, 241, 0.15); color: var(--color-primary); }
.icon-savings { background: rgba(16, 185, 129, 0.15); color: var(--color-secondary); }

.output-metric {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

#metric-hours { color: #a5b4fc; }
#metric-savings { color: #86efac; }

.output-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.output-highlight {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, rgba(0, 180, 216, 0.05) 100%);
    border-color: rgba(0, 180, 216, 0.25);
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.05);
}

.roi-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

/* --- Features & Benefits Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-box {
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.feature-box:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-3px);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.bg-indigo-glow { background: var(--color-primary); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35); }
.bg-emerald-glow { background: var(--color-secondary); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35); }
.bg-rose-glow { background: #e11d48; box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35); }
.bg-amber-glow { background: #d97706; box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35); }

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Custom Request Intake Form Section --- */
.custom-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    padding: 4rem;
    align-items: center;
    overflow: hidden;
}

.custom-text {
    font-size: 1.05rem;
    margin: 1.5rem 0 2rem 0;
    line-height: 1.7;
}

.custom-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.c-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.c-feat i {
    color: var(--color-secondary);
    flex-shrink: 0;
}

.custom-form-container {
    position: relative;
    width: 100%;
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
    background: #ffffff;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem;
}

.error-msg {
    display: none;
    color: #f43f5e;
    font-size: 0.75rem;
    font-weight: 500;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #f43f5e;
}

.form-group.invalid .error-msg {
    display: block;
}

/* Success Message Container */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon i {
    width: 32px;
    height: 32px;
}

.form-success-message h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.form-success-message p {
    color: var(--text-secondary);
    max-width: 350px;
}

/* --- Dynamic App Modal Dialog --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45); /* Lighter backdrop dim for light theme */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 800px;
    background: var(--bg-modal);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-content-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 400px;
}

.modal-left {
    padding: 3rem;
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-app-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-app-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.modal-title {
    font-size: 1.8rem;
}

.modal-app-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.modal-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.modal-subheading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.modal-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-features-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.modal-features-list li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-secondary);
}

.modal-right {
    padding: 3rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-billing-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-subheading-billing {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.modal-pricing-display {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.modal-pricing-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-cta-box {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-install-btn {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.modal-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.icon-xs {
    width: 13px;
    height: 13px;
}
.icon-sm {
    width: 16px;
    height: 16px;
}

/* --- Footer --- */
.main-footer {
    background: #f1f5f9; /* Clean light background */
    border-top: 1px solid var(--border-glass);
    padding-top: 4.5rem;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3.5rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.08); /* High contrast green background */
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #065f46; /* Deep green text for readability */
    font-weight: 600;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-col a:hover {
    color: var(--color-primary); /* Use brand color for hover */
}

.footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.06); /* Thin dark divider in light mode */
    padding: 1.5rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.legal-dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* Animations scaleIn */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================
   MEDIA QUERIES - RESPONSIVE STYLING
   ========================================== */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-container, 
    .roi-wrapper,
    .custom-wrapper {
        gap: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .filter-wrapper {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
    }
    
    .filter-group {
        width: 100%;
        justify-content: center;
    }
    
    .filter-divider {
        display: none;
    }
    
    .roi-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-wrapper {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .modal-left {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .modal-right {
        padding: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    /* Desktop Navigation hides, Mobile Nav buttons show */
    .desktop-nav {
        display: none;
    }
    
    .btn-header {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
}

/* --- Mobile Navigation Drawer (JS Controlled) --- */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-modal);
    border-left: 1px solid var(--border-glass);
    z-index: 1005;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-nav-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.drawer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    transition: var(--transition-smooth);
}

.mobile-link:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.drawer-actions {
    margin-top: auto;
    padding-top: 2rem;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1004;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
