/* ERGOFORM — layout aligned to brand mockup */
:root {
    --bg-page: #fff;
    --bg-card: #ffffff;
    --bg-muted: #eeeff1;
    --text: black;
    --text-muted: #5c5c5c;
    --border: #e4e4e6;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1);
    --navy: #141b2d;
    --navy-hover: #1f2a45;
    --teal: #1780f0;
    --teal-hover: #7ec4fd;
    --star: #fac720;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;
    --font: "DM Sans", system-ui, sans-serif;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font: inherit;
    cursor: pointer;
}

.container {
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----- Header ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.logo {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-bar {
    position: relative;
}

.search-bar input {
    width: min(220px, 36vw);
    padding: 0.55rem 2.25rem 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
    border-color: #c5c5c9;
    box-shadow: 0 0 0 3px rgba(61, 139, 132, 0.15);
}

.search-bar i {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #9a9a9e;
    pointer-events: none;
}

.icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--bg-muted);
}

.cart-badge {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--teal);
    border-radius: var(--radius-pill);
}

/* Mobile nav */
.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
    appearance: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 10px;
}

.nav-toggle-label span {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--text);
    margin-inline: auto;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: center;
    padding-block: 4rem 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #e8eaed;
    overflow: hidden;
}

.hero-bg__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: none;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(245, 245, 246, 0.55) 0%, rgba(245, 245, 246, 0) 45%);
}

.hero-wrap {
    position: relative;
    z-index: 1;
}

.hero-card {
    position: relative;
    max-width: 420px;
    padding: 2rem 2.25rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.4) 38%,
        rgba(240, 245, 252, 0.28) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 rgba(255, 255, 255, 0.15) inset,
        0 18px 50px rgba(20, 27, 45, 0.13),
        0 4px 14px rgba(20, 27, 45, 0.07);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero-card {
        background: rgba(255, 255, 255, 0.94);
    }
}

.hero-card h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
}

.hero-card p {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-solid {
    background: var(--navy);
    color: #fff;
}

.btn-solid:hover {
    background: var(--navy-hover);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.65);
    color: var(--text);
    border-color: var(--text);
}

.btn-outline:hover {
    background: #fff;
}

.btn-teal {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.btn-teal:hover {
    background: var(--teal-hover);
    border-color: var(--teal-hover);
}

/* ----- Sections ----- */
.section {
    padding-block: 4.5rem;
}

.section-heading {
    margin: 0 0 2.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text);
}

.section-categories {
    background: var(--bg-card);
}

.section-featured {
    background: var(--bg-page);
}

.section-inspo {
    background: #eef3f8;
}

.section-testimonials {
    background: var(--bg-muted);
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    aspect-ratio: 1;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-muted);
    border: 1px solid transparent;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.category-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--navy);
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.category-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}

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

.product-media {
    position: relative;
    background: linear-gradient(180deg, #f8f8f9 0%, #ececee 100%);
    aspect-ratio: 1 / 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 0.35rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
}

.badge-sale {
    background: var(--teal);
    color: #fff;
}

.product-body {
    padding: 1.15rem 1.25rem 1.35rem;
    text-align: center;
}

.product-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: capitalize;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.stars {
    color: var(--star);
    letter-spacing: 1px;
}

.review-count {
    color: var(--text-muted);
}

.product-price {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.product-price strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
}

.price-was {
    margin-left: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8e8e93;
    text-decoration: line-through;
}

.btn-cart {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    border: none;
    border-radius: var(--radius-pill);
    transition: background 0.2s;
}

.btn-cart:hover {
    background: var(--navy-hover);
}

/* Upgrade banner */
.upgrade-banner {
    background: radial-gradient(ellipse 120% 100% at 70% 50%, #2a3548 0%, #0f131c 55%, #0a0c10 100%);
    color: #e8eaef;
    padding-block: 4rem;
    overflow: hidden;
}

.upgrade-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: center;
}

.upgrade-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.15;
    text-transform: uppercase;
}

.upgrade-copy p {
    margin: 0 0 1.5rem;
    max-width: 28ch;
    font-size: 0.95rem;
    color: rgba(232, 234, 239, 0.75);
    line-height: 1.65;
}

.upgrade-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.upgrade-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, transparent 30%, rgba(15, 19, 28, 0.85) 100%);
    pointer-events: none;
}

.upgrade-visual img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

/* Workspace inspiration — 3 columns: stacked | tall center | stacked */
.inspo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem 0.7rem;
    min-height: clamp(280px, 36vw, 400px);
    max-width: 1080px;
    margin-inline: auto;
    align-items: stretch;
}

