:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-alt: #eef3ff;
    --surface: #f1f5ff;
    --primary: #2457f5;
    --primary-dark: #173fb8;
    --accent: #7dd3fc;
    --text: #162033;
    --muted: #5b667a;
    --border: #dfe7f5;
    --success: #1a9d6a;
    --warning: #f39c12;
    --shadow: 0 10px 30px rgba(24, 33, 58, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(245, 247, 251, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(223, 231, 245, 0.8);
    z-index: 10;
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--shadow);
}

.dot {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 20px;
    color: var(--muted);
    font-weight: 600;
}

.hero {
    padding: 70px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-copy h1,
.section-heading h2,
.why-section h2,
.page-header h1 {
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 4.1rem);
    max-width: 600px;
}

.subtitle {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 0.2s ease;
}

.button.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 12px 25px rgba(36, 87, 245, 0.22);
}

.button.secondary {
    background: #fff;
    border-color: var(--border);
}

.button:hover {
    transform: translateY(-1px);
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.mini-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 255, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
}

.mini-card strong {
    display: block;
    margin: 6px 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.mini-card .muted {
    color: var(--muted);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.mini-card small {
    color: var(--muted);
}

.stat-highlight {
    background: linear-gradient(135deg, #edf4ff, #eafcf7);
    border-color: rgba(26, 157, 106, 0.15);
}

.tools-section,
.why-section,
.page-shell {
    padding: 36px 0 72px;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.why-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.tool-search-wrap {
    margin-bottom: 24px;
}

.search-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
}

.search-bar {
    margin-bottom: 14px;
}

.search-bar input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 0 18px;
    font: inherit;
    color: var(--text);
    box-shadow: var(--shadow);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.filter-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tool-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2457f5, #6dd3ff, #53d2a7);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(24, 33, 58, 0.12);
}

.tool-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #e7edff, #dffaf0);
    margin-bottom: 14px;
    color: var(--primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tool-card:nth-child(1) .tool-icon {
    background: linear-gradient(135deg, #e7edff, #dfe9ff);
    color: #2d5eff;
}

.tool-card:nth-child(2) .tool-icon {
    background: linear-gradient(135deg, #e8f7ff, #dff8ef);
    color: #0d8ea8;
}

.tool-card:nth-child(3) .tool-icon {
    background: linear-gradient(135deg, #ecfdf5, #dffaf0);
    color: #0f9d67;
}

.tool-card:nth-child(4) .tool-icon {
    background: linear-gradient(135deg, #fff4df, #ffe5d6);
    color: #d97706;
}

.tool-card:nth-child(5) .tool-icon {
    background: linear-gradient(135deg, #f0f4ff, #e2ebff);
    color: #4f46e5;
}

.tool-card:nth-child(6) .tool-icon {
    background: linear-gradient(135deg, #fdf2f8, #ffe4ec);
    color: #db2777;
}

.tool-card:nth-child(7) .tool-icon {
    background: linear-gradient(135deg, #eefbf4, #ddf7ee);
    color: #0ca678;
}

.tool-card:nth-child(8) .tool-icon {
    background: linear-gradient(135deg, #fff5f5, #ffe7e7);
    color: #e11d48;
}

.tool-card:nth-child(9) .tool-icon {
    background: linear-gradient(135deg, #edf7ff, #dbeafe);
    color: #2563eb;
}

.tool-card:nth-child(10) .tool-icon {
    background: linear-gradient(135deg, #f5f3ff, #e9e7ff);
    color: #7c3aed;
}

.tool-card:nth-child(11) .tool-icon {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #f59e0b;
}

.tool-card:nth-child(12) .tool-icon {
    background: linear-gradient(135deg, #fdf2f8, #fae8ff);
    color: #a21caf;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor;
    fill: none;
}

.tool-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.tool-card p {
    margin: 0;
    color: var(--muted);
}

.placeholder-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(238, 243, 255, .8));
}

.split-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 28px;
    align-items: center;
}

.feature-list {
    margin: 20px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 1.02rem;
}

.feature-list li+li {
    margin-top: 12px;
}

.ad-panel {
    background: linear-gradient(135deg, #e7ecff, #f9fafe);
    border: 1px solid var(--border);
    border-radius: 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 28px;
    color: var(--text);
    box-shadow: var(--shadow);
}

.ad-panel span {
    display: inline-block;
    padding: 8px 12px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(36, 87, 245, 0.08);
    border-radius: 999px;
    color: var(--primary);
    font-weight: 700;
}

.ad-panel strong {
    display: block;
    margin-top: 14px;
    font-size: 1.35rem;
}

.ad-panel p {
    margin: 8px 0 0;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid rgba(223, 231, 245, 0.8);
    background: #fff;
}

.footer-brand {
    font-size: 1rem;
}

.page-shell {
    padding-top: 48px;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.55fr);
    gap: 28px;
    align-items: start;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.page-header p {
    color: var(--muted);
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

input,
select {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0 14px;
    font: inherit;
    color: var(--text);
}

input:focus,
select:focus {
    outline: 2px solid rgba(36, 87, 245, 0.15);
    border-color: var(--primary);
}

.results {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.result-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 16px;
}

.result-item span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-item strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.result-item .positive {
    color: var(--success);
}

.summary-box {
    margin-top: 20px;
    background: linear-gradient(135deg, #eef4ff, #edfdf5);
    border: 1px solid rgba(36, 87, 245, 0.1);
    border-radius: 16px;
    padding: 18px 20px;
    color: var(--text);
}

.summary-box h3 {
    margin: 0 0 8px;
}

.summary-box p {
    margin: 0;
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 24px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.table-wrap th,
.table-wrap td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.95rem;
}

.table-wrap th {
    background: #f8faff;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.side-panel {
    position: sticky;
    top: 96px;
}

.chart-card {
    margin-top: 24px;
}

.chart-card h3 {
    margin: 0 0 4px;
}

.chart-subtitle {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

.chart-wrap-inner {
    position: relative;
}

.chart-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart-grid-line {
    stroke: var(--border);
    stroke-width: 1;
}

.chart-axis-label {
    fill: var(--muted);
    font-size: 11px;
    font-family: inherit;
}

.chart-guideline {
    stroke: var(--muted);
    stroke-width: 1;
    stroke-dasharray: 3 3;
    opacity: 0;
}

.chart-marker {
    opacity: 0;
}

.chart-bar {
    transition: opacity 0.15s ease;
}

.chart-bar.is-dim {
    opacity: 0.5;
}

.chart-tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--text);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translate(-50%, calc(-100% - 10px));
    transition: opacity 0.1s ease;
    white-space: nowrap;
    z-index: 5;
}

.chart-tooltip.is-visible {
    opacity: 1;
}

.chart-tooltip strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.chart-tooltip-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-tooltip-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.chart-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

.beta-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(36, 87, 245, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.helper-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {

    .hero-grid,
    .split-layout,
    .page-layout,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .header-inner,
    .footer-inner {
        min-height: 68px;
    }

    .hero {
        padding-top: 42px;
    }
}