:root {
    color-scheme: dark;
    --bg: #06111f;
    --panel: #0c1a2c;
    --panel-strong: #102842;
    --line: rgba(164, 195, 230, 0.18);
    --text: #eef6ff;
    --muted: #a9bed5;
    --soft: #d5e6f7;
    --accent: #3fb6ff;
    --accent-strong: #73d1ff;
    --success: #59d99b;
    --danger: #ff7885;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(63, 182, 255, 0.24), transparent 34rem),
        radial-gradient(circle at 88% 18%, rgba(89, 217, 155, 0.12), transparent 24rem),
        linear-gradient(135deg, #06111f 0%, #07182b 46%, #04101d 100%);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.page-shell {
    width: min(760px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 0;
    display: flex;
    align-items: center;
}

.intro-panel,
.form-panel {
    border: 1px solid var(--line);
    background: rgba(12, 26, 44, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-panel {
    min-height: 640px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.intro-panel::after {
    content: "";
    position: absolute;
    inset: auto -20% -24% 10%;
    height: 320px;
    background: linear-gradient(135deg, rgba(63, 182, 255, 0.2), rgba(89, 217, 155, 0.08));
    transform: skewY(-8deg);
    pointer-events: none;
}

.topbar,
.hero-copy,
.trust-grid {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.availability {
    padding: 8px 12px;
    border: 1px solid rgba(115, 209, 255, 0.28);
    border-radius: 999px;
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-copy {
    max-width: 640px;
    padding: 112px 0 48px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: Sora, Inter, sans-serif;
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.7rem);
    line-height: 0.96;
}

h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.05;
}

.lead {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--soft);
    font-size: 1.08rem;
    line-height: 1.75;
}

.form-panel {
    width: 100%;
    padding: 34px;
    border-radius: 18px;
}

.form-heading {
    margin-bottom: 28px;
}

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

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

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

.field span:first-child {
    color: var(--soft);
    font-weight: 700;
    font-size: 0.94rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(4, 16, 29, 0.86);
    color: var(--text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
    min-height: 48px;
    padding: 0 14px;
}

textarea {
    min-height: 164px;
    padding: 14px;
    resize: vertical;
    line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(115, 209, 255, 0.78);
    box-shadow: 0 0 0 4px rgba(63, 182, 255, 0.12);
    background: rgba(5, 19, 34, 0.96);
}

input::placeholder,
textarea::placeholder {
    color: rgba(169, 190, 213, 0.62);
}

.field-meta {
    justify-self: end;
    color: var(--muted);
    font-size: 0.82rem;
}

.error {
    min-height: 18px;
    color: var(--danger);
    font-size: 0.82rem;
    line-height: 1.35;
}

#website {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.privacy-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.submit-button {
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    color: #03101d;
    background: linear-gradient(135deg, var(--accent-strong), var(--success));
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(63, 182, 255, 0.2);
}

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
}

.form-status {
    display: none;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    line-height: 1.5;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    border-color: rgba(89, 217, 155, 0.48);
    background: rgba(89, 217, 155, 0.12);
    color: #d8ffe9;
}

.form-status.is-error {
    border-color: rgba(255, 120, 133, 0.48);
    background: rgba(255, 120, 133, 0.11);
    color: #ffe0e4;
}

@media (max-width: 980px) {
    .page-shell {
        padding: 20px 0;
    }

    .intro-panel {
        min-height: auto;
    }

    .hero-copy {
        padding: 54px 0 38px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: calc(100% - 20px);
    }

    .intro-panel,
    .form-panel {
        border-radius: 14px;
        padding: 22px;
    }

    .topbar,
    .form-footer {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .submit-button {
        width: 100%;
    }
}

/* Embedded mode for diamondgamer.xyz iframe.
   This is built to be compatible with the diamondgamer.xyz portfolio iframe wrapper. */
html[data-embed="1"],
html[data-embed="1"] body {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #06111f !important;
}

html[data-embed="1"] body::before,
html[data-embed="1"] body::after {
    display: none !important;
}

html[data-embed="1"] .page-shell {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background: #06111f !important;
}

html[data-embed="1"] .form-panel {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 22px 28px 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #06111f !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-embed="1"] .form-heading {
    margin-bottom: 14px !important;
}

html[data-embed="1"] .eyebrow {
    margin-bottom: 7px !important;
    font-size: 0.7rem !important;
}

html[data-embed="1"] h2 {
    font-size: clamp(1.45rem, 2.2vw, 1.95rem) !important;
    line-height: 1 !important;
}

html[data-embed="1"] .contact-form {
    gap: 10px !important;
}

html[data-embed="1"] .field-grid {
    gap: 10px !important;
}

html[data-embed="1"] .field {
    gap: 4px !important;
}

html[data-embed="1"] .field span:first-child {
    font-size: 0.8rem !important;
}

html[data-embed="1"] input,
html[data-embed="1"] select {
    min-height: 36px !important;
    border-radius: 8px !important;
    padding: 0 11px !important;
    font-size: 0.88rem !important;
}

html[data-embed="1"] textarea {
    min-height: 100px !important;
    border-radius: 8px !important;
    padding: 11px !important;
    font-size: 0.88rem !important;
    line-height: 1.42 !important;
    resize: none !important;
}

html[data-embed="1"] .error {
    min-height: 0 !important;
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
}

html[data-embed="1"] .field-meta {
    font-size: 0.74rem !important;
}

html[data-embed="1"] .form-footer {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    margin-top: 0 !important;
}

html[data-embed="1"] .privacy-note {
    font-size: 0.74rem !important;
    line-height: 1.28 !important;
}

html[data-embed="1"] .submit-button {
    min-height: 40px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
}

html[data-embed="1"] .form-status {
    padding: 9px 11px !important;
    font-size: 0.82rem !important;
    margin: 0 !important;
}

@media (max-width: 720px) {
    html[data-embed="1"] .form-panel {
        padding: 20px !important;
    }

    html[data-embed="1"] .field-grid,
    html[data-embed="1"] .form-footer {
        grid-template-columns: 1fr !important;
    }

    html[data-embed="1"] .submit-button {
        width: 100% !important;
    }
}
