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

:root {
    --brand: #2d5aa0;
    --brand-dark: #1e3f73;
    --accent: #ff6b35;
    --success: #28a745;
    --danger: #dc3545;
    --text: #333333;
    --muted: #666666;
    --bg-light: #f8f9fa;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
}

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

/* Header / Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--brand);
    font-size: 1.1rem;
    text-decoration: none;
}

.brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .brand-logo { height: 40px; }
    .nav { height: 64px; }
}

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

.nav-links a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(45, 90, 160, 0.08);
}

.nav-links a.active {
    color: var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: var(--brand);
}

.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links { 
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        display: none;
        flex-direction: column;
        padding: 12px 16px;
        gap: 6px;
    }
    .site-header.open .nav-links { display: flex; }
    .nav { position: relative; }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    padding: 100px 0 90px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .subtext {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-button {
    background: var(--accent);
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: #e55529;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Problem Section */
.problems {
    background: var(--bg-light);
    padding: 80px 0;
}

.problems h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: 20px;
}

.problems-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 60px;
}

.problems-grid {
    display: grid;
    /* Force 4 columns on desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.problem-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.4rem;
    color: var(--brand);
    margin-bottom: 15px;
}

/* Icon styling for consistent size */
.problem-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: var(--brand);
}

/* Enhance hover for cards */
.problem-card {
    will-change: transform, box-shadow;
}
.problem-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Solution Section */
.solution {
    padding: 80px 0;
}

.solution h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: 60px;
}

.solution-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    align-items: center;
}

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

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.feature-list li:before {
    content: "✓";
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.solution-visual {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.solution-visual:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ddd" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.1;
}

.solution-visual h3 {
    color: var(--brand);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}

/* Comparison Section */
.comparison {
    background: var(--bg-light);
    padding: 80px 0;
}

.comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    color: gray;
    margin-bottom: 60px;
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
}

.comparison-row:nth-child(odd) {
    background: #f8f9fa;
}

.comparison-cell {
    padding: 20px;
    text-align: center;
}

.comparison-cell:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-header {
    background: #f8f9fa;
    color: black;
    font-weight: 700;
    font-size: 1.1rem;
}

.jarvis-col {
    color: var(--success);
    font-weight: 600;
}

.competitor-col {
    color: var(--danger);
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
    padding: 80px 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: 50px;
}

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

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.testimonial-quote {
    font-size: 1rem;
    color: #444;
    margin-bottom: 16px;
}

.testimonial-author {
    font-weight: 700;
    color: #2d5aa0;
}

.testimonial-role {
    color: #666;
    font-size: 0.95rem;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: 30px;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: #f0f4fb;
    color: #2d5aa0;
    padding: 16px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    padding: 16px 20px 20px;
}

