:root {
    color-scheme: dark;
    --bg: #050505;
    --ink: #f4f1ea;
    --mute: rgba(244, 241, 234, 0.64);
    --soft: rgba(244, 241, 234, 0.42);
    --line: rgba(244, 241, 234, 0.12);
    --line-strong: rgba(244, 241, 234, 0.22);
    --glow: #c8ff4d;
    --panel: rgba(255, 255, 255, 0.03);
    --panel-2: rgba(255, 255, 255, 0.045);
    --font: "Instrument Sans", system-ui, sans-serif;
    --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

.fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(980px 560px at 12% 8%, rgba(200, 255, 77, 0.11), transparent 58%),
        radial-gradient(760px 520px at 90% 84%, rgba(124, 92, 255, 0.14), transparent 56%),
        linear-gradient(180deg, #0b0b0b 0%, #050505 46%, #040404 100%);
}

.fx::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem clamp(1.2rem, 4vw, 2.5rem);
}

.mark,
.top-link {
    color: var(--ink);
    text-decoration: none;
}

.mark {
    font-size: 0.95rem;
    font-weight: 600;
}

.top-link {
    color: var(--mute);
    font-size: 0.92rem;
}

.top-link:hover { color: var(--ink); }

.stage {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 2.4rem));
    margin: 6vh auto 4rem;
    display: grid;
    gap: 0.85rem;
}

.eyebrow {
    margin: 0;
    color: var(--glow);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.lede {
    margin: 0.15rem 0 0.6rem;
    max-width: 34rem;
    color: var(--mute);
    font-size: 1.06rem;
    line-height: 1.55;
}

.sheet,
.work-composer {
    margin-top: 0.9rem;
    display: grid;
    gap: 1.35rem;
}

.block {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    backdrop-filter: blur(12px);
}

.block-head {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.9rem;
}

.block-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.block-head p {
    margin: 0;
    color: var(--soft);
    font-size: 0.92rem;
    line-height: 1.4;
}

.packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.pkg {
    cursor: pointer;
}

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

.pkg-card {
    display: grid;
    gap: 0.28rem;
    min-height: 132px;
    padding: 0.95rem 0.9rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.pkg-card em {
    font-style: normal;
    color: var(--glow);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pkg-card strong {
    font-size: 1.02rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.pkg-card small {
    color: var(--soft);
    line-height: 1.35;
}

.pkg.is-on .pkg-card,
.pkg:has(input:checked) .pkg-card {
    border-color: rgba(200, 255, 77, 0.55);
    background: rgba(200, 255, 77, 0.06);
    transform: translateY(-1px);
}

textarea,
input[type="email"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--ink);
    font: inherit;
    padding: 0.95rem 1rem;
}

textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.45;
}

textarea::placeholder,
input::placeholder {
    color: rgba(244, 241, 234, 0.34);
}

textarea:focus,
input:focus {
    outline: none;
    border-color: rgba(200, 255, 77, 0.42);
    background: rgba(255, 255, 255, 0.04);
}

.hints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.hint {
    appearance: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--mute);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.hint:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.drop {
    display: grid;
    place-items: center;
    gap: 0.3rem;
    min-height: 132px;
    padding: 1.1rem;
    border-radius: 16px;
    border: 1px dashed rgba(244, 241, 234, 0.22);
    background: rgba(0, 0, 0, 0.18);
    text-align: center;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease;
}

.drop.is-hot,
.drop:hover {
    border-color: rgba(200, 255, 77, 0.45);
    background: rgba(200, 255, 77, 0.04);
}

.drop.has-file {
    border-style: solid;
    border-color: rgba(200, 255, 77, 0.4);
}

.drop-title {
    font-weight: 650;
    letter-spacing: -0.01em;
}

.drop-sub {
    color: var(--soft);
    font-size: 0.9rem;
}

.actions {
    display: grid;
    gap: 0.55rem;
    padding: 0.2rem 0.15rem 0;
}

.go {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 54px;
    width: fit-content;
    padding: 0.9rem 1.55rem;
    background: var(--ink);
    color: #111;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: transform 140ms ease, opacity 140ms ease;
}

.go:hover:not(:disabled) { transform: translateY(-1px); }
.go:disabled { opacity: 0.35; cursor: not-allowed; }

.fine {
    margin: 0;
    color: var(--soft);
    font-size: 0.9rem;
}

.note {
    margin: 0;
    color: var(--mute);
    font-size: 0.92rem;
}

.note.is-error { color: #ffb1a5; }

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

@media (max-width: 820px) {
    .packages { grid-template-columns: 1fr; }
    .pkg-card { min-height: 0; }
}

@media (max-width: 640px) {
    .stage { margin-top: 3.5vh; }
    h1 { font-size: clamp(2.25rem, 11vw, 3.1rem); }
    .go { width: 100%; }
    .top { padding-inline: 1rem; }
    .stage { width: min(100% - 1.25rem, 760px); }
}
