:root {
    color-scheme: dark;
    --background: #151112;
    --panel: #1c1b20;
    --line: #353038;
    --text: #faf7f8;
    --muted: #bdb4bd;
    --accent: #ff8278;
    --violet: #c3adff;
    --gradient: linear-gradient(105deg, #c9363e, #7047da);
    font: 16px/1.55 "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #302628; }
.site-nav, .nav-links, .nav-actions, .site-brand {
    display: flex;
    align-items: center;
}
.site-nav { min-height: 64px; gap: clamp(22px, 4vw, 45px); }
.site-nav a, .site-brand { text-decoration: none; }
.site-brand { gap: 9px; font-size: 1.2rem; font-weight: 820; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e5806c8c;
    border-radius: 10px;
    background: radial-gradient(circle at 22% 17%, #f07550, transparent 72%), linear-gradient(150deg, #9b2435, #3e2060);
    font: 750 1.2rem/1 system-ui, sans-serif;
}
.nav-links, .nav-actions { gap: clamp(13px, 2.5vw, 27px); }
.nav-links a, .nav-account { color: var(--muted); font-size: .875rem; font-weight: 650; }
.nav-links a:hover, .nav-account:hover, .footer-inner nav a:hover { color: var(--text); }
.nav-actions { margin-left: auto; }

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    font-size: .875rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.primary { background: var(--gradient); box-shadow: 0 8px 24px #ad355733; }
.primary:hover { border-color: #ffc4cf9c; box-shadow: 0 8px 27px #ad355777; }
.secondary { border-color: #ffffff21; background-color: #ffffff0c; }
.secondary:hover { background-color: #ffffff17; border-color: #ffffff44; }
.nav-create { min-height: 38px; }

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 85px);
    width: min(1200px, calc(100% - 48px));
    margin: 22px auto 0;
    padding: clamp(44px, 6.4vw, 88px) clamp(28px, 6vw, 66px);
    overflow: hidden;
    border: 1px solid #392c33;
    border-radius: 30px;
    background:
        radial-gradient(ellipse at 3% 0%, #602d2b88, transparent 52%),
        radial-gradient(ellipse at 100% 105%, #46337791, transparent 51%),
        #241d22;
}
.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: repeating-radial-gradient(circle at 96% 3%, transparent 0 46px, #ab484420 47px 48px, transparent 49px 67px);
    mask-image: linear-gradient(235deg, #000, transparent 46%);
    content: "";
    pointer-events: none;
}
.hero::after {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 7px;
    width: min(56%, 590px);
    height: 44px;
    opacity: .23;
    background: repeating-linear-gradient(90deg, #7953cf 0 3px, transparent 3px 10px);
    clip-path: polygon(0 100%, 0 64%, 3% 12%, 6% 80%, 9% 66%, 12% 91%, 15% 28%, 19% 42%, 21% 8%, 24% 79%, 28% 55%, 32% 92%, 35% 65%, 39% 18%, 42% 73%, 45% 32%, 48% 8%, 51% 68%, 55% 91%, 60% 72%, 63% 42%, 65% 85%, 70% 26%, 73% 12%, 76% 65%, 80% 90%, 84% 57%, 87% 77%, 90% 22%, 93% 38%, 96% 85%, 100% 64%, 100% 100%);
    content: "";
    pointer-events: none;
}
.studio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid #c4514a55;
    border-radius: 999px;
    background: #b745372c;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 750;
}
.studio-label span { width: 6px; height: 6px; border-radius: 50%; background: #ff665a; }
.hero h1, .section h2 { margin: 0; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
.hero h1 { margin-top: 16px; font-size: clamp(39px, 4.9vw, 65px); font-weight: 820; }
.hero-lead { margin: 20px 0 0; max-width: 38ch; font-size: clamp(16px, 1.6vw, 19px); font-weight: 680; line-height: 1.4; }
.hero-description { max-width: 48ch; margin: 10px 0 0; color: var(--muted); font-size: .9375rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .75rem;
}
.hero-facts li::before { content: "✓"; margin-right: 5px; color: var(--accent); font-weight: 780; }

.studio {
    padding: 13px;
    border: 1px solid #302b33;
    border-radius: 25px;
    background: #141317;
    box-shadow: 0 21px 33px #100b1366;
}
.studio-title { display: flex; align-items: center; gap: 11px; padding: 2px 5px 11px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.studio-lights { display: flex; gap: 5px; }
.studio-lights i { width: 8px; height: 8px; border-radius: 50%; background: #4b434d; }
.studio-lights i:first-child { background: #e95349; }
.studio-prompt, .studio-preview { border: 1px solid #ffffff11; border-radius: 13px; background: var(--panel); }
.studio-prompt { padding: 14px; }
.prompt-label { color: #b297ff; font-size: .7rem; font-weight: 820; letter-spacing: .075em; }
.prompt-label span { padding-right: 4px; }
.studio-prompt p { margin: 8px 0 11px; font-size: .875rem; line-height: 1.4; }
.studio-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.studio-tags span { padding: 3px 7px; border: 1px solid #ffffff09; border-radius: 999px; background: #302c34; color: #ddd3de; font-size: .66rem; line-height: 1.35; font-weight: 650; }
.studio-preview { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px; background: linear-gradient(105deg, #452722, #1c1b20 77%); }
.preview-note { display: grid; flex: 0 0 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--gradient); font-size: 1.2rem; }
.preview-meta { display: grid; min-width: 0; line-height: 1.35; }
.preview-meta strong { font-size: .875rem; }
.preview-meta small { color: var(--muted); font-size: .69rem; }
.preview-wave { display: flex; justify-content: flex-end; align-items: center; gap: 2px; height: 27px; margin-left: auto; }
.preview-wave i { display: block; width: 2px; height: var(--height); border-radius: 2px; background: #a78bff; }
.studio-mixer { display: grid; gap: 8px; padding: 13px 10px 5px; color: var(--muted); }
.studio-mixer div { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 7px; font-size: .68rem; line-height: 1; }
.studio-mixer i { height: 6px; overflow: hidden; border-radius: 6px; background: #30282f; }
.studio-mixer i::before { display: block; width: var(--level); height: 100%; background: repeating-linear-gradient(90deg, #e0564e 0 2px, #812f34 2px 3px, transparent 3px 4px); content: ""; }

.section { margin-top: clamp(55px, 7vw, 88px); scroll-margin-top: 24px; }
.section h2 { font-size: clamp(30px, 3.7vw, 48px); font-weight: 800; }
.section-intro { margin: 11px 0 0; max-width: 64ch; color: var(--muted); }
.track-grid, .use-grid, .steps { display: grid; gap: 12px; margin-top: 25px; }
.track-grid, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.use-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track, .use-card, .steps li, .faq details {
    border: 1px solid #ffffff0e;
    border-radius: 17px;
    background: var(--panel);
}
.track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 9px 12px 9px 9px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
.track:hover, .track[aria-pressed="true"] { border-color: #a386f599; background-color: #24202c; }
.track-art {
    display: grid;
    flex: 0 0 52px;
    height: 52px;
    place-items: center;
    border-radius: 9px;
    background: center / cover no-repeat var(--cover), var(--cover-color);
}
.track-art-1 { --cover: url("cover-1.webp"); --cover-color: #6c2d2a; }
.track-art-2 { --cover: url("cover-2.webp"); --cover-color: #28434d; }
.track-art-3 { --cover: url("cover-3.webp"); --cover-color: #514076; }
.track-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #120f19b0; }
.track-icon::before { width: 0; height: 0; margin-left: 2px; border-block: 5px solid transparent; border-left: 8px solid #fff; content: ""; }
.track[aria-pressed="true"] .track-icon::before { width: 8px; height: 10px; margin: 0; border: 0; background: linear-gradient(90deg, #fff 0 3px, transparent 3px 5px, #fff 5px); }
.track-body { display: grid; flex: 1; gap: 7px; }
.track-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.track-meta strong { font-size: .9rem; }
.track-time { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.track-progress { height: 3px; overflow: hidden; border-radius: 3px; background: #ffffff17; }
.track-progress::before { display: block; width: var(--track-progress, 0%); height: 100%; background: var(--gradient); content: ""; }
.track-status { margin: 9px 0 0; color: var(--accent); font-size: .875rem; }
.track-status:empty { margin: 0; }

.use-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(16px, 2vw, 23px); }
.use-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: #b946362b;
    color: var(--accent);
    font: 700 1.3rem/1 system-ui, sans-serif;
}
.use-card h3 { margin: 12px 0 0; font-size: 1rem; line-height: 1.35; }
.use-card p, .steps p { color: var(--muted); font-size: .875rem; }
.use-card p { margin: 7px 0 19px; }
.use-card .button { min-height: 36px; margin-top: auto; padding: 7px 11px; font-size: .75rem; }

.steps { margin-bottom: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 20px; counter-increment: step; }
.steps li::before { display: block; margin-bottom: 10px; color: var(--accent); font-weight: 780; content: counter(step, decimal-leading-zero); }
.steps p { margin: 6px 0 0; }

.section-action { margin-top: 19px; }
.choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 19px 0 0;
    padding: 0;
    list-style: none;
}
.choice-list a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 5px 12px;
    border: 1px solid #ffffff19;
    border-radius: 999px;
    background: var(--panel);
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
}
.choice-list a:hover { border-color: var(--violet); }
.gift {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: center;
    gap: clamp(24px, 5vw, 65px);
    padding: clamp(25px, 6vw, 64px);
    border-radius: 25px;
    background:
        radial-gradient(ellipse at 100% 0%, #e1b5ff45, transparent 65%),
        linear-gradient(117deg, #b82b35, #7145c6);
}
.gift h2 { text-wrap: initial; }
.gift p { max-width: 52ch; margin: 16px 0 0; color: #fff0f6; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.gift-primary { background: #fff7fa; color: #301c28; }
.gift-primary:hover { background: #f0e1ff; }
.gift-secondary { border-color: #ffffff6b; background: #301a5544; }
.gift-secondary:hover { background: #301a5577; }
.gift-options { padding: clamp(16px, 3vw, 25px); border: 1px solid #ffffff26; border-radius: 17px; background: #25123d52; }
.gift-options h3 { margin: 0; font-size: .95rem; }
.gift-options .choice-list { margin-top: 7px; gap: 6px; }
.gift-options .choice-list + h3 { margin-top: 17px; }
.gift-options .choice-list a { background: #1d102547; }

.start-table { margin-top: 21px; overflow: hidden; border: 1px solid #ffffff12; border-radius: 17px; background: var(--panel); }
.start-table table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.start-table :is(th, td) { padding: 13px clamp(9px, 2vw, 20px); overflow-wrap: anywhere; }
.start-table thead { background: #271e25; color: var(--muted); }
.start-table thead th { font-size: .84375rem; }
.start-table tbody th, .start-table td { border-top: 1px solid #ffffff13; font-size: .875rem; }
.start-table td { color: var(--muted); }
.start-table td:first-of-type { color: var(--accent); }

.pricing-grid, .contact-grid { display: grid; gap: 12px; margin-top: 24px; }
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: clamp(12px, 2vw, 22px);
    border: 1px solid #ffffff13;
    border-radius: 17px;
    background: var(--panel);
}
.price-featured {
    border-color: transparent;
    background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(115deg, #eb605f, #9c6cf8) border-box;
    box-shadow: 0 5px 20px #b9485d30;
}
.price-card h3 { margin: 0; font-size: 1rem; }
.price { margin: 4px 0 0; font-size: clamp(27px, 4vw, 42px); font-weight: 800; line-height: 1.15; white-space: nowrap; }
.price-unit { margin: 7px 0 17px; color: var(--muted); font-size: .8125rem; }
.price-card .button { width: 100%; margin-top: auto; padding-inline: 7px; }

.about-generator, .faq { max-width: 760px; }
.about-generator p { color: var(--muted); }
.faq h2 { margin-bottom: 19px; }
.faq details { margin-top: 8px; }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 17px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    display: grid;
    flex: 0 0 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: #b946362b;
    color: var(--accent);
    line-height: 1;
    content: "+";
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 17px 16px; color: var(--muted); }
.faq details a { color: var(--violet); }
.site-footer { margin-top: clamp(55px, 7vw, 88px); border-top: 1px solid #302628; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 25px; }
.footer-inner .site-brand { text-decoration: none; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .82rem; }
.footer-inner nav a { text-underline-offset: 3px; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero { gap: 25px; padding-inline: 30px; }
    .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .wrap { width: calc(100% - 32px); }
    .hero { grid-template-columns: minmax(0, 1fr); width: calc(100% - 32px); margin-top: 15px; padding: 31px 22px 35px; }
    .hero-actions, .gift-actions { flex-direction: column; }
    .hero-actions .button, .gift-actions .button { width: 100%; min-height: 50px; }
    .studio { width: min(100%, 450px); }
    .track-grid, .steps, .gift { grid-template-columns: minmax(0, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .track-grid, .steps { gap: 8px; }
}
@media (max-width: 480px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .start-table :is(th, td) { padding: 10px 7px; font-size: .75rem; }
}
@media (max-width: 390px) {
    .site-nav { gap: 8px; min-height: 58px; }
    .nav-actions { gap: 9px; }
    .nav-create { padding-inline: 9px; font-size: .73rem; }
    .nav-account { font-size: .75rem; }
    .site-brand { gap: 6px; font-size: 1.05rem; }
    .hero h1 { font-size: clamp(34px, 10.2vw, 40px); }
    .preview-wave { gap: 1px; }
    .use-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button, .track { transition: none; }
}
