:root {
    --paper: #f6f3ea;
    --paper-deep: #ece7da;
    --surface: #fffdf8;
    --surface-muted: #f0ede4;
    --ink: #171820;
    --ink-soft: #555765;
    --line: rgba(23, 24, 32, 0.13);
    --line-strong: rgba(23, 24, 32, 0.24);
    --violet: #6756e8;
    --violet-deep: #4b3ac4;
    --violet-pale: #ddd8ff;
    --peach: #ffb38c;
    --mint: #93dec2;
    --lime: #ddf87f;
    --blue: #9ebcfb;
    --danger: #c84055;
    --success: #16845b;
    --dark: #171820;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --shadow-soft: 0 18px 60px rgba(30, 27, 21, 0.08);
    --shadow-card: 0 12px 32px rgba(30, 27, 21, 0.1);
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-display: "Iowan Old Style", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.is-editor-active {
    --mobile-export-height: 74px;
}

body,
button,
input,
select {
    font: inherit;
}

button,
input,
select {
    color: inherit;
}

button {
    border: 0;
}

button,
select,
input[type="range"],
summary {
    cursor: pointer;
}

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

img,
canvas {
    display: block;
    max-width: 100%;
}

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

button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(103, 86, 232, 0.34);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    background: var(--ink);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.page-shell {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(23, 24, 32, 0.08);
    background: rgba(246, 243, 234, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(1328px, calc(100% - 40px));
    min-height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.brand__mark {
    position: relative;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 11px;
    background:
        linear-gradient(145deg, transparent 42%, rgba(255, 255, 255, 0.88) 43% 54%, transparent 55%),
        linear-gradient(135deg, var(--violet), #998cf6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand__mark span {
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.brand__name {
    font-size: 1.08rem;
}

.brand__tag {
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.08em;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.62);
}

.language-switch {
    min-width: 42px;
    min-height: 40px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.38);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.05em;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-switch:hover {
    border-color: rgba(103, 86, 232, 0.38);
    background: white;
    transform: translateY(-2px);
}

.button {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 720;
    line-height: 1;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.button--small {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 0.86rem;
}

.button--large {
    min-height: 56px;
    padding-inline: 23px;
    border-radius: 15px;
}

.button--ink {
    color: white;
    background: var(--ink);
}

.button--primary {
    color: white;
    background: var(--violet);
    box-shadow: 0 12px 28px rgba(103, 86, 232, 0.23);
}

.button--primary:hover {
    background: var(--violet-deep);
    box-shadow: 0 16px 34px rgba(103, 86, 232, 0.28);
}

.button--ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.34);
}

.button--ghost:hover {
    background: white;
}

.button--light {
    color: var(--ink);
    background: white;
}

.button--block {
    width: 100%;
}

.button--danger-ghost {
    border-color: rgba(200, 64, 85, 0.24);
    color: var(--danger);
    background: rgba(200, 64, 85, 0.06);
}

.hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    padding: 104px 0 120px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(23, 24, 32, 0.12) 0.75px, transparent 0.75px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), transparent 72%);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.hero__glow--one {
    top: 70px;
    right: 12%;
    width: 420px;
    height: 420px;
    background: rgba(221, 216, 255, 0.72);
}

.hero__glow--two {
    left: 34%;
    bottom: -170px;
    width: 360px;
    height: 360px;
    background: rgba(255, 179, 140, 0.25);
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(460px, 0.98fr);
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 24px;
    height: 2px;
    border-radius: 99px;
    background: var(--violet);
}

.hero h1,
.section-heading h2,
.steps-layout h2,
.faq-layout h2,
.final-cta h2,
.landing-hero h1,
.seo-copy h2 {
    font-family: var(--font-display);
    font-weight: 620;
    letter-spacing: -0.045em;
    line-height: 1.07;
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(3.4rem, 6.5vw, 5.8rem);
}

.hero h1 em {
    color: var(--violet);
    font-style: italic;
    font-weight: 520;
}

.hero__lead {
    max-width: 610px;
    margin-bottom: 30px;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.8;
}

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

.trust-list {
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    color: var(--ink-soft);
    font-size: 0.79rem;
    font-weight: 600;
}

.trust-list span {
    width: 18px;
    height: 18px;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--success);
    background: rgba(147, 222, 194, 0.34);
    font-size: 0.7rem;
}

.hero-art {
    position: relative;
    min-height: 490px;
    display: grid;
    place-items: center;
    perspective: 1200px;
}

