/*
 * Next For Decision (N4D) - Component Styles
 * Reusable components for landing pages
 */

/* ===========================
   Startup Banner
   =========================== */
.startup-banner {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #f59e0b;
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 500;
    color: #92400e;
}

.startup-banner-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ===========================
   Gradient Background Sections
   =========================== */
.section-gradient {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: var(--space-4xl) 0;
}

.section-gradient-purple {
    background: var(--gradient-purple);
    color: #ffffff;
    padding: var(--space-4xl) 0;
}

.section-gradient-dark {
    background: var(--gradient-dark);
    color: #ffffff;
    padding: var(--space-4xl) 0;
}

/* Override text colors within gradient sections */
.section-gradient h1,
.section-gradient h2,
.section-gradient h3,
.section-gradient h4,
.section-gradient p,
.section-gradient-purple h1,
.section-gradient-purple h2,
.section-gradient-purple h3,
.section-gradient-purple h4,
.section-gradient-purple p,
.section-gradient-dark h1,
.section-gradient-dark h2,
.section-gradient-dark h3,
.section-gradient-dark h4,
.section-gradient-dark p {
    color: #ffffff;
}

.section-gradient .text-muted,
.section-gradient-purple .text-muted,
.section-gradient-dark .text-muted {
    color: rgba(255, 255, 255, 0.85);
}

/* Glass card for gradient sections */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* White card for contrast on gradient backgrounds */
.card-white {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: var(--color-text);
}

.card-white h3,
.card-white h4,
.card-white p {
    color: var(--color-text);
}

.card-white .text-muted {
    color: var(--color-text-secondary);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: var(--space-4xl) 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-xl) auto;
    line-height: 1.6;
}

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

.hero-image {
    margin-top: var(--space-3xl);
    max-width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }
}

/* ===========================
   Feature Section
   =========================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    font-size: var(--text-3xl);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* ===========================
   Stat/Metric Display
   =========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
}

.stat-value {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-value {
        font-size: var(--text-4xl);
    }
}

/* ===========================
   Testimonial
   =========================== */
.testimonial {
    background: var(--color-bg-secondary);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.testimonial-quote {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.testimonial-role {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-4xl) 0;
    text-align: center;
    border-radius: var(--radius-xl);
    margin: var(--space-4xl) 0;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-lg);
    color: white;
}

.cta-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.9);
    max-width: 37.5rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-description.font-semibold {
    font-weight: var(--font-semibold);
}

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

.cta-buttons .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta-buttons .btn-primary:hover {
    background: var(--color-bg-secondary);
}

.cta-buttons .btn-secondary {
    border-color: white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* CTA Split Grid (two-column CTA) */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 56rem;
    margin: var(--space-xl) auto 0 auto;
}

.cta-grid-item {
    text-align: center;
}

.cta-grid-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
}

