@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;700&display=swap");

:root {
    --storefront-accent: #69b7ff;
    --storefront-bg: #07111c;
    --storefront-panel: rgba(13, 24, 37, 0.88);
    --storefront-panel-strong: rgba(10, 19, 31, 0.96);
    --storefront-border: rgba(255, 255, 255, 0.1);
    --storefront-text: #edf4fb;
    --storefront-muted: #96a8bc;
    --storefront-highlight: #9df0c4;
    --storefront-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.storefront-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Comfortaa", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #02060b 0%, var(--storefront-bg) 100%);
    color: var(--storefront-text);
}

.storefront {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.hero,
.catalog-head {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.hero {
    padding: 28px;
    border: 1px solid var(--storefront-border);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.85);
}

.hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 4rem);
}

.eyebrow,
.subheadline,
.checkout-status,
.meta {
    color: var(--storefront-muted);
}

.hero-media img,
.card img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

.hero-media {
    max-width: 420px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--storefront-panel);
    border: 1px solid var(--storefront-border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.stock {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

.actions {
    margin-top: auto;
}

.actions button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--storefront-accent);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 32px;
    border: 1px dashed var(--storefront-border);
    border-radius: 20px;
    text-align: center;
    color: var(--storefront-muted);
}

.storefront--artisan-home {
    max-width: 1440px;
    padding: 0 0 80px;
}

.storefront-body--artisan-home {
    background:
        radial-gradient(circle at 15% 12%, rgba(105, 183, 255, 0.18), transparent 28%),
        radial-gradient(circle at 85% 16%, rgba(157, 240, 196, 0.13), transparent 24%),
        radial-gradient(circle at 30% 82%, rgba(105, 183, 255, 0.11), transparent 26%),
        linear-gradient(180deg, #03060a 0%, #07111c 42%, #08131d 100%);
    overflow-x: hidden;
}

.artisan-home-hero {
    padding: 28px 22px 0;
}

.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(340px, 0.54fr) minmax(760px, 1.46fr);
    gap: 18px;
    align-items: center;
    min-height: 72vh;
    padding: 28px 10px 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(12, 22, 36, 0.92), rgba(8, 17, 28, 0.98)),
        rgba(12, 22, 36, 0.96);
    box-shadow: var(--storefront-shadow);
    overflow: hidden;
}

.hero-shell--minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 52px 32px 40px;
    gap: 16px;
    text-align: center;
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 36%),
        radial-gradient(circle at top right, rgba(105, 183, 255, 0.1), transparent 28%);
    pointer-events: none;
}

.hero-copy,
.hero-media,
.audience-copy,
.audience-media {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    padding: 18px 0 18px 8px;
}

.hero-brand__logo {
    display: block;
    width: clamp(150px, 16vw, 210px);
    height: auto;
    margin: 0 0 20px;
    filter: none;
}

.hero-brand__logo--large {
    width: min(100%, 480px);
    margin: 0;
}

.hero-copy .eyebrow,
.section-heading .eyebrow,
.panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 0 18px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #dce9f7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-family: "Comfortaa", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
    font-size: clamp(4.2rem, 7.2vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    max-width: 7.4ch;
}

.hero-tagline {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--storefront-text);
    font-family: "Comfortaa", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-mark {
    margin-left: 8px;
    font-size: 0.22em;
    letter-spacing: 0.04em;
    vertical-align: top;
    position: relative;
    top: 0.9em;
}

.hero-actions,
.audience-actions,
.section-cta,
.feature-list,
.tab-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions {
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--storefront-text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible,
.tab-chip:hover,
.tab-chip:focus-visible {
    transform: translateY(-1px);
}

.button--primary {
    background: linear-gradient(135deg, var(--storefront-accent), var(--storefront-highlight));
    color: #08131d;
    box-shadow: 0 18px 36px rgba(86, 162, 230, 0.22);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--storefront-text);
}

.button--compact {
    min-height: 44px;
    padding: 0 18px;
}

.hero-media {
    display: flex;
    justify-content: stretch;
    align-self: stretch;
    justify-self: end;
    width: 100%;
    min-width: 0;
}

.hero-media__frame {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    padding: 18px;
    border: 1px solid rgba(133, 192, 255, 0.2);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(16, 31, 48, 0.98), rgba(10, 25, 40, 0.98)),
        rgba(10, 25, 40, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 60px rgba(0, 0, 0, 0.28);
}

.hero-media__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(105, 183, 255, 0.14), transparent 42%);
    pointer-events: none;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 590px;
    border-radius: 28px;
    object-fit: cover;
    object-position: 56% center;
    border: 1px solid rgba(159, 210, 255, 0.16);
    background: linear-gradient(180deg, #11263a, #0d1d2d);
}

