/* ============================================
   WarpParse Website - Grafana Inspired Style
   Deep Dark Tech Theme with Blue/Purple Accents
   ============================================ */

:root {
    /* Primary Colors - Blue/Purple Gradient */
    --primary: #5794f2;
    --primary-dark: #3b82f6;
    --primary-light: #8ab4f8;
    --secondary: #a855f7;
    --secondary-dark: #7c3aed;
    --accent: #f97316;

    /* Background Colors */
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1f2937;
    --bg-header: #0d1117;
    --bg-footer: #090c10;

    /* Text Colors */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Border & Dividers */
    --border: #30363d;
    --border-light: #484f58;

    /* Gradients */
    --gradient-primary: linear-gradient(
        135deg,
        #3b82f6 0%,
        #8b5cf6 50%,
        #a855f7 100%
    );
    --gradient-card: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(168, 85, 247, 0.1) 100%
    );
    --gradient-glow: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);

    /* Spacing */
    --container-max: 1280px;
    --header-height: 70px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica,
        Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}
h3 {
    font-size: clamp(1.2rem, 2vw, 1.75rem);
}
h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-blog {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            ellipse at 20% 20%,
            rgba(59, 130, 246, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 80% 80%,
            rgba(168, 85, 247, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 50% 50%,
            rgba(139, 92, 246, 0.05) 0%,
            transparent 70%
        );
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.hero-title .hero-line-1 {
    text-align: center;
}

.hero-title .hero-line-2 {
    text-align: center;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Install Code */
.install-code {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
}

.install-code code {
    font-size: 0.9rem;
    color: var(--text-primary);
    user-select: all;
}

/* Bash syntax highlighting */
.install-code .cmd {
    color: #79c0ff;
}

.install-code .flag {
    color: #a5d6ff;
}

.install-code .url {
    color: #7ee787;
}

.install-code .pipe {
    color: #ff7b72;
}

.install-code .copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.install-code .copy-btn:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
    border-color: var(--primary);
}

.install-code .copy-btn.copied {
    color: #10b981;
    border-color: #10b981;
}

/* Hero Mini Charts */
.hero-mini-charts {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    width: 100%;
    max-width: 900px;
}

.mini-chart {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.mini-chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.mini-unit {
    font-weight: 400;
    opacity: 0.7;
}

.mini-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mini-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    width: 60px;
    flex-shrink: 0;
}

.mini-bar {
    height: 16px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    min-width: 32px;
    transition: width 0.8s ease;
}

.mini-bar span {
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
}

.mini-bar.wp {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.mini-bar.vector {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.mini-bar.logstash {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.hero-chart-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1;
}

.btn-xs {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Dropdown Menu
   ============================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.dropdown-toggle svg {
    width: 12px;
    height: 8px;
    transition: transform 0.2s ease;
}

.dropdown-toggle.active svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 150px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    display: block;
    padding: 0.375rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
    padding-left: 1rem;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Features Grid
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ============================================
   Summary Comparison Section
   ============================================ */

.summary-comparison {
    background: linear-gradient(180deg, #0f1419 0%, var(--bg-body) 100%);
    padding: 4rem 0;
}

.summary-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.summary-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.summary-chart-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.summary-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.summary-chart-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.summary-chart-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-bar-label {
    width: 90px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.summary-bar-wrapper {
    flex: 1;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.summary-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.75rem;
    border-radius: 6px;
    min-width: 50px;
    transition: width 0.6s ease;
}

.summary-bar.wp-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
}

.summary-bar.vector-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.summary-bar.logstash-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.summary-bar-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.summary-chart-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.highlight-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

/* ============================================
   Performance Section
   ============================================ */

.performance-section {
    background: linear-gradient(180deg, var(--bg-body) 0%, #0f1419 100%);
}

.perf-chart {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.perf-bar-container {
    margin: 1.5rem 0;
}

.perf-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.perf-bar {
    height: 36px;
    background: var(--bg-card-hover);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.perf-bar-wp,
.perf-bar-vector {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: width 1s ease;
}

.perf-bar-wp {
    background: var(--gradient-primary);
    color: white;
}

.perf-bar-vector {
    background: #334155;
    color: var(--text-secondary);
}

.perf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.perf-table th,
.perf-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.perf-table th {
    background: var(--bg-card-hover);
    font-weight: 600;
    color: var(--text-primary);
}

.perf-table tr:hover td {
    background: var(--bg-card-hover);
}

.perf-table .perf-number {
    font-weight: 700;
    color: var(--primary-light);
}

.perf-table .perf-better {
    color: #22c55e;
}

/* ============================================
   Code Comparison
   ============================================ */

.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--border);
}

.code-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.code-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.code-badge.wpl {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}

.code-badge.vrl {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.code-badge.logstash {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

/* Sample Data */
.sample-data {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 2rem;
    overflow: hidden;
}

.sample-header {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--border);
}

.sample-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sample-content {
    padding: 1rem 1.5rem;
    overflow-x: auto;
}

.sample-content pre {
    margin: 0;
    font-family: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #94a3b8;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Size Comparison */
.size-comparison {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.size-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.size-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.size-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wpl-size .size-value {
    color: var(--primary-light);
}

.vrl-size .size-value {
    color: #94a3b8;
}

.logstash-size .size-value {
    color: #fbbf24;
}

/* Three column code comparison */
.code-comparison-three {
    grid-template-columns: 1fr 1fr 1fr;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.code-content .comment {
    color: #6e7681;
}

.code-content .keyword {
    color: #f97316;
}

.code-content .string {
    color: #22c55e;
}

.code-content .function {
    color: var(--primary-light);
}

/* ============================================
   WPL Syntax Highlighting
   ============================================ */

.language-wpl {
    font-family: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* WPL Keywords - Orange */
.wpl-keyword {
    color: #f97316;
    font-weight: 600;
}

/* WPL Types - Purple */
.wpl-type {
    color: #a855f7;
    font-weight: 500;
}

/* WPL Fields - Blue */
.wpl-field {
    color: #3b82f6;
}

/* WPL Names - Cyan */
.wpl-name {
    color: #22d3ee;
    font-weight: 600;
}

/* WPL Strings - Green */
.wpl-string {
    color: #22c55e;
}

/* WPL Modifiers - Yellow */
.wpl-mod {
    color: #eab308;
}

/* WPL Delimiters - Gray */
.wpl-delimiter {
    color: #94a3b8;
}

/* WPL Functions - Teal */
.wpl-func {
    color: #14b8a6;
    font-weight: 500;
}

/* ============================================
   OML Syntax Highlighting
   ============================================ */

.language-oml {
    font-family: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* OML Keywords - Orange */
.oml-keyword {
    color: #f97316;
    font-weight: 600;
}

/* OML Types - Purple */
.oml-type {
    color: #a855f7;
    font-weight: 500;
}

/* OML Fields - Blue */
.oml-field {
    color: #3b82f6;
}

/* OML Strings - Green */
.oml-string {
    color: #22c55e;
}

/* OML Numbers - Pink */
.oml-number {
    color: #ec4899;
}

/* OML Functions - Cyan */
.oml-func {
    color: #06b6d4;
}

/* OML Operators - Yellow */
.oml-operator {
    color: #eab308;
}

/* OML Options - Gray */
.oml-option {
    color: #94a3b8;
}

/* ============================================
   VRL Syntax Highlighting
   ============================================ */

.language-vrl {
    font-family: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* VRL Keywords - Orange */
.vrl-keyword {
    color: #f97316;
    font-weight: 600;
}

/* VRL Fields - Gray */
.vrl-field {
    color: #94a3b8;
}

/* VRL Strings - Green */
.vrl-string {
    color: #22c55e;
}

/* VRL Numbers - Pink */
.vrl-number {
    color: #ec4899;
}

/* VRL Functions - Cyan */
.vrl-func {
    color: #06b6d4;
}

/* VRL Operators - Yellow */
.vrl-operator {
    color: #eab308;
}

/* ============================================
   Connector Grid
   ============================================ */

.connector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.connector-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.connector-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

a.connector-card {
    text-decoration: none;
    color: inherit;
}

.connector-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.connector-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Section Titles
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.report-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--primary-light);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.report-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
}

.perf-report-link {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Performance Section Styles
   ============================================ */

/* Test Environment Banner */
.test-env-banner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.env-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.env-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.env-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Key Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.metric-card.metric-primary {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(59, 130, 246, 0.05) 100%
    );
}

.metric-card.metric-secondary {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(139, 92, 246, 0.05) 100%
    );
}

.metric-card.metric-accent {
    border-color: rgba(249, 115, 22, 0.3);
    background: linear-gradient(
        135deg,
        rgba(249, 115, 22, 0.1) 0%,
        rgba(249, 115, 22, 0.05) 100%
    );
}

.metric-card.metric-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.1) 0%,
        rgba(34, 197, 94, 0.05) 100%
    );
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.metric-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Performance Tabs */
.perf-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.perf-tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.perf-tab-btn:hover {
    color: var(--text-primary);
}

.perf-tab-btn.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

/* Performance Mode Tabs (2-level navigation) */
.perf-mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.perf-mode-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.perf-mode-btn:hover {
    color: var(--text-primary);
}

.perf-mode-btn.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

/* Mode Content Container */
.perf-mode-content {
    display: none;
}

.perf-mode-content.active {
    display: block;
}

/* Log Type Tabs */
.perf-log-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.perf-log-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.perf-log-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.perf-log-btn.active {
    background: var(--gradient-card);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Log Content Container */
.perf-log-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.perf-log-content.active {
    display: block;
}

/* Table Title */
.table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Performance Full Table */
.perf-full-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.perf-full-table thead {
    background: var(--bg-card-hover);
}

.perf-full-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.perf-full-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.perf-full-table tbody tr:last-child td {
    border-bottom: none;
}

.perf-full-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Engine Rows */
.perf-full-table .wp-row td:first-child {
    color: var(--primary-light);
    font-weight: 600;
}

.perf-full-table .vector-row td:first-child {
    color: var(--text-muted);
    font-weight: 600;
}

.perf-full-table .wp-row td:nth-child(3),
.perf-full-table .wp-row td:nth-child(4) {
    color: var(--primary-light);
    font-weight: 600;
}

.perf-full-table .vector-row td:nth-child(3),
.perf-full-table .vector-row td:nth-child(4) {
    color: var(--text-muted);
}

/* ============================================
   Comparison Chart Cards
   ============================================ */

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.comparison-card .comp-topology {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-card .comp-charts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-card .comp-chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comparison-card .comp-label {
    min-width: 100px;
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-card .comp-label:first-child {
    color: var(--primary-light);
}

.comparison-card .comp-label:nth-child(2) {
    color: var(--text-muted);
}

.comparison-card .comp-label:nth-child(3) {
    color: #94a3b8;
}

.comparison-card .comp-bar-wrapper {
    flex: 1;
    height: 36px;
    background: var(--bg-card-hover);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.comparison-card .comp-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    transition: width 0.8s ease;
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
}

.comparison-card .comp-bar.wp-bar {
    background: var(--gradient-primary);
    color: white;
}

.comparison-card .comp-bar.vector-bar {
    background: #334155;
    color: var(--text-muted);
}

.comparison-card .comp-bar.vectorfixed-bar {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: var(--text-primary);
}

.comparison-card .comp-bar.logstash-bar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.comparison-card .comp-value {
    position: absolute;
    right: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.comparison-card .comp-bar.wp-bar .comp-value {
    color: white;
}

.comparison-card .comp-bar.vector-bar .comp-value {
    color: var(--text-secondary);
    right: auto;
    left: 0.5rem;
}

.comparison-card .comp-ratio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.comparison-card .ratio-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(34, 197, 94, 0.1) 100%
    );
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
}

.comparison-card .ratio-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Tab Content */
.perf-tab-content {
    display: none;
}

.perf-tab-content.active {
    display: block;
}

.chart-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chart-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.chart-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.chart-note {
    margin-top: 0.5rem;
    text-align: center;
}

.chart-note small {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Performance Chart Grid */
.perf-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.perf-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.perf-chart-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.chart-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.chart-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

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

.chart-metric.wp .metric-number {
    color: var(--primary-light);
}

.chart-metric.vector .metric-number {
    color: var(--text-muted);
}

.metric-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.metric-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vs-divider {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 1rem;
}

.performance-ratio {
    text-align: center;
    margin-bottom: 1rem;
}

.ratio-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #22c55e;
    display: block;
}

.ratio-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-bar {
    height: 8px;
    background: var(--bg-card-hover);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.progress-fill {
    height: 100%;
    transition: width 1s ease;
}

.progress-fill.wp {
    background: var(--gradient-primary);
}

.progress-fill.vector {
    background: #334155;
}

/* Performance Table */
.perf-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.perf-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.perf-comparison-table th,
.perf-comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.perf-comparison-table th {
    background: var(--bg-card-hover);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.perf-comparison-table tr:last-child td {
    border-bottom: none;
}

.perf-comparison-table tr:hover td {
    background: var(--bg-card-hover);
}

.perf-comparison-table .wp-value {
    color: var(--primary-light);
    font-weight: 600;
}

.perf-comparison-table .vector-value {
    color: var(--text-muted);
}

.perf-comparison-table .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Rules Comparison Grid */
.rules-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.rule-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.rule-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rule-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rule-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    width: 80px;
    flex-shrink: 0;
}

.rule-bar .rule-fill-wrapper {
    flex: 1;
    height: 8px;
    background: var(--bg-card-hover);
    border-radius: 4px;
    overflow: hidden;
}

.rule-fill {
    height: 100%;
    border-radius: 4px;
}

.wp-rule .rule-fill {
    background: var(--gradient-primary);
}

.vector-rule .rule-fill {
    background: #334155;
}

.rule-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.rule-savings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: #22c55e;
    font-weight: 600;
}

/* Rules Benefit Card */
.rules-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Performance Summary */
.perf-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.summary-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.summary-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.summary-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.summary-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   Wpeditor Gallery
   ============================================ */

.wpeditor-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.wpeditor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.wpeditor-card:hover {
    transform: translateY(-4px);
    box-shadow:
        var(--shadow-lg),
        0 0 30px rgba(59, 130, 246, 0.2);
}

.wpeditor-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border);
}

.wpeditor-caption {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-card-hover);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop Only */
.desktop-only {
    display: flex;
}

/* Mobile Only */
.mobile-only {
    display: none;
}

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

    .perf-summary {
        grid-template-columns: 1fr;
    }

    .code-comparison {
        grid-template-columns: 1fr;
    }

    .code-comparison-three {
        grid-template-columns: 1fr;
    }

    .size-comparison {
        gap: 2rem;
    }

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

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Performance tabs scrollable */
    .perf-log-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .perf-log-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .header {
        padding: 1rem 0;
    }

    .header-inner {
        position: relative;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        padding: 1rem;
        gap: 0;
        display: none;
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Hero */
    .hero {
        padding: 4rem 0;
        text-align: center;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-mini-charts {
        flex-direction: column;
        gap: 1rem;
    }

    .mini-label {
        width: 55px;
        font-size: 0.6rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

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

    /* Performance */
    .section-title {
        font-size: 1.75rem;
    }

    .perf-mode-tabs {
        flex-wrap: wrap;
    }

    .perf-mode-btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    /* Comparison Cards */
    .comp-chart-item {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .comp-label {
        min-width: 65px;
        font-size: 0.75rem;
    }

    .comp-bar-wrapper {
        flex: 1;
        min-width: 0;
        height: 28px;
    }

    .comp-bar {
        font-size: 0.65rem;
        padding: 0 0.4rem;
        justify-content: center;
    }

    .comp-value {
        position: static;
        font-size: 0.65rem;
    }

    .comp-ratio {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .ratio-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .ratio-text {
        font-size: 0.7rem;
    }

    /* Code Blocks */
    .code-content pre {
        font-size: 0.75rem;
    }

    /* Size Comparison */
    .size-comparison {
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 1rem;
    }

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

    /* Sample Data */
    .sample-content pre {
        font-size: 0.7rem;
    }

    /* Connectors */
    .connector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Wpeditor Gallery - Mobile */
    .wpeditor-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .test-env-banner {
        flex-direction: column;
        gap: 1rem;
    }

    /* Cards */
    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* Performance mode tabs */
    .chart-header h3 {
        font-size: 1rem;
    }

    .ratio-badge {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }

    /* Summary */
    .summary-card {
        padding: 1rem;
    }

    /* CTA Section */
    .btn-group.justify-center {
        flex-direction: column;
    }

    .btn-group.justify-center .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

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

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

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

    .hero-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Performance tabs */
    .perf-log-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .comp-topology {
        font-size: 0.8rem;
    }

    /* Improve touch targets */
    .perf-log-btn {
        min-height: 40px;
    }

    .perf-mode-btn {
        min-height: 44px;
    }

    /* Code block improvements */
    .code-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comparison-card {
        padding: 1rem;
    }

    /* Better scrolling on charts */
    .comp-bar-wrapper {
        min-height: 32px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

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

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mt-4 {
    margin-top: 2rem;
}
.mt-5 {
    margin-top: 2.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.mb-4 {
    margin-bottom: 2rem;
}
.mb-5 {
    margin-bottom: 2.5rem;
}

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

.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.gap-1 {
    gap: 0.5rem;
}
.gap-2 {
    gap: 1rem;
}
.gap-3 {
    gap: 1.5rem;
}
.gap-4 {
    gap: 2rem;
}

/* ==================== Resource Usage Charts ==================== */
.resource-section {
    background: linear-gradient(180deg, #0d1117 0%, rgba(13, 17, 23, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.resource-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(87, 148, 242, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.resource-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.resource-intro h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #c9d1d9;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #5794f2 0%, #8b5cf6 50%, #ff7a45 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resource-subtitle {
    font-size: 1.1rem;
    color: #8b949e;
    margin-bottom: 1.5rem;
}

.resource-note {
    background: rgba(87, 148, 242, 0.1);
    border-left: 3px solid #5794f2;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #c9d1d9;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: left;
}

.resource-note strong {
    color: #5794f2;
}

.resource-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-chart-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.resource-chart-card:hover {
    border-color: #5794f2;
    box-shadow: 0 8px 24px rgba(87, 148, 242, 0.15);
    transform: translateY(-2px);
}

.chart-card-header {
    margin-bottom: 1.5rem;
}

.chart-card-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 0.5rem;
}

.chart-card-header p {
    font-size: 0.9rem;
    color: #8b949e;
}

.chart-container {
    height: 350px;
    margin-bottom: 1.5rem;
    position: relative;
}

.chart-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #30363d;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #8b949e;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-dot.wp-dot {
    background: linear-gradient(135deg, #5794f2 0%, #3b82f6 100%);
}

.legend-dot.vector-vrl-dot {
    background: linear-gradient(135deg, #ff7a45 0%, #ff5722 100%);
}

.legend-dot.vector-fixed-dot {
    background: linear-gradient(135deg, #ff9800 0%, #ff7043 100%);
}

.legend-dot.logstash-dot {
    background: linear-gradient(135deg, #9333ea 0%, #8b5cf6 100%);
}

.resource-efficiency-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.efficiency-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.efficiency-card.highlight-card {
    background: linear-gradient(135deg, rgba(87, 148, 242, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: #5794f2;
}

.efficiency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(87, 148, 242, 0.2);
}

.efficiency-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.efficiency-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #c9d1d9;
    margin-bottom: 0.75rem;
    text-align: center;
}

.efficiency-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5794f2 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
}

.efficiency-desc {
    font-size: 0.95rem;
    color: #8b949e;
    line-height: 1.6;
    text-align: center;
}

.efficiency-desc strong {
    color: #5794f2;
    font-weight: 600;
}

/* Responsive adjustments for resource charts */
@media (max-width: 1200px) {
    .resource-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .resource-intro h3 {
        font-size: 1.5rem;
    }

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

    .resource-charts-grid {
        gap: 1.5rem;
    }

    .resource-chart-card {
        padding: 1.5rem;
    }

    .chart-container {
        height: 300px;
    }

    .chart-legend {
        grid-template-columns: 1fr;
    }

    .resource-efficiency-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .efficiency-card {
        padding: 1.5rem;
    }

    .efficiency-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .resource-intro h3 {
        font-size: 1.3rem;
    }

    .resource-note {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .chart-container {
        height: 250px;
    }

    .efficiency-icon {
        font-size: 2rem;
    }
}

/* ==================== Blog Section ==================== */
.blog-section {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.95) 0%, #0d1117 100%);
    position: relative;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(87, 148, 242, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #5794f2 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    border-color: #5794f2;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(87, 148, 242, 0.2);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(87, 148, 242, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.blog-day {
    font-size: 2rem;
    font-weight: 700;
    color: #5794f2;
    line-height: 1;
}

.blog-month {
    font-size: 0.85rem;
    color: #8b949e;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.blog-year {
    font-size: 0.75rem;
    color: #6e7681;
    margin-top: 0.25rem;
}

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.blog-title a {
    color: #c9d1d9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: #5794f2;
}

.blog-excerpt {
    color: #8b949e;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(87, 148, 242, 0.1);
    border: 1px solid rgba(87, 148, 242, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #5794f2;
    font-weight: 500;
}

.blog-read-more {
    color: #5794f2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-top: auto;
}

.blog-read-more:hover {
    color: #3b82f6;
    gap: 0.75rem;
}

/* Blog responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        flex-direction: column;
        padding: 1.5rem;
    }

    .blog-date {
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .blog-day {
        font-size: 1.5rem;
    }

    .blog-month,
    .blog-year {
        align-self: center;
        margin-top: 0;
    }

    .blog-title {
        font-size: 1.2rem;
    }
}

