/* StackSift Landing Page Styles - Premium Refresh */
/* Version 2.0 - Sophisticated Observatory Design */

/* ====================================
   UTILITY CLASSES
   ==================================== */

.icon-accent-primary { color: var(--accent-primary); }
.icon-accent-purple { color: var(--accent-purple); }
.icon-accent-gold { color: var(--accent-gold); }
.icon-accent-danger { color: var(--accent-danger); }
.text-accent-primary { color: var(--accent-primary); }

/* Body overflow for landing page */
body {
    overflow-y: auto !important;
    overflow-x: hidden;
    height: auto !important;
    font-family: var(--font-ui);
}

/* ====================================
   NAVIGATION
   ==================================== */

.nav-landing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-8) var(--space-20);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(var(--blur-lg));
    border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    text-decoration: none;
}

.logo-mark {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: var(--text-xl);
    line-height: 1;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    gap: var(--space-16);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-md);
    font-weight: 500;
    transition: color var(--transition-default);
}

.nav-link:hover {
    color: var(--text-main);
}

.btn-nav-cta {
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-default);
}

.btn-nav-cta:hover {
    background: var(--accent-primary-muted);
    box-shadow: var(--glow-primary);
}

/* ====================================
   HERO SECTION
   ==================================== */

.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
    align-items: center;
    padding: 140px 60px 60px;
    min-height: 85vh;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Subtle ambient glow - restrained */
.landing-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 147, 184, 0.08) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    pointer-events: none;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

/* Hero Title - Newsreader Serif */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-8);
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: var(--accent-primary);
}

/* Stats Line */
.hero-stats {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-10);
    letter-spacing: 0.02em;
}

.stat-highlight {
    color: var(--accent-signal);
    font-weight: 500;
}

/* Subtitle */
.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: var(--space-16);
    line-height: 1.7;
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: var(--space-8);
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
    padding: var(--space-7, 14px) var(--space-16);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-md);
    text-decoration: none;
    transition: all var(--transition-medium) var(--ease-premium);
    box-shadow: var(--shadow-primary);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
    filter: brightness(1.1);
}

.btn-secondary {
    color: var(--text-muted);
    padding: var(--space-7, 14px) var(--space-10);
    font-weight: 500;
    font-size: var(--text-md);
    text-decoration: none;
    transition: color var(--transition-default);
}

.btn-secondary:hover {
    color: var(--text-main);
}

.hero-reassurance {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-10);
    opacity: 0.8;
}

/* ====================================
   TERMINAL PREVIEW
   ==================================== */

.hero-visual {
    position: relative;
    z-index: 1;
}

.terminal-preview {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(145deg, var(--bg-panel), var(--bg-deep));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    /* Layered shadows for depth - no 3D tilt */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    margin-left: auto;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27CA40; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
    flex: 1;
    text-align: center;
    /* Balance the window controls: 3 dots (12px) + 2 gaps (6px) = ~54px */
    padding-right: calc(12px * 3 + 6px * 3);
}

.terminal-content {
    padding: var(--space-12);
}

.terminal-section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-10);
}

/* Sentiment Rows */
.sentiment-row {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.sentiment-row:last-of-type {
    border-bottom: none;
}

.ticker {
    font-family: var(--font-mono);
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.sentiment-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.sentiment-bar {
    height: 100%;
    width: var(--sentiment);
    border-radius: var(--radius-full);
    transition: width 0.6s var(--ease-premium);
}

.sentiment-bar.bullish {
    background: linear-gradient(90deg, var(--sentiment-bullish-text), #34D399);
}

.sentiment-bar.bearish {
    background: linear-gradient(90deg, var(--sentiment-bearish-text), #F87171);
}

.sentiment-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.sentiment-label.bullish {
    color: var(--sentiment-bullish-text);
    background: var(--sentiment-bullish-bg);
}

.sentiment-label.bearish {
    color: var(--sentiment-bearish-text);
    background: var(--sentiment-bearish-bg);
}

.mention-count {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.terminal-cta {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-subtle);
}

.preview-link {
    font-size: var(--text-sm);
    color: var(--accent-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: color var(--transition-default);
}

.preview-link:hover {
    color: var(--accent-primary-hover);
}

.preview-link svg {
    width: 14px;
    height: 14px;
}

/* ====================================
   CAPABILITY BAR
   ==================================== */

.capability-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-20);
    padding: var(--space-16) var(--space-12);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.capability {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.capability-icon {
    color: var(--accent-primary);
    opacity: 0.8;
}

.capability-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* ====================================
   CATEGORY TAGS
   ==================================== */

.category-tags {
    text-align: center;
    padding: var(--space-16) var(--space-12);
}

.tags-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-8);
}

.tags-container {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.tag {
    font-size: var(--text-xs);
    color: var(--text-muted);
    background: var(--accent-primary-muted);
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
}

/* ====================================
   FEATURES SECTION
   ==================================== */

.features-section {
    padding: 60px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    text-align: center;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: var(--text-sm);
    margin-bottom: var(--space-20);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-12);
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    padding: var(--space-16);
    border-radius: var(--radius-xl);
    backdrop-filter: var(--backdrop-default);
    transition: all var(--transition-slow) var(--ease-premium);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.02), transparent 60%);
    pointer-events: none;
    border-radius: var(--radius-xl);
}

.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--accent-primary-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-10);
    border: 1px solid var(--border-glass);
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-family: var(--font-ui);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: var(--space-4);
}

