:root {
    --bg: #0b0b0a;
    --panel: rgba(18, 17, 15, 0.84);
    --panel-solid: #151411;
    --line: rgba(214, 181, 117, 0.24);
    --gold: #d6b575;
    --gold-strong: #f0d18b;
    --text: #f7f2e8;
    --muted: #b8b0a1;
    --deep: #050505;
    --green: #19c66a;
    --danger: #e36b6b;
    --success: #8edfae;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(214, 181, 117, 0.18), transparent 30rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px),
        linear-gradient(90deg, #090909, #12110f 48%, #080807);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.motion-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.motion-scene::before,
.motion-scene::after {
    content: "";
    position: absolute;
    inset: -18%;
    background:
        linear-gradient(90deg, rgba(214, 181, 117, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 96px 96px;
    transform: rotate(-8deg);
    animation: blueprint-drift 32s linear infinite;
    mask-image: radial-gradient(circle at 50% 45%, #000 0 42%, transparent 72%);
}

.motion-scene::after {
    background-size: 182px 182px;
    opacity: 0.32;
    transform: rotate(14deg);
    animation-duration: 48s;
    animation-direction: reverse;
}

.plane,
.beam,
.spark {
    position: absolute;
    display: block;
}

.plane {
    width: clamp(180px, 24vw, 360px);
    aspect-ratio: 1.35;
    border: 1px solid rgba(214, 181, 117, 0.18);
    background:
        linear-gradient(90deg, transparent 0 34%, rgba(214, 181, 117, 0.12) 34% 35%, transparent 35% 100%),
        linear-gradient(0deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 48% 49%, transparent 49% 100%),
        rgba(255, 255, 255, 0.018);
    box-shadow: inset 0 0 40px rgba(214, 181, 117, 0.04), 0 24px 80px rgba(0, 0, 0, 0.28);
    opacity: 0.8;
}

.plane-a {
    top: 8%;
    left: max(-70px, 4vw);
    transform: rotate(-12deg);
    animation: float-panel-a 16s ease-in-out infinite;
}

.plane-b {
    right: max(-90px, 3vw);
    bottom: 9%;
    transform: rotate(18deg);
    animation: float-panel-b 19s ease-in-out infinite;
}

.beam {
    width: 42vw;
    max-width: 560px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 209, 139, 0.62), transparent);
    opacity: 0.42;
    transform-origin: center;
}

.beam-a {
    top: 23%;
    right: -8%;
    transform: rotate(-28deg);
    animation: light-sweep 7s ease-in-out infinite;
}

.beam-b {
    left: -12%;
    bottom: 26%;
    transform: rotate(24deg);
    animation: light-sweep 9s ease-in-out infinite reverse;
}

.spark {
    width: 7px;
    height: 7px;
    border: 1px solid rgba(240, 209, 139, 0.7);
    border-radius: 50%;
    background: rgba(240, 209, 139, 0.24);
    box-shadow: 0 0 22px rgba(240, 209, 139, 0.42);
}

.spark-a {
    top: 18%;
    left: 22%;
    animation: spark-rise 11s ease-in-out infinite;
}

.spark-b {
    right: 18%;
    top: 52%;
    animation: spark-rise 14s ease-in-out infinite 1.5s;
}

.spark-c {
    left: 17%;
    bottom: 15%;
    animation: spark-rise 12s ease-in-out infinite 0.8s;
}

.stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    overflow: hidden;
}

.card-shell {
    position: relative;
    width: min(100%, 460px);
    min-height: 760px;
    padding: 34px 26px 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
        var(--panel);
    box-shadow: 0 32px 120px rgba(0, 0, 0, 0.55);
    isolation: isolate;
    overflow: hidden;
}

.card-shell::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(214, 181, 117, 0.16);
    border-radius: 6px;
    pointer-events: none;
    z-index: -1;
}

.card-shell::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 330px;
    height: 420px;
    background:
        linear-gradient(115deg, transparent 0 24%, rgba(214, 181, 117, 0.18) 24% 25%, transparent 25% 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
    transform: rotate(16deg);
    opacity: 0.62;
    z-index: -1;
}

.ambient-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    opacity: 0.16;
    z-index: -2;
}

.ambient-grid span {
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 184px;
    height: 110px;
    margin: 0 auto 20px;
}