.user-tabs,
.skills-section,
.supplier-section,
.trade-section {
    padding: 100px 22px 0;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 34px;
}

.section-heading--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    margin: 0;
    font-family: "Comfortaa", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.section-heading p:last-child {
    margin: 14px 0 0;
    color: var(--storefront-muted);
    line-height: 1.8;
}

.tab-rail {
    justify-content: center;
    margin-bottom: 28px;
}

.tab-chip {
    min-height: 54px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #dbe7f2;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.tab-chip.is-active {
    background: linear-gradient(135deg, rgba(105, 183, 255, 0.26), rgba(157, 240, 196, 0.18));
    border-color: rgba(157, 240, 196, 0.3);
    color: #f4fbff;
    box-shadow: 0 14px 30px rgba(75, 146, 210, 0.14);
}

.audience-panels {
    position: relative;
}

.audience-panel {
    display: none;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.88fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(12, 21, 33, 0.9), rgba(8, 16, 27, 0.96));
    box-shadow: var(--storefront-shadow);
}

.audience-panel.is-active {
    display: grid;
    animation: panel-in 360ms ease;
}

.panel-kicker {
    margin-bottom: 16px;
}

.audience-copy h3 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.audience-copy p {
    max-width: 52ch;
    margin: 16px 0 0;
    color: var(--storefront-muted);
    line-height: 1.8;
}

.audience-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.feature-list {
    margin-top: 22px;
}

.feature-pill {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d5e5f4;
    font-size: 0.95rem;
}

.audience-actions {
    margin-top: 28px;
}

.skills-grid,
.step-grid,
.usp-grid {
    display: grid;
    gap: 18px;
}

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

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

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

.skill-card,
.step-card,
.usp-card {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(14, 24, 37, 0.92), rgba(9, 17, 28, 0.96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.skill-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--storefront-muted);
    font-size: 0.84rem;
}

.skill-card__demand {
    color: #dcf2ff;
}

.skill-card h3,
.step-card h3,
.usp-card h3 {
    margin: 0;
    font-size: 1.34rem;
    line-height: 1.2;
}

.skill-card p,
.step-card p,
.usp-card p {
    margin: 12px 0 0;
    color: var(--storefront-muted);
    line-height: 1.75;
}

.step-card__index {
    display: inline-flex;
    margin-bottom: 18px;
    color: #dce8f6;
    font-size: 0.86rem;
    letter-spacing: 0.16em;
}

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

.icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(105, 183, 255, 0.18), rgba(157, 240, 196, 0.12));
    color: #dff5ff;
}

.icon-shell svg {
    width: 24px;
    height: 24px;
}

.empty-state--homepage {
    background: rgba(255, 255, 255, 0.03);
}

.reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 420ms ease, transform 420ms ease, border-color 180ms ease, background 180ms ease;
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover,
.step-card:hover,
.usp-card:hover {
    border-color: rgba(157, 240, 196, 0.22);
    background: linear-gradient(180deg, rgba(15, 27, 41, 0.96), rgba(10, 19, 31, 0.98));
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .hero-shell,
    .audience-panel {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        min-height: auto;
        padding: 24px;
    }

    .hero-shell--minimal {
        padding: 40px 20px 32px;
    }

    .hero-copy {
        padding-right: 0;
        max-width: none;
    }

    .hero-brand__logo {
        width: clamp(140px, 28vw, 190px);
    }

    .hero-media {
        justify-content: stretch;
        justify-self: stretch;
    }

    .hero-media__frame {
        width: 100%;
        max-width: none;
    }

    .hero-media img {
        min-height: 420px;
    }

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

@media (max-width: 800px) {
    .hero,
    .catalog-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-media {
        max-width: none;
        width: 100%;
    }

    .storefront {
        padding: 24px 16px 56px;
    }

    .storefront--artisan-home {
        padding: 0 0 64px;
    }

    .artisan-home-hero,
    .user-tabs,
    .skills-section,
    .supplier-section,
    .trade-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-shell,
    .audience-panel {
        padding: 24px;
        border-radius: 28px;
    }

    .hero-shell--minimal {
        padding: 36px 18px 28px;
    }

    .hero-copy h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .skills-grid,
    .step-grid,
    .usp-grid {
        grid-template-columns: 1fr;
    }

    .tab-rail {
        justify-content: flex-start;
    }

    .tab-chip {
        width: 100%;
        justify-content: center;
    }
}
