/* Core Variables & Tokens based on Certipay Brand Guidelines */
:root {
    --primary-action: #F16323;
    /* Burnt Orange */
    --primary-action-hover: #d55318;
    --primary-brand: #1F884D;
    /* Sea Green */
    --primary-brand-light: #24AD5F;
    /* Eucalyptus */
    --deep-bg: #424142;
    /* Fuscous Grey */
    --body-text: #595958;
    /* Smoky */
    --border-divider: #C1C0C0;
    /* Silver */
    --bg-light: #F9F9F9;
    /* Off-white */
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--body-text);
    line-height: 1.6;
    background-color: var(--white);
}

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

h1,
h2,
h3,
h4 {
    color: var(--deep-bg);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-action);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(241, 99, 35, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-action-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(241, 99, 35, 0.35);
}

.btn-secondary {
    background-color: var(--primary-action);
    color: var(--white);
    font-size: 1.1rem;
    padding: 14px 32px;
    box-shadow: 0 4px 14px rgba(241, 99, 35, 0.2);
}

.btn-secondary:hover {
    background-color: var(--primary-action-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(241, 99, 35, 0.35);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--deep-bg);
    border-color: var(--white);
    transform: translateY(-2px) scale(1.02);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-header-cta {
    background-color: var(--primary-action);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(241, 99, 35, 0.2);
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn-header-cta:hover {
    background-color: var(--primary-action-hover);
    color: var(--white);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 16px rgba(241, 99, 35, 0.35);
}

/* Header & Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(66, 65, 66, 0.95) 0%, rgba(23, 56, 36, 0.95) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    transition: background 0.3s ease;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-brand-light) 0%, var(--primary-action) 100%);
    opacity: 0.85;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

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

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

.nav-phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-phone:hover {
    color: var(--primary-brand-light);
}

.phone-icon {
    width: 16px;
    height: 16px;
    stroke: var(--primary-action);
    display: inline-block;
    vertical-align: middle;
    transition: stroke 0.2s ease;
}

.nav-phone:hover .phone-icon,
.footer-phone a:hover .phone-icon {
    stroke: var(--primary-brand-light);
}

/* Block 1: Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 25%, rgba(36, 173, 95, 0.06), transparent 50%),
                radial-gradient(circle at 20% 75%, rgba(241, 99, 35, 0.18), transparent 50%),
                linear-gradient(to bottom, #393839 0%, var(--deep-bg) 100%);
    color: var(--white);
    padding: 120px 0;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero .shape {
    position: absolute;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero .shape img {
    filter: grayscale(90%);
    opacity: 0.05;
    display: block;
}

.hero .shape-1 {
    top: 10%;
    left: 5%;
}

.hero .shape-2 {
    top: 65%;
    left: 12%;
}

.hero .shape-3 {
    top: 15%;
    left: 42%;
}

.hero .shape-4 {
    top: 75%;
    left: 50%;
}

.hero .shape-5 {
    top: 22%;
    left: 82%;
}

.hero .shape-6 {
    top: 70%;
    left: 88%;
}

.hero .shape-7 {
    top: 40%;
    left: 22%;
}

.hero .shape-8 {
    top: 45%;
    left: 62%;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--primary-brand-light);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #E0E0E0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1.2;
}

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

.hero-graphic {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

/* Dashboard Mockup Styling */
.dashboard-mockup {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-metric .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.mockup-metric .val {
    font-weight: 600;
    font-size: 0.95rem;
}

.mockup-metric .val.green {
    color: var(--primary-brand-light);
}

.mockup-chart-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.mockup-chart-header {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    padding-top: 10px;
}

.mockup-bar-chart .bar {
    width: 12%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.mockup-bar-chart .bar.highlight-bar {
    background: linear-gradient(180deg, var(--primary-brand-light), var(--primary-brand));
}

/* Block 2: Social Proof */
.social-proof {
    background-color: var(--white);
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-divider);
}

.social-proof h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--deep-bg);
    margin-bottom: 40px;
    text-align: center;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 2px solid var(--border-divider);
    border-radius: 8px;
    padding: 24px;
    width: 100%;
    max-width: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    margin: 0 auto;
}

.logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-brand);
}

.logo-card img {
    height: 40px;
    max-width: 140px;
    margin-bottom: 12px;
    object-fit: contain;
    filter: grayscale(25%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--body-text);
}

.platform-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
    text-align: left;
}

.platform-detail-card {
    border: 1px solid rgba(193, 192, 192, 0.5);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.03), 0 2px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-detail-card:hover {
    transform: translateY(-4px);
}

