/*
 * /app/windows: the Windows app's page (windows-app/index). Loaded after home.css
 * and front.css and reads their tokens and light theme (html[data-theme=light]).
 * The drawn app window keeps the real app's own light look in both themes: it is
 * a picture of the product, not part of the page's chrome.
 */
.wa {
    --wa-gutter: clamp(16px, 4vw, 64px);
    --wa-app: #f3f8f8;
    --wa-app-panel: #ffffff;
    --wa-app-line: #dfe8e8;
    --wa-app-text: #18222a;
    --wa-app-muted: #5b6b73;
    --wa-app-teal: #0a7570;
    --wa-app-bubble: #e2f4f2;
    --wa-ease: cubic-bezier(.2, .8, .2, 1);
    color: var(--text);
}

.wa ::selection { background: color-mix(in srgb, var(--purple) 45%, transparent); }
.wa :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px; }

.wa-h2 {
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.5;
    font-weight: 800;
    margin: 0 0 20px;
    text-wrap: balance;
}

/* ---------- First viewport: the menu and the window ---------- */
.wa-desk {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
    padding: clamp(28px, 5vw, 64px) var(--wa-gutter) clamp(48px, 7vw, 96px);
    max-width: 1440px;
    margin-inline: auto;
}

.wa-title {
    font-size: clamp(30px, 3.6vw, 50px);
    line-height: 1.45;
    font-weight: 900;
    margin: 0 0 14px;
    text-wrap: balance;
}

.wa-lead {
    color: var(--muted);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.95;
    margin: 0 0 28px;
}

.wa-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.wa-group {
    font: inherit;
    font-size: 14px;
    min-height: 40px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .18s var(--wa-ease), color .18s var(--wa-ease), border-color .18s var(--wa-ease);
}
.wa-group:hover { color: var(--text); border-color: var(--purple-soft); }
.wa-group[aria-selected=true] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }

.wa-commands { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stroke); }
.wa-commands li { border-bottom: 1px solid var(--stroke); }

/* The signature: the chosen command fills toward the window, as if it were being handed over. */
.wa-command {
    position: relative;
    display: block;
    width: 100%;
    font: inherit;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.8;
    text-align: start;
    padding-block: 14px;
    padding-inline: 6px 40px;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
    isolation: isolate;
}
.wa-command::before {
    content: "";
    position: absolute;
    inset: 4px 0;
    z-index: -1;
    border-radius: 12px;
    background: linear-gradient(to left, transparent, color-mix(in srgb, var(--purple) 26%, transparent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .42s var(--wa-ease);
}
.wa-command::after {
    content: "";
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    width: 16px;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .3s var(--wa-ease), transform .3s var(--wa-ease);
}
.wa-command:hover::before { transform: scaleX(.35); }
.wa-command[aria-pressed=true] { color: var(--purple-soft); font-weight: 700; }
.wa-command[aria-pressed=true]::before { transform: scaleX(1); }
.wa-command[aria-pressed=true]::after { opacity: 1; transform: translateX(0); }

.wa-get { margin-top: 28px; }

.wa-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 24px;
    border-radius: 14px;
    /* The theme's accent darkened enough for white text to read on it (4.5:1 in every palette). */
    background: color-mix(in srgb, var(--purple) 72%, #000);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--purple) 70%, transparent);
    transition: transform .18s var(--wa-ease), background .18s var(--wa-ease);
}
.wa-download:hover { background: color-mix(in srgb, var(--purple-strong) 64%, #000); transform: translateY(-2px); }
.wa-download:active { transform: translateY(0); }

.wa-price { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 12px 0 0; }
.wa-facts { color: var(--subtle); font-size: 13px; margin: 4px 0 0; font-variant-numeric: tabular-nums; }

.wa-ico { width: 20px; height: 20px; flex: none; }

/* ---------- The drawn app window ---------- */
.wa-window {
    margin: 0;
    position: sticky;
    top: 96px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    min-height: min(640px, 78vh);
    border-radius: 18px;
    background: var(--wa-app);
    color: var(--wa-app-text);
    border: 1px solid color-mix(in srgb, var(--wa-app-line) 70%, var(--stroke));
    box-shadow: 0 40px 90px -40px #000a, 0 12px 30px -18px #0007;
    overflow: hidden;
}

.wa-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--wa-app-muted);
    border-bottom: 1px solid var(--wa-app-line);
}
.wa-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 9px;
    background: #e3eaea;
    color: var(--wa-app-text);
}
.wa-tab b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #4b5258;
    color: #fff;
    font-size: 11px;
}

