:root {
    --background: #f6f2ea;
    --surface: #ffffff;
    --surface-soft: #fff8ed;
    --text: #162033;
    --muted: #667085;
    --brand: #f87537;
    --brand-dark: #c75022;
    --accent: #fba81f;
    --border: rgba(22, 32, 51, 0.12);
    --shadow: 0 24px 70px rgba(22, 32, 51, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(248, 117, 55, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(251, 168, 31, 0.2), transparent 30rem),
        var(--background);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 14px 30px rgba(248, 117, 55, 0.28);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    margin-top: 2px;
}

.header-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 700;
    text-decoration: none;
}

.header-link,
.button-secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.64);
}

.button-primary {
    background: var(--text);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(22, 32, 51, 0.22);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 36px;
    align-items: center;
    min-height: 620px;
    padding: 64px 0 80px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.92;
    letter-spacing: -0.08em;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

h3 {
    margin-bottom: 10px;
}

.hero-text,
.section-heading p,
.steps p,
.hero-card p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-text {
    max-width: 660px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.preview-orbit {
    position: relative;
    height: 280px;
}

.preview-orbit span {
    position: absolute;
    display: block;
    border-radius: 38% 62% 58% 42% / 42% 44% 56% 58%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.preview-orbit span:nth-child(1) {
    inset: 18px 44px 40px 12px;
}

.preview-orbit span:nth-child(2) {
    right: 8px;
    bottom: 16px;
    width: 118px;
    height: 118px;
    opacity: 0.45;
}

.preview-orbit span:nth-child(3) {
    top: 8px;
    right: 38px;
    width: 78px;
    height: 78px;
    background: var(--text);
}

.designer-panel,
.workflow {
    margin-bottom: 96px;
    padding: 56px;
    border: 1px solid var(--border);
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.designer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: center;
}

.logo-preview {
    display: grid;
    place-items: center;
    min-height: 460px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 237, 0.9)),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(22, 32, 51, 0.04) 18px 19px);
}

#sw-svg-container {
    width: min(430px, 76vw);
    margin: 0 auto;
}

#sw-js-logo-svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 32px rgba(248, 117, 55, 0.22));
}

.controls-card {
    display: flex;
    justify-content: center;
}

.sw-svg-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background-color: var(--surface);
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.sw-svg-controls-panel .sw-export {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 0;
}

.sw-svg-controls-panel .sw-export span,
.sw-svg-controls-panel .sw-export a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 14px;
    background-color: var(--surface-soft);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    padding: 8px 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sw-svg-controls-panel .sw-export span:hover,
.sw-svg-controls-panel .sw-export a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(22, 32, 51, 0.12);
}

.sw-svg-controls-panel .sw-export .copy-active {
    display: none;
}

.range-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 0;
}

.range-slider img {
    width: 32px;
    height: 32px;
}

.range-slider__range {
    width: 100%;
    height: 5px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    outline: none;
    background: #d9dee8;
    -webkit-appearance: none;
}

.range-slider__range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
    -webkit-appearance: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider__range::-webkit-slider-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(22, 32, 51, 0.24);
}

.range-slider__range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}

.pickr .pcr-button,
.pickr .pcr-button:after,
.pickr .pcr-button:before {
    border-radius: 50%;
}

.pickr .pcr-button:focus {
    outline: none;
}

.pickr .pcr-button:hover,
.random:hover,
.stroke:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(22, 32, 51, 0.18);
}

.stroke,
.random {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--text);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stroke.fill {
    background: var(--text);
}

.random {
    border: 0;
    background: var(--surface-soft);
}

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

.steps article {
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
}

.steps span {
    display: inline-flex;
    margin-bottom: 44px;
    color: var(--brand-dark);
    font-weight: 800;
}

.site-footer {
    padding: 24px 0 38px;
    color: var(--muted);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 860px) {
    .hero,
    .designer-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 34px;
    }

    .designer-panel,
    .workflow {
        padding: 28px;
        border-radius: 30px;
    }
}

@media (max-width: 560px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .hero-actions,
    .button,
    .header-link {
        width: 100%;
    }

    .control-row,
    .sw-svg-controls-panel .sw-export {
        justify-content: center;
    }
}
