:root {
    color-scheme: light;
    --bg: #f4f1ea;
    --paper: rgba(255, 255, 255, 0.88);
    --paper-strong: #fffdf8;
    --ink: #172033;
    --muted: #5f6b7b;
    --line: rgba(23, 32, 51, 0.12);
    --blue: #173d7a;
    --blue-soft: #2c5daa;
    --orange: #e77b31;
    --gold: #f0c98e;
    --shadow: 0 28px 70px rgba(23, 32, 51, 0.12);
    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(231, 123, 49, 0.22), transparent 26%),
        radial-gradient(circle at 85% 12%, rgba(23, 61, 122, 0.18), transparent 22%),
        linear-gradient(180deg, #fbf6ef 0%, #f4f1ea 40%, #eef3f9 100%);
}

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

button,
input {
    font: inherit;
}

.shell {
    width: var(--container);
    margin: 0 auto;
    padding: 24px 0 72px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

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

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--orange), var(--blue));
    box-shadow: 0 14px 30px rgba(23, 61, 122, 0.22);
}

.brand-copy strong,
.hero-copy h1,
.section-head h2,
.product-card h3 {
    font-family: "Fraunces", serif;
}

.brand-copy {
    display: grid;
    gap: 4px;
}

.brand-copy strong {
    font-size: 1.15rem;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.92rem;
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-nav a,
.chip-link {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    backdrop-filter: blur(16px);
}

.topbar-nav a.primary,
.cta-row a.primary,
.product-actions a.primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-soft) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(23, 61, 122, 0.22);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: stretch;
}

.hero-panel,
.glass-card,
.product-card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: var(--paper);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(240, 201, 142, 0.32), transparent 30%),
        linear-gradient(135deg, rgba(15, 36, 73, 0.98) 0%, rgba(32, 76, 145, 0.96) 55%, rgba(231, 123, 49, 0.88) 140%);
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 0.98;
    max-width: 11ch;
}

.hero-copy p {
    margin: 0;
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    font-size: 1.02rem;
}

.cta-row,
.chip-row,
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-row {
    margin-top: 28px;
}

.cta-row a,
.product-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.cta-row a.secondary,
.product-actions a.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.hero-panel {
    border-radius: var(--radius-xl);
    padding: 26px;
}

.hero-panel h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.hero-panel p,
.glass-card p,
.product-card p {
    color: var(--muted);
    line-height: 1.65;
}

.stats-row {
    margin-top: 18px;
}

.stat-block {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.stat-block strong {
    display: block;
    font-size: 1.2rem;
}

.glass-card {
    border-radius: var(--radius-lg);
    padding: 22px;
}

.section {
    margin-top: 26px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.chip-row {
    margin-top: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    border-radius: 26px;
    overflow: hidden;
}

.product-media {
    position: relative;
    aspect-ratio: 1.22 / 1;
    background: linear-gradient(145deg, rgba(23, 61, 122, 0.12), rgba(231, 123, 49, 0.18));
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-type {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(255, 253, 248, 0.9);
}

.product-body {
    padding: 20px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.product-card h3 {
    margin: 12px 0 8px;
    font-size: 1.42rem;
    line-height: 1.1;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 16px;
}

.price-line strong {
    font-size: 1.36rem;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.product-actions a {
    flex: 1;
    min-height: 44px;
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.migration-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(231, 123, 49, 0.14), rgba(23, 61, 122, 0.1));
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.migration-banner strong {
    display: block;
    margin-bottom: 4px;
}

.search-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.search-row input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
}

.empty-state {
    padding: 34px;
    text-align: center;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px dashed rgba(23, 32, 51, 0.18);
    color: var(--muted);
}

.loading {
    min-height: 60vh;
    display: grid;
    place-items: center;
}

@media (max-width: 1040px) {
    .hero,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100vw - 24px, 1180px);
        padding-top: 18px;
    }

    .topbar,
    .section-head,
    .migration-banner,
    .product-actions,
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-nav {
        width: 100%;
    }

    .topbar-nav a,
    .cta-row a,
    .product-actions a {
        width: 100%;
    }

    .hero-copy h1 {
        max-width: none;
    }
}