.inspo-cell {
    margin: 0;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 27, 45, 0.08);
    min-height: 0;
}

.inspo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.inspo-cell:hover img {
    transform: scale(1.03);
}

.inspo-cell--left-top {
    grid-column: 1;
    grid-row: 1;
}

.inspo-cell--left-bottom {
    grid-column: 1;
    grid-row: 2;
}

.inspo-cell--center {
    grid-column: 2;
    grid-row: 1 / -1;
    min-height: 0;
}

.inspo-cell--right-top {
    grid-column: 3;
    grid-row: 1;
}

.inspo-cell--right-bottom {
    grid-column: 3;
    grid-row: 2;
}

/* Testimonials */
.testimonial-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    margin: 0;
    padding: 1.75rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.testimonial-card p {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.testimonial-author cite {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: #888;
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    padding-block: 3rem;
}

.newsletter-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.newsletter-lede {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 420px;
}

.newsletter-form input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: #bdbdc2;
}

.btn-subscribe {
    padding-inline: 1.5rem;
    border-radius: 10px;
    letter-spacing: 0.06em;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-col h3 {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.social-row {
    display: flex;
    gap: 0.75rem;
}

.social-row a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.social-row a:hover {
    background: var(--navy);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #8e8e93;
}

.footer-bottom p {
    margin: 0;
}

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

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        aspect-ratio: auto;
        min-height: 160px;
    }

    .testimonial-row {
        grid-template-columns: 1fr;
    }

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

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .inspo-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.55rem 0.6rem;
        min-height: clamp(240px, 42vw, 360px);
        max-width: none;
    }
}
@media (max-width: 900px) {
    .upgrade-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .upgrade-copy p {
        margin-inline: auto;
    }

    .upgrade-copy .btn-teal {
        margin-inline: auto;
    }

    .upgrade-visual::after {
        background: linear-gradient(180deg, transparent 40%, rgba(15, 19, 28, 0.75) 100%);
    }
}

@media (max-width: 820px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .logo {
        grid-column: 1;
    }

    .nav-toggle-label {
        display: flex;
        grid-column: 2;
        justify-self: end;
    }

    .header-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        flex-wrap: wrap;
        padding-top: 0.25rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }

    .search-bar input {
        width: min(100%, 280px);
    }

    .main-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--header-h);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.25rem 1rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
        z-index: 150;
    }

    .main-nav a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

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

    .nav-toggle:checked ~ .main-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        min-height: min(85vh, 560px);
        padding-block: 3rem;
    }

    .hero-card {
        margin-inline: auto;
        text-align: center;
        max-width: min(320px, 88vw);
        padding: 1.25rem 1.35rem;
        border-radius: 14px;
    }

    .hero-card h1 {
        font-size: clamp(1.28rem, 5vw, 1.72rem);
        margin-bottom: 0.5rem;
        letter-spacing: 0.03em;
    }

    .hero-card p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        line-height: 1.45;
    }

    .hero-ctas {
        justify-content: center;
        gap: 0.45rem;
    }

    .hero-card .btn {
        padding: 0.6rem 1rem;
        font-size: 0.68rem;
    }

    .hero-bg::after {
        background: linear-gradient(180deg, rgba(245, 245, 246, 0.75) 0%, rgba(245, 245, 246, 0.35) 40%, rgba(245, 245, 246, 0.2) 100%);
    }

    .hero-bg__photo {
        object-position: center 30%;
    }
}

@media (max-width: 560px) {
    .hero-card {
        max-width: min(280px, 90vw);
        padding: 1rem 1.1rem;
        border-radius: 12px;
    }

    .hero-card h1 {
        font-size: clamp(1.1rem, 5.5vw, 1.4rem);
        margin-bottom: 0.4rem;
    }

    .hero-card p {
        font-size: 0.8125rem;
        margin-bottom: 0.85rem;
    }

    .hero-card .btn {
        padding: 0.52rem 0.85rem;
        font-size: 0.62rem;
    }

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

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

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

    .inspo-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 0.55rem;
        min-height: unset;
        max-width: none;
    }

    .inspo-cell--center {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 200px;
        max-height: min(48vh, 360px);
    }

    .inspo-cell--left-top {
        grid-column: 1;
        grid-row: 2;
        min-height: 140px;
    }

    .inspo-cell--right-top {
        grid-column: 2;
        grid-row: 2;
        min-height: 140px;
    }

    .inspo-cell--left-bottom {
        grid-column: 1;
        grid-row: 3;
        min-height: 140px;
    }

    .inspo-cell--right-bottom {
        grid-column: 2;
        grid-row: 3;
        min-height: 140px;
    }
}