.wa-convo {
    padding: 22px clamp(16px, 2.4vw, 32px);
    background: var(--wa-app-panel);
    margin: 10px 10px 0;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--wa-app-line);
    border-bottom: 0;
    overflow: hidden;
}

.wa-run > * { margin: 0 0 14px; }
.wa-ask {
    margin-inline-start: auto;
    max-width: 88%;
    width: fit-content;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--wa-app-bubble);
    line-height: 1.9;
    font-size: 15px;
}
.wa-tools { display: flex; align-items: center; gap: 8px; color: var(--wa-app-muted); font-size: 13px; }
.wa-ok { color: var(--wa-app-teal); width: 18px; height: 18px; }
.wa-answer { line-height: 1.95; font-size: 15px; max-width: 62ch; }

.wa-made { border: 1px solid var(--wa-app-line); border-radius: 12px; padding: 12px 14px; background: #fbfdfd; font-size: 14px; }
.wa-files { list-style: none; margin: 0 0 8px; padding: 0; }
.wa-files li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--wa-app-line); }
.wa-files li:last-child { border-bottom: 0; }
.wa-files code, .wa-diff, .wa-phone code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; color: #24323a; }
.wa-files span { color: var(--wa-app-teal); font-size: 12px; white-space: nowrap; }
.wa-pass { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--wa-app-teal); font-size: 13px; }
.wa-diff { margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; background: #f2f5f6; overflow-x: auto; line-height: 1.7; }
.wa-diff span { display: block; white-space: pre; }
.wa-diff .del { color: #b4232f; background: #fde8ea; }
.wa-diff .add { color: #11704f; background: #e2f6ed; }
.wa-points { margin: 0; padding-inline-start: 30px; line-height: 1.9; }
.wa-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wa-table th, .wa-table td { padding: 6px 10px; text-align: start; border-bottom: 1px solid var(--wa-app-line); }
.wa-table th { color: var(--wa-app-muted); font-weight: 500; font-size: 13px; }
.wa-asking-q { margin: 0 0 8px; font-weight: 700; }
.wa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.wa-chips span { padding: 2px 10px; border-radius: 999px; background: #eef3f3; font-size: 12.5px; }
.wa-asking-a { display: flex; gap: 8px; margin: 0; }
.wa-asking-a span { padding: 5px 14px; border-radius: 9px; border: 1px solid var(--wa-app-line); font-size: 13px; }
.wa-asking-a .yes { background: var(--wa-app-teal); border-color: var(--wa-app-teal); color: #fff; }

.wa-page-bar { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; color: var(--wa-app-muted); font-size: 12.5px; }
.wa-share { display: inline-flex; align-items: center; gap: 4px; color: var(--wa-app-teal); }
.wa-share .wa-ico { width: 16px; height: 16px; }
.wa-page-title { margin: 0 0 8px; font-weight: 700; }
.wa-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; height: 150px; }
.wa-bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; font-size: 12px; }
.wa-bar b { font-weight: 700; font-variant-numeric: tabular-nums; }
.wa-bar i { align-self: end; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(#3d7bf0, #2457d6); transform-origin: bottom; }
.wa-bar span { color: var(--wa-app-muted); margin-top: 4px; }

.wa-phone { display: flex; gap: 12px; align-items: flex-start; }
.wa-phone > .wa-ico { width: 30px; height: 30px; color: var(--wa-app-teal); }
.wa-phone p { margin: 0 0 6px; }
.wa-phone-head { color: var(--wa-app-muted); font-size: 12.5px; }

.wa-composer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px;
    padding: 14px 16px;
    background: var(--wa-app-panel);
    border: 1px solid var(--wa-app-line);
    border-radius: 0 0 12px 12px;
    color: #5f6e75;
    font-size: 14px;
}
.wa-mic { color: var(--wa-app-muted); }
.wa-note { padding: 8px 14px 10px; font-size: 12px; color: var(--wa-app-muted); }

/* The replay: request, tools, answer, then what was made. Content is visible by default; motion only adds. */
@media (prefers-reduced-motion: no-preference) {
    .wa-run.is-playing > * { animation: wa-in .5s var(--wa-ease) both; }
    .wa-run.is-playing > :nth-child(2) { animation-delay: .25s; }
    .wa-run.is-playing > :nth-child(3) { animation-delay: .55s; }
    .wa-run.is-playing > :nth-child(4) { animation-delay: .85s; }
    .wa-run.is-playing .wa-bar i { animation: wa-grow .7s var(--wa-ease) 1s both; }
    @keyframes wa-in { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }
    @keyframes wa-grow { from { transform: scaleY(0); } }
}

/* ---------- The sections below ---------- */
.wa-why, .wa-steps, .wa-more, .wa-faq, .wa-close {
    max-width: 1440px;
    margin-inline: auto;
    padding: clamp(48px, 7vw, 96px) var(--wa-gutter) 0;
}

.wa-why { border-top: 1px solid var(--stroke); }
.wa-why .wa-h2 { font-size: clamp(26px, 3.4vw, 44px); }
.wa-why-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); max-width: 1100px; }
.wa-why-cols p { margin: 0; color: var(--muted); line-height: 2; font-size: 16px; }
.wa-why-cols p + p { color: var(--text); }

.wa-steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--text); }
.wa-steps-list li { padding: 18px 0 0; padding-inline-end: clamp(16px, 3vw, 40px); display: grid; gap: 6px; }
.wa-steps-list b { font-size: 19px; }
.wa-steps-list span { color: var(--muted); line-height: 1.95; }

