/* Smart Tools Section Stylesheet */

.smart-tools {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    overflow: hidden;
}

.smart-tools__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .smart-tools__inner {
        grid-template-columns: 420px 1fr;
    }
}

.smart-tools__heading {
    font-size: clamp(2.15rem, 3.5vw, 2.95rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 2.2rem;
    background: linear-gradient(135deg, #0f172a 20%, #1e40af 65%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.smart-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.smart-tab-item {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.01);
}

.smart-tab-item:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(203, 213, 225, 0.8);
    transform: translateY(-1px);
}

.smart-tab-item.active {
    background: #ffffff;
    border-color: rgba(226, 232, 240, 0.5);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 8px 10px -6px rgba(37, 99, 235, 0.08);
}

/* Active Border Left Indicator */
.smart-tab-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: #2563eb;
    opacity: 0;
    transform: scaleY(0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-tab-item.active::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Tab Header Row (Title and Chevron) */
.smart-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.smart-tab-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #475569;
    transition: color 0.3s ease;
}

.smart-tab-item.active .smart-tab-title {
    color: #0f172a;
}

.smart-tab-chevron {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.smart-tab-item.active .smart-tab-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Collapsible Description Block */
.smart-tab-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-tab-item.active .smart-tab-body {
    max-height: 140px; /* Safe bounds for 2 lines + button */
    opacity: 1;
    margin-top: 0.85rem;
}

.smart-tab-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.smart-tab-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    gap: 4px;
    transition: transform 0.2s ease;
}

.smart-tab-link:hover {
    transform: translateX(4px);
}

/* Right Column: Glassmorphism Card + Mockup Window */
.smart-preview-container {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.mockup-window {
    width: 100%;
    background: #0f172a;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-preview-container:hover .mockup-window {
    transform: translateY(-4px);
}

.mockup-header {
    height: 40px;
    background: #1e293b;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.mockup-dot--red { background: #ef4444; }
.mockup-dot--yellow { background: #eab308; }
.mockup-dot--green { background: #22c55e; }

.mockup-address {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    height: 22px;
    margin-left: auto;
    flex: 1;
    max-width: 240px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-family: monospace;
    font-size: 0.7rem;
    color: #64748b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mockup-body {
    width: 100%;
    position: relative;
    padding-top: 58%; /* Close to 16:10 premium display ratio */
    background: #0b0f19;
}

.mockup-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.98);
    transition: opacity 0.4s ease-in-out, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-image.active {
    opacity: 1;
    transform: scale(1);
}


.features-grid--flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ==========================================================================
   PREMIUM BENEFIT CARDS (WHY SECTION UPGRADE)
   ========================================================================== */

.why {
    background: #ffffff;
    padding: 6rem 0;
}

.premium-benefits-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.75rem;
    margin-top: 3.5rem;
}

@media (min-width: 640px) {
    .premium-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .premium-benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    width: 20rem;
    max-width: 100%;
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-8px);
}

/* Card Themes with Modern Gradient Backgrounds & Colored Shadows */
.benefit-card--yellow {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.03);
}
.benefit-card--yellow:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.12);
}

.benefit-card--teal {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border-color: rgba(13, 148, 136, 0.2);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.03);
}
.benefit-card--teal:hover {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.12);
}

.benefit-card--purple {
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border-color: rgba(147, 51, 234, 0.2);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.03);
}
.benefit-card--purple:hover {
    border-color: rgba(147, 51, 234, 0.4);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.12);
}

.benefit-card--blue {
    background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
    border-color: rgba(2, 132, 199, 0.2);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.03);
}
.benefit-card--blue:hover {
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
}

.benefit-card--rose {
    background: linear-gradient(135deg, #fff1f2 0%, #fff5f5 100%);
    border-color: rgba(225, 29, 72, 0.2);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.03);
}
.benefit-card--rose:hover {
    border-color: rgba(225, 29, 72, 0.4);
    box-shadow: 0 20px 40px rgba(225, 29, 72, 0.12);
}

