/* Messenfeur website: the Nuit identity (design/IDENTITY.md). */
:root {
    --night: #05061C;
    --surface: #0D0F33;
    --raised: #1A1D4A;
    --container: #14177A;
    --deep: #080A3A;
    --acid: #8C96FF;
    --ultramarine: #2B2FD6;
    --bright: #C3C8FF;
    --lime: #D6FF3D;
    --text: #ECEEFB;
    --secondary: #B7BBDD;
    --outline: #2C3170;
    --brand: 'Google Sans Flex', 'Roboto Flex', system-ui, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font-family: var(--brand);
    font-variation-settings: 'ROND' 0;
    font-size: 18px;
    line-height: 1.55;
}

a { color: var(--acid); }

.icon {
    font-family: 'Material Symbols Rounded';
    font-size: 24px;
    line-height: 1;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
}

/* Background: two large bubbles, the logo's motif, lit from the top left. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bubble { position: absolute; border-radius: 50%; }
.bubble.one { width: 70vmax; height: 70vmax; left: -28vmax; top: 38vh; background: linear-gradient(135deg, var(--container), var(--deep)); }
.bubble.one::after, .bubble.two::after { content: ''; position: absolute; width: 22%; height: 22%; background: inherit; }
.bubble.one::after { right: 8%; bottom: -6%; transform: rotate(45deg); border-radius: 0 0 40% 0; }
.bubble.two { width: 46vmax; height: 46vmax; right: -16vmax; top: -18vmax; background: linear-gradient(135deg, #2A3290, var(--deep)); }
.bubble.two::after { left: 4%; top: -4%; border-radius: 40% 0 0 0; }

.hero {
    max-width: 920px;
    margin: 0 auto;
    padding: 88px 24px 40px;
    text-align: center;
}

.logo { width: 112px; height: 112px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }

h1, h2, h3, .button, .badge, figcaption, summary {
    font-family: var(--brand);
    font-variation-settings: 'ROND' 100;
}

h1 { font-size: clamp(56px, 10vw, 96px); font-weight: 780; letter-spacing: -0.02em; margin: 16px 0 8px; line-height: 1; }
h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 24px; }
h3 { font-size: 22px; font-weight: 600; margin: 8px 0 4px; }

.lead { font-size: clamp(20px, 2.6vw, 26px); color: var(--secondary); max-width: 720px; margin: 0 auto 20px; }

.services { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 28px; }
.badge { padding: 6px 16px; border-radius: 999px; font-weight: 550; font-size: 16px; border: 2px solid var(--outline); background: var(--surface); }
.badge::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.badge.signal::before { background: #3A76F0; }
.badge.instagram::before { background: linear-gradient(45deg, #FFD25E, #D62976, #4F5BD5); }
.badge.sms::before { background: #0E7C86; }
.badge.whatsapp::before { background: #25D366; }
.badge.telegram::before { background: #2AABEE; }
.badge.messenger::before { background: linear-gradient(45deg, #0866FF, #A033FF); }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px;
    background: var(--raised); color: var(--text);
    text-decoration: none; font-weight: 600; font-size: 17px;
    border: 2px solid var(--outline);
    transition: transform .2s cubic-bezier(.2, 0, 0, 1), background .2s;
}
.button:hover { transform: translateY(-2px); background: #23275C; }
.button:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.button.primary { background: var(--acid); color: var(--night); border-color: var(--acid); }
.button.primary:hover { background: var(--bright); }

.note { color: var(--secondary); font-size: 15px; margin-top: 18px; }
.note::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 8px; vertical-align: 1px; }

main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.screens {
    display: flex; gap: 20px; overflow-x: auto;
    padding: 24px 4px 16px; scroll-snap-type: x mandatory;
}
.screens figure { flex: 0 0 240px; margin: 0; scroll-snap-align: start; text-align: center; }
.screens img {
    width: 100%; height: auto; border-radius: 28px;
    border: 6px solid var(--raised); outline: 2px solid #474C86;
    box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
}
.screens figcaption { margin-top: 12px; color: var(--secondary); font-weight: 550; }
.caption { color: var(--secondary); font-size: 15px; text-align: center; margin: 4px 0 64px; }

section { margin-bottom: 88px; }

.card {
    background: var(--surface);
    border: 2px solid var(--outline);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
}
.card .icon { color: var(--acid); font-size: 32px; }
.card p { margin: 0; color: var(--secondary); }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.list ul { margin: 8px 0 0; padding-left: 22px; color: var(--secondary); }
.list h3 { display: flex; align-items: center; gap: 10px; }
.icon.ok { color: var(--acid); }
.icon.no { color: #FFB4AB; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

details {
    background: var(--surface); border: 2px solid var(--outline); border-radius: 24px;
    padding: 18px 24px; margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 600; font-size: 19px; }
details p { color: var(--secondary); margin: 12px 0 0; }

footer { text-align: center; color: var(--secondary); padding: 40px 24px 64px; font-size: 15px; }
