/* KAIRO — kairoscripts.com
   Ricostruzione statica del template "kairo-glass": stile, vetro, bagliori e animazioni. */

/* ---------- Font (ospitati sul sito) ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/outfit-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.woff2) format("woff2"); }

:root {
    --bg: #05050A;
    --card: #0A0A0E;
    --accent: #A78BFA;
    --accent-strong: #8B5CF6;
    --accent-deep: #6D28D9;
    --accent-soft: #C4B5FD;
    --indigo: #6366F1;
    --nebula: #D946EF;
    --violet: #8B5CF6;
    --blurple: #5865F2;
    --emerald: #34D399;
    --z200: #e4e4e7; --z300: #d4d4d8; --z400: #a1a1aa; --z500: #71717a; --z600: #52525b; --z700: #3f3f46;
    --line: rgba(255, 255, 255, 0.06);
    --line-2: rgba(255, 255, 255, 0.08);
    --line-3: rgba(255, 255, 255, 0.1);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
    margin: 0;
    background: var(--bg);
    color: #fff;
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(167, 139, 250, 0.85); color: var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; background: var(--accent); color: var(--bg); padding: .6rem 1rem; border-radius: 9999px; font-weight: 700; font-size: .875rem; }
.skip-link:focus { top: 1rem; }


/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }

.font-display { font-family: var(--font-display); }
.text-gold { color: var(--accent); }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.icon-sm { width: .875rem; height: .875rem; }
.icon-xs { width: .75rem; height: .75rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }

/* ---------- Sfondo: griglia + sfere luminose ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 9999px; filter: blur(110px); will-change: transform; }
.orb-1 { width: 42rem; height: 42rem; top: -10rem; left: -10rem; background: rgba(139, 92, 246, 0.22); }
.orb-2 { width: 36rem; height: 36rem; top: 35%; right: -13rem; background: rgba(59, 130, 246, 0.16); }
.orb-3 { width: 30rem; height: 30rem; bottom: -10rem; left: 30%; background: rgba(217, 70, 239, 0.10); }

/* ---------- Vetro ---------- */
.glass {
    position: relative;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-2);
}
.glass::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    pointer-events: none;
}
.glass-deep {
    background: rgba(10, 10, 14, 0.72);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--line-2);
}

/* Bordo animato oro -> viola -> bianco */
.animated-border { position: relative; isolation: isolate; }
.animated-border::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(120deg, #C4B5FD, #6366F1, #ffffff, #A78BFA);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderflow 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes borderflow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.breathe { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe {
    0%, 100% { box-shadow: 0 0 40px -10px rgba(167, 139, 250, 0.25); }
    50% { box-shadow: 0 0 70px -8px rgba(139, 92, 246, 0.45); }
}