.wa-more-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.wa-more-list > div { padding: 18px 0; border-top: 1px solid var(--stroke); }
.wa-more-list dt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.wa-more-list dt .wa-ico { color: var(--purple-soft); }
.wa-more-list dd { margin: 0; color: var(--muted); line-height: 1.95; padding-inline-start: 30px; }

.wa-faq { max-width: 1200px; margin-inline: auto; }
.wa-q { border-top: 1px solid var(--stroke); }
.wa-q:last-of-type { border-bottom: 1px solid var(--stroke); }
.wa-q summary { cursor: pointer; padding: 18px 4px; font-size: 17px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wa-q summary::-webkit-details-marker { display: none; }
.wa-q summary::after { content: "+"; color: var(--purple-soft); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s var(--wa-ease); }
.wa-q[open] summary::after { transform: rotate(45deg); }
.wa-q p { margin: 0 0 18px; padding-inline: 4px; color: var(--muted); line-height: 2; }

.wa-close { text-align: center; padding-bottom: clamp(56px, 8vw, 110px); display: grid; justify-items: center; gap: 12px; }
.wa-close .wa-h2 { margin: 0 0 8px; }
.wa-other { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.wa-other a { color: var(--purple-soft); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Narrow screens: the list first, the window under it ---------- */
@media (max-width: 991px) {
    .wa-desk { grid-template-columns: 1fr; }
    .wa-window { position: static; min-height: 0; }
}
@media (max-width: 640px) {
    .wa-why-cols, .wa-steps-list, .wa-more-list { grid-template-columns: 1fr; }
    .wa-steps-list li { border-bottom: 1px solid var(--stroke); padding-bottom: 16px; }
    .wa-command { padding-inline-end: 32px; }
    .wa-convo { margin: 8px 8px 0; }
    .wa-composer { margin: 0 8px; }
    .wa-bars { height: 120px; gap: 8px; }
}

html[data-theme=light] .wa-window { box-shadow: 0 30px 70px -36px #2b1b3a55, 0 10px 24px -16px #2b1b3a33; }
html[data-theme=light] .wa-command::before { background: linear-gradient(to left, transparent, color-mix(in srgb, var(--purple) 16%, transparent)); }
html[data-theme=light] .wa-command[aria-pressed=true] { color: var(--purple-strong); }

/* =====================================================================
 * Landing layer: light, depth and motion. Colours come only from the
 * active palette (--purple*), so every palette (teal p11 included) works.
 * ===================================================================== */
@property --wa-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.wa { overflow-x: clip; }

/* Soft coloured light behind the first viewport and the closing panel. */
.wa-desk, .wa-close-panel { position: relative; isolation: isolate; }
.wa-aurora {
    position: absolute;
    inset: -12% 0 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%);
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%);
}
.wa-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .8; }
.wa-aurora i:nth-child(1) {
    width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
    inset-inline-start: -8%; top: -14%;
    background: radial-gradient(circle, color-mix(in srgb, var(--purple) 72%, transparent), transparent 65%);
}
.wa-aurora i:nth-child(2) {
    width: 38vw; height: 38vw; max-width: 560px; max-height: 560px;
    inset-inline-end: -6%; top: 8%;
    background: radial-gradient(circle, color-mix(in srgb, var(--purple-soft) 58%, transparent), transparent 65%);
}
.wa-aurora i:nth-child(3) {
    width: 30vw; height: 30vw; max-width: 420px; max-height: 420px;
    inset-inline-start: 36%; top: 46%;
    background: radial-gradient(circle, color-mix(in srgb, var(--purple-strong) 52%, transparent), transparent 65%);
}
.wa-desk::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 25%, #000, transparent 75%);
}

