/* Site vitrine CodEvent uniquement.
   Les réalisations clients « clé en main » se rangent dans /cle-en-main,
   pour ne pas se mélanger avec ce site.

   Polices hébergées localement (assets/fonts) : aucune requête vers un
   serveur tiers, pour la confidentialité des visiteurs et un site plus
   léger/éco-responsable. Sous-ensemble "latin" : couvre le français
   (accents inclus) et les principales langues d'Europe occidentale. */
@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../assets/fonts/outfit-500.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../assets/fonts/outfit-600.woff2") format("woff2");
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../assets/fonts/outfit-700.woff2") format("woff2");
}

@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/instrument-serif-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
}

:root {
    --white: #f7f8ff;
    --paper: #ffffff;
    --ink: #0b1230;
    --muted: #4a5478;
    --blue: #2d5bff;
    --blue-deep: #1636c9;
    --violet: #c43dff;
    --pink: #ff4db8;
    --line: rgba(11, 18, 48, 0.1);
    --shadow: 0 24px 60px rgba(22, 54, 201, 0.12);
    --radius: 22px;
    --font: "Outfit", system-ui, sans-serif;
    --display: "Instrument Serif", Georgia, serif;
    --header-pad: clamp(0.45rem, 1.6vw, 1rem);
    --page-pad: clamp(0.7rem, 6vw, 5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 160px;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(196, 61, 255, 0.16), transparent 55%),
        radial-gradient(900px 420px at -10% 8%, rgba(45, 91, 255, 0.18), transparent 50%),
        var(--white);
    line-height: 1.55;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 0.6rem;
    top: -3rem;
    z-index: 40;
    padding: 0.5rem 0.8rem;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
}

.skip-link:focus {
    top: 0.6rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    pointer-events: none;
}

.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 8;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: var(--header-pad) var(--page-pad);
    background: #0b1230;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #2ee6ff, var(--blue) 42%, var(--violet)) 1;
    transition: padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-compact {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    box-shadow: 0 10px 30px rgba(11, 18, 48, 0.28);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.brand-logo {
    width: clamp(2.6rem, 9vw, 3.8rem);
    height: clamp(2.6rem, 9vw, 3.8rem);
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
}

.brand-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3ee0ff;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease;
}

.nav-list a:hover {
    color: #fff;
}

.nav-cta {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2ee6ff, var(--blue) 42%, var(--violet));
    color: #fff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #fff;
}

.hero,
.section,
.site-footer,
.legal-wrap {
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2.5rem;
    padding-top: clamp(2rem, 8vw, 5.5rem);
    padding-bottom: 3rem;
    max-width: 90rem;
    margin: 0 auto;
}

.hero-copy {
    min-width: 0;
}

@media (min-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }
}

.eyebrow {
    margin: 0 0 0.8rem;
    font-size: clamp(0.62rem, 1.6vw, 0.78rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
}

h1 {
    margin: 0;
    max-width: 16ch;
    font-family: var(--display);
    font-size: clamp(1.55rem, 7.2vw, 6.2rem);
    font-weight: 400;
    line-height: 0.98;
}

.italic-accent {
    font-style: italic;
    background: linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    max-width: 42rem;
    margin: 1.4rem 0 1.8rem;
    color: var(--muted);
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.75rem 1.15rem;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    box-shadow: 0 18px 40px rgba(196, 61, 255, 0.28);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
}

.hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 380px;
    margin: 1rem auto 0;
}

