/* ===========================================
   SECTIONS.CSS - Shared Section Layouts
   =========================================== */

/* ============================================
   SECTION BASE
   ============================================ */
.section {
    padding: var(--space-12) 0;
}

.section.bg-muted {
    background: var(--bg-muted);
}

.section.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.section.bg-gradient h2,
.section.bg-gradient p {
    color: white;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    max-width: 800px;
    margin: 0 auto var(--space-12);
}

.section-header.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.features-hero,
.pricing-hero {
    padding-top: var(--space-12);
    padding-bottom: var(--space-6);
}

/* Hero Icon with Buzz Animation */
.features-hero-icon,
.pricing-hero-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto var(--space-4);
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

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

/* Buzz dots - talking effect */
.buzz-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    opacity: 0;
    animation: buzz 1.8s ease-in-out infinite;
}

.buzz-1 {
    top: 5px;
    right: -15px;
    animation-delay: 0s;
}

.buzz-2 {
    top: -5px;
    right: -25px;
    animation-delay: 0.3s;
}

.buzz-3 {
    top: 15px;
    right: -30px;
    animation-delay: 0.6s;
}

@keyframes buzz {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    20%, 80% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Hero Feature Pills */
.hero-feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin: var(--space-6) 0;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.hero-pill:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.hero-pill i {
    color: var(--primary);
    font-size: 1rem;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

/* Hero Trust Signals */
.hero-trust-signals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.trust-signal {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.trust-signal i {
    color: var(--success);
    font-size: 0.875rem;
}

/* ============================================
   FEATURES GRID SECTION
   ============================================ */
.main-features {
    padding: var(--space-12) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ============================================
   AI FEATURES SECTION
   ============================================ */
.ai-features-section {
    padding: var(--space-16) 0;
    background: var(--bg-muted);
}

.ai-value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

/* AI Section CTA */
.ai-section-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-8);
    background: linear-gradient(135deg, #EEF2FF 0%, #F3E8FF 50%, #FDF4FF 100%);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
}

.ai-section-cta .cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.ai-section-cta .cta-icon i {
    font-size: 1.25rem;
    color: white;
}

.ai-section-cta .cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    position: relative;
    z-index: 1;
}

.ai-section-cta .cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    position: relative;
    z-index: 1;
}

.ai-section-cta .cta-features span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.ai-section-cta .cta-features i {
    color: var(--success);
    font-weight: 700;
}

.ai-section-cta .cta-button {
    position: relative;
    z-index: 1;
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ai-section-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--space-12) 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   CTA SECTION
   ============================================ */
.features-cta,
.pricing-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: var(--space-12) 0;
}

.features-cta h2,
.features-cta p,
.pricing-cta h2,
.pricing-cta p {
    color: white;
}

.cta-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-sublink {
    margin-top: var(--space-4);
}

.cta-sublink a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: color 0.2s ease;
}

.cta-sublink a:hover {
    color: white;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-cards {
    padding: var(--space-12) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

/* Pricing preview grid container (for home page) */
.pricing-preview-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */
.why-choose-section {
    padding: var(--space-12) 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison-section {
    padding: var(--space-12) 0;
    background: var(--bg-muted);
}

.comparison-table {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-3);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-muted);
    font-weight: var(--font-ui-weight);
    color: var(--text-primary);
}

.comparison-table td:first-child {
    font-weight: 500;
}

.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
    text-align: center;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: var(--space-12) 0 var(--space-8);
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.how-it-works-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: var(--space-8);
}

.how-it-works-step {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: var(--space-6);
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-2);
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* Step gradient backgrounds */
.step-gradient-1 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

.step-gradient-2 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(6, 182, 212, 0.04) 100%);
    border-color: rgba(16, 185, 129, 0.15);
}

.step-gradient-3 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(249, 115, 22, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.15);
}

.how-it-works-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
}

.step-number {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
}

.how-it-works-step h3 {
    font-size: var(--font-h4-size);
    font-weight: var(--font-h4-weight);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.how-it-works-step p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.step-decoration {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    font-size: 3rem;
    opacity: 0.05;
}

/* ============================================
   EARLY ADOPTER BANNER
   ============================================ */
.early-adopter-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin: var(--space-6) auto;
    max-width: 600px;
    text-align: center;
}

.banner-text {
    font-size: var(--font-h4-size);
    font-weight: 700;
    color: #92400e;
    margin: var(--space-2) 0;
}

.banner-subtext {
    font-size: var(--font-sm-size);
    color: #78350f;
    margin: 0;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-value-props-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .features-hero,
    .pricing-hero {
        padding-top: var(--space-8);
        padding-bottom: var(--space-4);
    }

    .features-hero-icon,
    .pricing-hero-icon {
        font-size: 2.5rem;
    }

    .hero-feature-pills {
        gap: var(--space-2);
    }

    .hero-pill {
        font-size: 0.75rem;
        padding: var(--space-1) var(--space-3);
    }

    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-trust-signals {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }

    .trust-signal {
        font-size: 0.8rem;
    }

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

    .ai-value-props-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

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

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

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: auto;
        min-width: 200px;
        max-width: 280px;
    }

    .ai-section-cta {
        padding: var(--space-5) var(--space-4);
    }

    .ai-section-cta .cta-icon {
        width: 44px;
        height: 44px;
    }

    .ai-section-cta .cta-icon i {
        font-size: 1.1rem;
    }

    .ai-section-cta .cta-title {
        font-size: 1.1rem;
    }

    .ai-section-cta .cta-features span {
        font-size: 0.8rem;
    }

    .ai-section-cta .cta-button {
        width: 100%;
        justify-content: center;
    }

    .how-it-works-grid {
        flex-direction: column;
        gap: var(--space-4);
    }

    .step-connector {
        transform: rotate(90deg);
        padding: var(--space-2) 0;
    }

    .how-it-works-step {
        max-width: 100%;
    }

    .early-adopter-banner {
        margin: var(--space-4);
        padding: var(--space-4);
    }

    .banner-text {
        font-size: var(--font-body-size);
    }

    .comparison-table {
        font-size: var(--font-sm-size);
    }
}