/* The two words that carry the promise catch the light. */
.wa-shine {
    background: linear-gradient(100deg, var(--purple-soft) 0%, var(--purple) 35%, color-mix(in srgb, var(--purple-soft) 55%, #fff) 55%, var(--purple-soft) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wa-group[aria-selected=true] {
    background: linear-gradient(135deg, var(--purple-soft), var(--purple));
    border-color: transparent;
    color: #0b1214;
    box-shadow: 0 8px 22px -10px var(--purple);
}

/* The window: a slowly turning band of light runs round its edge. */
.wa-window {
    border: 1.5px solid transparent;
    background:
        linear-gradient(var(--wa-app), var(--wa-app)) padding-box,
        conic-gradient(from var(--wa-a),
            color-mix(in srgb, var(--purple) 15%, transparent),
            var(--purple-soft) 12%,
            var(--purple) 22%,
            color-mix(in srgb, var(--purple) 15%, transparent) 38%,
            color-mix(in srgb, var(--purple) 15%, transparent) 62%,
            var(--purple-soft) 76%,
            color-mix(in srgb, var(--purple) 15%, transparent) 90%) border-box;
    box-shadow:
        0 40px 90px -50px color-mix(in srgb, var(--purple) 30%, transparent),
        0 30px 60px -30px #000a;
}

/* Download: a gradient button with a light that passes over it now and then. */
.wa-download {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 78%, #000), color-mix(in srgb, var(--purple-strong) 58%, #000));
}
.wa-download:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 70%, #000), color-mix(in srgb, var(--purple-strong) 50%, #000)); }
.wa-download::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, #ffffff40 50%, transparent 70%);
    transform: translateX(130%);
}

/* Why: one lit panel. */
.wa-why { border-top: 0; }
.wa-why-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(28px, 4.5vw, 64px);
    border: 1px solid color-mix(in srgb, var(--purple) 30%, var(--stroke));
    background:
        radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--purple) 22%, transparent), transparent 60%),
        radial-gradient(50% 100% at 0% 100%, color-mix(in srgb, var(--purple-soft) 14%, transparent), transparent 60%),
        var(--panel);
}
.wa-why-cols { max-width: none; }

