:root {
    --navy-950: #071a2c;
    --navy-900: #0a2239;
    --navy-800: #10314f;
    --navy-700: #174465;
    --orange-600: #df641c;
    --orange-500: #f47b20;
    --orange-100: #fff0e4;
    --cream-100: #fffaf2;
    --cream-200: #f8f0e4;
    --white: #ffffff;
    --ink-900: #172435;
    --ink-700: #48576a;
    --ink-500: #738094;
    --border: #e7d8c8;
    --shadow: 0 16px 40px rgba(7, 26, 44, 0.09);
    --radius-lg: 22px;
    --radius-md: 16px;
    --shell: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream-100);
    color: var(--ink-900);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 26, 44, 0.96);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-data {
    color: var(--orange-500);
}

.brand-main {
    color: var(--white);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #dce8f2;
    font-size: 0.92rem;
    font-weight: 650;
    transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--orange-500);
}

.hero {
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 82% 24%, rgba(244, 123, 32, 0.18), transparent 28%),
        linear-gradient(135deg, var(--navy-950), var(--navy-800));
    color: var(--white);
}

.hero::after {
    width: 420px;
    height: 420px;
    content: "";
    position: absolute;
    right: -150px;
    bottom: -250px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-inner {
    padding-top: 90px;
    padding-bottom: 110px;
    text-align: center;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--orange-500);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 880px;
    margin: 0 auto;
    font-size: clamp(2.65rem, 6vw, 5.1rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--orange-500);
}

.hero p {
    max-width: 760px;
    margin: 25px auto 0;
    color: #cbd9e5;
    font-size: 1.08rem;
}

.hero-metrics {
    width: min(100%, 690px);
    margin: 44px auto 0;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.055);
}

.hero-metrics div {
    display: grid;
    gap: 2px;
}

.hero-metrics div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics strong {
    color: var(--white);
    font-size: 1.45rem;
}

.hero-metrics span {
    color: #b7c8d8;
    font-size: 0.82rem;
}

.tool-search-section {
    position: relative;
    z-index: 5;
    margin-top: -42px;
}

.search-panel {
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.search-box {
    min-height: 58px;
    padding-inline: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #edd9c5;
    border-radius: 14px;
    background: #fffdf9;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.1);
}

.search-icon {
    color: var(--orange-500);
    font-size: 1.55rem;
    line-height: 1;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink-900);
}

.search-box input::placeholder {
    color: #8b96a5;
}

.search-status {
    grid-column: 2;
    margin: -18px 0 0;
    color: var(--ink-500);
    font-size: 0.82rem;
}

.tools-section {
    padding: 86px 0;
}

.tools-section-alt {
    border-top: 1px solid #eadfd3;
    border-bottom: 1px solid #eadfd3;
    background: var(--cream-200);
}

.section-heading {
    margin-bottom: 30px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.section-heading h2,
.platform-section h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.section-heading p {
    max-width: 470px;
    margin: 0;
    color: var(--ink-700);
    text-align: right;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-card {
    min-height: 335px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-top: 4px solid var(--orange-500);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(7, 26, 44, 0.055);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #e4ba93;
    box-shadow: var(--shadow);
}

.tool-card[hidden] {
    display: none;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tool-category,
.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tool-category {
    padding: 6px 9px;
    background: var(--orange-100);
    color: #a6430c;
}

.status-badge {
    padding: 5px 9px;
}

.status-planned {
    border: 1px solid #d6dee6;
    background: #f2f5f8;
    color: #667486;
}

.tool-icon {
    width: 52px;
    height: 52px;
    margin-top: 27px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--navy-900);
    color: var(--orange-500);
    font-size: 1.05rem;
    font-weight: 850;
}

.tool-card h3 {
    margin: 21px 0 9px;
    font-size: 1.16rem;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.tool-card p {
    margin: 0;
    color: var(--ink-700);
    font-size: 0.9rem;
}

.planned-action {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--orange-600);
    font-size: 0.82rem;
    font-weight: 750;
}

.no-results {
    margin-top: 28px;
    padding: 38px;
    text-align: center;
    border: 1px dashed #d5b89d;
    border-radius: var(--radius-md);
    background: var(--white);
}

.no-results strong,
.no-results span {
    display: block;
}

.no-results span {
    margin-top: 5px;
    color: var(--ink-700);
}

.platform-section {
    padding: 90px 0;
    background: var(--navy-950);
    color: var(--white);
}

.platform-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 70px;
}

.platform-points {
    display: grid;
    gap: 16px;
}

.platform-points article {
    padding: 22px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.platform-points strong {
    color: var(--orange-500);
}

.platform-points span {
    color: #bdcad7;
}

.site-footer {
    padding: 44px 0;
    background: #041321;
    color: #abbaca;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 7px;
}

.site-footer p {
    margin: 0;
    font-size: 0.88rem;
}

.footer-meta {
    display: grid;
    gap: 4px;
    text-align: right;
    font-size: 0.82rem;
}

.footer-meta strong {
    color: var(--orange-500);
}

@media (max-width: 1080px) {
    .tool-grid,
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .main-nav {
        display: none;
    }

    .hero-inner {
        padding-top: 72px;
    }

    .search-panel,
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .search-status {
        grid-column: 1;
        margin-top: -16px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading p {
        text-align: left;
    }

    .tool-grid,
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(calc(100% - 24px), var(--shell));
    }

    .header-inner {
        min-height: 66px;
    }

    .hero-inner {
        padding-top: 60px;
        padding-bottom: 90px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-metrics div + div {
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 0;
    }

    .search-panel {
        padding: 22px;
    }

    .tools-section {
        padding: 65px 0;
    }

    .tool-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 305px;
    }

    .footer-inner {
        align-items: start;
        flex-direction: column;
    }

    .footer-meta {
        text-align: left;
    }
}
