/* ========== PRODUCT HERO ========== */
.hero {
    background: linear-gradient(150deg, var(--brand-blue-deeper) 0%, var(--brand-blue) 50%, #2B6CB0 100%);
    color: var(--white);
    padding: 80px 24px 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-breadcrumb {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.hero-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.hero-breadcrumb a:hover {
    opacity: 0.9;
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.hero-sub {
    font-size: 19px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 640px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    padding: 14px 32px;
    font-size: 16px;
}

.hero-buttons .btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-buttons .btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ========== QUICK NAV (STICKY IN-PAGE NAV) ========== */
.quick-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: sticky;
    top: 72px;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.quick-nav-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-nav-inner::-webkit-scrollbar {
    display: none;
}

.quick-nav-link {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.quick-nav-link:hover {
    color: var(--brand-blue);
    background: var(--light-gray);
}

.quick-nav-link.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-red);
}

/* ========== SECTION STRUCTURE ========== */
.page-section {
    padding: 88px 24px;
}

.page-section.alt-bg {
    background: var(--light-gray);
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-red);
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.7;
}

/* ========== WHY VERTICAL ADVANTAGES GRID ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-blue);
    opacity: 0;
    transition: opacity 0.3s;
}

.why-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.why-card:hover::before {
    opacity: 1;
}

.why-icon {
    width: 52px;
    height: 52px;
    background: var(--light-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.why-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== ALTERNATING FEATURE BLOCKS ========== */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 72px 0;
    border-bottom: 1px solid var(--border-light);
}

.feature-block:last-child {
    border-bottom: none;
}

.feature-block.reversed .feature-text {
    order: 2;
}

.feature-block.reversed .feature-visual {
    order: 1;
}

.feature-text .feature-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    margin-bottom: 14px;
    background: var(--light-blue);
    padding: 6px 14px;
    border-radius: 20px;
}

.feature-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.feature-text .feature-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-highlight .check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.feature-highlight .check svg {
    width: 12px;
    height: 12px;
}

/* Feature visual container */
.feature-visual {
    background: linear-gradient(135deg, var(--light-blue) 0%, #D6E8F7 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231E4D99' fill-opacity='0.03'%3E%3Cpath d='M20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}

.visual-mock {
    position: relative;
    z-index: 1;
    text-align: center;
}

.visual-mock .mock-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.visual-mock p {
    font-size: 14px;
    color: var(--brand-blue);
    font-weight: 600;
    opacity: 0.6;
}

/* Expandable list item logic */
.feature-detail-toggle {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.feature-detail-toggle:hover {
    color: var(--brand-red);
}

.feature-detail-toggle .toggle-arrow {
    transition: transform 0.3s;
    font-size: 12px;
}

.feature-detail-toggle.open .toggle-arrow {
    transform: rotate(180deg);
}

.feature-detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.feature-detail-content.open {
    max-height: 600px;
    padding-top: 16px;
}

.detail-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.detail-list li {
    font-size: 13.5px;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}

.detail-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 16px;
}

/* ========== API / INTEGRATIONS GRID ========== */
.connect-section {
    background: linear-gradient(150deg, var(--brand-blue-deeper) 0%, var(--brand-blue) 100%);
    color: var(--white);
    padding: 88px 24px;
    position: relative;
    overflow: hidden;
}

.connect-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.connect-content {
    position: relative;
    z-index: 2;
}

.connect-section .section-label {
    color: #48BB78;
}

.connect-section .section-title {
    color: var(--white);
}

.connect-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.connect-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.connect-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.connect-card .scenario-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #48BB78;
    margin-bottom: 12px;
}

.connect-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.connect-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.connect-footer {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-footer p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.connect-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(145deg, var(--brand-blue-deeper) 0%, var(--brand-blue) 60%, #2B6CB0 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-section .cta-sub {
    font-size: 19px;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-buttons .btn-primary {
    padding: 16px 40px;
    font-size: 17px;
}

.cta-note {
    font-size: 15px;
    opacity: 0.7;
}

/* ========== CONVERSION SECTION ========== */
.conversion-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: start;
}

.conversion-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.conversion-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.conversion-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.conv-stat {
    flex: 1;
    background: var(--light-blue);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.conv-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1.2;
}

.conv-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.conversion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversion-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.conversion-list .num {
    width: 24px;
    height: 24px;
    background: var(--brand-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.conversion-visual {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.conversion-visual h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 24px;
    font-size: 18px;
    color: var(--text-primary);
}

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

.flow-node {
    background: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 200px;
}

.flow-node.highlighted {
    background: var(--light-blue);
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.flow-arrow {
    color: var(--brand-red);
    font-size: 20px;
    line-height: 1;
}

/* ========== PRODUCT RESPONSIVE STYLES ========== */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .feature-block {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 64px 20px 56px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .quick-nav {
        top: 0;
    }

    /* Since headers become relative/sticky, sync with mobile top */
    .quick-nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    .page-section {
        padding: 64px 20px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0;
    }

    .feature-block.reversed .feature-text {
        order: 1;
    }

    .feature-block.reversed .feature-visual {
        order: 2;
    }

    .feature-visual {
        min-height: 260px;
        padding: 24px;
    }

    .detail-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .conversion-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}