/* =========================================================
   PROMPTELIER — AI CHOOSER
========================================================= */

:root {
    --ai-bg: #07110d;
    --ai-bg-soft: #0b1914;
    --ai-card: rgba(255,255,255,.055);
    --ai-line: rgba(255,255,255,.09);
    --ai-text: #eef8f4;
    --ai-muted: #91a69d;
    --ai-green: #34d399;
    --ai-green-dark: #065f46;
}

html[data-theme="light"] {
    --ai-bg: #f6fbf8;
    --ai-bg-soft: #edf7f2;
    --ai-card: rgba(255,255,255,.82);
    --ai-line: rgba(6,95,70,.10);
    --ai-text: #173b31;
    --ai-muted: #789087;
}

* { box-sizing: border-box; }

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

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 0%, rgba(52,211,153,.12), transparent 30%),
        linear-gradient(145deg, var(--ai-bg), var(--ai-bg-soft));
    color: var(--ai-text);
    font-family: "DM Sans", sans-serif;
    transition: background .25s ease, color .25s ease;
}

.ai-page {
    width: min(1040px, calc(100% - 40px));
    margin: auto;
    min-height: 100vh;
    padding: 26px 0 45px;
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ai-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.ai-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52,211,153,.22);
    border-radius: 12px;
    background: rgba(52,211,153,.08);
    color: var(--ai-green);
}

.ai-brand-mark svg { width: 20px; }

.ai-brand-text {
    display: flex;
    flex-direction: column;
}

.ai-brand-text strong { font-size: 15px; }
.ai-brand-text small {
    margin-top: 2px;
    color: var(--ai-muted);
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ai-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-header-button,
.ai-theme-button {
    height: 36px;
    border: 1px solid var(--ai-line);
    border-radius: 10px;
    background: var(--ai-card);
    color: var(--ai-text);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.ai-header-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
}

.ai-header-button svg { width: 14px; }

.ai-theme-button {
    width: 36px;
    display: grid;
    place-items: center;
}

.ai-theme-button svg { width: 15px; }

.ai-language-wrapper { position: relative; }

.ai-language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    z-index: 30;
    width: 190px;
    padding: 6px;
    border: 1px solid var(--ai-line);
    border-radius: 13px;
    background: var(--ai-bg-soft);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.ai-language-menu button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ai-text);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.ai-language-menu button:hover,
.ai-language-menu button.active {
    background: rgba(52,211,153,.12);
    color: var(--ai-green);
}

.ai-language-menu small { opacity: .6; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ai-muted);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover { color: var(--ai-green); }
.back-link svg { width: 14px; }

.ai-hero {
    max-width: 720px;
    margin: auto;
    padding: 105px 0 65px;
    text-align: center;
}

.ai-eyebrow,
.workspace-label {
    color: var(--ai-green);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.ai-hero h1 {
    margin: 12px 0 18px;
    font-family: "Playfair Display", serif;
    font-size: clamp(48px, 7vw, 76px);
    line-height: .98;
    letter-spacing: -.045em;
}

.ai-hero h1 em {
    color: var(--ai-green);
    font-style: normal;
}

.ai-hero p {
    max-width: 560px;
    margin: auto;
    color: var(--ai-muted);
    font-size: 14px;
    line-height: 1.7;
}

.ai-section {
    max-width: 900px;
    margin: auto;
}

.section-heading {
    margin-bottom: 22px;
    text-align: center;
}

.section-heading h2 {
    margin: 6px 0 7px;
    font-family: "Playfair Display", serif;
    font-size: 28px;
}

.section-heading p {
    margin: 0;
    color: var(--ai-muted);
    font-size: 12px;
}

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

.ai-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 116px;
    padding: 20px;
    border: 1px solid var(--ai-line);
    border-radius: 20px;
    background: var(--ai-card);
    color: var(--ai-text);
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ai-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52,211,153,.32);
    box-shadow: 0 20px 45px rgba(0,0,0,.10);
}

.ai-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(52,211,153,.10);
    color: var(--ai-green);
}

.ai-icon svg { width: 22px; }

.ai-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ai-card-text strong { font-size: 16px; }
.ai-card-text small {
    color: var(--ai-muted);
    font-size: 10px;
}

.ai-card .arrow {
    width: 17px;
    color: var(--ai-green);
    opacity: .65;
}

.ai-card:hover .arrow {
    opacity: 1;
    transform: translate(3px,-3px);
}

.ai-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    padding-top: 22px;
    border-top: 1px solid var(--ai-line);
    color: var(--ai-muted);
    font-size: 9px;
}

@media (max-width: 760px) {
    .ai-page { width: min(100% - 24px, 620px); }
    .ai-hero { padding: 75px 0 45px; }
    .ai-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .ai-header-actions { gap: 6px; }
    .back-link span { display: none; }
    .ai-hero h1 { font-size: 45px; }
    .ai-footer { flex-direction: column; gap: 8px; }
}