@media (min-width: 960px) {
    .hero-stage {
        max-width: 100%;
        margin: 0;
        justify-content: flex-end;
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    animation: float 8s ease-in-out infinite;
}

.orb-blue {
    width: min(220px, 55%);
    height: min(220px, 55%);
    left: 0;
    top: 10%;
    background: rgba(45, 91, 255, 0.35);
}

.orb-pink {
    width: min(160px, 42%);
    height: min(160px, 42%);
    left: 32%;
    top: 42%;
    background: rgba(255, 77, 184, 0.32);
    animation-delay: -2.4s;
}

.ticket {
    position: relative;
    width: min(360px, 100%);
    padding: 1.3rem 1.4rem 1.1rem;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ticket-code {
    color: var(--violet);
    font-weight: 700;
}

.ticket strong {
    display: block;
    margin: 0.8rem 0 0.2rem;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.ticket p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.ticket-bar {
    height: 10px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        var(--blue) 0 10px,
        var(--violet) 10px 16px,
        transparent 16px 22px
    );
}

.marquee {
    overflow: hidden;
    background: #0b1230;
    border-block: 3px solid transparent;
    border-image: linear-gradient(90deg, #2ee6ff, var(--blue) 42%, var(--violet)) 1;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    width: max-content;
    padding: 0.9rem 0;
    animation: marquee-scroll 32s linear infinite;
    will-change: transform;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
}

.marquee-set {
    display: flex;
    flex: none;
    align-items: center;
    gap: 2.4rem;
}

.section,
.legal-wrap {
    padding-top: clamp(2.2rem, 7vw, 5.5rem);
    padding-bottom: 2rem;
    scroll-margin-top: 5rem;
}

.section-head h2,
.legal-wrap h1 {
    margin: 0;
    max-width: 18ch;
    font-family: var(--display);
    font-size: clamp(1.45rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.08;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}

.split-lead {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--muted);
}

.stats {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stats li {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stats strong {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--blue);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.2rem;
}

.card {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.card-accent {
    color: #fff;
    background: linear-gradient(160deg, var(--blue) 0%, #5a2bff 52%, var(--pink) 130%);
    border: 0;
}

.card-index {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: var(--violet);
}

.card-accent .card-index {
    color: #fff;
}

.card h3 {
    margin: 0.7rem 0 0.5rem;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card.card-accent p {
    color: rgba(255, 255, 255, 0.95);
}

.plans {
    background: #0b1230;
    color: rgba(255, 255, 255, 0.82);
    border-block: 3px solid transparent;
    border-image: linear-gradient(90deg, #2ee6ff, var(--blue) 42%, var(--violet)) 1;
}

.plans .eyebrow {
    color: #3ee0ff;
}

.plans h2,
.plans h3 {
    color: #fff;
}

.plans-lead {
    max-width: 38rem;
    margin: 1rem 0 0;
    font-size: 1rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
    padding: 1.2rem 1.1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan:hover,
.plan:focus-within,
.plan.is-chosen {
    background: #121a3a;
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(46, 230, 255, 0.75), 0 14px 36px rgba(90, 43, 255, 0.28);
}

.plan:hover .btn,
.plan:focus-within .btn,
.plan.is-chosen .btn {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    box-shadow: var(--shadow);
}

.plan h3 {
    margin: 0;
    font-size: 1.45rem;
}

.plan-for,
.plan-price {
    margin: 0;
}

.plan-for {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.plan-price {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
    color: #fff;
}

.plan ul {
    flex: 1;
    display: grid;
    gap: 0.4rem;
    margin: 0.2rem 0 0.4rem;
    padding: 0;
    list-style: none;
}

.plan li {
    position: relative;
    padding-left: 0.95rem;
    font-size: 0.92rem;
}

.plan li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: #3ee0ff;
}

.plan .btn {
    margin-top: auto;
    align-self: flex-start;
}

.plans .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.plan-badge {
    align-self: flex-start;
    margin: 0;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #041018;
    background: linear-gradient(90deg, #2ee6ff, var(--violet));
}

.plan-elite .plan-badge {
    color: #3ee0ff;
    background: transparent;
    border: 1px solid rgba(46, 230, 255, 0.55);
}

.method {
    background: linear-gradient(180deg, transparent, rgba(45, 91, 255, 0.05));
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.2rem 0 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    padding: 1.3rem 1.2rem 1.2rem;
    border-top: 3px solid var(--blue);
    background: var(--paper);
    transition: transform 0.25s ease;
}

.timeline li:hover {
    transform: translateY(-4px);
}

.timeline li:nth-child(2) {
    border-top-color: #7a4dff;
}

.timeline li:nth-child(3) {
    border-top-color: var(--violet);
}

.timeline li:nth-child(4) {
    border-top-color: var(--pink);
}

.timeline h3 {
    margin: 0 0 0.4rem;
}

.timeline p {
    margin: 0;
    color: var(--muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-mail {
    margin-top: 1.4rem;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-mail a {
    background: linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.contact-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-shortcuts {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.contact-shortcuts a {
    color: var(--blue-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.intent {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.intent legend {
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.intent-row {
    display: flex;
    gap: 0.45rem;
}

.contact-form .intent-option {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.35rem 0.4rem;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    font-size: clamp(0.68rem, 1.35vw, 0.84rem);
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    color: var(--muted);
    background: #e8ebf5;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.intent-option:hover:not(:has(input:checked)) {
    color: var(--ink);
    background: #d9deee;
}

.intent-option:has(input:checked) {
    color: #fff;
    background: linear-gradient(160deg, var(--blue) 0%, #5a2bff 52%, var(--pink) 130%);
    box-shadow: 0 10px 22px rgba(45, 91, 255, 0.22);
}

.intent-option:has(input:focus-visible) {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.intent-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.contact-form input:not([type="radio"]),
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
    font: inherit;
    color: inherit;
}

.contact-form input:not([type="radio"]):focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(45, 91, 255, 0.15);
}

.appointment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.appointment[hidden] {
    display: none !important;
}

.appointment-duration,
.appointment-note {
    grid-column: 1 / -1;
}

@media (max-width: 520px) {
    .appointment {
        grid-template-columns: 1fr;
    }
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.form-note a {
    color: var(--blue-deep);
    text-decoration: underline;
}

.form-status {
    margin: 0;
    min-height: 1.2em;
    color: var(--violet);
    font-size: 0.92rem;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 1.4rem 2.2rem;
    margin-top: 2rem;
    padding-top: 2.4rem;
    padding-bottom: 2rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    background: #0b1230;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #2ee6ff, var(--blue) 42%, var(--violet)) 1;
}

.footer-brand {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.footer-brand strong {
    color: #fff;
}

.footer-brand p {
    margin: 0.15rem 0 0;
}

.footer-contact {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    font-style: normal;
    overflow-wrap: anywhere;
}

.footer-contact span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3ee0ff;
}

.footer-contact a,
.footer-legal a,
.footer-legal button {
    color: #fff;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.42rem;
}

.footer-legal a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.footer-copy {
    margin: 0;
    grid-column: 1 / -1;
}

.legal-wrap {
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.legal-wrap h2 {
    margin: 2rem 0 0.6rem;
    font-size: 1.2rem;
}

.legal-wrap p,
.legal-wrap li {
    color: var(--muted);
}

.legal-wrap a {
    color: var(--blue-deep);
    text-decoration: underline;
}

.legal-meta {
    margin: 0.8rem 0 1.6rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.reveal {
    animation: none;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes float {
    50% { transform: translateY(-16px); }
}

@keyframes marquee-scroll {
    to { transform: translateX(calc(-1 * var(--marquee-distance, 50%))); }
}

@media (max-width: 1100px) {
    .split,
    .cards,
    .plan-grid,
    .timeline,
    .contact-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-legal {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.65rem 1.1rem;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: calc(100% + 0.4rem);
        right: var(--page-pad);
        left: var(--page-pad);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: #0b1230;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        box-shadow: var(--shadow);
    }

    .nav.is-open .nav-list {
        display: flex;
        animation: rise 0.25s ease;
    }

    .site-header {
        position: sticky;
    }

    .nav {
        position: static;
    }
}

@media (max-width: 640px) {
    .brand-tag {
        display: none;
    }

    .orb {
        opacity: 0.7;
    }
}

@media (max-width: 420px) {
    .brand-text {
        display: none;
    }

    .marquee {
        display: none;
    }

    h1 {
        max-width: none;
    }

    .btn {
        width: 100%;
    }

    .intent-row {
        gap: 0.3rem;
    }

    .contact-form .intent-option {
        min-height: 2.15rem;
        padding: 0.35rem 0.2rem;
        font-size: 0.68rem;
    }
}

@media (max-width: 280px) {
    :root {
        --page-pad: 0.45rem;
        --header-pad: 0.3rem;
        --radius: 12px;
    }

    body {
        font-size: 11px;
        line-height: 1.35;
    }

    .noise,
    .orb,
    .ticket,
    .hero-stage,
    .brand-tag,
    .scroll-progress {
        display: none;
    }

    .site-header,
    .hero,
    .section,
    .site-footer {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    h1 {
        font-size: 1.15rem;
    }

    .section-head h2 {
        font-size: 1.05rem;
    }

    .btn {
        min-height: 2.2rem;
        padding: 0.4rem 0.55rem;
        font-size: 0.8rem;
    }

    .card,
    .stats li,
    .timeline li,
    .contact-form {
        padding: 0.7rem;
    }

    .nav-toggle {
        width: 2rem;
        height: 2rem;
    }
}

@media (min-width: 1600px) {
    .hero,
    .section {
        max-width: 92rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .hero {
        padding-top: 6rem;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 22px;
    }

    :root {
        --page-pad: 8vw;
    }
}

@media (min-width: 3840px) {
    html {
        font-size: 28px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .card:hover,
    .stats li:hover,
    .timeline li:hover {
        cursor: default;
    }
}

.footer-legal button,
.cookie-settings {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1.4rem;
    margin: 0;
    max-width: none;
    padding: 0.8rem var(--page-pad) calc(0.8rem + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: #0b1230;
    color: #fff;
    box-shadow: 0 -16px 40px rgba(11, 18, 48, 0.22);
}

.consent[hidden],
.consent-panel[hidden],
.guide-panel[hidden],
.guide-fab[hidden] {
    display: none !important;
}

.consent-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3ee0ff;
}

.consent h2 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    color: #fff;
}

.consent p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
}

.consent p a {
    color: #9ec0ff;
    text-decoration: underline;
}

.consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.consent-actions .btn {
    width: 100%;
    min-height: 2.55rem;
    padding: 0.55rem 0.7rem;
    justify-content: center;
    text-align: center;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
}

.consent-actions .btn:hover,
.consent-actions .btn:active {
    transform: none;
    filter: brightness(1.08);
}

.consent-actions .btn-primary {
    border-color: transparent;
    background: linear-gradient(90deg, #2ee6ff, var(--blue) 42%, var(--violet));
    color: #fff;
    box-shadow: none;
}

.consent-panel {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.consent-choice {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.8rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.consent-choice strong {
    display: block;
}

.consent-choice span {
    grid-column: 1;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.consent-choice input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--violet);
}

.consent-choice input:disabled {
    opacity: 0.7;
}

.guide-fab {
    position: fixed;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 36;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem 0.55rem 0.55rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    color: #fff;
    box-shadow: 0 16px 36px rgba(45, 91, 255, 0.28);
    cursor: pointer;
}

.guide-fab img {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
}

.guide-fab strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.guide-panel {
    position: fixed;
    right: 0.9rem;
    bottom: 0.9rem;
    z-index: 37;
    width: min(24.5rem, calc(100vw - 1.4rem));
    height: min(34rem, calc(100vh - 1.8rem));
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.guide-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid var(--line);
}

.guide-head img {
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
}

.guide-head strong {
    display: block;
}

.guide-head p {
    margin: 0.1rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.guide-close {
    margin-left: auto;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.guide-log {
    flex: 1;
    overflow: auto;
    padding: 0.9rem 0.85rem;
    display: grid;
    align-content: start;
    gap: 0.65rem;
}

.guide-bubble {
    max-width: 92%;
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    font-size: 0.92rem;
    white-space: pre-wrap;
}

.guide-bubble.is-bot {
    background: var(--white);
    border: 1px solid var(--line);
}

.guide-bubble.is-user {
    justify-self: end;
    background: linear-gradient(135deg, rgba(45, 91, 255, 0.12), rgba(255, 77, 184, 0.12));
}

.guide-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.guide-chips button {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.guide-chips button:hover,
.guide-chips button:focus-visible {
    border-color: var(--blue);
}

.guide-chips button:disabled {
    cursor: default;
    opacity: 0.55;
}

.guide-chips button:disabled:hover,
.guide-chips button:disabled:focus-visible {
    border-color: var(--line);
}

.guide-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    padding: 0.7rem;
    border-top: 1px solid var(--line);
}

.guide-field {
    position: relative;
    min-width: 0;
}

.guide-form textarea {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    min-height: 2.8rem;
    max-height: 16rem;
}

.guide-form.is-counting textarea {
    padding-bottom: 1.55rem;
}

.guide-count {
    position: absolute;
    right: 0.7rem;
    bottom: 0.4rem;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.2;
    color: var(--muted);
    pointer-events: none;
}

.guide-count[hidden] {
    display: none !important;
}

.guide-form button {
    align-self: end;
    padding: 0.7rem 0.95rem;
    border: 0;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
}

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.guide-actions button {
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
}

.guide-actions .is-soft {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
}

.guide-open {
    margin: 0.8rem 0 0;
}

.guide-open button {
    color: var(--blue-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 860px) {
    .consent {
        grid-template-columns: 1fr;
        padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 640px) {
    .consent-actions .btn {
        min-height: 2.35rem;
        padding: 0.4rem 0.3rem;
        font-size: 0.72rem;
        white-space: normal;
        line-height: 1.15;
    }

    .guide-fab strong {
        display: none;
    }

    .guide-fab {
        padding: 0.5rem;
        right: 0.6rem;
        bottom: 0.6rem;
    }

    .guide-panel {
        inset: 0.45rem;
        width: auto;
        height: auto;
        right: 0.45rem;
        bottom: 0.45rem;
    }
}

@media (max-width: 280px) {
    .consent h2 {
        font-size: 0.95rem;
    }

    .guide-head p,
    .guide-fab {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}
