/* --- BRAND VARIABLES --- */
:root {
    --bg-body: #FFFFFF;       /* Clean White */
    --bg-light: #F8F9FC;      /* Very Light Blue/Grey */
    --bg-dark: #050A19;       /* Midnight Blue (for Hero) */
    
    --text-main: #334155;     /* Slate Grey (Body text) */
    --text-head: #0F172A;     /* Dark Navy (Headings) */
    --text-white: #FFFFFF;
    
    --brand-primary: #2962FF; /* Electric Royal */
    --brand-glow: rgba(41, 98, 255, 0.2);
    --brand-accent: #0044FF;  /* Darker Blue for light bg */
    
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: var(--font-head); 
    line-height: 1.2; 
    color: var(--text-head); 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
p { color: var(--text-main); }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: var(--bg-light); }
.text-accent { color: var(--brand-accent); }
.text-royal { color: var(--brand-primary); }
.text-white { color: var(--text-white); }
.text-muted { color: #64748B; }
.text-huge { font-size: 3.5rem; line-height: 1.1; } 
.text-center { text-align: center; }
.text-left { text-align: left; }
.align-center { align-items: center; }
.section-padding { padding: 80px 0; }

.w-100 { width: 100%; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.py-3 { padding-top: 15px; padding-bottom: 15px; }
.border-bottom { border-bottom: 1px solid #E2E8F0; }
.rounded { border-radius: 16px; border: 1px solid #E2E8F0; }
.shadow-img { width: 100%; height: auto; display: block; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); }

/* Handle sticky header offset for anchor links */
section[id] { scroll-margin-top: 100px; }

.full-width { width: 100%; text-align: center; margin-top: 20px; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 10px 30px -10px var(--brand-glow);
    border: 1px solid var(--brand-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px var(--brand-glow);
    background: #1c4fd8;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.btn-secondary {
    background: #E2E8F0;
    color: var(--text-head);
    border: 1px solid #CBD5E1;
}

.btn-secondary:hover {
    background: #CBD5E1;
    border-color: #94A3B8;
    color: var(--text-head);
}

.btn-wp {
    background: #21759b;
    color: #FFFFFF;
    border: 1px solid #21759b;
    box-shadow: 0 10px 20px rgba(33, 117, 155, 0.15);
    white-space: nowrap;
}

.btn-wp:hover {
    transform: translateY(-2px);
    background: #1d6585;
    border-color: #1d6585;
    box-shadow: 0 15px 25px rgba(33, 117, 155, 0.25);
    color: #FFFFFF;
}

/* Style both header buttons to be compact and fit in a single row */
.nav-ctas .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s;
}

header.scrolled {
    background: var(--bg-dark); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nav-links { display: flex; gap: 20px; font-size: 0.95rem; font-weight: 500;}
.nav-links a { color: rgba(255, 255, 255, 0.85); font-weight: 500; white-space: nowrap; } 
.nav-links a:hover { color: #FFF; }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    padding: 130px 0 80px; 
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-white);
    border-bottom-left-radius: 50px; 
    border-bottom-right-radius: 50px;
    overflow: visible; 
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2; 
}

.hero-visual {
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
}

.hero-text {
    text-align: left;
}

.hero .hero-title { 
    font-size: 3.5rem; 
    margin-bottom: 24px; 
    line-height: 1.1;
    color: var(--text-white);
}

.hero-sub { 
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.25rem; 
    margin-bottom: 32px; 
    color: rgba(255,255,255,0.85); 
    max-width: 90%; 
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 10px;
}

.hero-micro { 
    font-size: 0.9rem; 
    color: rgba(255,255,255,0.5); 
    margin-left: 5px;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: 0; 
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(41,98,255,0.25) 0%, rgba(5,10,25,0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- HERO PHONE MOCKUP --- */
.hero-visual-wrapper {
    position: relative;
    margin-top: 60px;
    margin-bottom: 0; 
    z-index: 10; 
    display: flex;
    justify-content: center;
    perspective: 1000px; 
}

.phone-frame {
    width: 310px;
    height: 520px; 
    margin-top: 10px; 
    border: 12px solid #1E293B; 
    border-radius: 45px; 
    background-color: #dbdbdb; 
    overflow: hidden; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    position: relative;
}

.phone-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

/* --- CARDS & GRID --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 30px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }

.feature-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0; 
    padding: 30px;
    border-radius: 16px;
    transition: 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
}

.feature-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(41, 98, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px; /* Centered for 4-grid */
    font-size: 1.4rem;
}

/* Left align icon box in 2-grids/3-grids where text isn't centered */
.grid-2 .icon-box, .grid-3 .icon-box { margin-left: 0; }

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-accent);
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

.features-list { margin-top: 10px; }
.features-list li {
    margin-bottom: 12px;
    color: var(--text-main);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list.list-plain li {
    padding-left: 0;
    display: block;
    margin-bottom: 8px;
}

/* --- TWO-PATH PROCESS FLOW --- */
.two-path-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.path-block {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.path-title {
    text-align: left;
    margin-bottom: 30px;
    font-size: 1.4rem;
    color: var(--text-head);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.path-title span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brand-primary);
}

.process-flow {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 15px;
}

.process-step {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    border: 1px solid transparent;
}

.process-step strong {
    display: block;
    color: var(--text-head);
    font-size: 1rem;
    margin-bottom: 8px;
}

.highlight-step {
    background: rgba(41, 98, 255, 0.05);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 20px rgba(41, 98, 255, 0.1);
}

.highlight-step strong { color: var(--brand-primary); }

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #CBD5E1;
    font-weight: bold;
}

/* --- NEW: ZIG-ZAG BACKEND PROOF --- */
.zig-zag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 100px;
}

.zig-zag-row.reverse {
    flex-direction: row-reverse;
}

.zig-zag-row:last-child {
    margin-bottom: 0;
}

.zz-text { flex: 1; text-align: left; }
.zz-text h3 { font-size: 2rem; margin-bottom: 15px; }
.zz-text p { font-size: 1.1rem; color: var(--text-main); }
.zz-image { flex: 1; }


/* --- GLOBAL SECTION --- */
.bg-gradient { 
    background-color: var(--bg-dark);
    background-image: linear-gradient(180deg, var(--bg-dark) 0%, rgba(41,98,255,0.1) 50%, var(--bg-dark) 100%);
    color: var(--text-white);
}

.bg-gradient .section-sub {
    color: rgba(255, 255, 255, 0.8);
}

/* --- GAP FIX: Feature Grid to Pricing --- */
.section-padding.feature-grid { padding-bottom: 20px; }
#pricing.section-padding { padding-top: 20px; }

/* --- PRICING SECTION --- */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px; 
}

.toggle-switch {
    width: 60px;
    height: 32px;
    background: #E2E8F0; 
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    border: 1px solid #CBD5E1;
}

.toggle-slider {
    width: 26px;
    height: 26px;
    background: #FFFFFF; 
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-switch.annual { background: var(--brand-primary); border-color: var(--brand-primary); }
.toggle-switch.annual .toggle-slider { left: 30px; background: #FFFFFF; }

.toggle-label { font-weight: 600; color: var(--text-main); transition: 0.3s; opacity: 0.6; }
.toggle-label.active { color: var(--brand-primary); opacity: 1; font-weight: 700; }

.discount-badge {
    background: #FFD700; 
    color: #000;
    font-size: 0.85rem;  
    padding: 4px 10px;   
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--brand-primary);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(41, 98, 255, 0.25); 
}

.best-value {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-header h3 { font-size: 1.5rem; margin-bottom: 5px; }
.price-header p { font-size: 0.9rem; margin-bottom: 10px; }

.price-amount {
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.currency { font-size: 1.5rem; margin-top: 5px; margin-right: 2px; }
.amount { font-size: 3.5rem; font-weight: 700; font-family: var(--font-head); }
.period { font-size: 1rem; color: #64748B; align-self: flex-end; margin-bottom: 8px; margin-left: 5px; }

.billing-text {
    font-size: 0.85rem;
    color: #64748B;
    margin-top: -5px; 
    margin-bottom: 5px;
    font-weight: 500;
}

/* --- STAT STRIP --- */
.stat-strip {
    background: #F0F7FF; 
    border: 1px solid rgba(41, 98, 255, 0.15);
    padding: 20px 30px;
    border-radius: 24px; 
    margin: 50px auto 0;
    max-width: 850px;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    text-align: left;
}

/* Adjusts badge alignment with top row of text */
.stat-strip .fact-badge {
    margin-top: 2px;
}

.fact-badge {
    background: var(--brand-primary);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    flex-shrink: 0; 
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #F8F9FC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    background: #FFFFFF;
}

.faq-item.active {
    background: #FFFFFF;
    border-color: var(--brand-primary);
    box-shadow: 0 10px 25px -5px rgba(41, 98, 255, 0.15);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-head);
    font-family: var(--font-head);
    transition: color 0.3s;
}

.faq-item.active .faq-question {
    color: var(--brand-primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand-primary);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-content {
    overflow: hidden;
    color: var(--text-main);
    line-height: 1.6;
}

.faq-content p {
    padding: 0 25px 20px;
    margin: 0;
}

.faq-content p + p {
    margin-top: 10px;
}

/* --- FOOTER --- */
footer {
    padding: 80px 0 40px;
    background-color: var(--bg-dark); 
    color: var(--text-white);         
    text-align: center;
    margin-top: 60px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.footer-cta {
    margin-bottom: 60px;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: 20px;
}

.bg-dark { background-color: var(--bg-dark); }
.text-white { color: #fff; }

/* --- WIDGET DEMO --- */
.demo-widget-wrapper {
    position: relative;
    height: 100px;       
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

#demo-trigger-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 22px 32px; 
    font-size: 26px; 
    background-color: #2962FF; 
    color: white;
    border: none;
    border-radius: 80px; 
    cursor: default; 
    z-index: 10;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, opacity 0.3s ease;
}

#demo-trigger-button::before {
    content: '';
    position: absolute;
    right: 14px; 
    bottom: -10px; 
    width: 50px;
    height: 30px;
    background-color: inherit; 
    transform: rotate(45deg) skewX(45deg);
    border-radius: 6px;
    z-index: -1; 
}

/* =========================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================= */

/* Tablet & Smaller Laptops (Max Width 1024px) */
@media (max-width: 1024px) {
    .container { max-width: 90%; }
    .hero .hero-title { font-size: 3rem; }
    .price-card.featured { transform: scale(1.02); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .zig-zag-row { gap: 40px; }
    
    /* Mobile Menu Structure */
    .mobile-menu-btn { display: block; }
    .nav-flex { flex-wrap: wrap; justify-content: space-between; }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 15px;
    }
    
    .nav-ctas {
        display: none !important;
        width: 100%;
        flex-direction: column;
        padding-bottom: 20px;
    }

   .nav-links.active { display: flex; }
    .nav-ctas.active { display: flex !important; }
    .nav-ctas.active .btn { 
        width: 100%; 
        display: inline-flex;
        justify-content: center; 
        align-items: center;
        margin-bottom: 10px; 
    }
    
    header.menu-open { background: var(--bg-dark); }
}

/* Mobile & Tablets (Max Width 768px) */
@media (max-width: 768px) {
    
    html, body { width: 100%; max-width: 100vw; overflow-x: hidden; }
    .container { width: 100%; max-width: 100vw; padding: 0 15px; box-sizing: border-box; }
    .section-padding { padding: 50px 0; }
    .hero { padding: 110px 0 50px; overflow: hidden; }
    .hero-glow { display: none; }
    
    .logo-wrapper img { width: 200px; } 
    
    .hero .hero-title { font-size: 2.2rem; line-height: 1.1; word-break: break-word; }
    .hero-sub { font-size: 1.1rem; padding: 0 10px; }
    .section-header h2 { font-size: 1.8rem; word-break: break-word; }
    
    .text-huge { font-size: 2.2rem !important; word-break: break-word; }
    .phone-frame { width: 100%; max-width: 280px; height: 460px; margin: 0 auto; }
    img, svg, .shadow-img { max-width: 100% !important; height: auto; }
    
    .hero-grid, .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }

    .hero-text { text-align: center; }
    .hero-cta-group { align-items: center; }

    /* TWO-PATH STACKING FOR MOBILE */
    .path-block { padding: 25px 15px; }
    .path-title { flex-direction: column; text-align: center; align-items: center; gap: 5px; }
    .process-flow { flex-direction: column; align-items: stretch; gap: 5px; }
    .process-step { padding: 15px; text-align: center; }
    
    /* Rotate the arrow to point down on mobile */
    .step-arrow { 
        transform: rotate(90deg); 
        padding-top: 0; 
        margin: 5px 0;
    }

    /* ZIG-ZAG STACKING FOR MOBILE */
    .zig-zag-row, .zig-zag-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
        text-align: center;
    }
    .zz-text { text-align: center; }

    .stat-strip {
        flex-direction: column;
        border-radius: 20px;
        text-align: center;
        gap: 15px;
    }

    .price-card.featured { 
        transform: scale(1); 
        margin-bottom: 10px;
    }
    
    footer { border-radius: 30px 30px 0 0; }
}

/* Small Phones (Max Width 480px) */
@media (max-width: 480px) {
    .hero .hero-title { font-size: 2rem; }
    .btn { width: 100%; text-align: center; }
    .toggle-container { flex-direction: row; gap: 8px; }
    .toggle-label { font-size: 0.85rem; display: flex; flex-direction: column; align-items: center; }
    .discount-badge { margin-left: 0; margin-top: 4px; font-size: 0.7rem; padding: 2px 6px; }
}

/* --- IMAGE LIGHTBOX MODAL --- */
.zoomable-img {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zoomable-img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(41, 98, 255, 0.25);
}

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 10, 25, 0.85);
    backdrop-filter: blur(5px);
}

.img-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.img-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.img-modal-close:hover,
.img-modal-close:focus {
    color: var(--brand-primary);
    text-decoration: none;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