.brand-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-align: center;
}

h1 {
    margin: 0;
    font-family: Marcellus, Georgia, serif;
    font-size: clamp(2.16rem, 9vw, 3.2rem);
    line-height: 0.98;
    font-weight: 400;
    text-align: center;
}

.lead {
    margin: 22px auto 0;
    max-width: 35ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

.signature-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 28px 0;
}

.signature-line span {
    display: grid;
    min-height: 46px;
    place-items: center;
    border: 1px solid rgba(214, 181, 117, 0.18);
    border-radius: 6px;
    color: #ddd2bf;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.primary-action,
.admin-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 6px;
    color: #07150d;
    background: linear-gradient(135deg, #f6d98d, #c99b4e 60%, #f3d892);
    box-shadow: 0 18px 36px rgba(214, 181, 117, 0.22);
    font: 800 0.96rem/1 Inter, Arial, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover,
.admin-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(214, 181, 117, 0.31);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(25, 198, 106, 0.16);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.quick-actions a,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid rgba(214, 181, 117, 0.26);
    border-radius: 6px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    text-decoration: none;
}

.social-strip {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 24px;
}

.social-strip a {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(214, 181, 117, 0.26);
    border-radius: 50%;
    color: var(--gold-strong);
    background: rgba(0, 0, 0, 0.2);
    font-weight: 800;
    text-decoration: none;
}

.contact-block {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid rgba(214, 181, 117, 0.16);
    color: var(--muted);
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.contact-block strong {
    color: var(--text);
}

.contact-block a {
    color: var(--gold-strong);
    text-decoration: none;
}

.admin-body {
    display: grid;
    min-height: 100vh;
    place-items: start center;
    padding: 32px 16px;
}

.admin-wrap {
    width: min(100%, 920px);
}

.admin-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-solid);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

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

.admin-heading .eyebrow,
.admin-heading h1 {
    text-align: left;
}

.admin-heading h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.admin-form {
    display: grid;
    gap: 18px;
}

.admin-form.narrow {
    max-width: 420px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(214, 181, 117, 0.2);
    border-radius: 6px;
    padding: 13px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    font: 500 1rem/1.4 Inter, Arial, sans-serif;
    outline: 0;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214, 181, 117, 0.12);
}

.form-help {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.form-help a {
    color: var(--gold-strong);
}

.admin-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.admin-actions .ghost-link {
    min-width: 132px;
}

.alert {
    margin: 0 0 14px;
    padding: 13px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.alert.error {
    border: 1px solid rgba(227, 107, 107, 0.3);
    color: #ffd4d4;
    background: rgba(227, 107, 107, 0.12);
}

.alert.success {
    border: 1px solid rgba(142, 223, 174, 0.3);
    color: #dcffe8;
    background: rgba(25, 198, 106, 0.12);
}

@keyframes blueprint-drift {
    from {
        transform: translate3d(-3%, -2%, 0) rotate(-8deg);
    }

    to {
        transform: translate3d(3%, 2%, 0) rotate(-8deg);
    }
}

@keyframes float-panel-a {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-12deg);
    }

    50% {
        transform: translate3d(28px, 20px, 0) rotate(-7deg);
    }
}

@keyframes float-panel-b {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(18deg);
    }

    50% {
        transform: translate3d(-26px, -24px, 0) rotate(13deg);
    }
}

@keyframes light-sweep {
    0%,
    100% {
        opacity: 0.1;
        translate: -18px 0;
    }

    50% {
        opacity: 0.62;
        translate: 18px 0;
    }
}

@keyframes spark-rise {
    0%,
    100% {
        opacity: 0.24;
        transform: translate3d(0, 0, 0) scale(0.8);
    }

    45% {
        opacity: 0.9;
        transform: translate3d(18px, -42px, 0) scale(1.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-scene *,
    .motion-scene::before,
    .motion-scene::after {
        animation: none !important;
    }
}

@media (max-width: 680px) {
    .motion-scene::before {
        background-size: 68px 68px;
    }

    .plane {
        opacity: 0.42;
    }

    .card-shell {
        min-height: auto;
        padding: 28px 18px 22px;
    }

    .signature-line,
    .quick-actions,
    .form-grid,
    .admin-actions {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 22px 16px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
