:root {
    --ivory: #fff8ef;
    --paper: rgba(255, 255, 255, .86);
    --ink: #241b31;
    --muted: #70657b;
    --line: rgba(102, 72, 124, .16);
    --coral: #ff5c35;
    --coral-dark: #e94825;
    --violet: #8b5cf6;
    --violet-dark: #6d42dc;
    --lilac: #eee7ff;
    --success: #15804a;
    --success-bg: #f0fbf5;
    --danger: #b42318;
    --danger-bg: #fff3f1;
    --shadow: 0 30px 80px rgba(76, 43, 104, .17), 0 4px 18px rgba(255, 92, 53, .07);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .5), transparent 45%),
        var(--ivory);
    color: var(--ink);
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    touch-action: manipulation;
}

button {
    border: 0;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 11px 15px;
    transform: translateY(-160%);
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

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

.ambient {
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

.ambient-coral {
    top: -140px;
    right: 25%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, rgba(255, 185, 150, .48), rgba(255, 154, 125, .09) 60%, transparent 72%);
}

.ambient-violet {
    top: 70px;
    right: -110px;
    width: 520px;
    height: 520px;
    border-radius: 48% 52% 58% 42%;
    background: radial-gradient(circle at 45% 45%, rgba(205, 175, 255, .52), rgba(148, 100, 246, .1) 61%, transparent 72%);
    filter: blur(2px);
    animation: float 13s ease-in-out infinite alternate;
}

.ambient-ring {
    bottom: -235px;
    left: -205px;
    width: 480px;
    height: 480px;
    border: 64px solid rgba(255, 108, 96, .3);
    border-radius: 50%;
}

.site-header,
main,
footer {
    width: min(1320px, calc(100% - 72px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, .18);
    border-radius: 15px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 30px rgba(95, 55, 127, .1);
    color: var(--violet);
}

.brand-mark svg {
    width: 27px;
    height: 27px;
    stroke-width: 2.2;
}

.brand-copy {
    display: grid;
}

.brand-copy strong {
    font-size: 16px;
    letter-spacing: -.025em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.back-link:hover {
    transform: translateX(2px);
    color: var(--violet-dark);
}

.back-link svg {
    width: 17px;
    height: 17px;
}

.hero {
    display: grid;
    min-height: 655px;
    padding: 46px 0 32px;
    align-items: center;
    grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr);
    gap: clamp(52px, 7vw, 112px);
}

.hero-copy {
    position: relative;
}

.hero-copy::before,
.hero-copy::after {
    position: absolute;
    color: var(--coral);
    content: "✦";
    pointer-events: none;
}

.hero-copy::before {
    top: -76px;
    left: -12px;
    font-size: 32px;
}

.hero-copy::after {
    right: 10%;
    bottom: -68px;
    color: var(--violet);
    font-size: 25px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 22px;
    align-items: center;
    gap: 10px;
    color: var(--violet-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), var(--violet));
    box-shadow: 0 0 0 5px rgba(139, 92, 246, .09);
}

.hero h1 {
    max-width: 690px;
    margin: 0;
    font-size: clamp(3.15rem, 5.2vw, 5.35rem);
    font-weight: 800;
    letter-spacing: -.07em;
    line-height: 1.03;
}

.hero h1 span {
    background: linear-gradient(100deg, var(--coral) 0%, #f46f50 42%, var(--violet) 100%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
}

.hero-copy > p {
    max-width: 610px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.75;
}

.quick-guide {
    display: flex;
    margin-top: 36px;
    align-items: center;
    gap: 14px;
    color: #55485f;
    font-size: 12px;
    font-weight: 600;
}

.quick-guide span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.quick-guide b {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(70, 44, 88, .09);
    color: var(--violet-dark);
    font-size: 9px;
}

.quick-guide i {
    width: 18px;
    height: 1px;
    background: rgba(90, 64, 108, .22);
}

.tool-card {
    position: relative;
    padding: clamp(28px, 3vw, 42px);
    border: 1px solid rgba(139, 92, 246, .18);
    border-radius: 30px;
    background: var(--paper);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: card-in .48s ease-out both;
}

.tool-card::before {
    position: absolute;
    z-index: -1;
    inset: -8px;
    border: 1px solid rgba(255, 92, 53, .16);
    border-radius: 36px;
    content: "";
}

.tool-heading {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.tool-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--violet-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.tool-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    letter-spacing: -.04em;
}

.status-chip {
    display: inline-flex;
    padding: 8px 11px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(21, 128, 74, .14);
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 10px;
    font-weight: 700;
}

.status-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1fa762;
    box-shadow: 0 0 0 4px rgba(31, 167, 98, .1);
}

form {
    display: grid;
    gap: 22px;
}

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

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

label {
    color: #32263d;
    font-size: 13px;
    font-weight: 700;
}

.field small {
    color: #897c92;
    font-size: 10px;
    line-height: 1.5;
}

textarea,
input {
    width: 100%;
    border: 1px solid rgba(93, 67, 111, .21);
    outline: none;
    background: rgba(255, 253, 250, .84);
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea {
    min-height: 92px;
    padding: 15px 16px;
    resize: vertical;
    border-radius: 15px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
}

input {
    height: 54px;
    padding: 0 16px;
    border-radius: 15px;
}

textarea::placeholder,
input::placeholder {
    color: #aca0b4;
}

textarea:focus,
input:focus {
    border-color: var(--violet);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .11);
}

.text-button {
    display: inline-flex;
    padding: 5px 0;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--violet-dark);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

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

.text-button svg {
    width: 15px;
    height: 15px;
}

.id-input {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    border: 1px solid rgba(93, 67, 111, .21);
    border-radius: 15px;
    background: rgba(255, 253, 250, .84);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.id-input:focus-within {
    border-color: var(--violet);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .11);
}

.id-input span {
    height: 32px;
    padding: 7px 0 0 15px;
    border-right: 1px solid var(--line);
    color: var(--violet-dark);
    font-size: 13px;
    font-weight: 800;
}

.id-input input {
    height: 52px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.id-input input:focus {
    box-shadow: none;
}

.message {
    padding: 11px 13px;
    border: 1px solid rgba(180, 35, 24, .15);
    border-radius: 12px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.primary-button {
    display: flex;
    width: 100%;
    min-height: 60px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 16px;
    background: linear-gradient(105deg, var(--coral), #ff6842 62%, #f15c7c);
    box-shadow: 0 15px 35px rgba(255, 92, 53, .25);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 92, 53, .32);
    filter: saturate(1.08);
}

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

.primary-button svg {
    width: 19px;
    height: 19px;
    transition: transform .2s ease;
}

.primary-button:hover svg {
    transform: translateX(3px);
}

.result {
    animation: result-in .3s ease-out both;
}

.result-heading {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.result-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
}

.result-heading i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #dff7e9;
}

.result-heading i svg {
    width: 15px;
    height: 15px;
    stroke-width: 3;
}

.reset-button {
    padding: 5px 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.reset-button:hover {
    color: var(--violet-dark);
}

.result-box {
    display: grid;
    padding: 13px 14px;
    align-items: start;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    border: 1px solid rgba(21, 128, 74, .2);
    border-radius: 15px;
    background: var(--success-bg);
}

.result-link-icon {
    width: 23px;
    height: 23px;
    margin-top: 2px;
    color: var(--success);
}

.result-box textarea {
    min-height: 70px;
    padding: 0;
    resize: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #176a43;
    box-shadow: none;
    font-size: 11px;
}

.result-actions {
    display: flex;
    margin-top: 13px;
    gap: 10px;
}

.copy-button,
.open-button {
    display: inline-flex;
    min-height: 43px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.copy-button {
    flex: 1;
    background: var(--success);
    color: #fff;
}

.copy-button:hover {
    transform: translateY(-1px);
    background: #0f6c3d;
}

.copy-button svg,
.open-button svg {
    width: 16px;
    height: 16px;
}

.open-button {
    border: 1px solid rgba(139, 92, 246, .2);
    background: #fff;
    color: var(--violet-dark);
}

.open-button:hover {
    transform: translateY(-1px);
    background: var(--lilac);
}

.result-note {
    margin: 11px 0 0;
    color: #7c7084;
    font-size: 9px;
    line-height: 1.5;
}

.trust-row {
    display: grid;
    margin-top: 28px;
    padding: 30px 0 42px;
    grid-template-columns: repeat(3, 1fr);
}

.trust-row article {
    display: flex;
    padding: 0 clamp(20px, 3vw, 48px);
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(75, 48, 94, .13);
}

.trust-row article:first-child {
    padding-left: 0;
}

.trust-row article:last-child {
    padding-right: 0;
    border-right: 0;
}

.trust-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 50%;
}

.trust-icon svg {
    width: 24px;
    height: 24px;
}

.trust-coral {
    background: #fff0e9;
    color: var(--coral);
}

.trust-violet {
    background: #f0eaff;
    color: var(--violet);
}

.trust-lilac {
    background: #f4eefe;
    color: #7c45dc;
}

.trust-row article div {
    display: grid;
    gap: 4px;
}

.trust-row strong {
    font-size: 13px;
}

.trust-row small {
    color: var(--muted);
    font-size: 10px;
}

footer {
    padding: 12px 0 28px;
    border-top: 1px solid rgba(70, 43, 87, .1);
    color: #8f8298;
    font-size: 10px;
    text-align: center;
}

footer p {
    margin: 0;
}

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

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

@keyframes float {
    from {
        transform: translate3d(0, 0, 0) rotate(-2deg);
    }
    to {
        transform: translate3d(-18px, 14px, 0) rotate(2deg);
    }
}

@media (max-width: 1050px) {
    .site-header,
    main,
    footer {
        width: min(820px, calc(100% - 48px));
    }

    .hero {
        padding-top: 58px;
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .hero-copy {
        max-width: 720px;
        text-align: center;
        justify-self: center;
    }

    .hero h1 {
        margin-inline: auto;
    }

    .hero-copy > p {
        margin-inline: auto;
    }

    .quick-guide {
        justify-content: center;
    }

    .tool-card {
        width: min(650px, 100%);
        justify-self: center;
    }

    .ambient-violet {
        top: 38%;
        right: -250px;
    }
}

@media (max-width: 720px) {
    .site-header,
    main,
    footer {
        width: min(100% - 32px, 620px);
    }

    .site-header {
        min-height: 76px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .brand-mark svg {
        width: 23px;
        height: 23px;
    }

    .brand-copy small {
        display: none;
    }

    .back-link {
        font-size: 0;
    }

    .back-link svg {
        width: 22px;
        height: 22px;
    }

    .hero {
        min-height: auto;
        padding: 45px 0 18px;
        gap: 44px;
    }

    .hero-copy::before {
        top: -48px;
        left: 4px;
        font-size: 24px;
    }

    .hero-copy::after {
        display: none;
    }

    .eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
    }

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

    .hero-copy > p {
        margin-top: 20px;
        font-size: .94rem;
        line-height: 1.7;
    }

    .quick-guide {
        margin-top: 28px;
        gap: 8px;
        font-size: 10px;
    }

    .quick-guide span {
        gap: 5px;
    }

    .quick-guide b {
        width: 23px;
        height: 23px;
        font-size: 8px;
    }

    .quick-guide i {
        width: 8px;
    }

    .tool-card {
        padding: 25px 20px;
        border-radius: 24px;
    }

    .tool-card::before {
        inset: -5px;
        border-radius: 28px;
    }

    .tool-heading {
        margin-bottom: 25px;
    }

    .status-chip {
        padding: 7px 9px;
        font-size: 9px;
    }

    form {
        gap: 20px;
    }

    textarea {
        font-size: 11px;
    }

    .trust-row {
        margin-top: 42px;
        padding-bottom: 34px;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .trust-row article,
    .trust-row article:first-child,
    .trust-row article:last-child {
        padding: 18px 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(75, 48, 94, .1);
    }

    .trust-row article:last-child {
        border-bottom: 0;
    }

    .ambient-ring {
        bottom: -320px;
        left: -290px;
    }

    .ambient-coral {
        right: -60px;
    }
}

@media (max-width: 430px) {
    .brand-copy strong {
        font-size: 14px;
    }

    .quick-guide {
        flex-wrap: wrap;
    }

    .quick-guide i {
        display: none;
    }

    .tool-heading {
        align-items: center;
    }

    .tool-heading h2 {
        font-size: 1.35rem;
    }

    .status-chip {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .status-chip i {
        width: 8px;
        height: 8px;
    }

    .status-chip {
        font-size: 0;
    }

    .result-actions {
        flex-direction: column;
    }

    .copy-button,
    .open-button {
        width: 100%;
    }
}

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