/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-glass: rgba(20, 20, 30, 0.4);
    --bg-glass-hover: rgba(30, 30, 45, 0.6);

    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;

    --primary: #6366f1;
    /* Indigo */
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    /* Pink */

    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Brands */
    --brand-benzinga: #ff6b00;
    /* Approximate Benzinga Orange */
    --brand-finviz: #0ea5e9;
    /* Approximate Finviz Blue */

    /* Glassmorphism */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('hero-bg.jpg') center/cover no-repeat;
    z-index: -2;
    animation: slowZoom 25s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.45) 0%, var(--bg-dark) 100vh, var(--bg-dark) 100%);
    z-index: -1;
}

/* Animated Background Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.blob-2 {
    top: 40%;
    right: -20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--brand-finviz) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--brand-benzinga) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-small {
    font-size: 0.875rem;
}

.text-success {
    color: var(--success);
}

.text-error {
    color: var(--error);
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.hidden {
    display: none !important;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lucide {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-panel:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gap-small {
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.site-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    /* Optional: margin-top if needed for exact vertical optical alignment */
    transform: translateY(2px);
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Removed overflow:hidden so it doesn't clip background logic if any remained */
}

.hero .container {
    position: relative;
    z-index: 1;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Hero Cards Layout (Replaces Mockup) */
.hero-cards-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    gap: 2rem;
}

.hero-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    text-decoration: none;
    display: block;
    color: var(--text-primary);
}

.hero-card:hover {
    transform: translateY(-5px);
}

.benzinga-hero-card:hover {
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.2);
}

.finviz-hero-card:hover {
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.2);
}

.brand-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
}

.benzinga-glow {
    background: var(--brand-benzinga);
}

.finviz-glow {
    background: var(--brand-finviz);
}

.hero-brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.benzinga-img {
    height: 65px;
    /* Added to visually scale Benzinga up */
    margin-bottom: 1rem;
}

.finviz-img {
    height: 70px;
    margin-bottom: 1rem;
}

.hero-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.card-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-features i {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.benzinga-hero-card .card-features i {
    color: var(--brand-benzinga);
}

.finviz-hero-card .card-features i {
    color: var(--brand-finviz);
}

.vs-badge-hero {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 2;
}

.vs-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Comparison Table */
.table-container {
    overflow-x: auto;
    padding: 1px;
    /* Show border properly */
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-table th {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
}

.compare-table th:first-child {
    border-top-left-radius: var(--border-radius);
}

.compare-table th:last-child {
    border-top-right-radius: var(--border-radius);
}

.brand-cell {
    text-align: center;
    width: 30%;
}

.brand-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.benzinga-brand {
    color: var(--brand-benzinga);
    border-bottom: 2px solid var(--brand-benzinga) !important;
}

.finviz-brand {
    color: var(--brand-finviz);
    border-bottom: 2px solid var(--brand-finviz) !important;
}

.compare-table td {
    color: var(--text-secondary);
}

.compare-table td:not(:first-child) {
    text-align: center;
}

.compare-table tr:hover background {
    background: rgba(255, 255, 255, 0.02);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.icon-success {
    color: var(--success);
    width: 1.25rem;
    height: 1.25rem;
}

.icon-error {
    color: var(--error);
    width: 1.25rem;
    height: 1.25rem;
}

/* Pros and Cons Cards */
.card-header {
    padding: 1.5rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.benzinga-border {
    border-top: 3px solid var(--brand-benzinga);
}

.finviz-border {
    border-top: 3px solid var(--brand-finviz);
}

.card-body {
    padding: 2rem;
}

.pros-list ul,
.cons-list ul {
    margin-top: 1rem;
}

.pros-list li,
.cons-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pros-list li::before,
.cons-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.pros-list li::before {
    color: var(--success);
}

.cons-list li::before {
    color: var(--error);
}

/* Pricing */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benzinga-bg {
    background: rgba(255, 107, 0, 0.15);
    color: var(--brand-benzinga);
}

.finviz-bg {
    background: rgba(14, 165, 233, 0.15);
    color: var(--brand-finviz);
}

.price {
    margin: 1.5rem 0 0.5rem;
    display: flex;
    align-items: baseline;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.period {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.annual-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-height: 1.2rem;
}

.pricing-features {
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features i {
    color: var(--primary);
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

/* Reviews */
.review-card {
    padding: 2rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.rating {
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.star.filled {
    color: var(--warning);
    fill: var(--warning);
}

.star.half {
    color: var(--warning);
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
}

/* Verdict */
.verdict-panel {
    padding: 3rem;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.6), rgba(10, 10, 15, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.verdict-grid {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    gap: 2rem;
}

.verdict-item {
    flex: 1;
    text-align: left;
}

.verdict-item h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.verdict-item p {
    color: var(--text-secondary);
}

.verdict-divider {
    width: 1px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-darker);
}

.footer .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer .site-logo-img {
    height: 50px;
    transform: none;
}

.justify-center {
    justify-content: center;
}

/* ==========================================================================
   Animations & Interactivity
   ========================================================================== */

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: translateY(-10px);
    }

    .compare-table th,
    .compare-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        /* simple hidden for mobile MVP */
    }

    .header-inner .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .platform-versus,
    .hero-cards-layout {
        flex-direction: column;
    }

    .hero-card {
        width: 100%;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .verdict-grid {
        flex-direction: column;
    }

    .verdict-divider {
        width: 100%;
        height: 1px;
    }

    .verdict-item {
        text-align: center;
    }
}