/* Steps: numbered tiles joined by a line of light. */
.wa-steps-list { border-top: 0; gap: clamp(14px, 2vw, 24px); position: relative; isolation: isolate; }
.wa-steps-list::before {
    content: "";
    position: absolute;
    top: 46px;
    inset-inline: 8%;
    height: 2px;
    z-index: -1;
    background: linear-gradient(to left, transparent, var(--purple), var(--purple-soft), var(--purple), transparent);
}
.wa-steps-list li {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--stroke);
    background: var(--panel);
    gap: 8px;
}
.wa-steps-list em {
    font-style: normal;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple-soft), var(--purple));
    color: #0b1214;
    font-weight: 900;
    font-size: 19px;
    box-shadow: 0 10px 24px -10px var(--purple);
    margin-bottom: 6px;
}

/* More: lit cards; three on top, two wide below. */
.wa-more-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.wa-more-list > div {
    grid-column: span 2;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 24px;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    background: var(--panel);
    transition: transform .3s var(--wa-ease), border-color .3s var(--wa-ease), box-shadow .3s var(--wa-ease);
}
.wa-more-list > div:nth-child(n+4) { grid-column: span 3; }
.wa-more-list > div:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--purple) 55%, var(--stroke));
    box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--purple) 70%, transparent);
}
.wa-more-list dt { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 6px; }
.wa-more-list dt .wa-ico {
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 13px;
    color: var(--purple-soft);
    background: color-mix(in srgb, var(--purple) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
}
.wa-more-list dd { padding-inline-start: 0; }

/* FAQ: rows that light up when open; answers use the full width. */
.wa-q, .wa-q:last-of-type { border: 1px solid var(--stroke); border-radius: 16px; margin-bottom: 10px; background: var(--panel); transition: border-color .25s var(--wa-ease); }
.wa-q[open] { border-color: color-mix(in srgb, var(--purple) 45%, var(--stroke)); }
.wa-q summary { padding: 18px 20px; align-items: center; }
.wa-q summary::after {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--purple) 16%, transparent);
}
.wa-q p { padding-inline: 20px; }

/* Close: a lit panel with its own light. */
.wa-close-panel {
    overflow: hidden;
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 12px;
    border-radius: 32px;
    padding: clamp(44px, 6vw, 88px) 20px;
    border: 1px solid color-mix(in srgb, var(--purple) 35%, var(--stroke));
    background: color-mix(in srgb, var(--panel) 80%, transparent);
}
.wa-close-panel .wa-aurora { inset: 0; -webkit-mask-image: none; mask-image: none; }
.wa-close-panel .wa-h2 { font-size: clamp(26px, 3.4vw, 44px); }

/* Motion. Everything above is complete without it. */
@media (prefers-reduced-motion: no-preference) {
    .wa-aurora i { animation: wa-drift 18s ease-in-out infinite alternate; }
    .wa-aurora i:nth-child(2) { animation-duration: 22s; animation-delay: -6s; }
    .wa-aurora i:nth-child(3) { animation-duration: 26s; animation-delay: -12s; }
    .wa-shine { animation: wa-shine 6s ease-in-out infinite; }
    .wa-window { animation: wa-turn 8s linear infinite, wa-rise .9s var(--wa-ease) .15s both; }
    .wa-download::after { animation: wa-sweep 4s ease-in-out 1.2s infinite; }
    .wa-menu > * { animation: wa-rise .8s var(--wa-ease) both; }
    .wa-menu > :nth-child(2) { animation-delay: .08s; }
    .wa-menu > :nth-child(3) { animation-delay: .16s; }
    .wa-menu > :nth-child(n+4) { animation-delay: .24s; }

    .wa-js [data-wa-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--wa-ease), transform .9s var(--wa-ease); }
    .wa-js [data-wa-reveal].is-in { opacity: 1; transform: none; }
    .wa-js .wa-steps.is-in li, .wa-js .wa-more.is-in .wa-more-list > div { animation: wa-rise .7s var(--wa-ease) both; }
    .wa-js .wa-steps.is-in li:nth-child(2), .wa-js .wa-more.is-in .wa-more-list > div:nth-child(2) { animation-delay: .1s; }
    .wa-js .wa-steps.is-in li:nth-child(3), .wa-js .wa-more.is-in .wa-more-list > div:nth-child(3) { animation-delay: .2s; }
    .wa-js .wa-more.is-in .wa-more-list > div:nth-child(4) { animation-delay: .3s; }
    .wa-js .wa-more.is-in .wa-more-list > div:nth-child(5) { animation-delay: .4s; }

    @keyframes wa-drift { 50% { transform: translate(6%, 8%) scale(1.12); } 100% { transform: translate(-5%, 4%) scale(.95); } }
    @keyframes wa-shine { 50% { background-position: 100% 0; } }
    @keyframes wa-turn { to { --wa-a: 360deg; } }
    @keyframes wa-sweep { 0%, 55% { transform: translateX(130%); } 100% { transform: translateX(-130%); } }
    @keyframes wa-rise { from { opacity: 0; transform: translateY(18px); } }
}

