/**
 * Landing Page Styles
 * Dark theme landing page — hero, pillars, experience, analytics, models, blog, pricing
 */

/* ============================================
   PAGE LAYOUT
   ============================================ */
.landing-page {
    min-height: 100vh;
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* ============================================
   SHARED: IMAGE PLACEHOLDER BLOCKS
   ============================================ */
.img-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
    border: 1px dashed rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 49%, rgba(99, 102, 241, 0.04) 50%, transparent 51%),
        repeating-linear-gradient(45deg, transparent 0px, transparent 12px, rgba(99, 102, 241, 0.02) 12px, rgba(99, 102, 241, 0.02) 13px);
    pointer-events: none;
}

.img-placeholder-wide {
    aspect-ratio: 16 / 9;
}

.img-placeholder-thumb {
    aspect-ratio: 16 / 9;
    min-height: 90px;
}

.img-placeholder-label {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
}

.img-placeholder-icon {
    font-size: 32px;
    opacity: 0.7;
}

.img-placeholder-name {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    color: var(--accent-primary-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.img-placeholder-hint {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.img-placeholder-thumb .img-placeholder-icon {
    font-size: 24px;
}

.img-placeholder-thumb .img-placeholder-name {
    font-size: 10px;
}

/* Actual screenshot images (replaces placeholder boxes).
 * No forced aspect-ratio — images render at their natural proportions
 * capped by max-height so uneven uploads don't blow out the layout. */
.landing-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* Fixed aspect-ratio containers for landing images — prevents mismatched
   proportions across sections. Admins upload at the recommended ratio shown
   in the admin panel hint box; mismatched uploads get letterboxed (never
   cropped) so UI remains readable. */
.experience-block .landing-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    background: rgba(10, 14, 23, 0.2);
}

.model-card-v2 .landing-img {
    /* Full-card-width preview — vertical card layout */
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    margin: 0;
    background: rgba(10, 14, 23, 0.2);
}

.hero-showcase .landing-img {
    max-height: none;
}

.analytics-tab-visual .landing-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    background: rgba(10, 14, 23, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    padding: 120px 20px 60px;
    text-align: center;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Animated background wrapper */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Gradient overlay on top of SVG */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(8, 153, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Dark-theme overlay: darken for better contrast with the bright line chart */
[data-theme="dark"] .hero-bg-gradient {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(8, 153, 129, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(10, 14, 23, 0.4) 0%, rgba(10, 14, 23, 0.7) 100%);
}

/* SVG line chart */
.hero-bg-chart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.hero-grid line {
    stroke: rgba(99, 102, 241, 0.06);
    stroke-width: 1;
    stroke-dasharray: 2 6;
}

.hero-line {
    stroke-linecap: round;
    stroke-dasharray: 3200;
    stroke-dashoffset: 3200;
    filter: drop-shadow(0 0 6px currentColor);
}

.hero-line-1 {
    animation: heroLineDraw 14s ease-in-out infinite;
}

.hero-line-2 {
    animation: heroLineDraw 18s ease-in-out infinite;
    animation-delay: -4s;
}

.hero-line-3 {
    animation: heroLineDraw 22s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes heroLineDraw {
    0% {
        stroke-dashoffset: 3200;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    60% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    85% {
        stroke-dashoffset: 0;
        opacity: 0.4;
    }
    100% {
        stroke-dashoffset: -3200;
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: var(--accent-primary-light);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

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

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 50px;
    padding-top: 36px;
    border-top: 1px solid var(--border-primary);
}

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

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Screenshot showcase carousel */
.hero-showcase {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 50px auto 0;
    overflow: hidden;
}

.showcase-track {
    display: flex;
    gap: 20px;
    animation: showcaseScroll 24s linear infinite;
}

@keyframes showcaseScroll {
    0% { transform: translateX(0); }
    30% { transform: translateX(0); }
    33% { transform: translateX(calc(-100% / 3 - 7px)); }
    63% { transform: translateX(calc(-100% / 3 - 7px)); }
    66% { transform: translateX(calc(-200% / 3 - 14px)); }
    96% { transform: translateX(calc(-200% / 3 - 14px)); }
    100% { transform: translateX(0); }
}

.showcase-slide {
    flex: 0 0 100%;
    min-width: 0;
    /* Fixed 16:10 card — admins upload screenshots at 1600x1000 px.
       Mismatched ratios get letterboxed (never cropped) so UI stays readable. */
    aspect-ratio: 16 / 10;
    background: rgba(10, 14, 23, 0.35);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override generic .landing-img inside hero-showcase: fill the card */
.hero-showcase .showcase-slide .landing-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border: none;
    border-radius: 0;
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ============================================
   FEATURES / PILLARS SECTION
   ============================================ */
.features-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

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

.pillar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.pillar-icon {
    /* Rounded chip: holds either a named SVG icon or a fallback emoji/HTML */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.12) 0%,
        rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 14px;
    color: var(--accent-primary);
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 4px 12px -4px rgba(99, 102, 241, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover .pillar-icon {
    transform: translateY(-2px) rotate(-2deg);
    box-shadow: 0 8px 18px -6px rgba(99, 102, 241, 0.35);
}

.pillar-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

/* Banner variant: full-width illustration centred inside the card.
   Drops all chip styling (background, border, shadow, fixed size). */
.pillar-icon--banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.pillar-icon--banner svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 160px;
    display: block;
    margin: 0 auto;
}

/* Preserve the subtle "wiggle" on hover for banners too, but scaled down */
.pillar-card:hover .pillar-icon--banner {
    transform: translateY(-1px);
    box-shadow: none;
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.pillar-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 10px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 52px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, rgba(99, 102, 241, 0.2));
}

/* Demo placeholder */
.demo-placeholder {
    max-width: 800px;
    margin: 50px auto 0;
}

/* ============================================
   TRADING EXPERIENCE SECTION
   ============================================ */
.experience-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
}

.experience-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
}

.experience-block:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.experience-block .img-placeholder,
.experience-block .landing-img {
    margin-bottom: 20px;
}

.experience-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.experience-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   ANALYTICS & INTELLIGENCE SECTION
   ============================================ */
.analytics-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.analytics-tabs-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.analytics-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
}

.analytics-tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.analytics-tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.analytics-tab-btn.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary-light);
    border-color: rgba(99, 102, 241, 0.3);
}

.analytics-tab-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 32px;
}

.analytics-tab-visual {
    min-width: 0;
}

.analytics-tab-text {
    min-width: 0;
}

.analytics-tab-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.analytics-tab-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================
   MODELS SECTION (Tiered)
   ============================================ */
.models-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.model-tier {
    margin-bottom: 36px;
}

.model-tier-header {
    margin-bottom: 20px;
    padding-left: 4px;
}

.model-tier-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-tier-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Vertical card grid:
   Essential/Advanced (2 items) -> 2-up on wide, 1-up on mobile.
   Professional (4 items) -> 4-up on wide, 2-up on mid, 1 on narrow. */
.model-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 18px;
}

