/* =========================================================
   SECOND SECTION — "Easy Social Media Automation"
   Rebuilt without the stock icon-collage image.
   Visual is a live "auto-broadcast" animation instead:
   a central node pulsing links out to WhatsApp / Telegram / X,
   which actually demonstrates what the feature does.
========================================================= */

:root {
    --auto-blue: #2e5af8;
    --auto-violet: #5A4BFF;
    --auto-grad: linear-gradient(135deg, var(--auto-blue), var(--auto-violet));
    --auto-ink: #10132b;
    --auto-muted: #666;
    --auto-line: #eceafc;
}

.second {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    min-height: 100vh;
    padding: 85px 5%;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
}

/* soft ambient glow behind everything, ties to brand gradient */
.second::before {
    content: "";
    position: absolute;
    top: 10%;
    right: 5%;
    width: 520px;
    height: 520px;
    background: var(--auto-grad);
    opacity: 0.08;
    filter: blur(110px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* =========================
   LEFT TEXT CONTENT
========================= */
.second-page-text {
    flex: 0.95;
    max-width: 500px;
    font-family: proxima-nova-black, sans-serif;
    position: relative;
    z-index: 1;
}

.second-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--auto-violet);
    margin-bottom: 18px;
}

.second-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auto-grad);
}

/* Section heading */
.second-page-text h2 {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
    color: var(--auto-ink);
}

/* Animated underline for heading */
.second-page-text h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--auto-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.second-page-text h2:hover::after {
    transform: scaleX(1);
}