@media (max-width: 991px) {
    .wa-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wa-more-list > div, .wa-more-list > div:nth-child(n+4) { grid-column: auto; }
    .wa-more-list > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .wa-more-list { grid-template-columns: 1fr; }
    .wa-steps-list::before { display: none; }
    .wa-steps-list li { border-bottom: 1px solid var(--stroke); padding-bottom: 24px; }
    .wa-aurora i { filter: blur(50px); }
}

html[data-theme=light] .wa-aurora i { opacity: .32; }
html[data-theme=light] .wa-desk::before { opacity: .6; }
html[data-theme=light] .wa-shine { background-image: linear-gradient(100deg, var(--purple-strong) 0%, var(--purple) 40%, color-mix(in srgb, var(--purple) 60%, #000) 60%, var(--purple-strong) 100%); }
html[data-theme=light] .wa-window { box-shadow: 0 40px 100px -50px color-mix(in srgb, var(--purple) 55%, transparent), 0 20px 40px -24px #2b1b3a44; }

/* Why: three short answers to the three things people search for. */
.wa-why-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wa-why-cols > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid color-mix(in srgb, var(--purple) 55%, transparent); }
.wa-why-cols h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--text); }
.wa-why-cols > div p { color: var(--muted); }

/* Without code: text on one side, what people build on the other. */
.wa-nocode {
    max-width: 1440px;
    margin-inline: auto;
    padding: clamp(48px, 7vw, 96px) var(--wa-gutter) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}
.wa-nocode-text p { margin: 0 0 18px; color: var(--muted); line-height: 2; font-size: 16px; }
.wa-link { color: var(--purple-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
html[data-theme=light] .wa-link { color: var(--purple-strong); }
.wa-nocode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wa-nocode-list li {
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--purple) 30%, var(--stroke));
    background: linear-gradient(to left, color-mix(in srgb, var(--purple) 14%, var(--panel)), var(--panel));
    font-weight: 700;
}
@media (prefers-reduced-motion: no-preference) {
    .wa-js .wa-nocode.is-in .wa-nocode-list li { animation: wa-rise .7s var(--wa-ease) both; }
    .wa-js .wa-nocode.is-in .wa-nocode-list li:nth-child(2) { animation-delay: .1s; }
    .wa-js .wa-nocode.is-in .wa-nocode-list li:nth-child(3) { animation-delay: .2s; }
    .wa-js .wa-nocode.is-in .wa-nocode-list li:nth-child(4) { animation-delay: .3s; }
}
@media (max-width: 991px) {
    .wa-why-cols, .wa-nocode { grid-template-columns: 1fr; }
}

.wa span[dir=ltr] { white-space: nowrap; }

/* =====================================================================
 * Components from the owner's library (realnaeem65/ui-components)
 * ===================================================================== */

/* «دکمه‌ی درخشان» (shiny-button, Hyperiux, MIT): the plain-CSS port as is,
   coloured from the active palette instead of its orange. */
@property --hn-sb-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --hn-sb-angle-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --hn-sb-percent { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --hn-sb-shine { syntax: "<color>"; initial-value: white; inherits: false; }

.hn-sb {
    /* The source's black, orange and light orange, in the design
       system's violet-black, violet and soft violet. */
    --hn-sb-base: #000000;
    --hn-sb-inset: #1a1818;
    --hn-sb-label: #FFFFFF;
    --hn-sb-accent: #ff5f00;
    --hn-sb-accent-soft: #ff9253;
    --hn-sb-duration: 3s;
    --hn-sb-transition: .8s cubic-bezier(.25, 1, .5, 1);
    --hn-sb-shadow-size: 2px;

    isolation: isolate;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.25rem 2.5rem;
    font: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    outline-offset: 4px;
    border: 1px solid transparent;
    border-radius: 32px;
    color: var(--hn-sb-label);
    background:
        linear-gradient(var(--hn-sb-base), var(--hn-sb-base)) padding-box,
        conic-gradient(
            from calc(var(--hn-sb-angle) - var(--hn-sb-angle-offset)),
            transparent,
            var(--hn-sb-accent) var(--hn-sb-percent),
            var(--hn-sb-shine) calc(var(--hn-sb-percent) * 2),
            var(--hn-sb-accent) calc(var(--hn-sb-percent) * 3),
            transparent calc(var(--hn-sb-percent) * 4)
        ) border-box;
    box-shadow: inset 0 0 0 1px var(--hn-sb-inset);
    transition: var(--hn-sb-transition);
    transition-property: --hn-sb-angle-offset, --hn-sb-percent, --hn-sb-shine;
}

.hn-sb::before,
.hn-sb::after,
.hn-sb > .hn-sb-label::before {
    content: "";
    pointer-events: none;
    position: absolute;
    left: 50%; /* rtl-ignore: centring, see the shiny-button card */
    top: 50%;
    translate: -50% -50%;
    z-index: -1;
}
.hn-sb:active:not(:disabled) { translate: 0 1px; }

/* Faint speckles that follow the light. */
.hn-sb::before {
    --size: calc(100% - var(--hn-sb-shadow-size) * 3);
    --position: 2px;
    --space: calc(var(--position) * 2);
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0) padding-box;
    background-size: var(--space) var(--space);
    background-repeat: space;
    mask-image: conic-gradient(from calc(var(--hn-sb-angle) + 45deg), black, transparent 10% 90%, black);
    border-radius: inherit;
    opacity: .4;
}

/* The sheen. */
.hn-sb::after {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(-50deg, transparent, var(--hn-sb-accent), transparent);
    mask-image: radial-gradient(circle at bottom, transparent 40%, black);
    opacity: .6;
}

/* Not positioned, as in the source: the glow below is placed against
   the button, so it fills the whole button, not a box round the words. */
.hn-sb > .hn-sb-label { display: inline-flex; align-items: center; gap: .5rem; }

/* The glow that breathes on hover. */
.hn-sb > .hn-sb-label::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--hn-sb-accent);
    opacity: 0;
    transition: opacity var(--hn-sb-transition);
    animation: calc(var(--hn-sb-duration) * 1.5) hn-sb-breathe linear infinite;
}

