@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #0B1220;
    --secondary: #2563EB;
    --accent: #06B6D4;
    --highlight: #14B8A6;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --dark: #111827;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --radius: 18px;
    --gradient: linear-gradient(135deg, #2563EB, #06B6D4);
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: var(--surface) !important;
    box-shadow: var(--shadow);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    background: var(--background);
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag.specialized { background: #DBEAFE; color: #1E40AF; }
.tag.general { background: #E0E7FF; color: #3730A3; }

/* Navigation */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* Split Hero */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 5rem);
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

.dashboard-mockup {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.dashboard-mockup-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: var(--radius);
    opacity: 0.1;
    z-index: 1;
}

/* Card Interactive System */
.card-hover {
    position: relative;
    transition: var(--transition);
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}
.card-hover .full-link::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 10;
}
.card-hover:hover .btn-primary {
    background: var(--highlight);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.card-hover:hover .btn-outline {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.btn-text {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary);
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}
.btn-text::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
.card-hover:hover .btn-text::after {
    transform: translateX(6px);
}
.card-hover:hover .btn-text {
    color: var(--highlight);
}

/* Bento Grid */
.bento-section {
    padding: 6rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.bento-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-tall { grid-column: span 1; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.5rem;
}

/* Horizontal Cards */
.horizontal-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hc-image {
    background: var(--background);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
}

.hc-image img {
    max-height: 120px;
    object-fit: contain;
}

.hc-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.hc-features {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
}

.feature-item svg {
    color: var(--highlight);
    width: 20px;
    height: 20px;
}

/* Masonry Blog / Reviews */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.masonry-item img {
    margin-bottom: 1rem;
    border-radius: calc(var(--radius) - 8px);
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Editorial Layout */
.editorial-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.sticky-sidebar {
    position: sticky;
    top: 7rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.toc-list {
    list-style: none;
    margin-top: 1rem;
}

.toc-list li { margin-bottom: 0.75rem; }
.toc-list a { color: var(--muted); font-size: 0.875rem; }
.toc-list a:hover { color: var(--secondary); }

.editorial-content h2 { margin: 2.5rem 0 1rem; }
.editorial-content p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text); }
.editorial-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.editorial-content li { margin-bottom: 0.5rem; }

/* Pro/Con Dashboard */
.pro-con-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pro-box, .con-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.pro-box h4 { color: var(--highlight); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.con-box h4 { color: #EF4444; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }

.pro-box ul, .con-box ul { list-style: none; padding: 0; }
.pro-box li, .con-box li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 4rem;
}

.timeline-marker {
    position: absolute;
    left: 16px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--secondary);
}

.timeline-content {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Comparison Matrix */
.matrix-wrapper {
    overflow-x: auto;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin: 3rem 0;
}

.comparison-matrix {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-matrix th, .comparison-matrix td {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-matrix th {
    background: var(--background);
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    position: sticky;
    top: 0;
}

.comparison-matrix td:first-child, .comparison-matrix th:first-child {
    text-align: left;
    font-weight: 600;
}

.check-icon { color: var(--highlight); width: 24px; height: 24px; }
.cross-icon { color: var(--muted); width: 24px; height: 24px; opacity: 0.5; }

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
}

/* FAQ Accordion */
.faq-section { max-width: 800px; margin: 4rem auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--muted);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Floating CTA & Back to top */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--surface);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-banner.show {
    bottom: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--surface);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.brand-logo-footer {
    height: 48px;
    width: auto;
    display: block;
}

.footer-links h4 { color: var(--surface); margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #9CA3AF; }
.footer-links a:hover { color: var(--surface); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    background: var(--background);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.error-msg { color: #EF4444; font-size: 0.875rem; margin-top: 0.25rem; display: none; }
.is-invalid { border-color: #EF4444; }
.is-invalid + .error-msg { display: block; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; }
    .masonry-grid { column-count: 2; }
    .editorial-layout { grid-template-columns: 1fr; }
    .sticky-sidebar { display: none; }
    .horizontal-card { grid-template-columns: 1fr; }
    .hc-image { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
    .hero-split { grid-template-columns: 1fr; gap: 2rem; text-align: center; padding: 2rem 0; }
    .hero-actions { justify-content: center; }
    .nav-links {
        display: none; position: absolute; top: 5rem; left: 0; width: 100%;
        background: var(--surface); flex-direction: column; padding: 2rem; gap: 1rem;
        box-shadow: var(--shadow);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    .nav-container .btn-primary { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .masonry-grid { column-count: 1; }
    .pro-con-dashboard { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-tall, .bento-wide { grid-column: span 1; grid-row: span 1; }
    .cookie-buttons { flex-direction: column; }
    .cookie-buttons .btn { width: 100%; }
}