:root {
    color-scheme: light dark;
    --ruby: #9b111e;
    --ruby-hot: #d1274b;
    --indigo: #4b0082;
    --violet: #7c3aed;
    --gold: #e8c27a;
    --gold-soft: #f8e7bd;
    --bg: #fffaf8;
    --bg-alt: #f5f0ff;
    --ink: #2b1b1d;
    --muted: #5f4b53;
    --card: #fff;
    --line: #eadcdd;
    --heading: #3b0a52;
    --accent: var(--ruby);
    --field-border: #8f7c7f;
    --error: #b00020;
    --glass: rgba(255, 250, 248, .82);
    --shadow-card: 0 18px 40px -18px rgba(75, 0, 130, .35);
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --radius: 1.1rem;
    --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #120a1a;
        --bg-alt: #190e25;
        --ink: #f5eef8;
        --muted: #c2b2cf;
        --card: #22142f;
        --line: #3a2650;
        --heading: #ffe9ef;
        --accent: #ff93a8;
        --field-border: #a48cb8;
        --error: #ff8a9b;
        --glass: rgba(18, 10, 26, .82);
        --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, .8);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--heading); font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 1.4rem + 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
header {
    position: relative;
    z-index: 2;
    color: #fff;
    background:
        radial-gradient(900px 500px at 90% 0%, rgba(124, 58, 237, .35), transparent 60%),
        linear-gradient(160deg, #12061f 0%, #260a3d 65%, #3a0a24 100%);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .65);
}
.nav { min-height: 4.5rem; padding-block: .5rem; }
.brand { padding: .3rem .8rem; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
.brand img { width: 11rem; height: 3.8rem; object-fit: cover; object-position: center 55%; }
nav a { color: #fff; transition: background-color .25s var(--ease), color .25s var(--ease); }
nav a:hover, nav a[aria-current="page"] { color: var(--gold-soft); background: rgba(255, 255, 255, .14); }

main { min-height: calc(100vh - 13rem); padding: clamp(3rem, 8vw, 6rem) 0; }
.eyebrow { display: inline-block; margin-bottom: .75rem; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.intro { max-width: 42rem; color: var(--muted); font-size: 1.125rem; }

.form-card {
    max-width: 42rem;
    margin-top: 2rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-card);
}
.field { margin-top: .9rem; }
label { display: block; font-size: .95rem; font-weight: 600; }
input, select, textarea {
    width: 100%;
    min-height: 2.9rem;
    margin-top: .3rem;
    padding: .65rem .85rem;
    border: 1px solid var(--field-border);
    border-radius: .7rem;
    color: var(--ink);
    background: var(--bg);
    font: inherit;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .3); }
textarea { min-height: 7rem; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.phone-row { align-items: flex-start; }
.phone-row .prefix { flex: 0 0 5.5rem; width: 5.5rem; text-align: center; }
.phone-row .prefix[readonly] { background: rgba(124, 58, 237, .12); }

.button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3rem;
    margin-top: 1.4rem;
    padding: .75rem 1.5rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(120deg, var(--ruby), var(--ruby-hot) 45%, var(--violet));
    background-size: 160% 100%;
    box-shadow: 0 10px 28px -10px rgba(209, 39, 75, .7);
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .6s var(--ease);
}
.button:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 16px 34px -10px rgba(124, 58, 237, .65); }
.button:active { transform: translateY(0); }
.status { min-height: 1.5em; margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }

.faq-list { display: grid; max-width: 50rem; gap: .8rem; }
.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-list details[open] { border-color: rgba(124, 58, 237, .55); box-shadow: var(--shadow-card); }
.faq-list summary { min-height: 3.5rem; padding: 1rem 1.25rem; color: var(--heading); font-size: 1.05rem; font-weight: 600; cursor: pointer; }
.faq-list details p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--muted); }
main section + section { margin-top: 3rem; }

footer { padding: 1.5rem 0; color: #b9a8c7; background: #0d0516; font-size: .9rem; }
footer a { color: #e9dff0; }
footer a:hover { color: var(--gold); }

@media (max-width: 48em) {
    .nav { align-items: flex-start; flex-direction: column; }
    nav { gap: .25rem; }
    nav a { padding-inline: .65rem; }
}

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