.hero-art__window {
    position: relative;
    z-index: 1;
    width: min(100%, 510px);
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(23, 24, 32, 0.13);
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.89);
    box-shadow: 0 38px 90px rgba(63, 50, 130, 0.18);
    transform: rotate(2deg);
}

.hero-art__top {
    height: 40px;
    padding-inline: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-art__top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--paper-deep);
}

.hero-art__top span:first-child {
    background: var(--peach);
}

.hero-art__top span:nth-child(2) {
    background: var(--lime);
}

.hero-art__top span:nth-child(3) {
    background: var(--mint);
}

.hero-art__top small {
    margin-left: auto;
    color: var(--ink-soft);
    font-size: 0.66rem;
}

.hero-art__stage {
    position: relative;
    height: 330px;
    overflow: hidden;
    border-radius: 17px;
    background-color: #fff;
}

.hero-art__checker,
.canvas-checker,
.alpha-demo {
    background-color: #f6f6f3;
    background-image:
        linear-gradient(45deg, #dcdcd8 25%, transparent 25%),
        linear-gradient(-45deg, #dcdcd8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dcdcd8 75%),
        linear-gradient(-45deg, transparent 75%, #dcdcd8 75%);
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.hero-art__checker {
    position: absolute;
    inset: 0;
}

.hero-art__picture {
    position: absolute;
    inset: 24px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(155deg, #8b8ff0 0%, #a8ccf5 46%, #f8b894 100%);
}

.hero-art__sun {
    position: absolute;
    top: 42px;
    right: 70px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #f8efb7;
    box-shadow: 0 0 42px rgba(248, 239, 183, 0.68);
}

.hero-art__hill {
    position: absolute;
    left: -15%;
    bottom: -90px;
    width: 130%;
    height: 235px;
    border-radius: 50% 50% 0 0;
    transform: rotate(-5deg);
}

.hero-art__hill--back {
    bottom: -110px;
    background: #5360ba;
}

.hero-art__hill--front {
    left: 12%;
    bottom: -145px;
    background: #292e64;
    transform: rotate(8deg);
}

.hero-art__fade {
    position: absolute;
    inset: 24px;
    border-radius: 12px;
    background: linear-gradient(112deg, transparent 20%, rgba(255, 255, 255, 0.16) 56%, rgba(255, 255, 255, 0.98) 92%);
}

.hero-art__line {
    position: absolute;
    z-index: 2;
    top: 48%;
    left: 31%;
    width: 44%;
    height: 2px;
    background: white;
    box-shadow: 0 1px 6px rgba(23, 24, 32, 0.4);
    transform: rotate(-20deg);
}

.hero-art__handle {
    position: absolute;
    z-index: 3;
    width: 16px;
    height: 16px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 2px 9px rgba(23, 24, 32, 0.32);
}

.hero-art__handle--start {
    top: 57%;
    left: 29%;
}

.hero-art__handle--end {
    top: 38%;
    right: 24%;
}

.hero-art__controls {
    height: 64px;
    padding: 0 8px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    font-size: 0.73rem;
}

.hero-art__slider {
    position: relative;
    height: 5px;
    border-radius: 99px;
    background: var(--paper-deep);
}

.hero-art__slider::before {
    content: "";
    position: absolute;
    inset: 0 48% 0 0;
    border-radius: inherit;
    background: var(--violet);
}

.hero-art__slider i {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 14px;
    height: 14px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 2px 8px rgba(23, 24, 32, 0.25);
    transform: translate(-50%, -50%);
}

.floating-note {
    position: absolute;
    z-index: 2;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(23, 24, 32, 0.12);
    border-radius: 15px;
    background: rgba(255, 253, 248, 0.93);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.floating-note > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--violet);
    background: var(--violet-pale);
    font-weight: 800;
}

.floating-note strong,
.floating-note small {
    display: block;
    line-height: 1.3;
}

.floating-note strong {
    font-size: 0.77rem;
}

.floating-note small {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 0.62rem;
}

.floating-note--privacy {
    left: -15px;
    bottom: 48px;
}

.floating-note--format {
    top: 47px;
    right: -8px;
    display: block;
    text-align: center;
}

.mode-strip {
    position: relative;
    z-index: 4;
    margin-top: -66px;
}

.mode-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.mode-card {
    position: relative;
    min-height: 154px;
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: end;
    border-right: 1px solid var(--line);
    transition: background 180ms ease, transform 180ms ease;
}

.mode-card:last-child {
    border-right: 0;
}

.mode-card:hover {
    z-index: 1;
    transform: translateY(-4px);
}

.mode-card--violet:hover { background: var(--violet-pale); }
.mode-card--peach:hover { background: #ffe3d5; }
.mode-card--mint:hover { background: #d9f4e9; }
.mode-card--blue:hover { background: #e0eaff; }

.mode-card__number {
    position: absolute;
    top: 16px;
    left: 20px;
    color: var(--ink-soft);
    font-size: 0.65rem;
    font-weight: 700;
}

.mode-card__icon {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.48);
    font-size: 1.14rem;
}

.mode-card strong {
    font-size: 1.02rem;
}

.mode-card small {
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.tool-section {
    padding: 122px 0 132px;
}

.section-heading {
    margin-bottom: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 50px;
}

.section-heading h2,
.steps-layout h2,
.faq-layout h2,
.seo-copy h2 {
    margin-bottom: 0;
    font-size: clamp(2.55rem, 5vw, 4.6rem);
}

.section-heading > p {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.8;
}

.section-heading--tool {
    margin-bottom: 30px;
}

.section-heading--compact {
    grid-template-columns: 1fr;
}

.editor-mount {
    min-height: 520px;
}

.editor-shell {
    overflow: hidden;
    border: 1px solid rgba(23, 24, 32, 0.2);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(27, 26, 35, 0.11);
}

.editor-topbar {
    min-height: 62px;
    padding: 10px 14px 10px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.editor-title {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 750;
}

.editor-title span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(22, 132, 91, 0.1);
}

.file-chip {
    max-width: 300px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px;
    color: var(--ink-soft);
    background: var(--surface-muted);
    font-size: 0.7rem;
}

.file-chip strong {
    max-width: 160px;
    overflow: hidden;
    color: var(--ink);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-topbar__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.icon-button {
    min-height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    font-size: 0.72rem;
    font-weight: 680;
}

.icon-button:hover {
    border-color: var(--line-strong);
    background: var(--surface-muted);
}

.editor-empty {
    min-height: 500px;
    padding: 38px;
    display: grid;
    place-items: center;
}

.drop-zone {
    width: min(720px, 100%);
    min-height: 350px;
    padding: 44px 28px;
    display: grid;
    place-items: center;
    border: 1.5px dashed var(--line-strong);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 25%, rgba(103, 86, 232, 0.1), transparent 40%),
        var(--paper);
    text-align: center;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone.is-dragging {
    border-color: var(--violet);
    background-color: var(--violet-pale);
    transform: scale(1.01);
}

.drop-zone__icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(103, 86, 232, 0.2);
    border-radius: 24px;
    color: var(--violet);
    background: var(--violet-pale);
    font-family: var(--font-display);
    font-size: 2.3rem;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.32);
}

.drop-zone h3 {
    margin-bottom: 7px;
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.drop-zone p {
    margin-bottom: 20px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.drop-zone__meta {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 0.68rem;
}

.drop-zone__meta span {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
}

.editor-workspace {
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr) 250px;
    min-height: 650px;
}

.control-panel,
.export-panel {
    padding: 20px;
    background: var(--surface);
}

.control-panel {
    border-right: 1px solid var(--line);
}

.export-panel {
    border-left: 1px solid var(--line);
}

.panel-heading {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.panel-heading strong {
    font-size: 0.82rem;
}

.panel-heading small {
    color: var(--ink-soft);
    font-size: 0.66rem;
}

.mode-tabs {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.mode-tab {
    min-height: 54px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink-soft);
    background: white;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 670;
    transition: border 160ms ease, color 160ms ease, background 160ms ease;
}

html[lang="en"] .mode-tab {
    line-height: 1.2;
}

.mode-tab span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-muted);
    font-size: 0.83rem;
}

.mode-tab:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.mode-tab.is-active {
    border-color: rgba(103, 86, 232, 0.45);
    color: var(--violet-deep);
    background: rgba(221, 216, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(103, 86, 232, 0.08);
}

.mode-tab.is-active span {
    background: var(--violet-pale);
}

.control-group {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.control-group:first-child {
    padding-top: 0;
    border-top: 0;
}

.control-label {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 680;
}

.control-label output {
    min-width: 46px;
    padding: 3px 7px;
    border-radius: 7px;
    color: var(--violet-deep);
    background: var(--violet-pale);
    font-size: 0.67rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    margin: 7px 0;
    border-radius: 99px;
    outline: 0;
    background: linear-gradient(to right, var(--violet) var(--range-progress, 50%), var(--paper-deep) var(--range-progress, 50%));
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 2px 8px rgba(23, 24, 32, 0.24);
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 2px 8px rgba(23, 24, 32, 0.24);
}

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-button,
.choice-button,
.background-button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-soft);
    background: white;
    font-size: 0.65rem;
    font-weight: 650;
}

.preset-button:hover,
.choice-button:hover,
.background-button:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.preset-button.is-active,
.choice-button.is-active,
.background-button.is-active {
    border-color: rgba(103, 86, 232, 0.4);
    color: var(--violet-deep);
    background: var(--violet-pale);
}

.segmented-control {
    padding: 3px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 3px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.segmented-control button {
    min-height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--ink-soft);
    background: transparent;
    font-size: 0.65rem;
    font-weight: 660;
}

.segmented-control button.is-active {
    color: var(--ink);
    background: white;
    box-shadow: 0 2px 8px rgba(23, 24, 32, 0.08);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.field {
    display: grid;
    gap: 6px;
}

.field > span {
    color: var(--ink-soft);
    font-size: 0.64rem;
    font-weight: 640;
}

.field select,
.select-control {
    width: 100%;
    min-height: 38px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    background: white;
    font-size: 0.68rem;
}

.field select:focus,
.select-control:focus {
    border-color: var(--violet);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 650;
}

.switch {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: var(--paper-deep);
    transition: background 160ms ease;
}

.switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 5px rgba(23, 24, 32, 0.2);
    transition: transform 160ms ease;
}

.switch input:checked + span {
    background: var(--violet);
}

.switch input:checked + span::after {
    transform: translateX(16px);
}

.control-hint {
    margin: 9px 0 0;
    color: var(--ink-soft);
    font-size: 0.62rem;
    line-height: 1.55;
}

.mini-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.canvas-panel {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #262732;
}

.canvas-toolbar {
    min-height: 52px;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.74);
    background: #20212a;
}

.canvas-toolbar__label {
    margin-right: auto;
    font-size: 0.67rem;
    font-weight: 650;
}

.canvas-toolbar button {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.62rem;
}

.canvas-toolbar button:hover,
.canvas-toolbar button.is-active {
    color: white;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.background-picker {
    display: flex;
    gap: 5px;
}

.background-picker .background-button {
    width: 26px;
    min-height: 26px;
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.22);
    border-radius: 7px;
}

.background-button[data-background="checker"] {
    background:
        linear-gradient(45deg, #d8d8d8 25%, transparent 25%) 0 0 / 10px 10px,
        linear-gradient(-45deg, #d8d8d8 25%, transparent 25%) 0 5px / 10px 10px,
        linear-gradient(45deg, transparent 75%, #d8d8d8 75%) 5px -5px / 10px 10px,
        linear-gradient(-45deg, transparent 75%, #d8d8d8 75%) -5px 0 / 10px 10px,
        white;
}

.background-button[data-background="white"] { background: white; }
.background-button[data-background="black"] { background: #111; }

.background-button.is-active {
    box-shadow: 0 0 0 2px var(--violet);
}

.color-input-wrap {
    position: relative;
    width: 26px;
    height: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
}

.color-input-wrap input {
    position: absolute;
    inset: -8px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
}

.canvas-viewport {
    position: relative;
    min-height: 545px;
    flex: 1;
    padding: 34px;
    display: grid;
    place-items: center;
    overflow: auto;
    overscroll-behavior: contain;
}

.canvas-frame {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: grid;
    place-items: center;
    border-radius: 5px;
    box-shadow: 0 15px 55px rgba(0, 0, 0, 0.34);
}

.canvas-frame[data-background="checker"] {
    background-color: #f8f8f8;
    background-image:
        linear-gradient(45deg, #d8d8d8 25%, transparent 25%),
        linear-gradient(-45deg, #d8d8d8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #d8d8d8 75%),
        linear-gradient(-45deg, transparent 75%, #d8d8d8 75%);
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
}

.canvas-frame[data-background="white"] { background: white; }
.canvas-frame[data-background="black"] { background: #111; }
.canvas-frame[data-background="custom"] { background: var(--custom-preview, #cfd8e3); }

#imageCanvas {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 480px;
    touch-action: none;
    user-select: none;
}

#imageCanvas.is-selecting {
    cursor: crosshair;
}

.canvas-status {
    min-height: 34px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.52);
    background: #20212a;
    font-size: 0.61rem;
}

.canvas-status span:last-child {
    text-align: right;
}

.export-panel {
    display: flex;
    flex-direction: column;
}

.export-preview {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.export-preview__title {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 700;
}

.export-preview__title span {
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--success);
    background: rgba(147, 222, 194, 0.3);
    font-size: 0.56rem;
}

.export-meta {
    margin: 0;
    display: grid;
    gap: 8px;
}

.export-meta div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.64rem;
}

.export-meta dd,
.export-meta dt {
    margin: 0;
}

.export-meta dd {
    color: var(--ink);
    font-weight: 650;
    text-align: right;
}

.export-settings {
    display: grid;
    gap: 15px;
}

.export-actions {
    margin-top: auto;
    padding-top: 22px;
    display: grid;
    gap: 8px;
}

.download-button {
    min-height: 52px;
    border-radius: 13px;
}

.download-button.is-loading {
    pointer-events: none;
}

.download-button.is-loading span:first-child {
    animation: pulse 900ms ease infinite alternate;
}

.privacy-note {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 0.58rem;
    line-height: 1.5;
    text-align: center;
}

.mobile-export-bar {
    display: none;
}

.noscript-message {
    padding: 24px;
    border-radius: 14px;
    color: #8a2b39;
    background: #ffe3e8;
}

.feature-section {
    padding: 126px 0;
    background: var(--surface);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 330px;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
}

.feature-card--wide {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    background: var(--violet-pale);
}

.feature-card--dark {
    color: white;
    background: var(--dark);
}

.feature-card--lime {
    background: var(--lime);
}

.feature-card--plain {
    background: var(--surface);
}

.feature-card__label {
    display: inline-flex;
    margin-bottom: 42px;
    padding: 5px 9px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.12;
}

.feature-card p {
    max-width: 490px;
    margin-bottom: 19px;
    color: currentColor;
    opacity: 0.72;
    font-size: 0.84rem;
    line-height: 1.75;
}

.feature-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 720;
}

.gradient-demo {
    position: relative;
    min-height: 250px;
    align-self: center;
}

.gradient-demo__card {
    position: absolute;
    inset: 15px 15px 15px 30px;
    border: 1px solid rgba(23, 24, 32, 0.16);
    border-radius: 20px;
    background:
        radial-gradient(circle at 72% 28%, #ffe7a8 0 11%, transparent 12%),
        linear-gradient(148deg, #7a75d1, #e4a18f 64%, #fff2df);
    box-shadow: 0 24px 45px rgba(59, 43, 116, 0.2);
    transform: rotate(5deg);
}

.gradient-demo__card--two {
    opacity: 0.65;
    mask-image: linear-gradient(120deg, #000 20%, transparent 88%);
    transform: rotate(-7deg) translate(-18px, 8px);
}

.gradient-demo__arrow {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--violet);
    font-size: 1.4rem;
}

.alpha-demo {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 145px;
    height: 112px;
    overflow: hidden;
    border-radius: 16px;
}

.alpha-demo span {
    position: absolute;
    border-radius: 50%;
    background: var(--peach);
}

.alpha-demo span:first-child {
    top: 16px;
    left: 22px;
    width: 72px;
    height: 72px;
    opacity: 0.95;
}

.alpha-demo span:nth-child(2) {
    top: 31px;
    left: 53px;
    width: 62px;
    height: 62px;
    opacity: 0.55;
}

.alpha-demo span:nth-child(3) {
    top: 50px;
    left: 81px;
    width: 46px;
    height: 46px;
    opacity: 0.22;
}

.privacy-seal {
    position: absolute;
    right: 30px;
    bottom: 28px;
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-style: italic;
    line-height: 1.15;
    text-align: center;
    transform: rotate(-9deg);
}

.privacy-seal::before,
.privacy-seal::after {
    content: "✦";
    position: absolute;
    top: 7px;
    font-size: 0.55rem;
}

.privacy-seal::after {
    top: auto;
    bottom: 7px;
}

.use-cases {
    padding: 126px 0;
}

.case-list {
    border-top: 1px solid var(--line-strong);
}

.case-list a {
    min-height: 126px;
    padding: 22px 8px;
    display: grid;
    grid-template-columns: 62px 1fr auto;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid var(--line-strong);
    transition: padding 180ms ease, background 180ms ease;
}

.case-list a:hover {
    padding-inline: 22px;
    background: rgba(255, 255, 255, 0.48);
}

.case-list__index {
    color: var(--violet);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
}

.case-list strong,
.case-list small {
    display: block;
}

.case-list strong {
    font-family: var(--font-display);
    font-size: 1.65rem;
}

.case-list small {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.case-list a > span:last-child {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.steps-section {
    padding: 122px 0;
    color: white;
    background: var(--dark);
}

.steps-section .eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.steps-section .eyebrow > span {
    background: var(--lime);
}

.steps-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
}

.steps-layout__intro > p:last-child {
    max-width: 430px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.steps-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps-list li {
    min-height: 122px;
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.steps-list li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.steps-list li > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    color: var(--lime);
    font-family: var(--font-display);
    font-style: italic;
}

.steps-list strong {
    font-size: 1.05rem;
}

.steps-list p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.76rem;
}

.faq-section {
    padding: 126px 0;
    background: var(--surface);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.faq-layout__note {
    margin: 25px 0 4px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--violet-deep);
    font-size: 0.78rem;
    font-weight: 720;
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-list details {
    border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
    font-weight: 710;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    color: var(--violet);
    font-size: 1.35rem;
    font-weight: 400;
    transition: transform 160ms ease;
}

.faq-list details[open] summary span {
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 650px;
    margin: -4px 45px 25px 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.8;
}

.final-cta {
    padding: 90px 0;
    color: white;
    background: var(--violet);
}

.final-cta__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.final-cta p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.8rem;
}

.final-cta h2 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.site-footer {
    padding: 76px 0 30px;
    color: rgba(255, 255, 255, 0.7);
    background: #111219;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.brand--footer {
    color: white;
}

.site-footer__brand p {
    max-width: 300px;
    margin-top: 18px;
    font-size: 0.75rem;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.site-footer__links div {
    display: grid;
    align-content: start;
    gap: 8px;
}

.site-footer__links strong {
    margin-bottom: 8px;
    color: white;
    font-size: 0.74rem;
}

.site-footer__links a,
.site-footer__links button {
    width: fit-content;
    padding: 0;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    font-size: 0.7rem;
    text-align: left;
}

.site-footer__links a:hover,
.site-footer__links button:hover {
    color: white;
}

.site-footer__bottom {
    margin-top: 62px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.62rem;
}

.site-footer__bottom p {
    margin: 0;
}

.qr-dialog {
    width: min(420px, calc(100% - 32px));
    padding: 34px;
    border: 0;
    border-radius: 24px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
}

.qr-dialog::backdrop {
    background: rgba(17, 18, 25, 0.7);
    backdrop-filter: blur(6px);
}

.qr-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-muted);
    font-size: 1.2rem;
}

.qr-dialog h2 {
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.2;
}

.qr-dialog img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.qr-dialog > p:last-child {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 0.76rem;
    text-align: center;
}

.toast-region {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.toast {
    max-width: 360px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
    background: rgba(23, 24, 32, 0.94);
    box-shadow: var(--shadow-card);
    font-size: 0.75rem;
    animation: toast-in 220ms ease both;
}

.toast.is-error {
    background: rgba(143, 38, 54, 0.96);
}

/* SEO landing pages */
.landing-page {
    background: var(--paper);
}

.landing-hero {
    position: relative;
    padding: 84px 0 76px;
    overflow: hidden;
}

.landing-hero::after {
    content: "";
    position: absolute;
    top: -170px;
    right: -110px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: var(--landing-accent, var(--violet-pale));
    opacity: 0.8;
}

.breadcrumb {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.68rem;
}

.breadcrumb span {
    opacity: 0.45;
}

.landing-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: end;
    gap: 80px;
}

.landing-hero h1 {
    max-width: 800px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 6.2vw, 5.5rem);
}

.landing-hero__lead {
    max-width: 720px;
    margin-bottom: 26px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.85;
}

.landing-points {
    margin: 0;
    padding: 24px;
    display: grid;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.78);
    box-shadow: var(--shadow-soft);
    list-style: none;
    backdrop-filter: blur(12px);
}

.landing-points li {
    padding-bottom: 15px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 0.76rem;
}

.landing-points li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.landing-points span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--violet-deep);
    background: var(--violet-pale);
}

.landing-tool {
    padding: 62px 0 110px;
}

.seo-copy {
    padding: 110px 0;
    background: var(--surface);
}

.seo-copy__grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.seo-copy__body {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.9;
}

.seo-copy__body h3 {
    margin: 34px 0 10px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.7rem;
}

.seo-copy__body h3:first-child {
    margin-top: 0;
}

.seo-copy__body ul,
.seo-copy__body ol {
    padding-left: 1.3em;
}

.related-tools {
    padding: 100px 0;
}

.related-tools h2 {
    margin-bottom: 28px;
    font-family: var(--font-display);
    font-size: 2.5rem;
}

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

.related-grid a {
    min-height: 160px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: transform 180ms ease, background 180ms ease;
}

.related-grid a:hover {
    background: var(--violet-pale);
    transform: translateY(-4px);
}

.related-grid strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.related-grid small {
    margin-top: 5px;
    color: var(--ink-soft);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

@media (max-width: 1120px) {
    .hero__grid {
        grid-template-columns: minmax(0, 1fr) 430px;
        gap: 35px;
    }

    .editor-workspace {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .export-panel {
        grid-column: 1 / -1;
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: start;
        gap: 18px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .export-preview {
        margin-bottom: 0;
    }

    .export-actions {
        margin-top: 0;
        padding-top: 0;
    }

    .canvas-viewport {
        min-height: 510px;
    }
}

@media (max-width: 920px) {
    .site-nav {
        display: none;
    }

    .site-header__inner > .button {
        margin-left: auto;
    }

    .hero {
        padding-top: 72px;
    }

    .hero__grid,
    .landing-hero__grid {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 430px;
    }

    .hero-art__window {
        width: min(560px, 88%);
    }

    .mode-strip {
        margin-top: -38px;
    }

    .mode-strip__grid {
        grid-template-columns: 1fr 1fr;
    }

    .mode-card:nth-child(2) {
        border-right: 0;
    }

    .mode-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .section-heading,
    .steps-layout,
    .faq-layout,
    .seo-copy__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card--wide {
        grid-template-columns: 1fr 1fr;
    }

    .steps-layout {
        gap: 55px;
    }

    .site-footer__grid {
        grid-template-columns: 0.7fr 1.3fr;
        gap: 40px;
    }

    .landing-hero__grid {
        gap: 36px;
    }

    .landing-points {
        grid-template-columns: repeat(3, 1fr);
    }

    .landing-points li {
        padding: 0 15px 0 0;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .landing-points li:last-child {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 72px;
    }

    .page-shell,
    .site-header__inner {
        width: min(100% - 28px, 1240px);
    }

    .site-header__inner {
        min-height: 66px;
        gap: 10px;
    }

    .brand__tag {
        display: none;
    }

    .site-header__inner > .button {
        min-height: 36px;
        padding-inline: 12px;
    }

    .language-switch {
        min-width: 38px;
        min-height: 36px;
        padding-inline: 9px;
        font-size: 0.68rem;
    }

    .hero {
        min-height: auto;
        padding: 58px 0 82px;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 13vw, 4.2rem);
    }

    .hero__lead {
        font-size: 0.98rem;
    }

    .hero__actions .button {
        width: 100%;
    }

    .trust-list {
        gap: 10px 14px;
    }

    .hero-art {
        min-height: 345px;
    }

    .hero-art__window {
        width: 96%;
        padding: 8px;
        border-radius: 20px;
        transform: rotate(1deg);
    }

    .hero-art__stage {
        height: 235px;
    }

    .hero-art__top {
        height: 30px;
    }

    .hero-art__controls {
        height: 52px;
    }

    .floating-note--privacy {
        left: -3px;
        bottom: 17px;
    }

    .floating-note--format {
        top: 23px;
        right: -3px;
    }

    .mode-strip {
        margin-top: -26px;
    }

    .mode-strip__grid {
        border-radius: 18px;
    }

    .mode-card {
        min-height: 126px;
        padding: 20px 16px;
    }

    .mode-card__icon {
        width: 32px;
        height: 32px;
    }

    .tool-section,
    .feature-section,
    .use-cases,
    .steps-section,
    .faq-section,
    .seo-copy,
    .related-tools {
        padding: 82px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2,
    .steps-layout h2,
    .faq-layout h2,
    .seo-copy h2 {
        font-size: clamp(2.35rem, 11vw, 3.4rem);
    }

    .editor-shell {
        overflow: visible;
        border-radius: 18px;
    }

    .editor-topbar {
        position: sticky;
        top: 66px;
        z-index: 12;
        min-height: 54px;
        padding: 8px 10px;
        background: rgba(255, 253, 248, 0.94);
        backdrop-filter: blur(12px);
    }

    .editor-title {
        display: none;
    }

    .file-chip {
        max-width: calc(100% - 88px);
        margin-right: auto;
    }

    .file-chip span,
    .file-chip small {
        display: none;
    }

    .editor-topbar__actions .icon-button:first-child {
        display: none;
    }

    .icon-button {
        min-height: 34px;
        padding-inline: 9px;
    }

    .icon-button span {
        display: none;
    }

    .editor-empty {
        min-height: 430px;
        padding: 14px;
    }

    .drop-zone {
        min-height: 390px;
        padding: 34px 20px;
    }

    .editor-workspace {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .canvas-panel {
        order: 1;
        min-height: 430px;
    }

    .control-panel {
        order: 2;
        padding: 16px;
        border-top: 1px solid var(--line);
        border-right: 0;
    }

    .export-panel {
        order: 3;
        padding: 18px 16px 92px;
        display: block;
    }

    .mode-tabs {
        position: sticky;
        top: 120px;
        z-index: 10;
        margin: -16px -16px 18px;
        padding: 10px 16px;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(255, 253, 248, 0.96);
        backdrop-filter: blur(12px);
    }

    .mode-tab {
        min-height: 48px;
        justify-content: center;
        text-align: center;
    }

    .mode-tab span {
        display: none;
    }

    .canvas-toolbar {
        min-height: 46px;
        padding: 6px 10px;
    }

    .canvas-toolbar__label,
    .canvas-toolbar > button span {
        display: none;
    }

    .canvas-viewport {
        min-height: 350px;
        padding: 18px;
    }

    #imageCanvas {
        max-height: 330px;
    }

    .canvas-status {
        padding-inline: 10px;
    }

    .export-panel .export-actions {
        display: none;
    }

    .mobile-export-bar {
        position: fixed;
        z-index: 70;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 74px;
        padding: 10px 14px max(10px, env(safe-area-inset-bottom));
        display: flex;
        gap: 8px;
        border-top: 1px solid var(--line);
        background: rgba(255, 253, 248, 0.94);
        box-shadow: 0 -10px 35px rgba(23, 24, 32, 0.1);
        backdrop-filter: blur(16px);
    }

    .mobile-export-bar .button {
        flex: 1;
    }

    .mobile-export-bar .icon-button {
        min-width: 46px;
    }

    .feature-card,
    .feature-card--wide {
        min-height: 310px;
        padding: 26px;
        display: block;
    }

    .gradient-demo {
        min-height: 190px;
        margin-top: 20px;
    }

    .feature-card__label {
        margin-bottom: 28px;
    }

    .case-list a {
        min-height: 108px;
        grid-template-columns: 36px 1fr 34px;
        gap: 12px;
    }

    .case-list strong {
        font-size: 1.25rem;
    }

    .case-list a > span:last-child {
        width: 34px;
        height: 34px;
    }

    .faq-list summary {
        min-height: 74px;
        font-size: 0.86rem;
    }

    .final-cta {
        padding: 70px 0;
    }

    .final-cta__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .final-cta__inner .button {
        width: 100%;
    }

    .site-footer {
        padding-top: 58px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__links {
        gap: 14px;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .landing-hero {
        padding: 58px 0 52px;
    }

    .landing-hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .landing-points {
        grid-template-columns: 1fr;
    }

    .landing-points li {
        padding: 0 0 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .landing-tool {
        padding: 48px 0 82px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .toast-region {
        right: 12px;
        bottom: calc(86px + env(safe-area-inset-bottom));
        left: 12px;
    }

    .toast {
        max-width: none;
    }
}

@media (max-width: 430px) {
    .site-header__inner > .button {
        font-size: 0.72rem;
    }

    .brand {
        gap: 7px;
    }

    .brand__mark {
        width: 31px;
        height: 31px;
        border-radius: 10px;
    }

    .brand__name {
        font-size: 0.94rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-art {
        margin-inline: -8px;
    }

    .floating-note {
        padding: 9px 10px;
    }

    .floating-note > span {
        display: none;
    }

    .floating-note--format {
        display: none;
    }

    .mode-card strong {
        font-size: 0.9rem;
    }

    .mode-card small {
        font-size: 0.65rem;
    }

    .mode-tabs {
        gap: 4px;
    }

    .mode-tab {
        padding-inline: 4px;
        font-size: 0.61rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .site-footer__links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .hero-art,
    .gradient-demo,
    .alpha-demo,
    .privacy-seal {
        display: none;
    }

    .button,
    .mode-tab,
    .preset-button,
    .choice-button {
        border: 1px solid ButtonText;
    }
}