.model-tier-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Vertical card: large preview on top, content below */
.model-card-v2 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 18px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.model-card-v2:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.18);
}

.model-card-v2 .img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    min-height: 0;
}

.model-card-body {
    display: block;
}

.model-marketing-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.model-tech-name {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-left: 6px;
}

.model-one-liner {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Tier visual separation — subtle wash behind the row group */
.tier-advanced {
    padding: 22px 22px 20px;
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 14px;
}

.tier-professional {
    padding: 22px 22px 20px;
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 14px;
}

/* Article link */
.models-article-link {
    text-align: center;
    margin-top: 36px;
}

.models-article-link a {
    color: var(--accent-primary-light);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.2s;
}

.models-article-link a:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* ============================================
   BLOG / ARTICLES SECTION
   ============================================ */
.blog-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.blog-card-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-muted);
}

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary-light);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-primary);
    font-size: 12px;
    color: var(--text-secondary);
}

.blog-view-all {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--accent-primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

/* ============================================
   PRICING CTA SECTION
   ============================================ */
.pricing-cta-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.pricing-cta-box {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .pricing-cta-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.pricing-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
}

.pricing-cta-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    position: relative;
}

.pricing-cta-plans {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
}

.pricing-cta-plan {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 24px 28px;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
    position: relative;
}