/* Description paragraph */
.desc {
    font-size: 19px;
    color: var(--auto-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

/* =========================
   FEATURE POINTS — 2-up grid of check cards
========================= */
.points ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.points li {
    font-size: 16px;
    font-weight: 600;
    color: var(--auto-ink);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8ff;
    border: 1px solid var(--auto-line);
    border-radius: 14px;
    padding: 14px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.points li:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -14px rgba(90, 75, 255, 0.35);
    border-color: transparent;
}

/* Custom checkmark icon */
.points li::before {
    content: "\2713";
    width: 26px;
    height: 26px;
    background: var(--auto-grad);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* =========================
   SECOND SECTION BUTTON
========================= */
.second-page-text button {
    margin-top: 10px;
    padding: 16px 34px;
    border: none;
    border-radius: 12px;
    background: var(--primary-button-color, var(--auto-grad));
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
    box-shadow: 0 14px 30px -10px rgba(90, 75, 255, 0.45);
}

.second-page-text button::after {
    content: "\2192";
    transition: transform 0.25s ease;
}

.second-page-text button:hover {
    background: var(--primary-button-hover-color, var(--auto-violet));
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(90, 75, 255, 0.55);
}

.second-page-text button:hover::after {
    transform: translateX(4px);
}

/* =========================================================
   RIGHT SIDE — 3D AUTOMATION DASHBOARD SHOWCASE
   High-converting 3D character + dashboard visual with
   ambient radiant lighting and floating micro-benefit pills.
========================================================= */
.automation-3d-visual {
    position: relative;
    flex: 1.45;
    max-width: 860px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.automation-3d-stage {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Radiant ambient backlight */
.automation-3d-glow {
    position: absolute;
    top: 42%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 92%;
    height: 92%;
    background: radial-gradient(circle, rgba(90, 75, 255, 0.22) 0%, rgba(46, 90, 248, 0.09) 42%, transparent 72%);
    filter: blur(55px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* 3D Dashboard image with subtle floating and elevation drop shadow */
.automation-3d-img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 24px 42px rgba(90, 75, 255, 0.16));
    animation: dashboard3dFloat 6s ease-in-out infinite;
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform;
}

.automation-3d-img:hover {
    transform: translateY(-6px) scale(1.015);
    filter: drop-shadow(0 32px 55px rgba(90, 75, 255, 0.28));
}

@keyframes dashboard3dFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =========================================================
   BOTTOM PLATFORM DOCK (Instagram, Telegram, WhatsApp, WordPress, Shortener)
========================================================= */
.automation-platforms-dock {
    position: relative;
    margin-top: 18px;
    margin-bottom: 6px;
    align-self: flex-end;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(228, 225, 250, 0.95);
    border-radius: 50px;
    padding: 13px 26px;
    box-shadow: 0 18px 42px -12px rgba(16, 19, 43, 0.16), 0 2px 8px rgba(90, 75, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.automation-platforms-dock:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -10px rgba(90, 75, 255, 0.25);
}

.dock-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--auto-muted);
    padding-right: 15px;
    border-right: 1px solid rgba(16, 19, 43, 0.12);
    white-space: nowrap;
}

.dock-title i {
    color: var(--auto-violet);
    font-size: 13px;
}

.dock-icons-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-dock-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 30px;
    background: #f8f9ff;
    border: 1px solid rgba(228, 225, 250, 0.85);
    font-size: 13px;
    font-weight: 700;
    color: var(--auto-ink);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.platform-dock-item i {
    font-size: 15px;
    transition: transform 0.25s ease;
}

.platform-dock-item:hover {
    transform: translateY(-3px) scale(1.05);
    background: #ffffff;
}

.platform-dock-item:hover i {
    transform: scale(1.15);
}

/* WhatsApp */
.dock-whatsapp i {
    color: #25D366;
}
.dock-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.35);
}

/* Telegram */
.dock-telegram i {
    color: #229ED9;
}
.dock-telegram:hover {
    border-color: rgba(34, 158, 217, 0.45);
    box-shadow: 0 8px 20px -4px rgba(34, 158, 217, 0.35);
}

/* Instagram */
.dock-instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dock-instagram:hover {
    border-color: rgba(220, 39, 67, 0.45);
    box-shadow: 0 8px 20px -4px rgba(220, 39, 67, 0.35);
}

/* WordPress */
.dock-wordpress i {
    color: #21759b;
}
.dock-wordpress:hover {
    border-color: rgba(33, 117, 155, 0.45);
    box-shadow: 0 8px 20px -4px rgba(33, 117, 155, 0.35);
}

/* Link Shortener */
.dock-shortener i {
    background: var(--auto-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dock-shortener:hover {
    border-color: rgba(90, 75, 255, 0.45);
    box-shadow: 0 8px 20px -4px rgba(90, 75, 255, 0.35);
}

/* Floating animation (also reused by nodes/badge above) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.node-c { animation-name: floatCenter; }
@keyframes floatCenter {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* =========================
   BACKGROUND WAVE EFFECT
========================= */
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* =========================
   SCROLL REVEAL (paired with second.js)
========================= */
.second [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
}
.second [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

.auto-hub [data-pop] {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.auto-hub.in-view [data-pop] {
    opacity: 1;
    transform: scale(1);
}
.auto-hub.in-view .node-a { transition-delay: 0.15s; }
.auto-hub.in-view .node-b { transition-delay: 0.3s; }
.auto-hub.in-view .node-c { transition-delay: 0.45s; }
.auto-hub.in-view .auto-badge { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
    .second [data-reveal],
    .automation-3d-visual [data-pop],
    .auto-hub [data-pop] { opacity: 1; transform: none; transition: none; }
    .automation-3d-img, .platform-dock-item {
        animation: none !important;
    }
}

/* =========================
   RESPONSIVE SECOND SECTION 
========================= */
@media (max-width: 1024px) {
    .second {
        flex-direction: column;
        min-height: auto;
        padding: 80px 6%;
        gap: 50px;
    }
    .second-page-text { max-width: 100%; flex: 1; }
    .points ul { grid-template-columns: 1fr; }
    .automation-3d-visual { max-width: 100%; margin: 0 auto; width: 100%; }
    .automation-platforms-dock { 
        margin-top: 14px; 
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .second {
        padding: 55px 6%;
        gap: 0;
    }
    .second-page-text {
        max-width: 100%;
        width: 100%;
    }
    .second-page-text h2 { 
        font-size: 32px; 
    }
    
    /* Hide 3D dashboard visual and connected app dock on mobile */
    .automation-3d-visual {
        display: none !important;
    }
}

@media (max-width: 440px) {
    .second-page-text h2 { font-size: 28px; }
    .platform-dock-item {
        padding: 5px 9px;
        font-size: 11px;
    }
}


/* =========================================================
   SECTION 3 — "The Power Behind Top Affiliates"
========================================================= */

:root {
    --cap-blue: #2e5af8;
    --cap-violet: #7b2ff7;
    --cap-grad: linear-gradient(135deg, var(--cap-blue), var(--cap-violet));
    --cap-ink: #0b1130;
    --cap-muted: #5b6178;
    --cap-line: #e2e8f0;
    --cap-bg-soft: #f8fafc;
    --cap-card: #ffffff;
    --cap-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.third {
    display: block;
    width: 100%;
    padding: 70px 5% 80px;
    box-sizing: border-box;
    font-family: var(--primary-font, proxima-nova-black, sans-serif);
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.third::before {
    display: none;
}

/* ---------- 2-column container ---------- */
.cap-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.cap-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.cap-header {
    margin: 0 0 16px;
    text-align: left;
}

.cap-title {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 14px;
    font-family: 'Plus Jakarta Sans', var(--primary-font, sans-serif);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
    text-align: left;
}

.cap-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(123, 47, 247, 0.16));
    border: 1px solid rgba(123, 47, 247, 0.25);
    color: #7b2ff7;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(123, 47, 247, 0.12);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cap-sidebar:hover .cap-badge-icon {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(123, 47, 247, 0.22);
}

.cap-title-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7b2ff7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cap-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 24px;
    text-align: left;
}

.cap-sidebar-action {
    display: block;
    text-align: left;
}

.cap-sidebar-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #0f172a;
    border: 1px solid #0f172a;
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cap-sidebar-btn:hover {
    background: #1e293b;
    border-color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.cap-sidebar-btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

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

.cap-content {
    flex: 1;
    min-width: 0;
}

/* ---------- deck shell ---------- */
.cap-deck {
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ---------- story timer bar ---------- */
.cap-timer {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 22px;
}

.cap-seg {
    position: relative;
    height: 4px;
    border-radius: 4px;
    background: var(--cap-line);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.cap-seg i {
    position: absolute;
    inset: 0;
    left: 0;
    width: 0%;
    display: block;
    background: var(--cap-grad);
    border-radius: 4px;
    font-style: normal;
}

.cap-seg.is-done i {
    width: 100%;
    transition: none;
}

.cap-seg.is-active i {
    width: 0%;
    animation: capFill 4s linear forwards;
}

.cap-deck.is-paused .cap-seg.is-active i {
    animation-play-state: paused;
}

@keyframes capFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* ---------- stage (the big highlighted slide) ---------- */
.cap-stage {
    position: relative;
    background: var(--cap-card);
    border: 1px solid var(--cap-line);
    border-radius: 28px;
    box-shadow: var(--cap-shadow);
    min-height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cap-stage:focus-visible {
    outline: 2px solid var(--cap-violet);
    outline-offset: 4px;
}

.cap-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 44px 58px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.16,.8,.3,1);
    pointer-events: none;
}

.cap-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.cap-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--tint, var(--cap-violet));
    background: color-mix(in srgb, var(--tint, var(--cap-violet)) 12%, white);
    box-shadow: 0 18px 38px -16px color-mix(in srgb, var(--tint, var(--cap-violet)) 50%, transparent);
}

.cap-copy {
    min-width: 0;
    max-width: 500px;
}

.cap-count {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cap-muted);
    margin-bottom: 10px;
}

.cap-copy h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--cap-ink);
    margin: 0 0 10px;
    line-height: 1.25;
}

.cap-copy p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--cap-muted);
    margin: 0;
}

/* arrows */
.cap-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--cap-line);
    background: #fff;
    color: var(--cap-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 2;
}

