:root {
    --brand:       #9AB17A;
    --brand-dark:  #7A9460;
    --brand-light: #B8CC9E;
    --bg:          #0D1210;
    --surface:     #141A12;
    --surface2:    #1A2118;
    --border:      rgba(154,177,122,0.15);
    --border-bold: rgba(154,177,122,0.3);
    --text:        #F0F2EE;
    --text-muted:  rgba(240,242,238,0.5);
    --bg: #0f1115;
    --panel: #171a21;
    --panel-2: #1e232d;
    --text: #f5f7fb;
    --muted: #a6afbf;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #9AB17A;
    --accent-2: #7A9460;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --radius: 22px;
    --radius-sm: 14px;
    --max: 1600px;
    --brand: #9AB17A;
    --brand-dark: #7A9460;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 20%),
        var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    min-height: 100%;
}

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

img {
    display: block;
    width: 100%;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: rgba(15, 17, 21, 0.7);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
}

.hero {
    padding: 56px 0 24px;
}

.hero-copy {
    max-width: 1400px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #c4b5fd;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero h1,
.results-top h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.hero p,
.subtle,
.detail-description {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-panel {
    padding: 24px;
    margin: 8px 0 40px;
}

.panel-header h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.panel-header p {
    margin: 0 0 20px;
    color: var(--muted);
}

.generator-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.92rem;
    color: #d9deea;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
    padding: 14px 14px;
    border-radius: 14px;
    outline: none;
    font-size: 0.98rem;
}

input::placeholder,
textarea::placeholder {
    color: #7f8897;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}

.btn-block {
    width: 100%;
    margin-top: 16px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.7rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 44px;
}

.outfit-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.card-image-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #0f131a;
}

.card-image {
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 17, 21, 0.78);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.08);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.card-meta {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.card-text {
    margin: 0 0 14px;
    color: #d7dbe5;
    line-height: 1.6;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    color: #d9deea;
    font-size: 0.84rem;
}

.results-top {
    padding: 42px 0 16px;
}

.empty-state {
    margin: 40px 0;
    padding: 40px 24px;
    text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.empty-state h2 {
    margin-top: 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    padding: 42px 0 50px;
}

.detail-image-card,
.detail-content {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-image-card {
    overflow: hidden;
}

.detail-image {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    height: 100%;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 10px;
    font-size: 2.3rem;
    line-height: 1.05;
}

.detail-section {
    margin-top: 26px;
}

.detail-section h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
    color: #dce1eb;
    line-height: 1.8;
}

.shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.text-link {
    color: #c4b5fd;
    font-weight: 700;
}

@media (max-width: 980px) {
    .form-grid,
    .card-grid,
    .detail-layout {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--max), calc(100% - 20px));
    }

    .hero {
        padding-top: 34px;
    }

    .form-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-panel,
    .detail-content {
        padding: 18px;
    }

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