:root {
    --cyan: #27c3ed;
    --cyan-bright: #00c7f2;
    --blue: #006796;
    --lime: #f2ff93;
    --ink: #222222;
    --muted: #5c5c5c;
    --paper: #ffffff;
    --soft: #f8f8f8;
    --line: #dce8ec;
    --danger: #d94c58;
    --success: #087a60;
    --radius: 16px;
    --shadow: 0 24px 70px rgba(0, 75, 108, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'proxima-nova', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: .035em;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

::selection { color: white; background: var(--cyan); }

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1240px, calc(100% - 48px));
    min-height: 92px;
    margin: 0 auto;
}

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

.brand img { display: block; width: 158px; height: auto; }

.brand span {
    padding-left: 17px;
    border-left: 1px solid #b8d6e1;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.header-link {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.header-link::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background: var(--cyan);
    content: '';
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform .25s ease;
}

.header-link:hover::after { transform: scaleX(1); }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
    gap: clamp(50px, 7vw, 110px);
    align-items: center;
    width: min(1240px, calc(100% - 48px));
    min-height: 700px;
    margin: 0 auto;
    padding: 76px 0 110px;
}

.hero__intro, .optimizer-card { position: relative; z-index: 2; }

.hero__glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    opacity: .36;
    filter: blur(10px);
    pointer-events: none;
}

.hero__glow--one {
    top: -170px;
    right: -260px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle at 35% 40%, rgba(39, 195, 237, .62), rgba(39, 195, 237, 0) 68%);
}

.hero__glow--two {
    bottom: -180px;
    left: -300px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle at center, rgba(242, 255, 147, .7), rgba(242, 255, 147, 0) 68%);
}