/* ---------- Pulsanti ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: 9999px;
    padding: .875rem 1.75rem;
    font-family: var(--font-display); font-weight: 700; font-size: .875rem; line-height: 1.25rem;
    white-space: nowrap;
}
.btn-sm { padding: .5rem 1rem; font-size: .75rem; font-weight: 600; }
.btn-md { padding: .75rem 1.5rem; }
.btn-block { width: 100%; padding-block: 1rem; }
.btn-primary {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #DDD6FE, #A78BFA 50%, #8B5CF6);
    color: var(--bg);
    transition: transform .3s var(--spring), box-shadow .3s ease, opacity .2s;
}
.btn-primary::after {
    content: "";
    position: absolute; top: 0; left: -160%;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    transition: left .65s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(167, 139, 250, 0.55); }
.btn-primary:hover::after { left: 160%; }
.btn-primary:active { transform: translateY(0); }
.btn-primary[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn-primary[aria-busy="true"] .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-glass { color: var(--z200); font-weight: 600; transition: border-color .3s, color .3s; }
.btn-glass:hover { border-color: rgba(167, 139, 250, 0.4); color: var(--accent); }

.btn-discord { position: relative; overflow: hidden; isolation: isolate; color: #fff; transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease; }
.btn-discord::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #5865F2, #7289ff);
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    z-index: -1;
}
.btn-discord:hover::before { transform: scaleX(1); }
.btn-discord:hover { box-shadow: 0 0 28px rgba(88, 101, 242, 0.55); border-color: rgba(114, 137, 255, 0.5); transform: translateY(-2px); }
.btn-discord .sweep {
    position: absolute; top: 0; left: -160%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
    pointer-events: none;
}
.btn-discord:hover .sweep { left: 160%; }
.btn-discord .icon { transition: transform .35s var(--spring); }
.btn-discord:hover .icon { transform: rotate(-14deg) scale(1.12); }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--accent); transition: gap .3s; }
.link-arrow:hover { gap: .75rem; }
.link-back { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--z500); transition: color .2s; }
.link-back:hover { color: var(--accent); }

/* ---------- Etichette ---------- */
.chip { display: inline-flex; align-items: center; padding: .375rem .75rem; border-radius: 9999px; font-size: 11px; font-weight: 600; color: var(--z300); transition: border-color .2s, color .2s; }
.chip:hover { border-color: rgba(167, 139, 250, 0.4); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.tag { padding: .125rem .5rem; border-radius: .375rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-3); font-size: 10px; font-weight: 600; color: var(--z400); }
.badge { display: inline-block; padding: .25rem .625rem; border-radius: 9999px; background: var(--accent); color: var(--bg); font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }
.label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--z500); }
.mono-chip { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border-radius: 9999px; font-family: var(--font-mono); font-size: 10px; color: var(--emerald); }
.icon-box { width: 2.75rem; height: 2.75rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.icon-box .icon { width: 1.25rem; height: 1.25rem; }
.live-dot { position: relative; display: inline-flex; width: .5rem; height: .5rem; border-radius: 9999px; background: var(--emerald); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 9999px; background: rgba(16, 185, 129, 0.5); animation: pulse-ring 1.8s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes pulse-ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; }
.site-header .glass-deep { border-left: 0; border-right: 0; border-top: 0; }
.nav-bar { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; flex-shrink: 0; transition: opacity .2s; user-select: none; }
.brand:hover { opacity: .9; }
.brand img { width: 2rem; height: 2rem; object-fit: contain; filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55)); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.025em; color: #fff; }
.brand-word span { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a { padding: .5rem 1rem; border-radius: 9999px; font-size: .875rem; font-weight: 500; color: var(--z400); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--accent); background: rgba(167, 139, 250, 0.1); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.lang-select {
    appearance: none; -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a1a1aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .7rem center;
    border: 1px solid var(--line-3);
    border-radius: 9999px;
    padding: .5rem 1.75rem .5rem .8rem;
    font-size: .75rem; font-weight: 500; color: var(--z300);
    cursor: pointer;
    transition: border-color .2s;
}
.lang-select:hover { border-color: rgba(167, 139, 250, 0.4); }
.lang-select:focus { outline: none; border-color: rgba(167, 139, 250, 0.6); }
.lang-select option { background: var(--card); }
.nav-discord { display: none; }
.menu-btn { display: inline-flex; padding: .625rem; border-radius: 9999px; color: var(--z300); }
.menu-btn .i-close, .menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: inline-block; }
.mobile-nav { display: none; border-top: 1px solid var(--line-3); padding: .75rem 1rem; flex-direction: column; gap: .25rem; }
.menu-open .mobile-nav { display: flex; }
.mobile-nav a { padding: .625rem 1rem; border-radius: .75rem; font-size: .875rem; font-weight: 500; color: var(--z300); }
.mobile-nav a[aria-current="page"] { color: var(--accent); background: rgba(167, 139, 250, 0.1); }
.mobile-nav .btn-discord { margin-top: .25rem; border-radius: .75rem; justify-content: center; }
@media (min-width: 640px) { .nav-discord { display: inline-flex; } }
@media (min-width: 768px) { .nav-links { display: flex; } .menu-btn, .mobile-nav, .menu-open .mobile-nav { display: none; } }

main { position: relative; z-index: 10; display: block; }

