:root {
    --bg-main: #242b46;
    --bg-card: #2c3350;
    --bg-action: #444c70;
    --border-style: .1rem solid #3a3f5a;
    --accent: #f39c12;
    --text-main: #e9e9e9;
    --text-muted: #cfcfcf;
}

/* Base */
html { scroll-behavior: smooth; color-scheme: dark; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text-main); line-height: 1.6; }
* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; border-radius: .2rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: .1rem solid var(--accent); outline-offset: .2rem; }
img { user-select: none; -webkit-user-select: none; }
iframe { border: none; }
ul { list-style: inside "=> "; }
ul li { margin-bottom: .3em; }
ul ::marker { color: var(--accent); }

/* Fixed Background */
body:before {
    content: ''; z-index: -1;
    position: fixed; top: 0; bottom: 0; left: 0; right: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(70,90,160,.22), transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(100,80,40,.10), transparent 22%),
        radial-gradient(circle at 60% 80%, rgba(90,110,200,.12), transparent 28%),
        linear-gradient(180deg, rgba(30,35,55,.98), rgba(25,30,45,.98));
}

/* Header */
.header { z-index: 1000; position: sticky; top: 0; width: 100%; height: 4rem; display: flex; background: color-mix(in srgb, var(--bg-main), transparent 20%); -webkit-backdrop-filter: blur(.5rem); backdrop-filter: blur(.5rem); border-bottom: var(--border-style); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 60%; }
.logo img { height: 100%; }
#nav { display: flex; gap: 2rem; }
#nav a { position: relative; transition: color .2s; color: var(--text-main); font-weight: 500; }
#nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: .13rem; background: var(--accent); transition: width .3s ease; }
#nav a:hover::after { width: 100%; }
#burger { display: none; }
@media (max-width: 36rem) {
    #nav { position: absolute; top: 3rem; right: 1rem; padding: 2rem 2.5rem; flex-direction: column; align-items: center; background: rgba(18,24,38,.95); border-radius: .8rem; }
    #burger { display: flex; flex-direction: column; justify-content: space-between; width: 1.5rem; height: 1.2rem; background: transparent; border: none; }
    #burger span { height: .2rem; background: var(--text-main); border-radius: .1rem; }

    /* Header Animation */
    #nav { display: none; transform: translate(40%, -50%) scale(0); transition: transform .2s ease; }
    #nav.open { transform: none; }
    #burger span { transition: transform .3s ease; }
    #burger.open span:nth-child(1) { transform: translateY(.5rem) rotate(45deg); }
    #burger.open span:nth-child(2) { transform: scale(0); }
    #burger.open span:nth-child(3) { transform: translateY(-.5rem) rotate(-45deg); }
}

/* Footer */
.footer { padding: 2rem 0; background: var(--bg-main); text-align: center; border-top: var(--border-style); }
.footer a { color: var(--accent); margin: 0 .4rem; text-decoration: underline dotted; text-underline-offset: .18em; }
.footer a:hover { text-decoration: underline; }
.footer p { margin-top: .5rem; color: var(--text-muted); font-size: .85rem; }

/* Sections */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-main); border-top: var(--border-style); border-bottom: var(--border-style); border-color: var(--bg-card); }
.section-title { font-size: 2rem; line-height: 1; text-align: center; margin-bottom: 3rem; }

/* Containers */
.container { width: 90%; max-width: 62rem; margin: 0 auto; }

/* Cards */
.card { margin: 0 auto; background: var(--bg-card); border: var(--border-style); border-radius: 1rem; box-shadow: 0 .25rem .75rem rgba(0,0,0,.25); }
@media (max-width: 36rem) {
    .card { margin: 0 -.4rem; }
}