.eyebrow {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 25px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow > span { width: 26px; height: 2px; background: currentColor; }

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

h1, h2, h3 { font-family: 'anisette-petite', sans-serif; }

h1 {
    max-width: 720px;
    margin-bottom: 28px;
    font-size: clamp(50px, 5.5vw, 78px);
    font-weight: 300;
    letter-spacing: normal;
    line-height: .99;
}

h1 em, h2 em {
    position: relative;
    z-index: 0;
    font-style: normal;
    white-space: nowrap;
}

h1 em::after, .closing h2 em::after {
    position: absolute;
    z-index: -1;
    right: -6px;
    bottom: .04em;
    left: -5px;
    height: .29em;
    border-radius: 2px;
    background: var(--lime);
    content: '';
    transform: rotate(-1deg);
}

.hero__lead {
    max-width: 570px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.hero__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #44545a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hero__benefits li { display: flex; gap: 7px; align-items: center; }
.hero__benefits span { color: var(--cyan); font-size: 16px; }

.optimizer-card {
    padding: 15px;
    border: 1px solid rgba(39, 195, 237, .2);
    border-radius: 26px;
    background: rgba(255, 255, 255, .76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.dropzone {
    display: flex;
    min-height: 475px;
    padding: 55px 32px;
    border: 2px dashed #9ccbdc;
    border-radius: 17px;
    background: linear-gradient(145deg, #f9fdff, #f3fafc);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.dropzone:hover, .dropzone:focus-visible, .dropzone.is-dragging {
    outline: none;
    border-color: var(--cyan);
    background: #effbfe;
    transform: translateY(-2px);
}

.dropzone__icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 50%;
    color: var(--blue);
    background: var(--lime);
    place-items: center;
}

.dropzone__title {
    margin-bottom: 5px;
    font-family: 'anisette-petite', sans-serif;
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 400;
    letter-spacing: normal;
}

.dropzone__or { margin-bottom: 16px; color: #78878d; font-size: 13px; }
.dropzone__rules { margin: 22px 0 0; color: #77868b; font-size: 11px; }

.button {
    position: relative;
    display: inline-flex;
    min-height: 46px;
    padding: 12px 22px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px) rotate(-.5deg); }
.button:focus-visible { outline: 3px solid rgba(39, 195, 237, .35); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .75; transform: none; }
.button--dark { background: var(--ink); box-shadow: 0 8px 20px rgba(34, 34, 34, .16); }
.button--accent { color: var(--ink); background: var(--lime); }
.button--accent:hover { background: #ebfa7c; box-shadow: 0 9px 24px rgba(180, 195, 67, .22); }
.button--wide { width: 100%; min-height: 54px; margin-top: 22px; }

.upload-panel { min-height: 475px; padding: 28px; border-radius: 17px; background: #f7fbfc; }

.upload-panel__heading {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.upload-panel__title { margin-bottom: 3px; font-size: 18px; font-weight: 700; }
.upload-panel__count { margin: 0; color: var(--muted); font-size: 12px; }

.text-button {
    padding: 0;
    border: 0;
    color: var(--blue);
    background: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.text-button:hover { color: var(--cyan); }

.file-list {
    display: grid;
    max-height: 300px;
    margin: 0;
    padding: 10px 4px 0 0;
    overflow-y: auto;
    list-style: none;
    gap: 7px;
}

.file-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 30px;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 9px;
    background: white;
}

.file-item__preview { width: 48px; height: 42px; border-radius: 6px; object-fit: cover; }
.file-item__details { min-width: 0; }
.file-item__name { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-item__size { color: #7b898e; font-size: 10px; }
.file-item__ready { color: var(--success); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.file-item__remove {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #7c898e;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.file-item__remove:hover { color: var(--danger); background: #fff0f1; }

.resize-options {
    margin: 18px 0 0;
    padding: 17px 18px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
}

.resize-options legend {
    padding: 0 7px;
    font-size: 12px;
    font-weight: 700;
}

.resize-options legend span {
    margin-left: 5px;
    color: #819096;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.resize-options__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.resize-options label > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #57666b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.pixel-input {
    display: flex;
    min-height: 42px;
    border: 1px solid #cfdee3;
    border-radius: 7px;
    align-items: center;
    background: #fbfdfe;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pixel-input:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(39, 195, 237, .12);
}

.pixel-input input {
    width: 100%;
    min-width: 0;
    padding: 10px 4px 10px 11px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 12px;
}

.pixel-input > span {
    padding: 0 11px 0 6px;
    color: #89979c;
    font-size: 10px;
}

.resize-options__link {
    padding-bottom: 11px;
    color: #96a6ab;
    font-size: 14px;
}

.resize-options > p {
    margin: 10px 0 0;
    color: #849298;
    font-size: 9px;
    line-height: 1.5;
}

.format-option {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 15px 18px;
    border: 1px solid #d7e7cb;
    border-radius: 11px;
    background: #fbffec;
    cursor: pointer;
}

.format-option__control { flex: 0 0 auto; }
.format-option__control input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.format-option__switch {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #b9c5c8;
    transition: background .2s ease, box-shadow .2s ease;
}

.format-option__switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(34, 34, 34, .22);
    content: '';
    transition: transform .2s ease;
}

.format-option__control input:checked + .format-option__switch { background: var(--blue); }
.format-option__control input:checked + .format-option__switch::after { transform: translateX(16px); }
.format-option__control input:focus-visible + .format-option__switch { box-shadow: 0 0 0 3px rgba(39, 195, 237, .3); }

.format-option__copy { min-width: 0; }
.format-option__copy strong, .format-option__copy small { display: block; }
.format-option__copy strong { margin-bottom: 3px; color: var(--ink); font-size: 11px; }

.format-option__copy strong span {
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--blue);
    background: var(--lime);
    font-size: 7px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.format-option__copy small { color: #718086; font-size: 9px; line-height: 1.5; }

.status {
    margin: 14px 2px 0;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.status--error { color: #8c2630; background: #fff0f1; }
.status--success { color: #075f4d; background: #e8faf5; }

.spinner {
    width: 16px;
    height: 16px;
    margin-right: 9px;
    border: 2px solid rgba(34, 34, 34, .25);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.process {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 120px 0 145px;
}

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 60px; }
.section-heading .eyebrow { align-self: flex-start; margin-top: 16px; }

h2 {
    margin-bottom: 0;
    font-size: clamp(40px, 4.4vw, 64px);
    font-weight: 300;
    letter-spacing: normal;
    line-height: 1.06;
}

.section-heading h2 { order: -1; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid #cddde2;
    list-style: none;
}

.steps li { position: relative; min-height: 330px; padding: 36px 44px 25px 0; border-right: 1px solid #cddde2; }
.steps li + li { padding-left: 44px; }
.steps li:last-child { border-right: 0; }
.steps__number { color: #8aa0a8; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.steps__icon { display: grid; width: 54px; height: 54px; margin: 38px 0 25px; border-radius: 50%; color: var(--blue); background: #ecf9fc; font-size: 22px; place-items: center; }
.steps h3 { margin-bottom: 12px; font-size: 23px; letter-spacing: normal; }
.steps p { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
    color: white;
    background: var(--blue);
}

.why__visual { position: relative; min-height: 540px; overflow: hidden; background: linear-gradient(145deg, #087aa9, #005d89); }

.why__orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; transform: translate(-50%, -50%); }
.why__orbit--outer { width: 490px; height: 490px; }
.why__orbit--inner { width: 330px; height: 330px; }
.why__orbit::before { position: absolute; inset: 16%; border: 1px solid rgba(242, 255, 147, .22); border-radius: 50%; content: ''; }

.why__kernel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--lime);
    font-family: 'anisette-petite', sans-serif;
    font-size: 66px;
    font-weight: 400;
    letter-spacing: normal;
    transform: translate(-50%, -50%);
}

.why__kernel small { margin: -25px 0 0 3px; font-size: 22px; }
.why__kernel span { position: absolute; bottom: 40px; left: 0; width: 100%; font-family: 'proxima-nova', Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.why__dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 9px rgba(39, 195, 237, .12); }
.why__dot--one { top: 19%; left: 63%; }
.why__dot--two { right: 23%; bottom: 20%; background: var(--lime); box-shadow: 0 0 0 9px rgba(242, 255, 147, .1); }

.why__copy { display: flex; padding: clamp(70px, 9vw, 135px); flex-direction: column; justify-content: center; }
.eyebrow--light { color: var(--lime); }
.why__copy > p:not(.eyebrow) { max-width: 570px; margin: 30px 0 46px; color: rgba(255, 255, 255, .74); font-size: 15px; line-height: 1.8; }
.why__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 26px; }
.why__facts strong, .why__facts span { display: block; }
.why__facts strong { margin-bottom: 6px; color: var(--lime); font-size: 13px; text-transform: uppercase; }
.why__facts span { color: rgba(255, 255, 255, .65); font-size: 11px; line-height: 1.5; }

.closing { position: relative; width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 140px 0; text-align: center; }
.closing .eyebrow { justify-content: center; }
.closing h2 { margin-bottom: 38px; font-size: clamp(48px, 6.4vw, 88px); }
.closing h2 em::after { background: rgba(39, 195, 237, .33); }

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    padding: 40px max(24px, calc((100% - 1240px) / 2));
    border-top: 1px solid #dce7ea;
    background: var(--soft);
}

.site-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.site-footer p:last-child { text-align: right; }
.brand--footer img { width: 128px; }

[hidden] { display: none !important; }

@media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; max-width: 760px; padding-top: 70px; }
    .hero__intro { text-align: center; }
    .hero__lead { margin-right: auto; margin-left: auto; }
    .hero__benefits, .hero__intro .eyebrow { justify-content: center; }
    .section-heading { display: block; }
    .section-heading .eyebrow { margin-top: 25px; }
    .why { grid-template-columns: 1fr; }
    .why__visual { min-height: 560px; }
    .why__copy { padding: 80px max(30px, 8vw); }
}

@media (max-width: 720px) {
    .site-header, .hero, .process, .closing { width: min(100% - 32px, 620px); }
    .site-header { min-height: 74px; }
    .brand { gap: 10px; }
    .brand img { width: 118px; }
    .brand span { padding-left: 10px; font-size: 8px; }
    .header-link { display: none; }
    .hero { display: block; min-height: auto; padding: 68px 0 84px; }
    h1 { font-size: clamp(43px, 13vw, 62px); }
    .hero__benefits { display: grid; justify-content: start; width: max-content; margin: 0 auto; text-align: left; }
    .optimizer-card { margin-top: 58px; padding: 9px; border-radius: 19px; }
    .dropzone { min-height: 395px; padding: 42px 18px; }
    .upload-panel { min-height: 430px; padding: 20px 14px; }
    .upload-panel__heading { align-items: flex-start; flex-direction: column; }
    .file-item { grid-template-columns: 42px minmax(0, 1fr) 28px; }
    .file-item__preview { width: 42px; height: 38px; }
    .file-item__ready { display: none; }
    .resize-options__fields { grid-template-columns: 1fr; }
    .resize-options__link { display: none; }
    .process { padding: 90px 0; }
    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li + li { min-height: 0; padding: 30px 0 40px; border-right: 0; border-bottom: 1px solid #cddde2; }
    .steps__icon { margin: 25px 0 18px; }
    .why__visual { min-height: 420px; }
    .why__orbit--outer { width: 360px; height: 360px; }
    .why__orbit--inner { width: 250px; height: 250px; }
    .why__kernel { width: 155px; height: 155px; font-size: 54px; }
    .why__kernel span { bottom: 29px; }
    .why__copy { padding: 68px 24px; }
    .why__facts { grid-template-columns: 1fr; }
    .closing { padding: 100px 0; }
    .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .site-footer p:last-child { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
