:root {
    --ax-bg: #282828;
    --ax-bg-deep: #1b1b1b;
    --ax-card: rgba(255, 255, 255, 0.065);
    --ax-card-strong: rgba(255, 255, 255, 0.1);
    --ax-edge: rgba(255, 255, 255, 0.15);
    --ax-text: #fafafa;
    --ax-muted: rgba(250, 250, 250, 0.72);
    --ax-soft: rgba(250, 250, 250, 0.5);
    --ax-accent: #62b3a9;
    --ax-accent-strong: #4aa599;
    --ax-error: #ff8f8f;
    --ax-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ax-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ax-text);
    background:
        radial-gradient(circle at 20% 10%, rgba(98, 179, 169, 0.24), transparent 34rem),
        radial-gradient(circle at 85% 70%, rgba(98, 179, 169, 0.13), transparent 28rem),
        linear-gradient(145deg, var(--ax-bg), var(--ax-bg-deep));
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: calc(100vh - 70px);
    margin: 0 auto;
    padding: 32px 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

.hero-card,
.promo-card {
    border: 1px solid var(--ax-edge);
    background: linear-gradient(180deg, var(--ax-card-strong), var(--ax-card));
    box-shadow: var(--ax-shadow);
    backdrop-filter: blur(18px);
}

.hero-card {
    padding: clamp(24px, 6vw, 56px);
    border-radius: var(--radius-lg);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px 12px;
    border: 1px solid rgba(98, 179, 169, 0.42);
    border-radius: 999px;
    color: var(--ax-accent);
    background: rgba(98, 179, 169, 0.1);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 880px;
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 10vw, 5.25rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.intro {
    max-width: 720px;
    margin-bottom: 28px;
    color: var(--ax-muted);
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    line-height: 1.55;
}

.shrink-form {
    margin-top: 18px;
}

.shrink-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--ax-text);
    font-size: 0.92rem;
    font-weight: 800;
}

.input-row,
.result-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

input[type="url"],
input[type="text"] {
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--ax-edge);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    color: var(--ax-text);
    background: rgba(0, 0, 0, 0.28);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

input[type="url"]:focus,
input[type="text"]:focus {
    border-color: rgba(98, 179, 169, 0.75);
    box-shadow:
        0 0 0 4px rgba(98, 179, 169, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

button,
.promo-button {
    min-height: 58px;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #10201e;
    background: linear-gradient(135deg, var(--ax-accent), #8ae0d5);
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
    box-shadow: 0 14px 30px rgba(98, 179, 169, 0.18);
}

button:hover,
.promo-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 34px rgba(98, 179, 169, 0.25);
}

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

.form-note {
    margin: 12px 0 0;
    color: var(--ax-soft);
    font-size: 0.92rem;
}

.alert {
    margin: 18px 0;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border: 1px solid var(--ax-edge);
    background: rgba(0, 0, 0, 0.22);
}

.alert-error {
    color: #ffecec;
    border-color: rgba(255, 143, 143, 0.36);
    background: rgba(255, 143, 143, 0.12);
}

.result-card {
    margin-top: 22px;
    border: 1px solid rgba(98, 179, 169, 0.35);
    border-radius: var(--radius-md);
    padding: 16px;
    background: rgba(98, 179, 169, 0.09);
}

.result-label {
    margin-bottom: 10px;
    color: var(--ax-accent);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copy-status {
    min-height: 1.35em;
    margin: 10px 0 0;
    color: var(--ax-muted);
    font-size: 0.92rem;
}

.promo-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.promo-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #10201e;
    background: linear-gradient(135deg, var(--ax-accent), #8ae0d5);
    font-size: 1.5rem;
    font-weight: 950;
    box-shadow: 0 18px 34px rgba(98, 179, 169, 0.22);
}

.promo-card h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
    letter-spacing: -0.035em;
}

.promo-card p {
    color: var(--ax-muted);
    line-height: 1.6;
}

.promo-button {
    width: 100%;
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(250, 250, 250, 0.45);
    font-size: 0.88rem;
}

@media (min-width: 720px) {
    .input-row,
    .result-row {
        grid-template-columns: 1fr auto;
    }

    .input-row button,
    .result-row button {
        min-width: 150px;
    }
}

@media (min-width: 960px) {
    .page-shell {
        grid-template-columns: minmax(0, 1fr) 340px;
        padding-top: 56px;
        align-items: stretch;
    }

    .promo-card {
        position: sticky;
        top: 28px;
        align-self: start;
        min-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
