:root {
    --bg: #07131a;
    --bg-accent: #0f2430;
    --card: rgba(8, 20, 27, 0.72);
    --card-strong: rgba(10, 25, 33, 0.9);
    --line: rgba(255, 255, 255, 0.12);
    --text: #ebf3f1;
    --muted: #9ab4b0;
    --teal: #5ae4c2;
    --orange: #ffb76b;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(90, 228, 194, 0.24), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 183, 107, 0.16), transparent 28%),
        linear-gradient(180deg, #08141b 0%, #0d2027 55%, #091116 100%);
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.22;
    pointer-events: none;
}

body::before {
    top: -6rem;
    left: -4rem;
    background: #47c9ef;
}

body::after {
    right: -6rem;
    bottom: -8rem;
    background: #ff9d5c;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.hero-card,
.card {
    backdrop-filter: blur(18px);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
}

.hero-copy h1,
.section-heading h2,
.info-strip h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    /* max-width: 11ch; */
}

.eyebrow,
.section-kicker,
.panel-badge {
    margin: 0 0 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 800;
}

.page-shell--teal .eyebrow,
.page-shell--teal .section-kicker,
.page-shell--teal .panel-badge {
    color: var(--teal);
}

.page-shell--orange .eyebrow,
.page-shell--orange .section-kicker,
.page-shell--orange .panel-badge {
    color: var(--orange);
}

.lede {
    margin: 1rem 0 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pill-link:hover,
.pill-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.13);
}

.pill-link--muted {
    color: var(--muted);
}

.hero-panel {
    position: relative;
    min-height: 220px;
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    overflow: hidden;
}

.hero-panel--preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    width: min(220px, 100%);
    aspect-ratio: 1;
}

.panel-preview-grid span {
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.2));
    animation: pulse-grid 6s infinite ease-in-out;
}

.panel-preview-grid span:nth-child(3n) {
    animation-delay: -1.4s;
}

.panel-preview-grid span:nth-child(4n) {
    animation-delay: -2.5s;
}

.panel-list {
    margin: 2.2rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.9;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    border-radius: var(--radius-xl);
    padding: 1.6rem;
}

.section-heading {
    margin-bottom: 1.4rem;
}

.section-heading h2 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    letter-spacing: -0.04em;
}

.field-label,
.option-group legend {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.field {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.16);
    color: var(--text);
    padding: 0.95rem 1rem;
    font: inherit;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.24);
}

.field--textarea {
    min-height: 170px;
    resize: vertical;
}

.option-group {
    margin: 1.4rem 0 0;
    padding: 0;
    border: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.option-group--two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 88px;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card span {
    font-weight: 800;
}

.option-card small {
    color: var(--muted);
    line-height: 1.5;
}

.option-card:has(input:checked) {
    border-color: rgba(255, 255, 255, 0.38);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.primary-button {
    margin-top: 1.5rem;
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 1rem 1.2rem;
    font: inherit;
    font-weight: 800;
    color: #051015;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease;
}

.page-shell--teal .primary-button {
    background: linear-gradient(135deg, #5ae4c2, #8ff5da);
}

.page-shell--orange .primary-button {
    background: linear-gradient(135deg, #ffb76b, #ffd08f);
}

.primary-button:hover,
.primary-button:focus-visible {
    transform: translateY(-1px);
    filter: saturate(1.06);
}

.result-card {
    display: flex;
    flex-direction: column;
}

.qrcode-output {
    display: grid;
    place-items: center;
    gap: 1rem;
    min-height: 320px;
    padding: 1.5rem;
    border-radius: 22px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    text-align: center;
}

.qrcode-output--empty::before {
    content: 'Fill in the form and generate a QR preview here.';
    color: var(--muted);
    max-width: 22ch;
}

.qrcode-output img {
    display: block;
    width: min(100%, 280px);
    height: auto;
    padding: 1rem;
    border-radius: 24px;
    background: white;
}

.qrcode-output a {
    word-break: break-all;
    color: inherit;
}

.result-link {
    display: inline;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.result-link:hover {
    color: var(--teal);
    text-decoration-color: currentColor;
}

.result-copy-button {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.result-copy-button:hover,
.result-copy-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.11);
    color: var(--text);
}

.info-strip {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.info-strip p {
    margin: 0.55rem 0 0;
    line-height: 1.6;
}

@keyframes pulse-grid {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(0.92);
        opacity: 0.45;
    }
}

@media (max-width: 920px) {
    .hero-card,
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100% - 1rem, 1120px);
        padding-top: 1rem;
    }

    .hero-card,
    .card {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .option-group,
    .option-group--two-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .option-group,
    .option-group--two-columns,
    .hero-links {
        grid-template-columns: 1fr;
    }

    .hero-links {
        display: grid;
    }

    .option-card {
        min-height: auto;
    }
}