.feature-desc {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

/* ====================================
   FOOTER
   ==================================== */

.landing-footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-24) var(--space-10);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
    background: var(--bg-deep);
}

.footer-tech {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: var(--space-12);
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    margin-bottom: var(--space-10);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-default);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* ====================================
   PREMIUM ANIMATIONS
   ==================================== */

.premium-reveal {
    animation: revealPremium var(--transition-premium-slow) var(--ease-premium) backwards;
}

.premium-reveal.stagger-1 { animation-delay: 0.15s; }
.premium-reveal.stagger-2 { animation-delay: 0.3s; }
.premium-reveal.stagger-3 { animation-delay: 0.45s; }
.premium-reveal.stagger-4 { animation-delay: 0.6s; }
.premium-reveal.stagger-5 { animation-delay: 0.75s; }

/* Terminal row stagger */
.sentiment-row {
    animation: slideInRow 0.6s var(--ease-premium) backwards;
    animation-delay: calc(1.2s + (var(--row-delay, 0) * 0.15s));
}

/* Capability bar animation */
.capability-bar {
    animation: revealPremium 0.8s var(--ease-premium) 1.5s backwards;
}

/* Category tags animation */
.category-tags {
    animation: revealPremium 0.8s var(--ease-premium) 1.7s backwards;
}

/* Features scroll reveal */
.features-grid .feature-card {
    animation: revealPremium 0.8s var(--ease-premium) backwards;
    animation-delay: calc(0.1s + (var(--stagger-index, 0) * 0.1s));
}

/* ====================================
   REDUCED MOTION
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        animation-delay: 0ms !important;
    }

    .premium-reveal,
    .sentiment-row,
    .capability-bar,
    .category-tags,
    .feature-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ====================================
   RESPONSIVE - TABLET
   ==================================== */

@media (max-width: 1024px) {
    .landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 24px 60px;
        gap: var(--space-20);
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-subtitle {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        order: 2;
    }

    .terminal-preview {
        max-width: 100%;
        margin: 0 auto;
    }

    .cta-group {
        justify-content: center;
    }

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

    .capability-bar {
        gap: var(--space-12);
    }

    .nav-menu {
        display: none;
    }
}

/* ====================================
   RESPONSIVE - MOBILE
   ==================================== */

@media (max-width: 640px) {
    .nav-landing {
        padding: var(--space-6) var(--space-8);
    }

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

    .btn-nav-cta {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-xs);
    }

    .landing-hero {
        padding: 100px 16px 40px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-stats {
        font-size: var(--text-md);
    }

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

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        /* Touch target minimum */
        min-height: 48px;
    }

    .terminal-content {
        padding: var(--space-8);
    }

    .sentiment-row {
        grid-template-columns: 45px 1fr auto;
        gap: var(--space-4);
    }

    .mention-count {
        display: none;
    }

    .capability-bar {
        flex-direction: column;
        align-items: center;
        gap: var(--space-6);
        padding: var(--space-12) var(--space-8);
    }

    .tags-container {
        gap: var(--space-3);
    }

    .tag {
        font-size: 10px;
        padding: var(--space-1) var(--space-4);
    }

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

    .feature-card {
        padding: var(--space-12);
    }
}

/* ====================================
   SCROLL REVEAL (for features)
   ==================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