/* ---------- Titoli e sezioni ---------- */
.section { padding-top: 7rem; }
.h1 { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.025em; font-size: 2.25rem; line-height: 1.05; color: #fff; }
.h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.025em; font-size: 1.875rem; line-height: 1.15; color: #fff; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.4; color: #fff; }
.sub { color: var(--z500); margin-top: .5rem; font-size: .875rem; }
.lead { color: var(--z400); font-size: .875rem; line-height: 1.625; }
.muted { color: var(--z500); font-size: .875rem; line-height: 1.625; }
@media (min-width: 640px) {
    .h1 { font-size: 3rem; }
    .h2 { font-size: 2.25rem; }
    .sub, .lead { font-size: 1rem; }
}
@media (min-width: 1024px) { .h1 { font-size: 3.75rem; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page { padding-top: 8rem; }
@media (min-width: 640px) { .page { padding-top: 10rem; } }

/* Riga che sale da una maschera */
.mask-line { display: block; overflow: hidden; padding-bottom: .06em; }
.mask-line > span { display: block; will-change: transform; }
.js .mask-line > span { animation: mask-up .9s var(--ease) both; }
.mask-line.d1 > span { animation-delay: .1s; }
.mask-line.d2 > span { animation-delay: .2s; }
.mask-line.d3 > span { animation-delay: .35s; }
@keyframes mask-up { from { transform: translateY(115%); } to { transform: translateY(0); } }
.text-gradient {
    background: linear-gradient(110deg, #C4B5FD 15%, #ffffff 35%, #A78BFA 55%, #7C3AED 85%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
.text-glow { text-shadow: 0 0 40px rgba(167, 139, 250, 0.35); }

/* Comparsa allo scroll */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .fade-up { animation: fade-up .7s ease both; }
.js .fade-in { animation: fade-in .8s ease both; }
.js .pop-in { animation: pop-in .5s ease both .1s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.delay-6 { animation-delay: .6s !important; }
.delay-75 { animation-delay: .75s !important; }
.delay-95 { animation-delay: .95s !important; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 9rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 9999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.hero-title { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.025em; font-size: 2.25rem; line-height: 1.02; }
.hero-sub { margin-top: 1.5rem; max-width: 36rem; color: var(--z400); font-size: 1rem; line-height: 1.625; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.hero .chips { margin-top: 2rem; }
.hero-logo { display: none; position: relative; justify-content: center; }
.hero-logo-glow { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-logo-glow::before { content: ""; width: 22rem; height: 22rem; border-radius: 9999px; background: radial-gradient(circle, rgba(139, 92, 246, 0.38), rgba(99, 102, 241, 0.16) 50%, transparent 70%); filter: blur(30px); animation: glow-pulse 5s ease-in-out infinite; }
.hero-logo img { position: relative; width: 16.5rem; height: auto; filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.45)); }
.float-slow { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@media (min-width: 640px) { .hero { padding-top: 11rem; } .hero-title { font-size: 3rem; } .hero-sub { font-size: 1.125rem; } }
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.2fr .8fr; }
    .hero-title { font-size: 4.5rem; }
    .hero-logo { display: flex; }
}

/* Striscia punti di forza (al posto dei numeri demo) */
.strip { margin-top: 4rem; border-radius: 1.5rem; display: grid; grid-template-columns: 1fr; }
.strip-item { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border: 0 solid var(--line); }
.strip-item + .strip-item { border-top-width: 1px; }
.strip-value { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.3; color: #fff; }
.strip-label { font-size: .75rem; color: var(--z500); }
@media (min-width: 480px) {
    .strip { grid-template-columns: repeat(2, 1fr); }
    .strip-item + .strip-item { border-top-width: 0; }
    .strip-item:nth-child(2n) { border-left-width: 1px; }
    .strip-item:nth-child(n+3) { border-top-width: 1px; }
}
@media (min-width: 640px) { .strip-item { padding: 1.5rem 2rem; } .strip-value { font-size: 1.5rem; } }
@media (min-width: 1024px) {
    .strip { grid-template-columns: repeat(4, 1fr); }
    .strip-item:nth-child(n+3) { border-top-width: 0; }
    .strip-item + .strip-item { border-left-width: 1px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 1.25rem 0; overflow: hidden; user-select: none; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 2.5rem; font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: .3em; color: var(--z600); white-space: nowrap; }
.marquee-track span::after { content: ""; width: .375rem; height: .375rem; border-radius: 9999px; background: rgba(167, 139, 250, 0.6); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Pacchetto in evidenza ---------- */
.featured { border-radius: 2rem; overflow: hidden; }
.featured-grid { display: grid; }
.featured-body { padding: 2rem; }
.featured-body .h2 { margin-top: .75rem; }
.featured-body .lead { margin-top: .75rem; }
.featured-body .label { display: block; margin: 2rem 0 1rem; }
.check-list { display: grid; gap: .625rem 1.5rem; }
.check-list li { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; color: var(--z300); }
.check-list .icon { color: var(--accent); margin-top: .125rem; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2.5rem; }
.price { font-size: .875rem; color: var(--z500); }
.price strong { font-family: var(--font-display); font-weight: 900; font-size: 1.875rem; color: #fff; }
.price:empty { display: none; }
.soon-chip { display: inline-flex; padding: .3rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-soft); background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(167, 139, 250, 0.35); }
.featured-visual { position: relative; min-height: 22rem; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.28), transparent 60%), radial-gradient(ellipse at 20% 90%, rgba(167, 139, 250, 0.10), transparent 55%), var(--card); }
@media (min-width: 640px) { .featured-body { padding: 3rem; } .check-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: 1fr 1fr; } .featured-visual { min-height: 0; } }

/* Pannello moduli (illustrazione interattiva di Shikigami) */
.panel { width: 100%; max-width: 24rem; border-radius: 1.25rem; padding: 1rem; box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.55); }
.panel-head { display: flex; align-items: center; gap: .75rem; padding: .25rem .25rem .875rem; border-bottom: 1px solid var(--line-2); }
.panel-dots { display: flex; gap: .3rem; }
.panel-dots i { width: .55rem; height: .55rem; border-radius: 9999px; background: var(--z700); }
.panel-dots i:first-child { background: #f87171; } .panel-dots i:nth-child(2) { background: #fbbf24; } .panel-dots i:nth-child(3) { background: #34d399; }
.panel-title { flex: 1; font-family: var(--font-mono); font-size: 11px; color: var(--z400); }
.panel-status { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: 10px; color: var(--emerald); }
.panel-list { padding: .5rem 0; }
.panel-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem .25rem; }
.panel-list li + li { border-top: 1px solid var(--line); }
.mod-ico { width: 2.1rem; height: 2.1rem; border-radius: .7rem; display: flex; align-items: center; justify-content: center; background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.3); color: #c4b5fd; flex-shrink: 0; }
.mod-name { flex: 1; min-width: 0; font-size: .875rem; font-weight: 600; color: #fff; line-height: 1.25; }
.mod-name small { display: block; font-size: 11px; font-weight: 400; color: var(--z500); }
.switch { position: relative; width: 2.4rem; height: 1.35rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-3); flex-shrink: 0; transition: background-color .3s, box-shadow .3s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.35rem - 6px); height: calc(1.35rem - 6px); border-radius: 9999px; background: var(--z400); transition: transform .35s var(--spring), background-color .3s; }
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px rgba(167, 139, 250, 0.4); }
.switch[aria-checked="true"]::after { transform: translateX(1.05rem); background: var(--bg); }
.panel-foot { display: flex; align-items: center; gap: .5rem; padding: .875rem .25rem .25rem; border-top: 1px solid var(--line-2); font-size: 11px; color: var(--z400); }
.panel-foot .icon { color: var(--accent); }

/* ---------- Schede prodotto ---------- */
.grid-2, .grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border-radius: 1.5rem; }
.card-hover { transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease; }
.card-hover:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, 0.45); box-shadow: 0 24px 70px -24px rgba(139, 92, 246, 0.4), 0 8px 30px -12px rgba(0, 0, 0, 0.8); }
.product-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.product-media { position: relative; display: block; height: 13rem; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .7s, transform .7s; }
.product-media:hover img { opacity: 1; transform: scale(1.05); }
.product-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--card), transparent 60%); pointer-events: none; }
.product-media .badge { position: absolute; top: .75rem; left: .75rem; z-index: 1; }
.product-media .mono-chip { position: absolute; bottom: .75rem; right: .75rem; z-index: 1; }
.media-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.3), transparent 60%), var(--card); }
.media-art span { background: linear-gradient(160deg, #EDE9FE, #A78BFA 60%, #6D28D9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .55; font-family: var(--font-display), "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; font-weight: 900; font-size: 4.5rem; letter-spacing: .05em; color: rgba(196, 181, 253, 0.35); text-shadow: 0 0 40px rgba(139, 92, 246, 0.5); transition: transform .7s var(--ease), color .7s; }
.product-media:hover .media-art span { transform: scale(1.06); opacity: .8; }
.product-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.product-body .h3 a { transition: color .2s; }
.product-body .h3 a:hover { color: var(--accent); }
.product-body .muted { margin-top: .25rem; }
.product-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.product-foot .price strong { font-size: 1.25rem; font-weight: 800; }
.product-foot .actions { display: flex; gap: .5rem; margin-left: auto; }
.soon-card { padding: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .75rem; min-height: 16rem; border-style: dashed; border-color: rgba(255, 255, 255, 0.12); }

/* ---------- Bento "Perché KAIRO" ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; grid-auto-flow: dense; }
.bento-card { padding: 2rem; height: 100%; display: flex; flex-direction: column; }
.bento-art { display: block; width: 100%; height: auto; max-height: 9.5rem; margin-bottom: 1.25rem; overflow: visible; transition: filter .5s ease, transform .6s var(--ease); }
.bento-card:hover .bento-art { filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.45)); transform: translateY(-3px); }
.bento-big .bento-art { max-height: 18rem; margin: auto 0; padding-block: 1rem 2rem; }
.ia-pulse, .ia-spin, .ia-float, .ia-dot, .ia-progress { transform-box: fill-box; transform-origin: center; }
.ia-pulse { animation: glow-pulse 4s ease-in-out infinite; }
.ia-spin { animation: spin 14s linear infinite; }
.ia-dash { stroke-dasharray: 6 6; animation: ia-dash 1.2s linear infinite; }
.ia-progress { transform-origin: left center; animation: ia-progress 3.4s ease-in-out infinite; }
.ia-blink { animation: ia-blink 1s steps(1) infinite; }
.ia-knob { animation: ia-knob 3.2s ease-in-out infinite; }
.ia-track { animation: ia-track 3.2s ease-in-out infinite; }
.ia-dot { animation: ia-dot 1.3s ease-in-out infinite; }
.ia-dot.d2, .ia-node.d2 { animation-delay: .2s; }
.ia-dot.d3 { animation-delay: .4s; }
.ia-node { animation: twinkle 3s ease-in-out infinite; }
.ia-node.d2 { animation-delay: 1.4s; }
.ia-float { animation: ia-float 5s ease-in-out infinite; }
@keyframes ia-dash { to { stroke-dashoffset: -24; } }
@keyframes ia-progress { 0% { transform: scaleX(.04); } 70%, 100% { transform: scaleX(1); } }
@keyframes ia-blink { 50% { opacity: 0; } }
@keyframes ia-knob { 0%, 40% { transform: translateX(0); } 50%, 90% { transform: translateX(20px); } }
@keyframes ia-track { 0%, 40% { fill: rgba(255, 255, 255, 0.1); } 50%, 90% { fill: #A78BFA; } }
@keyframes ia-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes ia-float { 50% { transform: translateY(-4px); } }
.bento-card .muted { margin-top: .5rem; }
.bento-big .bento-card { justify-content: flex-end; min-height: 16rem; }
.bento-big .h3 { font-size: 1.5rem; }
@media (min-width: 768px) {
    .bento { grid-template-columns: repeat(4, 1fr); }
    .span-4 { grid-column: span 4; }
    .span-2 { grid-column: span 2; }
}
@media (min-width: 1024px) {
    .bento { grid-template-columns: repeat(8, 1fr); }
    .bento-big { grid-row: span 2; }
}

/* ---------- 4 passi ---------- */
.steps { position: relative; margin-top: 3rem; }
.steps-line { display: none; position: absolute; top: 1.5rem; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, var(--accent), var(--violet), var(--accent)); transform-origin: left; }
.js .steps-line { transform: scaleX(0); transition: transform 1.4s ease-in-out; }
.js .steps-line.in { transform: scaleX(1); }
.steps-grid { display: grid; gap: 1.5rem; }
.step { padding: 2rem; height: 100%; }
.step-num { width: 3rem; height: 3rem; border-radius: 9999px; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 24px rgba(167, 139, 250, 0.45); }
.step .h3 { font-size: 1rem; margin-top: 1.25rem; }
.step .muted { margin-top: .5rem; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } .steps-line { display: block; } }