/* Buttons */
.btn { padding: .8rem 2rem; border: none; border-radius: .7rem; font-weight: 500; cursor: pointer; box-shadow: 0 .1rem .5rem rgba(0,0,0,.3); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover:not(:disabled) { transform: scale(1.04); box-shadow: 0 .3rem .6rem rgba(0,0,0,.4); }
.btn.btn-primary { background: var(--accent); color: #000; font-weight: 600; }
.btn.btn-secondary { background: var(--bg-action); color: var(--text-main); }
.btn:disabled { opacity: .6; cursor: default; }
.btn i { margin-right: .4rem; }

/* Form */
form { display: flex; flex-direction: column; gap: 1rem; text-align: left; margin-top: 2rem; }
.form-row { display: flex; gap: 1rem; }
.form-input { position: relative; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
form label { font-size: .95rem; font-weight: 500; margin: 0 .5rem; }
form label i { color: var(--accent); margin-right: .4rem; }
form label sup { color: var(--accent); vertical-align: text-top; margin: .1em; }
form label .char-counter { float: right; margin-top: .4rem; font-size: .7rem; color: var(--text-muted); }
form textarea { min-height: 9rem; resize: vertical; scrollbar-width: thin; }
form input:disabled, form textarea:disabled { opacity: .6; }
form input, form textarea, .form-status {
    font-size: .98rem;
    color: var(--text-main);
    padding: .75rem;
    background: var(--bg-main);
    border: var(--border-style);
    border-radius: .5rem;
}
.form-submit-container { display: flex; flex-direction: column; gap: .6rem; }
.form-hp-input { width: 85%; height: .1rem; margin: auto; overflow: hidden; border-top: var(--border-style); }
.form-status-container { height: 0; overflow: hidden; transition: height .3s ease; }
.form-status { border-color: rgba(255, 90, 90, .35); background: rgba(255, 90, 90, .10); }
.form-status.succeed { border-color: rgba(90, 255, 90, .35); background: rgba(90, 255, 90, .10); }
form .btn { font-size: .85rem; margin: 0 auto; }
@media (max-width: 36rem) {
    form .form-row { flex-direction: column; }
}

/* Modal */
.modal { position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 2000; overflow-y: auto; background: rgba(0,0,0,.6); justify-content: center; align-items: center; flex-wrap: wrap; padding: 1.5rem; }
.modal-content { position: relative; width: 100%; max-width: 45rem; padding: 1.8rem 1.2rem 1.5rem; color: var(--text-main); background: var(--bg-main); border: var(--border-style); border-radius: .8rem; box-shadow: 0 .5rem 1.6rem rgba(0,0,0,.5); }
.modal-content .close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; font-size: 2.5rem; line-height: 0; padding-bottom: .15em; display: flex; justify-content: center; align-items: center; color: var(--text-muted); user-select: none; -webkit-user-select: none; transition: color .15s; }
.modal-content .close:hover { color: var(--text-main); }
.modal-content h2 { margin-bottom: 2rem; text-align: center; color: var(--accent); }
.modal-content h3 { margin: 2rem 0 .8rem; text-align: center; }
.modal-content h3::after {
    content: ""; display: block;
    width: 2.5rem; height: .14rem;
    margin: .2rem auto 0;
    background: var(--accent);
}
.modal-content p { margin-bottom: .8rem; }
.modal-content strong { display: inline-block; color: var(--accent); font-weight: 600; margin-top: .3em; }
@media (max-width: 36rem) {
    .modal { padding: .5rem; }
    .modal-content { padding-left: .8rem; padding-right: .8rem; }
}
#modalLegalNotice .modal-content { text-align: center; }

/* Modal Animation */
.modal { display: none; opacity: 0; transition: opacity .25s ease; }
.modal.open { opacity: 1; }
.modal-content { transform: translateY(-5rem); transition: transform .22s ease-in-out; }
.modal.open .modal-content { transform: none; }

/* Modal Link Cards */
.modal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1rem 0 .6rem; font-size: .9rem; font-weight: 500; }
.modal-links .btn { padding: .3rem .4rem; background: var(--bg-card); border: var(--border-style); border-radius: .5rem; }
.modal-links i { font-size: 1.2rem; vertical-align: text-top; color: var(--accent); }

/* Modal Gallery */
.modal-gallery-container { position: relative; height: 18rem; margin: 0 -.4rem; display: flex; justify-content: center; }
.modal-gallery-container:before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: .6rem; background: linear-gradient(to right, var(--bg-main), transparent); }
.modal-gallery-container:after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: .6rem; background: linear-gradient(to left, var(--bg-main), transparent); }
.modal-gallery { height: 100%; padding: .5rem .4rem; display: flex; gap: 1rem; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.modal-gallery > * { height: 100%; width: auto; border-radius: .6rem; box-shadow: 0 .1rem .5rem .1rem rgba(0,0,0,.25); }
.modal-gallery > iframe { aspect-ratio: 16/9; }
@media (max-width: 36rem) {
    .modal-gallery-container { height: 11rem; }
}

/* Printing */
@media print {
    html { font-size: 8pt; color-scheme: light; }
    body {
        --bg-main: white;
        --bg-card: white;
        --bg-action: white;
        --text-main: black;
    }
    body:before { display: none; }
    .header { display: none; }
    .footer { display: none; }
}
