/* ==========================================================================
   TestPlan Marketing Styles
   Self-contained styles for marketing pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (duplicated for independence)
   -------------------------------------------------------------------------- */
:root {
    --mkt-navy: #1E1E4A;
    --mkt-navy-light: #2D2D6B;
    --mkt-navy-dark: #151538;
    --mkt-gold: #F59E0B;
    --mkt-gold-light: #FBBF24;
    --mkt-gold-dark: #D97706;
    --mkt-white: #FFFFFF;
    --mkt-gray-50: #FAFAFA;
    --mkt-gray-100: #F4F4F5;
    --mkt-gray-200: #E4E4E7;
    --mkt-gray-300: #D4D4D8;
    --mkt-gray-400: #A1A1AA;
    --mkt-gray-500: #71717A;
    --mkt-gray-600: #52525B;
    --mkt-gray-700: #3F3F46;
    --mkt-gray-800: #27272A;
    --mkt-gray-900: #18181B;
    --mkt-pass: #10B981;
}

/* --------------------------------------------------------------------------
   Base Reset for Marketing Pages
   -------------------------------------------------------------------------- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    background-color: #FAFAFA !important;
    color: #3F3F46;
}

/* Hide Blazor error UI */
#blazor-error-ui {
    display: none !important;
}

/* Reset links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.marketing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1E1E4A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marketing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.marketing-nav .marketing-container {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}

.nav-logo img {
    display: block;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-right: auto;
}

.marketing-nav .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s ease;
    padding: 0;
    background: none;
    border: none;
}

.marketing-nav .nav-link:hover {
    color: #fff !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions .btn-ghost {
    color: rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.nav-actions .btn-ghost:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.nav-actions .btn-primary {
    background: #F59E0B !important;
    border: none !important;
    color: #fff !important;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.nav-actions .btn-primary:hover {
    background: #D97706 !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #1E1E4A;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 0;
}

.mobile-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(180deg, #1E1E4A 0%, #151538 100%);
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.15), transparent),
        radial-gradient(ellipse 60% 30% at 70% 80%, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #FBBF24;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 24px 0;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: #F59E0B;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 auto 32px auto;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.hero-cta .btn-primary {
    background: #F59E0B;
    color: #fff;
    border: none;
}

.hero-cta .btn-primary:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.hero-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* --------------------------------------------------------------------------
   Product Screenshot
   -------------------------------------------------------------------------- */
.hero-screenshot {
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.screenshot-frame {
    background: #18181B;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(245, 158, 11, 0.1);
    overflow: hidden;
}

.screenshot-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #27272A;
    border-bottom: 1px solid #3F3F46;
}

.screenshot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #52525B;
}