/* ---------- Community ---------- */
.community { display: grid; gap: 2.5rem; align-items: center; }
.community-media { position: relative; border-radius: 2rem; overflow: hidden; }
.community-media img { width: 100%; height: 26rem; object-fit: cover; opacity: .85; }
.community-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 55%); pointer-events: none; }
.community-card { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 1; border-radius: 1rem; padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.community-card p:first-child { font-family: var(--font-display); font-weight: 700; color: #fff; }
.community-card .status { display: flex; align-items: center; gap: .5rem; margin-top: .25rem; font-size: .75rem; color: var(--z400); }
.community-card .icon { width: 2rem; height: 2rem; color: var(--blurple); }
.community .lead { margin-top: 1rem; }
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 2rem; }
.channels span { background: rgba(15, 15, 20, 0.6); border: 1px solid var(--line-2); border-radius: .75rem; padding: .75rem 1rem; font-family: var(--font-mono); font-size: .8rem; color: var(--z300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channels span::before { content: "# "; color: var(--z600); }
.community .btn-discord { margin-top: 2rem; }
@media (min-width: 1024px) { .community { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 10; border-top: 1px solid var(--line); margin-top: 8rem; }
.footer-grid { padding-block: 4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.footer-brand { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-title { font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: #fff; margin-bottom: 1rem; }
.footer-grid li + li { margin-top: .625rem; }
.footer-grid li a { font-size: .875rem; color: var(--z500); transition: color .2s; }
.footer-grid li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .container { padding-block: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; text-align: center; }
.footer-bottom p { font-size: .75rem; color: var(--z600); }
.footer-bottom p + p { font-size: 11px; color: var(--z700); }
@media (min-width: 640px) { .footer-bottom .container { flex-direction: row; text-align: left; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: span 4; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-brand { grid-column: span 1; } }
.footer-tebex { border-top: 1px solid var(--line); }
.footer-tebex p { padding-block: 1.25rem; font-size: .75rem; line-height: 1.6; color: var(--z500); text-align: center; }

/* ---------- Store ---------- */
.store-featured { margin-top: 3rem; border-radius: 2rem; padding: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.store-featured .h2 { margin-top: 1rem; font-size: 1.5rem; }
.store-featured .lead { margin-top: .5rem; max-width: 32rem; }
.store-featured .tags { margin-top: 1rem; }
.store-featured-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; flex-shrink: 0; }
.store-featured-side .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 640px) { .store-featured { padding: 2.5rem; } .store-featured .h2 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .store-featured { flex-direction: row; align-items: center; } .store-featured > div:first-child { flex: 1; } .store-featured-side { align-items: flex-end; } }

/* ---------- Pagina prodotto ---------- */
.product-layout { display: grid; gap: 2.5rem; margin-top: 2rem; }
.product-hero { border-radius: 2rem; overflow: hidden; position: relative; min-height: 18rem; display: flex; align-items: center; justify-content: center; }
.product-hero > img { width: 100%; height: 100%; object-fit: cover; }
.product-hero.has-panel { padding: 2.5rem 1.25rem; background: radial-gradient(ellipse at 70% 20%, rgba(139, 92, 246, 0.3), transparent 60%), radial-gradient(ellipse at 10% 90%, rgba(167, 139, 250, 0.10), transparent 55%), var(--card); }
.product-title { margin-top: 2.5rem; }
.product-info .lead { margin-top: 1rem; max-width: 42rem; }
.product-info .chips { margin-top: 1.5rem; }
.product-info .h3 { margin-top: 3rem; font-size: 1.25rem; }
.product-info .check-list { margin-top: 1.25rem; }
.product-info .link-arrow { margin-top: 2rem; }
.buy-panel { border-radius: 2rem; padding: 2rem; }
.buy-panel .muted { margin-top: 1.5rem; font-size: .8rem; }
.buy-panel-price { border-top: 1px solid var(--line-2); margin-top: 2rem; padding-top: 2rem; }
.buy-panel-price .price strong { font-size: 2.25rem; }
.buy-panel-price .btn { margin-top: 1.5rem; }
.buy-note { display: flex; align-items: center; justify-content: center; gap: .375rem; margin-top: 1rem; font-size: 11px; color: var(--z500); text-align: center; }
.buy-note .icon { color: var(--emerald); }
@media (min-width: 640px) { .product-hero { min-height: 24rem; } .buy-panel { padding: 2.5rem; } }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.1fr .9fr; } .buy-panel { position: sticky; top: 6rem; } }

/* ---------- Docs ---------- */
.search-box { margin-top: 2.5rem; max-width: 42rem; border-radius: 1rem; }
.search-box label { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; }
.search-box .icon { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.search-box input { width: 100%; background: transparent; border: 0; font-size: .875rem; color: #fff; }
.search-box input::placeholder { color: var(--z600); }
.search-box input:focus { outline: none; }
.search-meta { margin-top: .75rem; font-family: var(--font-mono); font-size: .75rem; color: var(--z600); }
.search-results { max-width: 42rem; margin-top: 1rem; border-radius: 1rem; padding: .5rem; }
.search-results[hidden] { display: none; }
.search-results a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-radius: .75rem; font-size: .875rem; color: var(--z300); }
.search-results a:hover, .search-results a:focus-visible { background: rgba(255, 255, 255, 0.05); color: var(--accent); }
.search-results small { display: block; color: var(--z500); font-size: .75rem; }
.search-results p { padding: .75rem 1rem; font-size: .875rem; color: var(--z500); }
.docs-card { padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.docs-letter { width: 2.75rem; height: 2.75rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-family: var(--font-display); font-weight: 900; }
.docs-letter.violet { background: rgba(139, 92, 246, 0.14); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.docs-letter.indigo { background: rgba(99, 102, 241, 0.14); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.32); }
.quick-links { display: flex; flex-direction: column; gap: .25rem; margin-top: 1rem; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; padding: .375rem 0; font-size: .875rem; color: var(--z400); transition: color .2s; }
.quick-links a .icon { width: .875rem; height: .875rem; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.quick-links a:hover { color: var(--accent); }
.quick-links a:hover .icon { opacity: 1; transform: none; }
.docs-bottom { display: grid; gap: 1.5rem; margin-top: 3.5rem; }
.most-read { padding: 2rem; height: 100%; }
.most-read .kicker { display: flex; align-items: center; gap: .5rem; letter-spacing: .2em; }
.most-read ul { margin-top: 1.25rem; }
.most-read li a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--z300); transition: color .2s; }
.most-read li:last-child a { border-bottom: 0; }
.most-read li a .icon { color: var(--z600); transition: color .2s; }
.most-read li a:hover, .most-read li a:hover .icon { color: var(--accent); }
.ticket-box { padding: 2rem; height: 100%; display: flex; flex-direction: column; gap: 1.5rem; }
.ticket-box .icon-box { width: 3.5rem; height: 3.5rem; color: var(--blurple); }
.ticket-box .icon-box .icon { width: 1.75rem; height: 1.75rem; }
.ticket-box > div:nth-child(2) { flex: 1; }
.ticket-box .muted { margin-top: .25rem; }
@media (min-width: 640px) { .ticket-box { flex-direction: row; align-items: center; } }
@media (min-width: 1024px) { .docs-bottom { grid-template-columns: 1fr 1.2fr; } }

.doc-layout { display: grid; gap: 3rem; }
.doc-aside { display: none; }
.doc-aside-inner { position: sticky; top: 6rem; }
.doc-aside .label { display: block; color: var(--z600); margin-bottom: 1rem; }
.doc-nav { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 2rem; }
.doc-nav a { padding: .625rem 1rem; border-radius: .75rem; font-size: .875rem; font-weight: 500; color: var(--z400); border: 1px solid transparent; transition: color .2s, background-color .2s; }
.doc-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.doc-nav a[aria-current="true"] { color: var(--accent); background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.2); }
.doc-nav-sm a { padding: .5rem 1rem; font-size: .75rem; color: var(--z500); }
.doc-mobile-nav { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-top: 1.5rem; scrollbar-width: none; }
.doc-mobile-nav a { flex-shrink: 0; }
.doc-mobile-nav a[aria-current="true"] { color: var(--accent); border-color: rgba(167, 139, 250, 0.4); }
.doc-article { max-width: 48rem; }
.js .doc-article:not(.is-active) { display: none; }
.doc-article + .doc-article { margin-top: 4rem; }
.js .doc-article + .doc-article { margin-top: 0; }
.doc-article .kicker { display: block; margin-top: 2rem; }
.doc-article h1 { margin-top: .5rem; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.025em; font-size: 1.875rem; color: #fff; }
.prose { margin-top: 2rem; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; margin: 2.5rem 0 .75rem; }
.prose p { color: var(--z400); font-size: .875rem; line-height: 1.7; margin: 1rem 0; }
.prose ul { margin: 1rem 0; }
.prose li { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; color: var(--z300); line-height: 1.6; }
.prose li + li { margin-top: .625rem; }
.prose li::before { content: ""; width: .375rem; height: .375rem; border-radius: 9999px; background: var(--accent); margin-top: .5rem; flex-shrink: 0; }
.prose strong { color: #fff; font-weight: 600; }
.prose code { font-size: .85em; padding: .1em .4em; border-radius: .35rem; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--z200); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.callout { margin: 1.5rem 0; padding: 1rem 1.25rem; border-radius: 1rem; background: rgba(167, 139, 250, 0.06); border: 1px solid rgba(167, 139, 250, 0.25); font-size: .875rem; color: var(--z300); line-height: 1.6; }
.code-block { margin: 1.5rem 0; border-radius: 1rem; overflow: hidden; background: rgba(5, 5, 10, 0.85); border: 1px solid var(--line-2); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: .625rem 1rem; border-bottom: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.code-head span { font-family: var(--font-mono); font-size: 11px; color: var(--z500); }
.copy-btn { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem; border-radius: .375rem; font-size: 11px; font-weight: 600; color: var(--z400); transition: color .2s, background-color .2s; }
.copy-btn:hover { color: var(--accent); background: rgba(255, 255, 255, 0.05); }
.copy-btn.copied { color: var(--emerald); background: rgba(52, 211, 153, 0.1); }
.code-block pre { margin: 0; padding: 1.25rem; font-size: 13px; line-height: 1.7; color: var(--z300); overflow-x: auto; }
.code-block pre code { font-size: inherit; padding: 0; border: 0; background: none; color: inherit; }
.code-block pre .c { color: var(--z600); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.pager a { border-radius: 1rem; padding: 1.25rem; }
.pager a[hidden] { display: none; }
.pager .next { grid-column: 2; text-align: right; }
.pager small { display: flex; align-items: center; gap: .375rem; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--z600); }
.pager .next small { justify-content: flex-end; }
.pager small .icon { width: .75rem; height: .75rem; transition: transform .2s; }
.pager .prev:hover small .icon { transform: translateX(-4px); }
.pager .next:hover small .icon { transform: translateX(4px); }
.pager strong { display: block; margin-top: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: #fff; }
@media (min-width: 640px) { .doc-article h1 { font-size: 2.25rem; } .prose p { font-size: 1rem; } }
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 16rem 1fr; } .doc-aside { display: block; } .doc-mobile-nav { display: none; } }

/* ---------- Pagine semplici (checkout, 404) ---------- */
.result { max-width: 36rem; margin-inline: auto; text-align: center; padding: 3rem 2rem; border-radius: 2rem; }
.result .icon-box { margin: 0 auto 1.5rem; width: 3.5rem; height: 3.5rem; }
.result .lead { margin-top: 1rem; }
.result .btn { margin-top: 2rem; }

/* ---------- Avvisi ---------- */
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 2rem); }
.toast { background: rgba(15, 15, 20, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; padding: .85rem 1.1rem; border-radius: .9rem; font-size: .875rem; max-width: 22rem; box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.8); animation: toast-in .35s var(--ease) both; }
.toast.out { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Cielo stellato ---------- */
.stars { position: absolute; inset: -50% 0 0; background-repeat: repeat; animation: stars-drift 160s linear infinite; }
.stars-1 { background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.8), transparent), radial-gradient(1px 1px at 200px 160px, rgba(196,181,253,.9), transparent), radial-gradient(1px 1px at 60px 210px, #fff, transparent), radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,.7), transparent); background-size: 300px 260px; opacity: .45; }
.stars-2 { background-image: radial-gradient(1.5px 1.5px at 80px 120px, #fff, transparent), radial-gradient(1.5px 1.5px at 340px 60px, rgba(196,181,253,.95), transparent), radial-gradient(1.5px 1.5px at 220px 300px, #fff, transparent); background-size: 420px 380px; opacity: .5; animation: stars-drift 220s linear infinite, twinkle 6s ease-in-out infinite; }
.stars-3 { background-image: radial-gradient(2px 2px at 150px 90px, rgba(237,233,254,.95), transparent), radial-gradient(2px 2px at 480px 420px, rgba(165,180,252,.9), transparent); background-size: 620px 560px; opacity: .55; animation: stars-drift 300s linear infinite, twinkle 9s ease-in-out infinite 2s; }
@keyframes stars-drift { from { transform: translateY(0); } to { transform: translateY(33%); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .7; } }

/* ---------- Logo: anello orbitale e scintille ---------- */
.hero-logo-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 24rem; height: 24rem; }
.orbit { position: absolute; inset: 0; border-radius: 9999px; border: 1px solid rgba(196, 181, 253, 0.14); }
.orbit::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from 0deg, transparent 0 70%, rgba(196, 181, 253, 0.9) 85%, #fff 90%, transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 9s linear infinite; }
.orbit-2 { inset: 2.75rem; border-color: rgba(99, 102, 241, 0.16); }
.orbit-2::before { animation-duration: 14s; animation-direction: reverse; background: conic-gradient(from 90deg, transparent 0 75%, rgba(165, 180, 252, 0.8) 88%, transparent 96%); }
.orbit i { position: absolute; top: 50%; left: 50%; width: .5rem; height: .5rem; margin: -.25rem; border-radius: 9999px; background: #EDE9FE; box-shadow: 0 0 12px 3px rgba(167, 139, 250, 0.8); transform: rotate(0deg) translateX(12rem); animation: orbit-dot 9s linear infinite; }
.orbit-2 i { width: .35rem; height: .35rem; margin: -.175rem; transform: rotate(0deg) translateX(9.25rem); animation: orbit-dot-2 14s linear infinite reverse; }
@keyframes orbit-dot { from { transform: rotate(0deg) translateX(12rem); } to { transform: rotate(360deg) translateX(12rem); } }
@keyframes orbit-dot-2 { from { transform: rotate(0deg) translateX(9.25rem); } to { transform: rotate(360deg) translateX(9.25rem); } }
.sparkle { position: absolute; width: 1.1rem; height: 1.1rem; animation: sparkle 3.2s ease-in-out infinite; pointer-events: none; }
.sparkle::before, .sparkle::after { content: ""; position: absolute; inset: 0; margin: auto; background: #fff; border-radius: 9999px; box-shadow: 0 0 10px 2px rgba(196, 181, 253, 0.9); }
.sparkle::before { width: 100%; height: 2px; }
.sparkle::after { width: 2px; height: 100%; }
.sparkle.s1 { top: 12%; right: 16%; }
.sparkle.s2 { bottom: 18%; left: 10%; width: .8rem; height: .8rem; animation-delay: 1.1s; }
.sparkle.s3 { top: 30%; left: 4%; width: .6rem; height: .6rem; animation-delay: 2.2s; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: .8; } }
@keyframes glow-pulse { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
.hero-logo img { transition: transform .6s var(--ease); }
.brand img { transition: transform .5s var(--spring), filter .5s; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.9)); }

/* ---------- Luce che segue il puntatore sulle schede ---------- */
.card { position: relative; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 139, 250, 0.14), transparent 65%); opacity: 0; transition: opacity .45s ease; pointer-events: none; z-index: 1; }
.card:hover::after { opacity: 1; }
.cursor-glow { position: fixed; top: 0; left: 0; z-index: 5; width: 36rem; height: 36rem; margin: -18rem 0 0 -18rem; border-radius: 9999px; background: radial-gradient(circle, rgba(139, 92, 246, 0.10), transparent 60%); pointer-events: none; opacity: 0; transition: opacity .6s; will-change: transform; }
.cursor-glow.on { opacity: 1; }

/* Testata più piena dopo lo scroll */
.site-header .glass-deep { transition: background-color .4s, box-shadow .4s; }
.site-header.scrolled .glass-deep { background: rgba(8, 6, 16, 0.86); box-shadow: 0 10px 40px -20px rgba(139, 92, 246, 0.45); }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .marquee-track, .stars, .orbit::before, .orbit i { animation: none; }
    .cursor-glow { display: none; }
}
