:root {
    --ink: #20172f;
    --muted: #6f6280;
    --line: #e7dfef;
    --panel: #ffffff;
    --wash: #fbf7fb;
    --violet: #7c5cff;
    --pink: #f3a5c8;
    --mint: #8bd7c8;
    --gold: #ffd166;
    --shadow: 0 18px 45px rgba(47, 28, 72, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff 0%, var(--wash) 42%, #fff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: var(--violet);
    color: #fff;
    font-weight: 800;
}

.brand strong { display: block; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.top-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.hero-section,
.tool-hero,
.directory-hero,
.section,
.not-found {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-section,
.tool-hero,
.directory-hero {
    padding: 64px 0 36px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumbs a {
    color: #6e54e8;
}

.breadcrumbs a::after {
    content: "/";
    margin-left: 8px;
    color: #b5a8c5;
}

.hero-copy {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: #765e98;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: .98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0;
}

h3 { margin-bottom: 10px; font-size: 20px; }

.hero-text {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.6;
}

.generator-panel {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
}

.field label,
.control-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
}

.field input {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 16px;
    outline: none;
}

.field input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .12);
}

.control-group { margin-top: 22px; }

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

.chip,
.tab,
.button,
.copy-pill {
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.chip {
    padding: 10px 14px;
    color: #6f6280;
    background: #eee8f2;
}

.chip.is-active {
    color: #fff;
    background: var(--violet);
}

.chips [data-style="coquette"].is-active { background: var(--pink); color: var(--ink); }
.chips [data-style="gamer"].is-active { background: var(--mint); color: var(--ink); }
.chips [data-style="y2k"].is-active { background: var(--gold); color: var(--ink); }

.generator-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
}

.button-primary {
    color: #fff;
    background: var(--violet);
    box-shadow: 0 12px 25px rgba(124, 92, 255, .28);
}

.button-light {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.results {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px;
    border-radius: 8px;
    background: #f0eaf4;
}

.tab {
    flex: 1 1 130px;
    padding: 11px 12px;
    color: #6f6280;
    background: transparent;
}

.tab.is-active {
    color: var(--ink);
    background: #fff;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.result-card {
    display: flex;
    min-height: 116px;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.result-card strong {
    overflow-wrap: anywhere;
    font-size: 20px;
}

.result-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.mini-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
    padding: 8px 10px;
}

.mini-button.is-copied,
.copy-pill.is-copied {
    border-color: rgba(139, 215, 200, .9);
    background: rgba(139, 215, 200, .22);
    color: #24685e;
}

.section {
    padding: 56px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 24px;
}

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

.compact-grid .tool-card {
    min-height: 150px;
}

.tool-card {
    display: block;
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(47, 28, 72, .06);
}

.tool-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: #7c5cff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tool-card p,
.site-footer p,
.faq-list p { color: var(--muted); line-height: 1.6; }

.example-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-cloud a,
.copy-pill {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
}

.small-cloud a {
    padding: 10px 12px;
    font-size: 14px;
}

.browse-all {
    margin: 22px 0 0;
    font-weight: 900;
}

.browse-all a {
    color: #6e54e8;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 22px;
}

.info-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.steps-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.75;
}

.guide-copy {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.directory-section {
    padding-top: 28px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 900;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 36px 0 44px;
    border-top: 1px solid var(--line);
}

.site-footer nav {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-weight: 800;
}

.not-found {
    min-height: 60vh;
    padding: 96px 0;
    text-align: center;
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero-section,
    .tool-hero {
        padding-top: 34px;
    }

    .hero-copy { text-align: left; }
    .hero-text { font-size: 17px; }
    .generator-panel { padding: 18px; }
    .generator-actions { align-items: stretch; flex-direction: column-reverse; }
    .button { width: 100%; }
    .result-grid,
    .tool-grid,
    .split-section { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; }
}