.screenshot-dot.red { background: #EF4444; }
.screenshot-dot.yellow { background: #F59E0B; }
.screenshot-dot.green { background: #22C55E; }

.screenshot-content {
    aspect-ratio: 16/10;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717A;
    font-size: 0.875rem;
}

.screenshot-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Features Grid Section
   -------------------------------------------------------------------------- */
.features-section {
    padding: 100px 0;
    background: #FAFAFA;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.section-label {
    display: inline-block;
    color: #F59E0B;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #18181B;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1rem;
    color: #52525B;
    margin: 0;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

.feature-card {
    background: #fff;
    border: 1px solid #E4E4E7;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: #F59E0B;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(245, 158, 11, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon i {
    font-size: 1.25rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #18181B;
    margin: 0 0 8px 0;
}

.feature-card p {
    font-size: 0.875rem;
    color: #52525B;
    margin: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Big Feature Blocks
   -------------------------------------------------------------------------- */
.feature-block {
    padding: 100px 0;
    background: #fff;
    border-bottom: 1px solid #E4E4E7;
}

.feature-block:nth-child(even) {
    background: #FAFAFA;
}

.feature-block-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.feature-block:nth-child(even) .feature-block-inner {
    direction: rtl;
}

.feature-block:nth-child(even) .feature-block-inner > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .feature-block-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-block:nth-child(even) .feature-block-inner {
        direction: ltr;
    }
}

.feature-block-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #18181B;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.feature-block-content p {
    font-size: 1rem;
    color: #52525B;
    margin: 0 0 24px 0;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: #3F3F46;
    margin-bottom: 12px;
}

.feature-list li i {
    color: #10B981;
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-block-visual {
    background: #F4F4F5;
    border-radius: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E4E4E7;
    color: #A1A1AA;
    font-size: 0.875rem;
}

.feature-block-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, #1E1E4A 0%, #151538 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 120%, rgba(245, 158, 11, 0.2), transparent);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px 0;
}

.cta-section .btn {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.cta-section .btn-primary {
    background: #F59E0B;
    color: #fff;
    border: none;
}

.cta-section .btn-primary:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.marketing-footer {
    background: #1E1E4A;
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

.footer-brand img {
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Pricing Page
   -------------------------------------------------------------------------- */
.pricing-hero {
    background: linear-gradient(180deg, #1E1E4A 0%, #151538 100%);
    padding: 140px 0 80px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.pricing-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
}

.pricing-section {
    background: #FAFAFA;
    padding: 80px 0 100px;
    margin-top: -40px;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.pricing-card {
    background: #fff;
    border: 1px solid #E4E4E7;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border-color: #F59E0B;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #F59E0B;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
}

.pricing-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #18181B;
    margin: 0 0 8px 0;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: #18181B;
    line-height: 1;
    margin: 0 0 4px 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #71717A;
}

.pricing-card .price-note {
    font-size: 0.875rem;
    color: #71717A;
    margin: 0 0 24px 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    color: #3F3F46;
    margin-bottom: 12px;
}

.pricing-features li i {
    color: #10B981;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: #A1A1AA;
}

.pricing-features li.disabled i {
    color: #D4D4D8;
}

.pricing-card .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.15s ease;
}

.pricing-card .btn-primary {
    background: #F59E0B;
    color: #fff;
    border: none;
}

.pricing-card .btn-primary:hover {
    background: #D97706;
}

.pricing-card .btn-outline-primary {
    background: transparent;
    color: #D97706;
    border: 1px solid #F59E0B;
}

.pricing-card .btn-outline-primary:hover {
    background: #F59E0B;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Features Page
   -------------------------------------------------------------------------- */
.features-hero {
    background: linear-gradient(180deg, #1E1E4A 0%, #151538 100%);
    padding: 140px 0 80px;
    text-align: center;
}

.features-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.features-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.w-100 {
    width: 100%;
}

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

/* --------------------------------------------------------------------------
   Bootstrap Overrides (Critical)
   -------------------------------------------------------------------------- */
.hero,
section.hero {
    background: linear-gradient(180deg, #1E1E4A 0%, #151538 100%) !important;
}

.marketing-nav,
header.marketing-nav {
    background: #1E1E4A !important;
}

.marketing-footer,
footer.marketing-footer {
    background: #1E1E4A !important;
}

.cta-section,
section.cta-section {
    background: linear-gradient(135deg, #1E1E4A 0%, #151538 100%) !important;
}

.pricing-hero,
section.pricing-hero,
.features-hero,
section.features-hero {
    background: linear-gradient(180deg, #1E1E4A 0%, #151538 100%) !important;
}

/* Override Bootstrap button colors */
.hero-cta .btn.btn-primary,
.cta-section .btn.btn-primary,
.pricing-card .btn.btn-primary,
.nav-actions .btn.btn-primary {
    background-color: #F59E0B !important;
    border-color: #F59E0B !important;
    color: #fff !important;
}

.hero-cta .btn.btn-primary:hover,
.cta-section .btn.btn-primary:hover,
.pricing-card .btn.btn-primary:hover,
.nav-actions .btn.btn-primary:hover {
    background-color: #D97706 !important;
    border-color: #D97706 !important;
}

/* Ensure text colors are correct */
.hero h1,
.hero-content h1 {
    color: #fff !important;
}

.hero-subtitle,
.hero-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}