/* Custom Platform Gradients & Hover States using :nth-child */
/* Sage Card (1st) */
.platform-details-grid .platform-detail-card:nth-child(1) {
    background: linear-gradient(145deg, #f4faf6 0%, #e8f5ed 100%);
}
.platform-details-grid .platform-detail-card:nth-child(1):hover {
    border-color: #1FB463;
    box-shadow: 0 12px 28px rgba(31, 180, 99, 0.08);
}

/* Magento Card (2nd) */
.platform-details-grid .platform-detail-card:nth-child(2) {
    background: linear-gradient(145deg, #fffaf6 0%, #fef0e7 100%);
}
.platform-details-grid .platform-detail-card:nth-child(2):hover {
    border-color: #F16323;
    box-shadow: 0 12px 28px rgba(241, 99, 35, 0.08);
}

/* WooCommerce Card (3rd) */
.platform-details-grid .platform-detail-card:nth-child(3) {
    background: linear-gradient(145deg, #faf7fc 0%, #f1e9f8 100%);
}
.platform-details-grid .platform-detail-card:nth-child(3):hover {
    border-color: #965BE6;
    box-shadow: 0 12px 28px rgba(150, 91, 230, 0.08);
}

/* Odoo Card (4th) */
.platform-details-grid .platform-detail-card:nth-child(4) {
    background: linear-gradient(145deg, #fcf6fc 0%, #f4e8f5 100%);
}
.platform-details-grid .platform-detail-card:nth-child(4):hover {
    border-color: #714B80;
    box-shadow: 0 12px 28px rgba(113, 75, 128, 0.08);
}

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

.platform-header img {
    height: 24px;
    max-width: 90px;
    object-fit: contain;
}

.platform-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--deep-bg);
}

.platform-detail-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--body-text);
    margin: 0;
}

.platform-detail-card p strong {
    color: var(--primary-brand);
}

/* Block 3: Value Props */
.value-props {
    background: linear-gradient(180deg, #f2f2f2 0%, #e2e2e2 100%);
    padding: 100px 0;
    text-align: center;
}

.value-props h2 {
    color: var(--primary-brand-light);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(145deg, #f3f3f3 0%, #ffffff 100%);
    border: 1px solid rgba(193, 192, 192, 0.4);
    border-left: 4px solid var(--primary-brand-light);
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 35px;
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transform: translateX(6px);
    border-color: var(--primary-brand);
}

.card .icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.card .card-content {
    flex-grow: 1;
}

.card h3 {
    color: var(--deep-bg);
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.card p {
    color: var(--body-text);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 30px;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
}

/* Block 4: Interactive Hook */
.interactive-hook {
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05), transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(241, 99, 35, 0.08), transparent 45%),
                linear-gradient(135deg, var(--deep-bg) 0%, #173824 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.interactive-hook h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.interactive-hook p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.wizard-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: var(--body-text);
}

.wizard-step h4 {
    text-align: left;
    margin-bottom: 15px;
    color: var(--deep-bg);
    font-size: 1.1rem;
    border-bottom: 1px solid #EEEEEE;
    padding-bottom: 8px;
}

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.wizard-checkbox {
    cursor: pointer;
    position: relative;
}

.wizard-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-tile {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid var(--border-divider);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--body-text);
    transition: all 0.2s ease;
    min-height: 70px;
}

.wizard-checkbox input:checked+.checkbox-tile {
    border-color: var(--primary-brand);
    background-color: rgba(36, 173, 95, 0.05);
    color: var(--primary-brand);
}

.wizard-checkbox:hover .checkbox-tile {
    background-color: var(--bg-light);
}

.wizard-checkbox input:checked:hover .checkbox-tile {
    background-color: rgba(36, 173, 95, 0.08);
}

/* Block 5: Contact Section */
.contact-section {
    background-color: var(--white);
    padding: 100px 0;
    border-top: 1px solid var(--border-divider);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--body-text);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-brand);
    font-size: 0.95rem;
}

.contact-form-container {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--deep-bg);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-divider);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-brand);
}

footer {
    position: relative;
    background: linear-gradient(90deg, #424142 0%, #173824 100%);
    color: var(--border-divider);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-brand-light) 0%, var(--primary-action) 100%);
    opacity: 0.85;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-phone a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-phone a:hover {
    opacity: 1;
    color: var(--primary-brand-light);
}

/* Responsive Styling */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-graphic {
        width: 100%;
    }

    .wizard-form {
        padding: 20px;
    }

    .platform-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Triggered Fade-In Animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fade-in-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry transitions for grids */
.platform-details-grid .fade-in-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.platform-details-grid .fade-in-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.platform-details-grid .fade-in-on-scroll:nth-child(3) { transition-delay: 0.25s; }
.platform-details-grid .fade-in-on-scroll:nth-child(4) { transition-delay: 0.35s; }

.value-props .grid .fade-in-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.value-props .grid .fade-in-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.value-props .grid .fade-in-on-scroll:nth-child(3) { transition-delay: 0.25s; }
.value-props .grid .fade-in-on-scroll:nth-child(4) { transition-delay: 0.35s; }