.cap-arrow:hover {
    background: var(--cap-grad);
    color: #fff;
    border-color: transparent;
}

.cap-prev { left: 18px; }
.cap-next { right: 18px; }

/* ---------- icon rail ---------- */
.cap-rail {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 14px 10px;
}

.cap-rail-track {
    position: absolute;
    left: 30px;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: var(--cap-line);
    z-index: 0;
}

.cap-node {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--cap-line);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    color: var(--cap-muted);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.cap-node:hover {
    transform: translateY(-3px);
}

.cap-node.is-active {
    color: var(--tint, var(--cap-violet));
    border-color: var(--tint, var(--cap-violet));
    box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--tint, var(--cap-violet)) 60%, transparent);
    transform: translateY(-4px) scale(1.08);
}

/* ---------- scroll reveal (matches second.js pattern) ---------- */
.third [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
}
.third [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .third [data-reveal] { opacity: 1; transform: none; transition: none; }
    .cap-slide { transition: opacity 0.3s ease; }
    .cap-seg.is-active i { animation: none; width: 0%; }
}

/* =========================
   RESPONSIVE THIRD SECTION 
========================= */
@media (max-width: 960px) {
    .cap-container {
        flex-direction: column;
        gap: 36px;
    }
    .cap-sidebar {
        flex: 0 0 auto;
        max-width: 100%;
        position: static;
        text-align: center;
    }
    .cap-header {
        text-align: center;
    }
    .cap-title {
        align-items: center;
        text-align: center;
    }
    .cap-lead {
        text-align: center;
        max-width: 580px;
        margin: 0 auto 20px;
    }
    .cap-sidebar-action {
        text-align: center;
    }
}

@media (max-width: 860px) {
    .third { padding: 80px 6% 70px; }
    .cap-head h2, .cap-title { font-size: 1.65rem; }
    .cap-slide {
        flex-direction: column;
        text-align: center;
        gap: 22px;
        padding: 48px 32px;
    }
    .cap-copy p { max-width: 100%; }
    .cap-icon { width: 96px; height: 96px; font-size: 40px; }
    .cap-arrow { display: none; }
    .cap-stage { min-height: 380px; }
    .cap-timer { grid-template-columns: repeat(12, 1fr); gap: 4px; }
    .cap-rail { overflow-x: auto; justify-content: flex-start; gap: 12px; padding: 14px 10px; scrollbar-width: none; }
    .cap-rail::-webkit-scrollbar { display: none; }
    .cap-rail-track { display: none; }
    .cap-node { flex-shrink: 0; width: 44px; height: 44px; font-size: 16px; }
}

@media (max-width: 520px) {
    .cap-timer { grid-template-columns: repeat(12, 1fr); gap: 3px; }
    .cap-rail { overflow-x: auto; justify-content: flex-start; gap: 10px; padding: 14px 6px; }
    .cap-node { flex-shrink: 0; width: 42px; height: 42px; font-size: 15px; }
    .cap-copy h3 { font-size: 24px; }
}