.hn-sb { animation: hn-sb-angle var(--hn-sb-duration) linear infinite, hn-sb-angle calc(var(--hn-sb-duration) / .4) linear infinite reverse paused; animation-composition: add; }
.hn-sb::before { animation: hn-sb-angle var(--hn-sb-duration) linear infinite, hn-sb-angle calc(var(--hn-sb-duration) / .4) linear infinite reverse paused; animation-composition: add; }
.hn-sb::after { animation: hn-sb-shimmer var(--hn-sb-duration) linear infinite, hn-sb-shimmer calc(var(--hn-sb-duration) / .4) linear infinite reverse paused; animation-composition: add; }

.hn-sb:is(:hover, :focus-visible):not(:disabled) {
    --hn-sb-percent: 20%;
    --hn-sb-angle-offset: 95deg;
    --hn-sb-shine: var(--hn-sb-accent-soft);
}
.hn-sb:is(:hover, :focus-visible):not(:disabled),
.hn-sb:is(:hover, :focus-visible):not(:disabled)::before,
.hn-sb:is(:hover, :focus-visible):not(:disabled)::after { animation-play-state: running; }
.hn-sb:is(:hover, :focus-visible):not(:disabled) > .hn-sb-label::before { opacity: 1; }
.hn-sb:focus-visible { outline: 2px solid var(--hn-sb-accent); }