/* ============================================
   COMPETITOR COMPARISON SECTION
   ============================================ */
.competitor-comparison-section {
    padding: var(--space-12) 0;
    background: var(--bg-primary);
}

.competitor-comparison-table {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.competitor-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.competitor-comparison-table th,
.competitor-comparison-table td {
    padding: var(--space-4);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.competitor-comparison-table th {
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-ui-size);
}

.competitor-comparison-table td:first-child,
.competitor-comparison-table th:first-child {
    text-align: left;
    font-weight: 500;
}

.company-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.company-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.company-name.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.company-badge {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-2);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-full);
    color: #92400e;
    font-weight: 600;
}

/* URLcut column highlight - no side borders */
.competitor-comparison-table td.urlcut-column {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
}

.competitor-comparison-table th.urlcut-column {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
}

.highlight-row {
    background: rgba(99, 102, 241, 0.02);
}

.highlight-value {
    color: var(--primary);
    font-weight: 700;
}

.value-row td {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* AI Feature Row Headers in Comparison Table */
.ai-feature-row {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
}

.ai-section-header {
    padding: var(--space-4) var(--space-3) !important;
    font-size: var(--font-body-size);
    font-weight: 700;
    color: var(--text-primary);
    text-align: left !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-top: 2px solid rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.ai-section-header i {
    color: var(--primary);
    margin-right: var(--space-2);
    font-size: 1.125rem;
}

/* ============================================
   FEATURE REQUEST CTA SECTION
   ============================================ */
.feature-request-cta {
    padding: var(--space-12) 0;
}

.feature-request-cta .cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gradient border effect */
.feature-request-cta .cta-card.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.feature-request-cta .cta-content {
    position: relative;
    z-index: 1;
}

.feature-request-cta .cta-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.feature-request-cta h2 {
    font-size: var(--font-h2-size);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.feature-request-cta .cta-description {
    font-size: var(--font-lg-size);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto var(--space-6);
}

.feature-request-cta .cta-subtext {
    margin-top: var(--space-4);
    font-size: var(--font-sm-size);
    color: var(--text-tertiary);
    font-style: italic;
}

/* ============================================
   HERO SCROLL INDICATOR
   ============================================ */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-6) 0;
    color: var(--text-muted);
    font-size: var(--font-sm-size);
}

.hero-scroll-indicator i.bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ============================================
   HOW IT WORKS ENHANCEMENTS
   Step-specific hover effects and icon backgrounds
   ============================================ */
.step-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    opacity: 0.15;
    z-index: 0;
}

.step-gradient-1 .step-icon-bg {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.step-gradient-2 .step-icon-bg {
    background: linear-gradient(135deg, #10B981, #06B6D4);
}

.step-gradient-3 .step-icon-bg {
    background: linear-gradient(135deg, #F59E0B, #F97316);
}

/* Step-specific hover shadows */
.step-gradient-1:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.step-gradient-2:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

.step-gradient-3:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

/* Step number gradients */
.step-gradient-1 .step-number {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-gradient-2 .step-number {
    background: linear-gradient(135deg, #10B981, #06B6D4);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.step-gradient-3 .step-number {
    background: linear-gradient(135deg, #F59E0B, #F97316);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.how-it-works-step:hover .step-number {
    transform: scale(1.1);
}

.step-gradient-1:hover .step-number {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.step-gradient-2:hover .step-number {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.step-gradient-3:hover .step-number {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Step decoration hover */
.how-it-works-step:hover .step-decoration {
    opacity: 0.15;
    transform: scale(1.1);
}

.step-gradient-1 .step-decoration i { color: #6366f1; }
.step-gradient-2 .step-decoration i { color: #10B981; }
.step-gradient-3 .step-decoration i { color: #F59E0B; }

/* Step connector animation */
.step-connector i {
    color: var(--primary);
    opacity: 0.6;
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

/* ============================================
   WHY CHOOSE SECTION ENHANCEMENTS
   ============================================ */
.why-choose-section {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, var(--bg-primary) 100%);
}

.why-choose-grid {
    margin-top: var(--space-8);
}

/* ============================================
   RESPONSIVE - MOBILE ADDITIONS
   ============================================ */
@media (max-width: 768px) {
    .competitor-comparison-table {
        font-size: var(--font-sm-size);
    }

    .feature-request-cta .cta-card {
        padding: var(--space-8) var(--space-4);
    }

    .feature-request-cta .cta-icon {
        font-size: 2.5rem;
    }

    .feature-request-cta h2 {
        font-size: var(--font-h3-size);
    }

    .hero-scroll-indicator {
        display: none;
    }

    .step-decoration {
        display: none;
    }
}