.accordion-icon {
    transition: transform 0.2s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Hero layout */
.hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .subtext {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.hero-visual {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mock-window {
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}

.mock-titlebar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #eef2f7;
}

.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot.red { background:#ff5f56; }
.dot.yellow { background:#ffbd2e; }
.dot.green { background:#27c93f; }

.mock-body {
    padding: 16px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric {
    background: #f7fafc;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    box-shadow: inset 0 0 0 1px #eef2f7;
}

.metric .label { color: #475569; font-size: 0.85rem; }
.metric .value { color: #0f172a; font-weight: 800; font-size: 1.25rem; }

.hero .note {
    margin-top: 12px;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.scroll-cue svg { opacity: 0.9; }

@media (max-width: 768px) { .scroll-cue { display: none; } }

/* Trust logos strip */
.trust {
    background: #ffffff;
    padding: 28px 0;
    border-bottom: 1px solid #eef2f7;
}

.trust .container { display: grid; grid-template-columns: 1fr; gap: 16px; }
.trust-title { text-align: center; color: #475569; font-weight: 600; opacity: .9; }
.trust-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: center; }
.trust-logo {
    height: 36px; display: flex; align-items: center; justify-content: center;
    color: #64748b; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 8px;
    font-weight: 700; letter-spacing: .02em;
}

@media (max-width: 900px) { .trust-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .trust-logos { grid-template-columns: repeat(2, 1fr); } }

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

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: #ffffff;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--brand);
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.contact-copy {
    padding: 20px 0;
}

.contact-copy h3 { color: var(--brand); font-size: 1.5rem; margin-bottom: 12px; }
.contact-copy p { color: var(--text); opacity: 0.9; margin-bottom: 12px; }
.contact-benefits { list-style: none; padding-left: 0; margin-top: 12px; }
.contact-benefits li { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 1.06rem; }
.contact-benefits li .dot { width: 8px; height: 8px; background: var(--success); border-radius: 999px; display: inline-block; }

.contact-info { margin-top: 18px; display: grid; gap: 8px; }
.contact-info a { color: var(--brand); text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }

.contact-card {
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    padding: 14px 16px 16px;
}

/* Remove stray bullets from Zoho lists */
.contact .zf-templateWrapper ul,
.contact .zf-subContWrap ul,
.contact .zf-fmFooter ul { list-style: none !important; padding-left: 0 !important; }

/* Compact Zoho form title inside card */
.contact .zf-frmTitle { 
    display: block !important; 
    font-size: 1rem !important; 
    color: var(--brand) !important; 
    margin: 0 0 6px 0 !important; 
}

/* Constrain Zoho form width nicely */
.contact .zf-templateWidth { max-width: 520px; }

/* Labels and errors */
.contact .zf-labelName { color: #334155 !important; font-weight: 600 !important; margin-bottom: 3px !important; display: inline-block; font-size: 0.95rem !important; }
.contact .zf-errorMessage { color: var(--danger) !important; margin-top: 6px !important; font-size: 0.9rem !important; }

/* Remove Zoho default header strip and borders for a cleaner card */
.contact .zf-tempHeadBdr,
.contact .zf-tempHeadContBdr { display: none !important; }

/* Normalize field spacing */
.contact .zf-tempFrmWrapper { margin-bottom: 6px !important; }
.contact .zf-tempContDiv { margin-top: 4px !important; }

/* Full width inputs/selects in our card */
.contact .zf-tempContDiv input,
.contact .zf-tempContDiv select,
.contact .zf-phonefld input {
    width: 100% !important;
    padding: 5px 10px !important;
    font-size: 0.93rem !important;
}

/* Input focus styles */
.contact .zf-tempContDiv input:focus,
.contact .zf-tempContDiv select:focus,
.contact .zf-phonefld input:focus {
    outline: none !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(45, 90, 160, 0.15) !important;
}

/* Subtle leading icons for Email and Phone fields */
.contact input[name="Email"],
.contact input[name="PhoneNumber_countrycode"] {
    background: none !important;
    padding-left: 10px !important;
}

/* Hide awkward inline phone 'Number' label */
.contact .zf-phNumber label { display: none !important; }

/* Footer button alignment */
.contact .zf-fmFooter { display: flex !important; justify-content: center !important; padding-top: 8px !important; }
.contact .zf-submitColor { min-width: 140px !important; padding: 10px 18px !important; }

@media (max-width: 600px) {
  .contact .zf-submitColor { width: 100% !important; }
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { order: -1; }
}

/* Thank You Banner */
.thank-you-banner {
    display: none;
    background: #e6f7ed;
    border: 1px solid #c7ebd6;
    color: #1e7e34;
    padding: 16px;
    border-radius: 10px;
    margin: 20px auto 0;
}

/* Helper text under fields */
.field-helper { 
    font-size: 0.85rem; 
    color: #6b7280; 
    margin-top: 4px; 
}

/* Sticky CTA button */
.sticky-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1001;
    display: none;
}
.sticky-cta.show { display: inline-flex; }
.sticky-cta .cta-button {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Footer */
.site-footer {
    background: #0f1f38;
    color: #cfd8e3;
    padding: 30px 0;
}

.site-footer a {
    color: #cfd8e3;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

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

/* Focus visibility for accessibility */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Zoho form theming (scoped) */
.contact .zf-templateWrapper,
.contact .zf-subContWrap,
.contact .zf-tempFrmWrapper { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

.contact .zf-frmTitle { color: var(--brand) !important; }

.contact input[type="text"],
.contact input[type="email"],
.contact select,
.contact .zf-tempContDiv input,
.contact .zf-tempContDiv select,
.contact .zf-phonefld input {
    border: 1px solid #dde3ea !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
}

.contact .zf-submitColor,
.contact button[type="submit"],
.contact .zf-fmFooter button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.contact .zf-submitColor:hover,
.contact .zf-fmFooter button:hover { filter: brightness(0.95); }

/* Remove inner Zoho panel visuals to avoid double-card effect */
.contact .zf-templateWrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.contact .zf-subContWrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Make selects and submit visually consistent */
.contact .zf-form-sBox {
    border: 1px solid #dde3ea !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    background: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-actions { justify-content: center; }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-cell {
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    /* Problems grid and cards */
    .problems { padding: 64px 0; }
    .problems-grid { gap: 16px; grid-template-columns: 1fr !important; }
    .problem-card { padding: 20px 16px; }
    .problem-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
    .problem-card p { font-size: 0.95rem; }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 64px 0 64px; }
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; margin-bottom: 18px; }
    .hero .subtext { font-size: 0.95rem; margin-bottom: 24px; }
    .cta-button { padding: 14px 22px; font-size: 1rem; }
    .btn-secondary { padding: 12px 20px; font-size: 0.98rem; }
    .hero-visual { padding: 12px; }
    .mock-titlebar { padding: 8px 10px; }
    .mock-body { padding: 12px; }
    .metric-grid { grid-template-columns: 1fr; }

    .problems { padding: 56px 0; }
    .solution { padding: 60px 0; }
    .comparison { padding: 60px 0; }
    .testimonials { padding: 60px 0; }
    .faq { padding: 60px 0; }
    .final-cta { padding: 60px 0; }

    .trust { padding: 20px 0; }
    .trust-logos { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
    .trust-logos .trust-logo { flex: 0 0 auto; min-width: 120px; }

    /* Contact section compact */
    .contact { padding: 48px 0; }
    .contact h2 { font-size: 2rem; margin-bottom: 28px; }
    .contact .zf-templateWidth { max-width: 100%; width: 100%; }
    .contact-card { padding: 12px; border-radius: 14px; }
    .contact .zf-tempContDiv input,
    .contact .zf-tempContDiv select,
    .contact .zf-phonefld input { min-height: 46px !important; }
    .contact .zf-tempFrmWrapper { margin-bottom: 6px !important; }
    .contact .zf-submitColor { width: 100% !important; min-height: 48px !important; }

    /* Avoid overlap between sticky CTA and back-to-top */
    .sticky-cta { bottom: 76px; left: 16px; right: 16px; display: block; }
    .sticky-cta .cta-button { display: block; text-align: center; width: 100%; border-radius: 14px; padding: 14px 18px; }
    .back-to-top { bottom: 16px; right: 16px; }
    /* Hide back-to-top on very small screens to avoid overlap with sticky CTA */
    .back-to-top { display: none; }
}

/* Hide hero visual on ultra-small screens to prioritize copy */
@media (max-width: 400px) {
    .hero-visual { display: none; }
}

/* When sticky CTA is visible, reserve space so it doesn't cover content */
@media (max-width: 600px) {
  body.sticky-space { padding-bottom: 96px; }
}

/* Zebra striping for comparison rows on mobile */
@media (max-width: 768px) {
    .comparison-row:nth-child(even) { background: #f8fafc; }
}
