:root {
    --bg: #0f1115;
    --bg-alt: #171a21;
    --surface: #20242d;
    --surface-soft: #282d38;
    --surface-light: #f4f5f7;
    --text: #f3f4f6;
    --text-strong: #ffffff;
    --muted: #aeb4c0;
    --muted-2: #727986;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --brand: #4778ff;
    --brand-2: #8f6cff;
    --brand-3: #27c7ff;
    --success: #7ee2aa;
    --warning: #ffd166;
    --shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
    --radius: 10px;
    --radius-lg: 14px;
    --container: 1180px;
    --header-h: 72px;
}

html[data-theme="light"] {
    --bg: #f6f7f9;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-soft: #eef1f5;
    --text: #1f2430;
    --text-strong: #0c111b;
    --muted: #5f6673;
    --muted-2: #7b8492;
    --line: rgba(18, 24, 36, 0.12);
    --line-strong: rgba(18, 24, 36, 0.18);
    --shadow: 0 18px 46px rgba(20, 30, 52, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 4%, rgba(71, 120, 255, 0.16), transparent 28rem),
        radial-gradient(circle at 86% 8%, rgba(143, 108, 255, 0.12), transparent 26rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26rem);
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
    background: var(--surface-soft);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select {
    font: inherit;
}

.container {
    width: min(100% - 36px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-h);
    border-bottom: 1px solid var(--line);
    background: rgba(15, 17, 21, 0.82);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-header {
    background: rgba(246, 247, 249, 0.86);
}

.nav {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-logo {
    width: 50px;
    /* height: 28px; */
    border-radius: 7px;
    object-fit: contain;
    background: transparent;
    /* background: linear-gradient(135deg, var(--brand), var(--brand-2)); */
    /* box-shadow: 0 8px 22px rgba(71, 120, 255, 0.32); */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text-strong);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-select,
.icon-button,
.button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

html[data-theme="light"] .language-select,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .button {
    background: rgba(255, 255, 255, 0.82);
}

.language-select {
    padding: 0 34px 0 12px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.language-select {
    background-color: var(--surface);
    color: var(--text);
    color-scheme: dark;
}

.language-select option {
    background-color: #20242d;
    color: #f3f4f6;
}

html[data-theme="light"] .language-select {
    background-color: rgba(255, 255, 255, 0.82);
    color: var(--text);
    color-scheme: light;
}

html[data-theme="light"] .language-select option {
    background-color: #ffffff;
    color: #1f2430;
}

.icon-button {
    width: 40px;
    display: grid;
    place-items: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.icon-button:hover,
.button:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 12px 28px rgba(71, 120, 255, 0.28);
}

html[data-theme="light"] .button.button-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 12px 28px rgba(71, 120, 255, 0.28);
}

html[data-theme="light"] .button.button-primary:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #3f70f4, #805cff);
    color: #fff;
}

.button-ghost {
    background: transparent;
}

.menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}

.hero {
    padding: 78px 0 92px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: stretch;
}

.hero-title-wrap {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero-title-wrap .eyebrow {
    justify-content: center;
}

.hero-title-wrap h1 {
    max-width: 980px;
    margin: 0 auto;
}

.hero-full-preview {
    width: 100%;
    max-width: 1180px;
    margin: 8px auto 0;
}

.hero-full-preview img {
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.hero-bottom-copy {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero-bottom-copy .hero-copy {
    max-width: 880px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-bottom-copy .hero-actions {
    justify-content: center;
}

.hero-bottom-copy .hero-points {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #c9d7ff;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-theme="light"] .eyebrow {
    color: #385bd8;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-3);
    box-shadow: 0 0 0 5px rgba(39, 199, 255, 0.13);
}

h1,
h2,
h3 {
    color: var(--text-strong);
    letter-spacing: -0.04em;
}

h1 {
    max-width: 680px;
    font-size: clamp(2.75rem, 5.2vw, 5.25rem);
    line-height: 0.98;
}

.hero-copy {
    max-width: 620px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.mini-point {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.mini-point strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-strong);
    font-size: 0.9rem;
}

.mini-point span {
    color: var(--muted);
    font-size: 0.82rem;
}

.app-preview {
    position: relative;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.preview-topbar {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.74rem;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted-2);
}

.preview-workspace {
    display: grid;
    grid-template-columns: 116px 1fr 160px;
    gap: 10px;
    min-height: 430px;
    padding: 10px;
}

.preview-panel,
.preview-canvas,
.preview-props {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-alt);
}

.preview-panel {
    padding: 10px;
}

.panel-title {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.layer-row {
    height: 28px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    padding: 0 8px;
    border-radius: 6px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.72rem;
}

.layer-row.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(71, 120, 255, 0.88), rgba(143, 108, 255, 0.72));
}

.layer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.preview-canvas {
    position: relative;
    min-height: 410px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        var(--surface-soft);
    background-size: 18px 18px;
}

html[data-theme="light"] .preview-canvas {
    background:
        linear-gradient(rgba(30, 40, 60, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 40, 60, 0.08) 1px, transparent 1px),
        #dfe3e9;
    background-size: 18px 18px;
}

.mock-heading {
    position: absolute;
    left: 34px;
    top: 42px;
    width: 240px;
    padding: 14px 16px;
    border-radius: 7px;
    color: #151922;
    background: #f3f5f7;
    font-weight: 750;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.mock-image {
    position: absolute;
    left: 34px;
    top: 130px;
    width: 260px;
    height: 150px;
    border: 2px dashed #335cff;
    border-radius: 7px;
    background: #d7d9de;
    display: grid;
    place-items: center;
}

.mock-image img {
    width: 130px;
    height: 82px;
    border-radius: 6px;
    opacity: 0.78;
}

.mock-card {
    position: absolute;
    right: 34px;
    bottom: 42px;
    width: 230px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(15, 17, 21, 0.82);
    box-shadow: var(--shadow);
}

html[data-theme="light"] .mock-card {
    background: rgba(255, 255, 255, 0.9);
}

.mock-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.mock-card p {
    color: var(--muted);
    font-size: 0.82rem;
}

.preview-props {
    padding: 10px;
}

.control-line {
    height: 24px;
    margin-bottom: 8px;
    border-radius: 5px;
    background: var(--surface-soft);
}

.control-line.short {
    width: 72%;
}

.control-line.blue {
    background: linear-gradient(90deg, rgba(71, 120, 255, 0.9), rgba(71, 120, 255, 0.18));
}

.section {
    padding: 84px 0;
    border-top: 1px solid var(--line);
}

.section.light {
    background: var(--bg-alt);
}

.section-head {
    max-width: 720px;
    margin-bottom: 38px;
}

.kicker {
    margin-bottom: 10px;
    color: var(--brand-3);
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1rem, 3vw, 2.25rem);
    line-height: 1.05;
}

.section-head p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.96fr);
    gap: 50px;
    align-items: center;
}

.split.reverse .split-copy {
    order: 2;
}

.split-copy h2 {
    margin-bottom: 16px;
}

.split-copy p {
    color: var(--muted);
}

.media-card {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.media-card img {
    width: 540px;
    height: 360px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    min-height: 230px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.feature-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 800;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.18rem;
    letter-spacing: -0.025em;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.93rem;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.list-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 0.9rem;
}

.check {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(126, 226, 170, 0.13);
    color: var(--success);
    font-size: 0.72rem;
    font-weight: 900;
}

.responsive-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.size-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.device-shape {
    width: 100%;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-weight: 800;
}

.size-card strong {
    display: block;
    color: var(--text-strong);
}

.size-card span {
    color: var(--muted);
    font-size: 0.82rem;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    counter-reset: step;
}

.workflow-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.workflow-card::before {
    counter-increment: step;
    content: "0" counter(step);
    display: inline-flex;
    margin-bottom: 26px;
    color: var(--brand-3);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.workflow-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.workflow-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.tools-layout {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.tool-list {
    display: grid;
    grid-template-rows: repeat(8, minmax(0, 1fr));
    gap: 8px;
    height: 100%;
    align-self: stretch;
}

.tool-tab {
    min-height: 52px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
}

.tool-tab.is-active {
    color: #fff;
    border-color: rgba(71, 120, 255, 0.42);
    background: linear-gradient(135deg, rgba(71, 120, 255, 0.86), rgba(143, 108, 255, 0.72));
}

.tool-panel {
    display: none;
    min-height: 410px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.tool-panel.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.tool-panel h3 {
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.tool-panel p {
    color: var(--muted);
}

.tool-panel>img {
    width: var(--panel-image-width, 420px);
    height: var(--panel-image-height, 300px);
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.animation-stage {
    position: relative;
    width: var(--panel-image-width, 620px);
    height: var(--panel-image-height, 360px);
    max-width: 100%;
    overflow: visible;
}

.animation-panel-img {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 2;
    width: 228px;
    height: 360px;
    transform: translateY(-50%);
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.animation-racer-img {
    position: absolute;
    top: 55%;
    right: 90px;
    z-index: 1;
    width: 260px;
    height: 170px;
    object-fit: contain;
    background: transparent;

    --racer-start-x: 80px;
    --racer-far-x: -165px;
    --racer-bounce-x: -135px;
    --racer-final-x: -150px;

    animation: racerBounceBehindPanel 3.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes racerBounceBehindPanel {
    0% {
        opacity: 0;
        transform: translate(var(--racer-start-x), -50%) scale(0.92);
    }

    18% {
        opacity: 1;
    }

    46% {
        transform: translate(var(--racer-far-x), -50%) scale(1.03);
    }

    58% {
        transform: translate(var(--racer-bounce-x), -50%) scale(0.98);
    }

    72% {
        transform: translate(var(--racer-final-x), -50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(var(--racer-final-x), -50%) scale(1);
    }
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tag-cloud span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.8rem;
}

.export-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 38px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.code-box {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #090b10;
    color: #d7e1ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    overflow: hidden;
}

html[data-theme="light"] .code-box {
    background: #151923;
}

.code-line {
    display: block;
    color: #8691a8;
}

.code-line strong {
    color: #8fb3ff;
    font-weight: 500;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.language-card {
    padding: 13px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    font-size: 0.86rem;
    font-weight: 650;
}

.cta {
    padding: 74px 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(circle at 16% 10%, rgba(71, 120, 255, 0.18), transparent 24rem),
        radial-gradient(circle at 82% 0%, rgba(143, 108, 255, 0.16), transparent 24rem),
        var(--bg-alt);
}

.cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.055);
}

html[data-theme="light"] .cta-card {
    background: rgba(255, 255, 255, 0.72);
}

.cta-card p {
    max-width: 680px;
    margin-top: 10px;
    color: var(--muted);
}

.footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* to up button */
.scroll-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;

    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;

    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(32, 36, 45, 0.82);
    color: var(--text-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);

    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.96);

    transition:
        opacity 0.24s ease,
        visibility 0.24s ease,
        transform 0.24s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
    border-color: rgba(71, 120, 255, 0.55);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    outline: none;
    transform: translateY(-2px) scale(1);
}

html[data-theme="light"] .scroll-top-button {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-strong);
    border-color: var(--line);
    box-shadow: 0 16px 34px rgba(20, 30, 52, 0.16);
}

html[data-theme="light"] .scroll-top-button:hover,
html[data-theme="light"] .scroll-top-button:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
}

html[dir="rtl"] .scroll-top-button {
    right: auto;
    left: 24px;
}

.scroll-top-icon {
    display: block;
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.scroll-top-button:hover .scroll-top-icon,
.scroll-top-button:focus-visible .scroll-top-icon {
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .scroll-top-button {
        right: 18px;
        bottom: 18px;
        width: 42px;
        height: 42px;
    }

    html[dir="rtl"] .scroll-top-button {
        right: auto;
        left: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-button {
        transition: none;
    }
}

@media (max-width: 1060px) {

    .split,
    .export-card,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .split.reverse .split-copy {
        order: initial;
    }

    .feature-grid,
    .workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .responsive-strip,
    .language-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {

    .nav-links,
    .language-select,
    .theme-toggle,
    .nav-actions .button-ghost {
        display: none;
    }

    .tool-list {
        grid-template-rows: none;
        height: auto;
    }

    .tool-tab {
        min-height: 46px;
        height: auto;
    }

    .menu-toggle {
        display: grid;
    }

    .mobile-menu {
        position: fixed;
        inset: var(--header-h) 18px auto;
        z-index: 99;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .mobile-menu.is-open {
        display: grid;
        gap: 8px;
    }

    .mobile-menu a,
    .mobile-menu button {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        border: 0;
        border-radius: 8px;
        color: var(--muted);
        background: transparent;
        cursor: pointer;
        text-align: left;
    }

    .mobile-menu a:hover,
    .mobile-menu button:hover {
        color: var(--text-strong);
        background: var(--surface-soft);
    }

    .hero {
        padding-top: 56px;
    }

    .preview-workspace {
        grid-template-columns: 1fr;
    }

    .preview-panel,
    .preview-props {
        display: none;
    }

    .tools-layout,
    .tool-panel.is-active {
        grid-template-columns: 1fr;
    }

    .tool-panel img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    h1 {
        font-size: clamp(2.35rem, 12vw, 3.7rem);
    }

    .hero-points,
    .feature-grid,
    .workflow,
    .list-grid,
    .responsive-strip,
    .language-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-card .button,
    .nav-actions .button-primary {
        width: 100%;
    }

    .nav-actions {
        flex: 1;
        justify-content: flex-end;
    }

    .preview-canvas {
        min-height: 360px;
    }

    .mock-heading {
        left: 20px;
        top: 34px;
        width: 210px;
    }

    .mock-image {
        left: 20px;
        top: 120px;
        width: 220px;
        height: 130px;
    }

    .mock-card {
        right: 18px;
        bottom: 24px;
        width: 205px;
    }

    .section {
        padding: 62px 0;
    }

    .media-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .export-card,
    .cta-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 52px 0 66px;
    }

    .hero-title-wrap,
    .hero-bottom-copy {
        text-align: left;
    }

    html[dir="rtl"] .hero-title-wrap,
    html[dir="rtl"] .hero-bottom-copy {
        text-align: right;
    }

    .hero-title-wrap .eyebrow {
        justify-content: flex-start;
    }

    html[dir="rtl"] .hero-title-wrap .eyebrow {
        justify-content: flex-end;
    }

    .hero-bottom-copy .hero-actions {
        justify-content: flex-start;
    }

    html[dir="rtl"] .hero-bottom-copy .hero-actions {
        justify-content: flex-end;
    }

    .hero-full-preview {
        margin-top: 0;
    }

    .hero-full-preview img {
        border-radius: 8px;
    }
}