/* Busy or not ready: dimmed, the light stands still. */
.hn-sb:disabled { cursor: not-allowed; opacity: .6; }
.hn-sb:disabled,
.hn-sb:disabled::before,
.hn-sb:disabled::after,
.hn-sb:disabled > .hn-sb-label::before { animation-play-state: paused; }

@keyframes hn-sb-angle { to { --hn-sb-angle: 360deg; } }
@keyframes hn-sb-shimmer { to { rotate: 360deg; } }
@keyframes hn-sb-breathe { from, to { scale: 1; } 50% { scale: 1.2; } }

@media (prefers-reduced-motion: reduce) {
    .hn-sb, .hn-sb::before, .hn-sb::after, .hn-sb > .hn-sb-label::before { animation: none !important; }
    .hn-sb:is(:hover, :focus-visible) > .hn-sb-label::before { opacity: 0; }
    .hn-sb { transition: none; }
}

.wa .hn-sb {
    --hn-sb-base: color-mix(in srgb, var(--purple) 50%, #000);
    --hn-sb-inset: color-mix(in srgb, var(--purple) 70%, #000);
    --hn-sb-accent: var(--purple-soft);
    --hn-sb-accent-soft: color-mix(in srgb, var(--purple-soft) 45%, #fff);
    font-weight: 700;
    text-decoration: none;
}
.wa .hn-sb .wa-ico { width: 20px; height: 20px; }
.wa-get .hn-sb { margin-top: 4px; }

/* «بوردر درخشان پایین» (border-beam-bottom): the composer is a rounded field of its own, the beam under it. */
.wa-beam { margin: 10px; }
.wa-beam .wa-composer { margin: 0; border-radius: 16px; }
.wa-convo { border-radius: 12px; border-bottom: 1px solid var(--wa-app-line); margin-bottom: 0; }

/* «کره‌ی ذره‌ای» (recursive-erosion): one WebGL sphere, only at the close. */
.wa-orb { width: 220px; height: 220px; max-width: 60vw; max-height: 60vw; margin: -8px auto 0; }
.wa-orb iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; color-scheme: light; }
/* The iframe must share the page's colour scheme with its own document, or the browser paints it an opaque white square. */
@media (max-width: 640px) {
    .wa-beam { margin: 8px; }
    .wa-orb { width: 170px; height: 170px; }
}
/* The effect page draws a faint grain square; a round mask keeps only the sphere. */
.wa-orb { -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 70%); mask-image: radial-gradient(circle, #000 52%, transparent 70%); }

/* «هاله‌ی درخشان» (glow-effect, ui-components): coloured from the palette, behind the window and the last download. */
.wa .wa-ge { --ge-c1: var(--purple); --ge-c2: var(--purple-soft); --ge-c3: var(--purple-strong); --ge-c4: color-mix(in srgb, var(--purple-soft) 50%, #fff); z-index: -1; }
.wa-stage { position: sticky; top: 96px; isolation: isolate; align-self: start; }
.wa-stage .wa-window { position: relative; top: auto; }
.wa-stage > .wa-ge { --ge-duration: 9s; --ge-blur: 28px; opacity: .3; inset: -4px; width: auto; height: auto; border-radius: 28px; }
.wa-dl-host { position: relative; isolation: isolate; display: inline-block; }
.wa-dl-host > .wa-ge { --ge-duration: 4s; --ge-blur: 22px; opacity: 1; inset: -10px; width: auto; height: auto; border-radius: 40px; }
html[data-theme=light] .wa-stage > .wa-ge { opacity: .2; }
@media (max-width: 991px) {
    .wa-stage { position: static; }
}

/* The light and the grid behind the first view run the full width of the window, not the 1440px
   content box; otherwise a wide screen shows a hard edge where they stop (the owner, 2026-11-15). */
.wa-desk > .wa-aurora { inset-inline: calc(50% - 50vw); }
.wa-desk::before { inset-inline: calc(50% - 50vw); }