/* Custom Cohesive Button System Inside Cards */
.benefit-card .btn {
    font-size: 0.85rem;
    padding: 0.65rem 1.35rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

/* Yellow Card Buttons */
.benefit-card--yellow .btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #ffffff;
}
.benefit-card--yellow .btn-primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}
.benefit-card--yellow .btn-outline {
    background: transparent;
    border: 1.5px solid rgba(217, 119, 6, 0.35);
    color: #d97706;
}
.benefit-card--yellow .btn-outline:hover {
    background: rgba(245, 158, 11, 0.05);
    border-color: #d97706;
    transform: translateY(-2px);
}

/* Teal Card Buttons */
.benefit-card--teal .btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border: none;
    color: #ffffff;
}
.benefit-card--teal .btn-primary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
    transform: translateY(-2px);
}
.benefit-card--teal .btn-outline {
    background: transparent;
    border: 1.5px solid rgba(13, 148, 136, 0.35);
    color: #0d9488;
}
.benefit-card--teal .btn-outline:hover {
    background: rgba(13, 148, 136, 0.05);
    border-color: #0d9488;
    transform: translateY(-2px);
}

/* Purple Card Buttons */
.benefit-card--purple .btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    border: none;
    color: #ffffff;
}
.benefit-card--purple .btn-primary:hover {
    background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 100%);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
}

/* Blue Card Buttons */
.benefit-card--blue .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
}
.benefit-card--blue .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* Rose Card Buttons */
.benefit-card--rose .btn-primary {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: none;
    color: #ffffff;
}
.benefit-card--rose .btn-primary:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
    transform: translateY(-2px);
}

.benefit-card__icon-top {
    font-size: 1.8rem;
    margin-bottom: 0.85rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}


/* Typography inside cards */
.benefit-card__title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.benefit-card__desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1.25rem;
}

/* Illustration Container */
.benefit-card__illustration {
    margin-top: auto;
    width: 100%;
    height: 130px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Illustration 1: Cut Costs (Orbiting dollar) */
.ill-costs {
    position: relative;
    width: 130px;
    height: 130px;
}

.ill-costs__orbit-1, .ill-costs__orbit-2 {
    position: absolute;
    border: 1.5px dashed rgba(245, 158, 11, 0.25);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ill-costs__orbit-1 {
    width: 120px;
    height: 120px;
}

.ill-costs__orbit-2 {
    width: 80px;
    height: 80px;
}

.ill-costs__center {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ill-costs__center i {
    color: #ffffff;
    font-size: 1rem;
}

.ill-costs__icon {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 1px solid #fef3c7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f59e0b;
    font-size: 0.7rem;
}

.ill-costs__icon--1 {
    top: 8px;
    right: 8px;
}

.ill-costs__icon--2 {
    bottom: 18px;
    left: -2px;
}

.ill-costs__icon--3 {
    bottom: 5px;
    right: 18px;
}

/* Illustration 2: Crush Productivity (Floating capsules) */
.ill-prod {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    width: 100%;
}

.ill-prod__tag {
    background: rgba(13, 148, 136, 0.08);
    border: 1.5px solid rgba(13, 148, 136, 0.15);
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d9488;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.03);
    transition: transform 0.3s ease;
}

.ill-prod__tag i {
    font-size: 0.7rem;
    color: #0d9488;
}

.ill-prod__tag--1 {
    transform: translateX(10px);
}

.ill-prod__tag--2 {
    transform: translateX(25px);
    background: rgba(13, 148, 136, 0.14);
}

.ill-prod__tag--3 {
    transform: translateX(0px);
}

.benefit-card:hover .ill-prod__tag--1 {
    transform: translateX(15px);
}

.benefit-card:hover .ill-prod__tag--2 {
    transform: translateX(30px);
}

.benefit-card:hover .ill-prod__tag--3 {
    transform: translateX(5px);
}

/* Illustration 3: Keep Compliant (Semi-circle & avatar) */
.ill-comp {
    position: relative;
    width: 130px;
    height: 130px;
}

.ill-comp__arc {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(147, 51, 234, 0.18);
    border-radius: 50%;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    clip-path: inset(0 0 50% 0); /* Arc shape top half only */
}

.ill-comp__avatar {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 18px rgba(147, 51, 234, 0.2);
    overflow: hidden;
    background: #e9d5ff;
}

.ill-comp__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ill-comp__avatar-badge {
    position: absolute;
    bottom: 30px;
    right: 34px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    border: 1.5px solid #ffffff;
    z-index: 3;
}

.ill-comp__icon {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 1px solid #f3e8ff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9333ea;
    font-size: 0.65rem;
    z-index: 2;
}

.ill-comp__icon--1 {
    top: 38px;
    left: -12px;
}

.ill-comp__icon--2 {
    top: 2px;
    left: 12px;
}

.ill-comp__icon--3 {
    top: 2px;
    right: 12px;
}

.ill-comp__icon--4 {
    top: 38px;
    right: -12px;
}

/* Illustration 4: Have Full Oversight (Wave & badge) */
.ill-over {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 0;
}

.ill-over__chart-area {
    position: relative;
    width: 100%;
    height: 80px;
    margin-bottom: 6px;
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.1);
}

.ill-over__grid-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
}