[data-theme="dark"] .pricing-cta-plan {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.pricing-cta-plan.featured {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.pricing-cta-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
}

.pricing-cta-plan-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.pricing-cta-plan-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-cta-plan-price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-cta-plan-features {
    font-size: 12px;
    color: var(--accent-primary-light);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pricing-cta-plan-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- Billing toggle (monthly/yearly) ---- */
.pricing-cta-billing-toggle {
    position: relative;
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 4px auto 18px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 10px;
}

.pricing-cta-toggle-btn {
    padding: 7px 18px;
    background: transparent;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pricing-cta-toggle-btn:hover:not(.active) {
    color: var(--text-primary);
}

.pricing-cta-toggle-btn.active {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pricing-cta-discount-badge {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ---- Promo code input ---- */
.pricing-cta-promo {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    flex-wrap: wrap;
}

.pricing-cta-promo-input {
    padding: 8px 14px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    text-transform: uppercase;
    width: 180px;
    text-align: center;
}

.pricing-cta-promo-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.pricing-cta-promo-btn {
    padding: 8px 16px;
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    background: transparent;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.pricing-cta-promo-btn:hover:not(:disabled) {
    background: var(--accent-primary);
    color: #fff;
}

.pricing-cta-promo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pricing-cta-promo-ok {
    flex-basis: 100%;
    text-align: center;
    color: #10b981;
    font-size: 13px;
    margin-top: 4px;
}

.pricing-cta-promo-err {
    flex-basis: 100%;
    text-align: center;
    color: #ef5350;
    font-size: 13px;
    margin-top: 4px;
}

/* ---- Feature list inside live plan card ---- */
.pricing-cta-plan-features-list {
    list-style: none;
    margin: 10px 0 18px;
    padding: 0;
    text-align: left;
    flex: 1;
}

.pricing-cta-plan-features-list li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.pricing-cta-plan-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 5px;
    color: #10b981;
    font-weight: 700;
}

/* ---- Plan CTA button ---- */
.pricing-cta-plan-btn {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pricing-cta-plan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pricing-cta-plan-btn.primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.pricing-cta-plan-btn.premium {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: transparent;
    color: #fff;
}

/* Featured card gets the CTA button highlighted naturally via its own styling */
.pricing-cta-plan.featured .pricing-cta-plan-btn {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.pricing-cta-extras {
    position: relative;
    margin-bottom: 24px;
}

.pricing-cta-extras p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.pricing-cta-actions {
    position: relative;
}

.btn-pricing-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ============================================
   FOOTER TRY LINE
   ============================================ */
.landing-try-line {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-primary);
}

.landing-try-line a {
    color: var(--accent-primary-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-try-line a:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .model-tier-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-tab-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px 50px;
    }

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

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

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .hero-showcase {
        margin-top: 30px;
    }

    .showcase-track {
        animation: none;
    }

    .showcase-slide:not(:first-child) {
        display: none;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }

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

    .analytics-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .analytics-tab-btn {
        flex: 0 0 auto;
    }

    .analytics-tab-panel {
        padding: 20px;
    }

    .model-tier-grid,
    .model-tier-grid-4 {
        grid-template-columns: 1fr;
    }

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

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

    .pricing-cta-plan {
        min-width: auto;
        max-width: 320px;
        width: 100%;
    }

    .pricing-cta-box {
        padding: 30px 20px;
    }

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

    .tier-advanced,
    .tier-professional {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

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

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility: respect user motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-line,
    .showcase-track {
        animation: none;
    }
}

/* ============================================
   COMPARISON TABLE SECTION (new, v22)
   ============================================ */
.comparison-section {
    padding: 90px 20px;
    background: var(--bg-primary);
}

.comparison-table-wrapper {
    max-width: 1100px;
    margin: 50px auto 0;
    overflow-x: auto;
    padding: 0 8px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.18),
                0 4px 12px -4px rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.5;
}

/* Header row */
.comparison-table thead th {
    background: linear-gradient(180deg,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(99, 102, 241, 0.04) 100%);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-top: 22px;
    padding-bottom: 22px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.18);
}

/* Row labels (first column) */
.comparison-table tbody th {
    font-weight: 600;
    color: var(--text-primary);
    width: 26%;
    background: rgba(99, 102, 241, 0.02);
    font-size: 14px;
}

.comparison-table tbody td {
    color: var(--text-secondary);
}

/* Hover effect on rows */
.comparison-table tbody tr {
    transition: background 0.15s ease;
}

.comparison-table tbody tr:hover th {
    background: rgba(99, 102, 241, 0.06);
}

.comparison-table tbody tr:hover td:not(.highlighted) {
    background: rgba(99, 102, 241, 0.03);
}

/* Highlighted column (Options Simulator) — the hero of the table */
.comparison-table th.highlighted,
.comparison-table td.highlighted {
    position: relative;
    background: linear-gradient(180deg,
        rgba(16, 185, 129, 0.10) 0%,
        rgba(16, 185, 129, 0.05) 100%);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table thead th.highlighted {
    background: linear-gradient(180deg,
        rgba(16, 185, 129, 0.18) 0%,
        rgba(16, 185, 129, 0.10) 100%);
    color: #10b981;
    font-weight: 800;
    border-bottom-color: rgba(16, 185, 129, 0.4);
}

/* Vertical accent line on left edge of highlighted column header */
.comparison-table thead th.highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #10b981, #059669);
}

/* Small star on the highlighted header for emphasis */
.comparison-table thead th.highlighted::after {
    content: '★';
    margin-left: 8px;
    color: #10b981;
    font-size: 14px;
}

.comparison-table tbody tr:hover td.highlighted {
    background: linear-gradient(180deg,
        rgba(16, 185, 129, 0.14) 0%,
        rgba(16, 185, 129, 0.08) 100%);
}

/* Last row — no border, rounded bottom corners */
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:last-child th {
    border-bottom-left-radius: 16px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

/* Responsive: horizontal scroll on narrow screens, with visual cue */
@media (max-width: 768px) {
    .comparison-table {
        min-width: 700px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* ============================================
   COMPANY STORY SECTION (new, v22)
   ============================================ */
.company-story-section {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.company-story-body {
    max-width: 760px;
    margin: 32px auto 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
}

.company-story-body p {
    margin: 0 0 18px;
}

.company-story-signature {
    margin-top: 24px;
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================
   FAQ SECTION (new, v22)
   ============================================ */
.faq-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.faq-list {
    max-width: 820px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(99, 102, 241, 0.35);
}

.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--accent-primary-light);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    line-height: 1.65;
}


/* ============================================
   SECTION DIVIDER (animated, between sections)
   ============================================ */
.section-divider {
    width: 100%;
    height: 60px;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    display: block;
}

.section-divider-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.section-divider-line {
    stroke-linecap: round;
    stroke-dasharray: 6 8;
    /* Flow left-to-right. Gradient fade at viewBox edges is handled by
       the linearGradient stops in landing.html <defs>. */
    animation: sdFlow 24s linear infinite;
}

.section-divider-line-2 {
    animation-duration: 32s;
    animation-direction: reverse;
    animation-delay: -4s;
}

@keyframes sdFlow {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -140; }
}

/* Narrow viewports: shorter divider keeps vertical rhythm tight */
@media (max-width: 768px) {
    .section-divider {
        height: 44px;
    }
}

/* Respect user motion preference — disable flow for reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .section-divider-line {
        animation: none;
    }
}

/* ============================================
   LIGHT THEME OVERRIDES
   Adds shadows + stronger borders so white cards
   don't blend into the light-gray page background.
   ============================================ */
[data-theme="light"] .pillar-card,
[data-theme="light"] .experience-block,
[data-theme="light"] .model-card-v2,
[data-theme="light"] .blog-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .pricing-cta-plan,
[data-theme="light"] .step-card {
    border-color: var(--border-secondary);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06),
                0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .pillar-card:hover,
[data-theme="light"] .experience-block:hover,
[data-theme="light"] .model-card-v2:hover,
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .pricing-cta-plan:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12),
                0 2px 4px rgba(15, 23, 42, 0.05);
}

/* Comparison table — sharpen outline + shadow in light mode */
[data-theme="light"] .comparison-table {
    border-color: rgba(99, 102, 241, 0.18);
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.10),
                0 4px 8px -2px rgba(99, 102, 241, 0.08);
}

/* Pricing CTA box — uses dark gradient in dark theme; give light
   theme a subtle tinted bg + shadow so the card still stands out */
[data-theme="light"] .pricing-cta-box {
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(99, 102, 241, 0.02) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.18),
                0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

/* Plan cards inside the pricing CTA box — need visible bg on light */
[data-theme="light"] .pricing-cta-plan {
    background: var(--bg-secondary);  /* #fff — on tinted box = visible */
}

[data-theme="light"] .pricing-cta-plan.featured {
    background: linear-gradient(180deg, #fff 0%, rgba(99, 102, 241, 0.04) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 28px -8px rgba(99, 102, 241, 0.28);
}

/* Model tier wrappers — strengthen subtle accent wash in light theme */
[data-theme="light"] .tier-advanced {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.14);
}

[data-theme="light"] .tier-professional {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.14);
}

/* Analytics tab buttons — clearer active/inactive in light theme */
[data-theme="light"] .analytics-tab-btn {
    color: var(--text-secondary);
}

[data-theme="light"] .analytics-tab-btn.active {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

/* How-it-works step cards also get the card treatment */
[data-theme="light"] .step-card {
    background: var(--bg-secondary);
}

/* Blog card image placeholder — avoid near-invisible gradient on light */
[data-theme="light"] .blog-card-placeholder {
    background: linear-gradient(135deg, #e8ecf0 0%, #f5f7fa 100%);
    color: #9ca3af;
}

/* Section divider lines — bump opacity slightly so the waves remain
   visible against the brighter light background */
[data-theme="light"] #sdGradPrimary stop[offset="50%"] {
    stop-opacity: 0.70;
}

[data-theme="light"] #sdGradAccent stop[offset="50%"] {
    stop-opacity: 0.55;
}

/* Landing-try-line — bump link contrast in light */
[data-theme="light"] .landing-try-line {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
}
