:root {
    --ink: #0f172a;
    --slate: #334155;
    --line: #d6dce6;
    --bg: #eef4fb;
    --white: #ffffff;
    --accent: #ec6b2d;
    --navy-900: #07255f;
    --navy-800: #06398f;
    --navy-700: #0e53bc;
    --sky-soft: #dceaff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
    background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 44%, #dde8f7 100%);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 58%, var(--navy-700) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 40px rgba(4, 18, 48, 0.22);
}

.topbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topnav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
}

.topnav a:hover {
    color: #ffffff;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(130deg, #ffb366, var(--accent));
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-form {
    margin: 0;
}

.topbar-link {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-weight: 700;
}

.topbar-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.topbar-link:hover {
    color: #ffffff;
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ffffff;
    color: #06398f;
    text-decoration: none;
    font-weight: 800;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 32px auto 40px;
    padding: 0 16px;
}

footer {
    background: linear-gradient(180deg, #08142e 0%, #040d1f 100%);
    color: #c8d3e6;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.footer-wrap strong {
    color: #fff;
}

.home-page,
.results-page,
.about-page {
    display: grid;
    gap: 2rem;
}

.home-page {
    gap: 2.5rem;
}

.about-page {
    gap: 1.5rem;
}

.hero-shell,
.search-marketplace,
.steps-shell,
.feature-shell,
.results-shell,
.about-shell,
.about-story-card,
.about-stat-card,
.about-values-shell {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(2, 14, 38, 0.12);
}

.hero-shell {
    background: radial-gradient(circle at top right, rgba(25, 172, 255, 0.28), transparent 28%), linear-gradient(135deg, #07255f 0%, #06398f 52%, #0e53bc 100%);
    color: #fff;
}

.hero-eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.hero-copy h1 {
    font-size: clamp(2.08rem, 4vw, 3.84rem);
    line-height: 0.95;
    margin: 0;
    font-weight: 800;
}

.hero-copy p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 34rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img,
.feature-visual img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.search-marketplace,
.steps-shell,
.feature-shell,
.results-shell,
.about-shell,
.about-story-card,
.about-values-shell {
    background: #ffffff;
    border: 1px solid #dbe4f0;
}

.search-marketplace {
    padding: 1.5rem;
    width: 100%;
}

.search-marketplace-top,
.results-header {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.search-marketplace-top {
    margin-bottom: 1.25rem;
}

.search-marketplace h2 {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    color: #08152f;
}

.search-marketplace p {
    margin: 0;
    color: #5b6b81;
    line-height: 1.6;
}

.freight-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #61748c;
}

.freight-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.freight-field {
    min-width: 0;
}

.freight-field-submit {
    display: grid;
    align-self: end;
}

.freight-select {
    width: 100%;
    border: 1px solid #cfdaea;
    border-radius: 6px;
    padding: 0.95rem 1rem;
    background: #fdfefe;
    color: #0f172a;
    font-size: 0.98rem;
    outline: none;
}

.freight-submit {
    width: 100%;
    border: 0;
    padding: 0.95rem 1.4rem;
    border-radius: 6px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #08307a 0%, #1057c8 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.freight-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.86rem;
}

.freight-search-meta span {
    border-radius: 999px;
    background: #eef5ff;
    padding: 0.5rem 0.85rem;
}

.steps-shell,
.feature-shell,
.results-shell,
.about-shell,
.about-values-shell {
    padding: 2rem;
}

.results-shell {
    padding: 1.5rem;
}

.steps-shell h2,
.feature-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 0.75rem;
    color: #08152f;
}

.steps-shell > p,
.feature-copy p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 0;
}

.step-card {
    height: 100%;
    border: 1px solid #dce6f4;
    border-radius: 22px;
    padding: 1.6rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.step-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0a3f98 0%, #18aef3 100%);
}

.step-card h3 {
    font-size: 1.25rem;
    color: #0b1e46;
    margin-bottom: 0.75rem;
}

.step-card p {
    margin: 0;
    color: #526277;
    line-height: 1.7;
}

.feature-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.feature-tab {
    background: #edf4ff;
    color: #0f172a;
    border: 1px solid #cfe0fb;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    font-weight: 700;
}

.feature-tab.active {
    background: linear-gradient(135deg, #08307a 0%, #1057c8 100%);
    color: #fff;
    border-color: transparent;
}

.results-header {
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.results-header h2 {
    margin: 0;
    font-size: 1.7rem;
    color: #08152f;
}

.results-header p {
    margin: 0.4rem 0 0;
    color: #526277;
    line-height: 1.7;
}

.result-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.result-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    background: #eef5ff;
    border: 1px solid #d8e6fb;
    color: #0b1e46;
    font-weight: 700;
}

.result-chip span {
    color: #64748b;
    font-weight: 600;
}

.result-card {
    border: 1px solid #dce6f4;
    border-radius: 22px;
    padding: 1.3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    margin-bottom: 10px;
}

.trend-shell {
    margin-top: 1.5rem;
}

.trend-shell-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trend-shell-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    color: #08152f;
}

.trend-shell-header p {
    margin: 0;
    color: #5b6b81;
    line-height: 1.6;
}

.trend-locked {
    border: 1px solid #dce6f4;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.trend-chart-frame {
    margin-bottom: 1rem;
}

.trend-chart-frame .trend-chart-wrap {
    border-radius: 18px;
}

.trend-chart-wrap {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e1eaf6;
    position: relative;
    width: 100%;
    height: 320px;
}

.trend-chart {
    width: 100%;
    height: 100%;
    display: block;
}

.trend-locked {
    padding: 1.2rem 1.3rem;
    color: #294166;
}

.trend-locked a {
    color: #0e53bc;
    font-weight: 700;
    text-decoration: none;
}

.result-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.result-meta-item {
    border-radius: 16px;
    background: #eef5ff;
    padding: 0.85rem 1rem;
}

.result-meta-item span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.result-meta-item strong {
    color: #0f172a;
}

.empty-state {
    padding: 1.4rem;
    border-radius: 22px;
    border: 1px solid #cfe0fb;
    background: linear-gradient(180deg, #f9fbff 0%, #eef5ff 100%);
    color: #294166;
}

@media (max-width: 768px) {
    .result-meta {
        grid-template-columns: 1fr;
    }
}

.about-shell h2,
.about-values-shell h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 0.75rem;
    color: #08152f;
}

.about-shell p,
.about-story-card p,
.about-values-shell p {
    color: #526277;
    line-height: 1.8;
}

.about-story-card,
.about-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dce6f4;
    padding: 1.6rem;
}

.about-story-card h3,
.about-value-card h3 {
    color: #0b1e46;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.about-stat-card {
    text-align: center;
    height: 100%;
}

.about-stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: #08307a;
    margin-bottom: 0.5rem;
}

.about-stat-card span {
    color: #64748b;
    font-weight: 700;
}

.about-value-card {
    height: 100%;
    border: 1px solid #dce6f4;
    border-radius: 22px;
    padding: 1.6rem;
    background: #ffffff;
}

.about-value-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0a3f98 0%, #18aef3 100%);
}

.about-text-shell {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 6px;
    box-shadow: 0 24px 60px rgba(2, 14, 38, 0.12);
    padding: 2rem;
}

.about-text-shell h1 {
    color: #08152f;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.about-text-shell p {
    color: #526277;
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 991.98px) {
    .search-marketplace-top,
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .freight-search-grid,
    .feature-tabs,
    .result-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar,
    .topbar-left {
        flex-direction: column;
        align-items: flex-start;
    }
}