.ill-over__grid-line {
    width: 1px;
    height: 100%;
    background: rgba(2, 132, 199, 0.04);
}

/* Custom SVG line representing wave chart */
.ill-over__wave-svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 52px;
}

/* Highlights column bar */
.ill-over__bar {
    position: absolute;
    bottom: 0;
    left: 77%; /* Positioned on Friday */
    transform: translateX(-50%);
    width: 18px;
    height: 56px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 4px 4px 0 0;
    border-left: 1.2px dashed rgba(2, 132, 199, 0.3);
    border-right: 1.2px dashed rgba(2, 132, 199, 0.3);
}

.ill-over__badge {
    position: absolute;
    bottom: 62px;
    left: 77%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 1px 4px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #0284c7;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.12);
    white-space: nowrap;
}

.ill-over__days {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 0 2px;
}

/* Custom premium micro-animations for benefit-card illustrations */

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes floatRobot {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}

@keyframes pulseOpacity {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes pulseBadge {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.08); box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25); }
}

@keyframes drawWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.08); }
}

/* Hover Animation Triggers */
.benefit-card:hover .ill-costs__center {
    animation: floatIcon 2.4s ease-in-out infinite;
}
.benefit-card:hover .ill-costs__icon--1 {
    animation: floatIcon 2.2s ease-in-out infinite 0.2s;
}
.benefit-card:hover .ill-costs__icon--2 {
    animation: floatIcon 2.2s ease-in-out infinite 0.4s;
}
.benefit-card:hover .ill-costs__icon--3 {
    animation: floatIcon 2.2s ease-in-out infinite 0.6s;
}

.benefit-card:hover .ill-prod__tag {
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.12);
}

.benefit-card:hover .ill-comp__avatar {
    animation: floatRobot 2.5s ease-in-out infinite;
}
.benefit-card:hover .ill-comp__arc {
    border-color: rgba(147, 51, 234, 0.4);
    animation: pulseOpacity 1.5s ease-in-out infinite;
}
.benefit-card:hover .ill-comp__icon {
    animation: floatIcon 2s ease-in-out infinite;
}

.benefit-card:hover .ill-over__badge {
    animation: pulseBadge 2s ease-in-out infinite;
}
.benefit-card:hover .ill-over__wave-svg {
    animation: drawWave 3s ease-in-out infinite;
    transform-origin: bottom;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .smart-preview-container {
        padding: 0.75rem;
        border-radius: 20px;
    }
    .smart-tools {
        padding: 4rem 0;
    }
    .smart-tab-item {
        padding: 1rem;
        border-radius: 12px;
    }
    .smart-tools__inner {
        gap: 2rem;
    }
}