:root {
    --bg: #0b1020;
    --panel: #121a33;
    --panel-2: #0f1730;
    --text: #e8ecff;
    --muted: #b7c0ff;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #7c5cff;
    --accent-2: #00d4ff;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 700px at 20% 0%, rgba(124, 92, 255, 0.25), transparent 60%),
                radial-gradient(1000px 600px at 80% 10%, rgba(0, 212, 255, 0.18), transparent 60%),
                var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; }
code { color: var(--muted); }

.container {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 16, 32, 0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    color: var(--muted);
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
    color: var(--text);
    border-color: rgba(124, 92, 255, 0.55);
    background: rgba(124, 92, 255, 0.12);
}

.site-main {
    padding: 2rem 0 2.5rem;
}

.hero {
    padding: 2rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(18, 26, 51, 0.95), rgba(15, 23, 48, 0.85));
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2.25rem;
    line-height: 1.2;
}

.hero p { margin: 0.25rem 0 0; color: var(--muted); }

.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

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

@media (max-width: 860px) {
    .grid { grid-template-columns: 1fr; }
}

.card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    background: rgba(18, 26, 51, 0.7);
}

.card h1 { margin-top: 0; }
.card h2 { margin-top: 0; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.95rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(124, 92, 255, 0.65);
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.95), rgba(0, 212, 255, 0.75));
    color: #071022;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button:hover { filter: brightness(1.05); }

.button.button-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: var(--border);
}

.muted { color: var(--muted); }

.notice {
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.75rem 0 0;
}

.notice-success { border-color: rgba(0, 212, 255, 0.35); }
.notice-error { border-color: rgba(255, 107, 107, 0.45); }

.form {
    display: grid;
    gap: 0.85rem;
}

label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
}

input, textarea {
    width: 100%;
    padding: 0.6rem 0.65rem;
    border-radius: 0.7rem;
    border: 1px solid var(--border);
    background: rgba(11, 16, 32, 0.6);
    color: var(--text);
}

textarea { resize: vertical; }

.honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    background: rgba(11, 16, 32, 0.6);
}

.layout-landing {
    background: #000;
}

body.layout-landing {
    margin: 0;
    height: 100%;
    background: #000;
    color: #fff;
}

.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
    background: #000;
}

.landing__picture { display: block; }

.landing__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 86vh;
    opacity: 0;
    animation: fadeInImage 6s ease forwards;
}

@media (min-width: 769px) {
    .landing__image { max-width: 1080px; }
}

.landing__text {
    margin-top: clamp(12px, 2vh, 22px);
    padding-bottom: clamp(8px, 1.75vh, 18px);
    opacity: 0;
    color: #D4AF37;
    font-family: "French Script MT", "Brush Script MT", cursive;
    font-size: clamp(28px, 4vw, 64px);
    animation: fadeInText 2s ease forwards;
    animation-delay: 5.5s;
}

.sound-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #D4AF37;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sound-toggle[data-state="blocked"] {
    opacity: 0.8;
}

.sound-toggle:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.55);
}

.sound-toggle:active {
    transform: scale(0.98);
}

.sound-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

@keyframes fadeInImage {
    to { opacity: 1; }
}

@keyframes fadeInText {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .landing__image,
    .landing__text {
        animation: none;
        opacity: 1;
    }
}