.cta-grid-title {
    color: white;
    margin-bottom: var(--space-md);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.cta-grid-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cta-grid-note {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Audience Selector Cards
   =========================== */
.audience-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.audience-card {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    text-align: center;
}

.audience-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.audience-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
    font-size: var(--text-4xl);
}

.audience-target {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.audience-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.audience-benefits {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.audience-benefits li {
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.audience-benefits li::before {
    content: "✅";
    flex-shrink: 0;
}

.audience-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.audience-subtext {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin-top: var(--space-md);
}

@media (max-width: 768px) {
    .audience-selector {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* ===========================
   Comparison Table
   =========================== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-3xl) 0;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: var(--color-bg-tertiary);
}

.comparison-table th {
    padding: var(--space-lg);
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text);
}

.comparison-table td {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.comparison-table tbody tr:hover {
    background: var(--color-bg-secondary);
}

.comparison-table .highlight {
    background: var(--color-primary-light);
    font-weight: 600;
    border-bottom-color: #bfdbfe;
}

/* ===========================
   FAQ Section
   =========================== */
.faq-item {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.faq-answer {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===========================
   Badge/Tag
   =========================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

/* ===========================
   Logo Grid (Trust Signals)
   =========================== */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-xl);
    align-items: center;
    margin: var(--space-3xl) 0;
    opacity: 0.6;
}

.logo-item {
    text-align: center;
}

.logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

.logo-item img:hover {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   Product Screenshot
   =========================== */
.product-screenshot {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.screenshot-item {
    text-align: center;
}

.screenshot-caption {
    margin-top: var(--space-md);
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Two-Column Layout
   =========================== */
.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl);
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .two-column.reverse {
        direction: ltr;
    }
}

/* ===========================
   4-Layer Structure Display
   =========================== */
.layer-structure {
    max-width: 56rem;
    margin: 0 auto;
}

.layer-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.layer-item-icon {
    font-size: var(--text-4xl);
    flex-shrink: 0;
}

.layer-item-content {
    flex: 1;
}

.layer-item-title {
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.layer-item-description {
    color: #111827 !important;
    font-size: var(--text-base);
    margin: 0;
}

.layer-arrow {
    text-align: center;
    font-size: var(--text-3xl);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-sm) 0;
}

/* ===========================
   Pricing Card
   =========================== */
.pricing-card {
    border: 3px solid var(--color-primary);
    text-align: center;
    padding: var(--space-2xl);
}

.pricing-badge {
    background: var(--color-primary-light);
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.pricing-amount {
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text);
    line-height: var(--leading-none);
}

.pricing-period {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-top: var(--space-sm);
}

/* ===========================
   Feature List
   =========================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list-item {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

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

.feature-list-item-icon {
    color: var(--color-success);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

/* ===========================
   Partner/Program Cards
   =========================== */
.program-card {
    border: 2px solid var(--color-border);
    padding: var(--space-xl);
}

.program-card-primary {
    border-color: var(--color-primary);
}

.program-card-success {
    border-color: var(--color-success);
}

.program-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.program-badge-primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.program-badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

/* ===========================
   Info Box / Callout
   =========================== */
.info-box {
    background: var(--color-bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.info-box-centered {
    text-align: center;
    border-left: none;
}

/* ===========================
   Image Grid (2x2, etc.)
   =========================== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.image-grid-item {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

.image-grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-grid-caption {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--color-border);
}

.image-grid-caption-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin: 0;
}

.image-grid-caption-description {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    margin: var(--space-xs) 0 0 0;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Utility: Spacing overrides
   =========================== */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* ===========================
   Utility: Max-width containers
   =========================== */
.max-w-sm { max-width: var(--max-width-sm); margin-left: auto; margin-right: auto; }
.max-w-md { max-width: var(--max-width-md); margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: var(--max-width-lg); margin-left: auto; margin-right: auto; }

/* ===========================
   Gradient section overrides
   =========================== */
.section-gradient .section-label,
.section-gradient-purple .section-label,
.section-gradient-dark .section-label,
.cta-section .section-label {
    color: rgba(255, 255, 255, 0.9);
}

.section-gradient .section-title,
.section-gradient-purple .section-title,
.section-gradient-dark .section-title,
.cta-section .section-title {
    color: #ffffff;
}

.section-gradient .section-description,
.section-gradient-purple .section-description,
.section-gradient-dark .section-description,
.cta-section .section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* ===========================
   Executive Quote / Insight Block
   =========================== */
.executive-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    padding: var(--space-2xl) var(--space-3xl);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.executive-quote::before {
    content: '"';
    position: absolute;
    top: var(--space-md);
    left: var(--space-xl);
    font-size: 4rem;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

.executive-quote-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: var(--text-2xl);
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    padding-left: var(--space-xl);
}

/* Variant: Maxim style - more prominent, aphorism-like */
.executive-quote.maxim {
    padding: var(--space-3xl) var(--space-4xl);
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
}

.executive-quote.maxim .executive-quote-text {
    font-size: var(--text-3xl);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.executive-quote.maxim.centered {
    padding: var(--space-4xl) var(--space-3xl);
}

@media (max-width: 768px) {
    .executive-quote.maxim {
        padding: var(--space-2xl);
    }

    .executive-quote.maxim .executive-quote-text {
        font-size: var(--text-2xl);
    }
}

.executive-quote-text strong {
    font-style: normal;
    color: var(--color-primary);
}

.executive-quote-source {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin-top: var(--space-md);
    padding-left: var(--space-xl);
}

/* Variant: Centered quote (no left border) */
.executive-quote.centered {
    border-left: none;
    text-align: center;
    padding: var(--space-3xl);
}

.executive-quote.centered::before {
    left: 50%;
    transform: translateX(-50%);
    top: var(--space-lg);
}

.executive-quote.centered .executive-quote-text {
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}

.executive-quote.centered .executive-quote-source {
    padding-left: 0;
}

/* Variant: Dark background for CTA sections */
.executive-quote.on-dark {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.executive-quote.on-dark::before {
    color: rgba(255, 255, 255, 0.3);
}

.executive-quote.on-dark .executive-quote-text {
    color: white;
}

.executive-quote.on-dark .executive-quote-text strong {
    color: white;
}

.executive-quote.on-dark .executive-quote-source {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .executive-quote {
        padding: var(--space-xl);
    }

    .executive-quote::before {
        font-size: 3rem;
        left: var(--space-md);
    }

    .executive-quote-text {
        font-size: var(--text-xl);
        padding-left: var(--space-lg);
    }
}

/* ===========================
   Pricing Comparison Grid
   =========================== */
.pricing-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0 auto;
}

@media (max-width: 768px) {
    .pricing-comparison-grid {
        grid-template-columns: 1fr;
    }
}
