/* =============================================================================
   FM Agency AI — style.css
   Design Tokens + Reset + All Styles
   ============================================================================= */

:root {
  --bg: #080808;
  --surface: #111111;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(139,92,246,0.25);
  --border-accent-sm: rgba(139,92,246,0.15);
  --accent: #8B5CF6;
  --accent-light: #A78BFA;
  --accent-dim: rgba(139,92,246,0.20);
  --accent-dimmer: rgba(139,92,246,0.12);
  --accent-faint: rgba(139,92,246,0.08);
  --accent-glow: rgba(139,92,246,0.25);
  --accent-glow-lg: rgba(139,92,246,0.50);
  --text-primary: #F5F5F5;
  --text-secondary: #A1A1AA;
  --text-muted: #52525B;
  --green: #22C55E;
  --font-syne: 'Syne', sans-serif;
  --font-inter: 'Inter', sans-serif;
  --fs-hero: clamp(2.8rem, 7vw, 6.5rem);
  --fs-section: clamp(2rem, 5vw, 3.5rem);
  --fs-cta: clamp(2rem, 5vw, 3.8rem);
  --section-py: 6rem;
  --section-px: 1.5rem;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font: inherit; cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.page-wrap { overflow-x: hidden; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --- Typography --- */
.font-syne { font-family: var(--font-syne); }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-syne); font-weight: 800;
  font-size: var(--fs-section); color: var(--text-primary);
  line-height: 1.15;
}
.section-sub { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }

/* --- Keyframes --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px var(--accent-glow); }
  50% { box-shadow: 0 0 60px var(--accent-glow-lg), 0 0 100px var(--accent-dim); }
}
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
@keyframes aurora-1 {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}
@keyframes aurora-2 {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}
@keyframes aurora-3 {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}
@keyframes brain-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}
@keyframes typing-dot {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-bounce-y { animation: bounce-y 2s ease-in-out infinite; }

/* --- Cursor Spotlight --- */
#cursor-spotlight {
  position: fixed; width: 500px; height: 500px; pointer-events: none; z-index: 9999;
  background: radial-gradient(circle, var(--accent-faint) 0%, transparent 70%);
  filter: blur(40px); transform: translate(-50%, -50%); opacity: 0;
  transition: opacity 0.3s;
}

/* --- Header / Navbar --- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; pointer-events: none; }
.header-inner { max-width: 80rem; margin: 0 auto; padding: 1rem; display: flex; align-items: center; justify-content: space-between; }
.header-inner > * { pointer-events: auto; }
.nav-logo img { filter: invert(1); width: 90px; height: auto; }
.nav-pills { display: none; align-items: center; gap: 2px; padding: 4px; border-radius: 9999px; background: rgba(8,8,8,0.60); backdrop-filter: blur(12px); border: 1px solid rgba(139,92,246,0.18); }
.nav-pill { position: relative; padding: 6px 16px; border-radius: 9999px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.60); transition: color 0.2s; }
.nav-pill.active { color: #fff; }
.nav-cta-desktop { display: none; padding: 8px 20px; border-radius: 9999px; font-size: 13px; font-weight: 600; background: var(--accent); color: #fff; box-shadow: 0 0 24px rgba(139,92,246,0.25); transition: transform 0.2s; }
.nav-cta-desktop:hover { transform: scale(1.05); }
.hamburger { display: block; padding: 8px; border-radius: 8px; color: var(--text-primary); transition: background 0.2s; }
.hamburger:hover { background: rgba(255,255,255,0.05); }
.hamburger svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; background: rgba(8,8,8,0.95); backdrop-filter: blur(12px); pointer-events: auto; overflow: hidden; max-height: 0; transition: max-height 0.3s ease, opacity 0.25s; opacity: 0; }
.mobile-drawer.open { display: block; max-height: 400px; opacity: 1; }
.mobile-drawer nav { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-drawer .mob-link { font-size: 0.875rem; color: var(--text-secondary); transition: color 0.2s; }
.mobile-drawer .mob-link:hover { color: #fff; }
.mobile-drawer .mob-link.active { color: #fff; }
.mobile-drawer .mob-cta-violet { margin-top: 0.5rem; text-align: center; padding: 12px 20px; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; background: var(--accent); color: #fff; }
.mobile-drawer .mob-cta-wa { text-align: center; font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.mobile-drawer .mob-cta-wa:hover { color: #fff; }

@media (min-width: 768px) {
  .header-inner { padding: 1rem 2rem; }
  .nav-pills { display: flex; }
  .nav-cta-desktop { display: inline-flex; }
  .hamburger { display: none; }
  .mobile-drawer { display: none !important; }
}

/* --- Hero --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--bg); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.aurora { position: absolute; bottom: 0; left: 0; right: 0; pointer-events: none; z-index: 2; height: 500px; overflow: hidden; }
.aurora-blob { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }
.aurora-blob-1 { width: 600px; height: 300px; left: 25%; bottom: 0; background: rgba(139,92,246,0.32); filter: blur(80px); animation: aurora-1 6s ease-in-out infinite; }
.aurora-blob-2 { width: 500px; height: 250px; right: 25%; bottom: 0; background: rgba(109,40,217,0.28); filter: blur(100px); animation: aurora-2 8s ease-in-out infinite 1s; }
.aurora-blob-3 { width: 400px; height: 200px; left: 50%; bottom: 0; transform: translateX(-50%); background: rgba(139,92,246,0.16); filter: blur(60px); animation: aurora-3 5s ease-in-out infinite 2s; }
.ai-brain-wrap { display: none; position: absolute; right: 20%; bottom: 16%; z-index: 5; width: 320px; opacity: 0.85; }
.hero-content { position: relative; z-index: 10; width: 100%; max-width: 72rem; margin: 0 auto; padding: 6rem 1.25rem 4rem; text-align: center; }
.hero h1 { font-family: var(--font-syne); font-weight: 800; font-size: clamp(2.25rem, 6.5vw, 6rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--accent-light); }
.hero-sub { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); max-width: 28rem; margin: 0 auto 2rem; }
.hero-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 14px 28px; border-radius: 9999px; font-size: 1rem; font-weight: 600; background: var(--accent); color: #fff; transition: transform 0.2s; }
.hero-cta:hover { transform: scale(1.05); }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--text-muted); opacity: 0; animation: bounce-y 2s ease-in-out infinite; }

@media (min-width: 640px) { .hero-content { text-align: left; padding: 6rem 2rem 4rem; } .hero-sub { margin: 0 0 2rem; } }
@media (min-width: 1024px) { .hero-content { padding: 6rem 3rem 4rem; } .ai-brain-wrap { display: block; } }

/* --- Section Layout --- */
.section { padding: var(--section-py) var(--section-px); }
.section-inner { max-width: 72rem; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }

/* --- Pill Tabs --- */
.pill-tabs-wrap { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.pill-tabs { display: inline-flex; gap: 4px; padding: 6px; border-radius: 9999px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); flex-wrap: wrap; justify-content: center; position: relative; }
.pill-tab { position: relative; padding: 8px 16px; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; white-space: nowrap; }
.pill-tab.active { color: #fff; }
.pill-indicator { position: absolute; border-radius: 9999px; background: var(--accent); transition: left 0.35s cubic-bezier(0.4,0,0.2,1), width 0.35s cubic-bezier(0.4,0,0.2,1), top 0.35s cubic-bezier(0.4,0,0.2,1); z-index: 0; pointer-events: none; }
.pill-tab span { position: relative; z-index: 1; }

/* --- Cosa Fa --- */
.cosafa-card { border-radius: 1.5rem; padding: 2rem; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 2.5rem; align-items: center; }
.cosafa-text h3 { font-family: var(--font-syne); font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.875rem); margin-bottom: 1rem; }
.cosafa-text p { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 1.5rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge { padding: 4px 12px; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border); }
@media (min-width: 768px) { .cosafa-card { grid-template-columns: 1fr 1fr; padding: 3rem; } }

/* --- WhatsApp Chat Mock --- */
.wa-chat { border-radius: 1rem; width: 100%; max-width: 320px; margin: 0 auto; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.wa-header { padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.wa-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; background: var(--accent-faint); color: var(--accent-light); }
.wa-name { font-size: 0.75rem; font-weight: 600; }
.wa-status { font-size: 0.75rem; color: var(--green); display: flex; align-items: center; gap: 4px; }
.wa-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.wa-messages { padding: 12px; height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.wa-msg { padding: 8px 12px; border-radius: 16px; font-size: 0.75rem; line-height: 1.5; max-width: 82%; white-space: pre-line; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.wa-msg.visible { opacity: 1; transform: translateY(0); }
.wa-msg.user { background: rgba(255,255,255,0.08); color: var(--text-primary); border-radius: 16px 4px 16px 16px; align-self: flex-end; }
.wa-msg.ai { background: var(--accent-dimmer); color: #E9D5FF; border-radius: 4px 16px 16px 16px; align-self: flex-start; }
.wa-typing { display: flex; align-items: center; gap: 6px; padding-left: 4px; }
.wa-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); animation: typing-dot 1s infinite; }
.wa-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.wa-typing-dot:nth-child(3) { animation-delay: 0.3s; }
.wa-dots { padding: 8px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 8px; }
.wa-dot-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background 0.3s; }
.wa-dot-indicator.active { background: var(--accent); }

/* --- Settori Panel --- */
.settori-panel { border-radius: 1rem; padding: 2rem; background: var(--surface); border: 1px solid var(--border); opacity: 0; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s; }
.settori-panel.visible { opacity: 1; transform: translateY(0); }
.settori-panel.highlight { border-color: var(--border-accent-sm); }
.settori-grid { display: grid; gap: 2rem; }
.settori-highlight-badge { display: inline-block; padding: 2px 10px; border-radius: 9999px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent-dim); color: var(--accent-light); margin-bottom: 0.75rem; }
.settori-panel h3 { font-family: var(--font-syne); font-weight: 800; font-size: clamp(1.125rem, 2.5vw, 1.5rem); margin-bottom: 1rem; }
.settori-panel .desc { font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 1.5rem; }
.stat-row { margin-bottom: 1.5rem; display: flex; align-items: baseline; gap: 0.5rem; }
.stat-value { font-family: var(--font-syne); font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.875rem); color: var(--accent-light); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }
.integration-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.int-chip { padding: 4px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; background: var(--accent-faint); color: var(--accent-light); border: 1px solid var(--border-accent-sm); }
.cap-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cap-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.cap-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: 0.75rem; background: var(--accent-dim); color: var(--accent-light); }
.cap-item span:last-child { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }
.settori-callout { margin-top: 2rem; text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.settori-callout a { font-weight: 500; transition: color 0.2s; }
.settori-callout a:hover { color: #fff; }
.link-accent { color: var(--accent-light); }
.link-green { color: #25D366; }
@media (min-width: 768px) { .settori-panel { padding: 2.5rem; } .settori-grid { grid-template-columns: 1fr 1fr; } }

/* --- Consulenza --- */
.consulenza { background: var(--surface); }
.consulenza-header { margin-bottom: 4rem; }
.consulenza-header h2 .accent { color: var(--accent-light); }
.phases-grid { display: grid; gap: 1rem; margin-bottom: 3rem; }
.phase-card { padding: 1.5rem; border-radius: 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.10); }
.phase-num { font-family: var(--font-syne); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--accent); margin-bottom: 1rem; user-select: none; }
.phase-card h3 { font-family: var(--font-syne); font-weight: 800; font-size: 1.125rem; margin-bottom: 0.75rem; }
.phase-card p { font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 1rem; }
.phase-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.phase-tag { padding: 4px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; background: rgba(139,92,246,0.15); color: #C4B5FD; }
.cta-row { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-violet { display: inline-flex; align-items: center; gap: 0.5rem; padding: 14px 28px; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; background: var(--accent); color: #fff; transition: transform 0.2s; }
.cta-violet:hover { transform: scale(1.05); }
.cta-green { display: inline-flex; align-items: center; gap: 0.5rem; padding: 14px 28px; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; background: #25D366; color: #fff; transition: transform 0.2s; }
.cta-green:hover { transform: scale(1.05); }
.cta-trust { font-size: 0.875rem; color: var(--text-muted); }
@media (min-width: 768px) { .phases-grid { grid-template-columns: 1fr 1fr; } .cta-row { flex-direction: row; align-items: center; } }
@media (min-width: 1024px) { .phases-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Testimonials --- */
.testimonials-grid { display: grid; gap: 1.25rem; }
.testimonial { display: flex; gap: 0.75rem; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; flex-shrink: 0; margin-top: 4px; background: var(--accent-dim); color: var(--accent-light); }
.testi-bubble { flex: 1; min-width: 0; padding: 1.25rem; border-radius: 4px 18px 18px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.testi-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.testi-name { display: block; font-size: 0.875rem; font-weight: 600; color: var(--accent-light); }
.testi-role { font-size: 0.75rem; color: var(--text-muted); }
.testi-badge { flex-shrink: 0; padding: 4px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; background: rgba(139,92,246,0.15); color: #C4B5FD; white-space: nowrap; }
.testi-quote { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }
.testi-disclaimer { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 2rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }

/* --- Final CTA --- */
.final-cta { position: relative; padding: 2.5rem var(--section-px) 9rem; overflow: hidden; background: var(--bg); text-align: center; }
.final-cta .aurora { z-index: 1; }
.final-cta-content { position: relative; z-index: 10; max-width: 48rem; margin: 0 auto; }
.final-cta h2 { font-family: var(--font-syne); font-weight: 800; font-size: var(--fs-cta); margin-bottom: 1.5rem; line-height: 1.15; }
.final-cta h2 .accent { color: var(--accent-light); }
.final-cta .sub { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 2.5rem; }
.final-cta-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; margin-bottom: 2.5rem; }
.final-cta-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: 0.75rem; color: var(--text-secondary); }
.final-cta-trust span { display: flex; align-items: center; gap: 6px; }
@media (min-width: 640px) { .final-cta-buttons { flex-direction: row; } }

/* --- Footer --- */
.site-footer { background: var(--bg); }
.footer-main { border-top: 1px solid rgba(255,255,255,0.12); padding: 3rem var(--section-px); }
.footer-grid { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { filter: invert(1); width: 100px; height: auto; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a, .footer-col span { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col .muted { color: rgba(255,255,255,0.40); }
.social-icons { display: flex; gap: 0.625rem; padding-top: 4px; }
.social-icon-link { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); transition: all 0.2s; }
.social-icon-link:hover { border-color: var(--accent); background: rgba(139,92,246,0.12); }
.social-icon-link svg { color: rgba(255,255,255,0.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1rem var(--section-px); }
.footer-bottom-inner { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a, .footer-legal button { font-size: 0.75rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: auto; } .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }

/* --- Cookie Banner --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding: 0 1rem 1rem; pointer-events: none; transform: translateY(100%); opacity: 0; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s; }
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-inner { max-width: 24rem; margin: 0 auto; border-radius: 1rem; overflow: hidden; pointer-events: auto; background: rgba(17,17,17,0.94); backdrop-filter: blur(20px); border: 1px solid rgba(139,92,246,0.15); box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 60px rgba(139,92,246,0.06); }
.cookie-accent { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), transparent); }
.cookie-body { padding: 1rem 1.25rem 1.25rem; }
.cookie-header { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.75rem; }
.cookie-header img { width: 28px; height: 28px; border-radius: 4px; }
.cookie-header span { font-size: 13px; font-weight: 600; }
.cookie-text { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.60); margin-bottom: 1rem; }
.cookie-text a { color: var(--accent-light); text-decoration: underline; }
.cookie-text a:hover { color: #fff; }
.cookie-prefs { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.25s, opacity 0.2s; }
.cookie-prefs.open { max-height: 200px; opacity: 1; }
.cookie-pref-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.04); margin-bottom: 10px; }
.cookie-pref-label { font-size: 12px; font-weight: 500; }
.cookie-pref-sub { font-size: 11px; color: rgba(255,255,255,0.40); }
.cookie-pref-always { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.30); }
.cookie-toggle { position: relative; width: 40px; height: 20px; border-radius: 9999px; background: rgba(255,255,255,0.15); transition: background 0.2s; flex-shrink: 0; }
.cookie-toggle.on { background: var(--accent); }
.cookie-toggle-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.cookie-toggle.on .cookie-toggle-knob { transform: translateX(20px); }
.cookie-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.cookie-accept { width: 100%; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; background: var(--accent); color: #fff; box-shadow: 0 0 20px rgba(139,92,246,0.20); transition: transform 0.2s; }
.cookie-accept:hover { transform: scale(1.02); }
.cookie-secondary { width: 100%; padding: 8px 16px; border-radius: 12px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.50); border: 1px solid rgba(255,255,255,0.08); }
.cookie-customize { width: 100%; padding: 6px 16px; font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.cookie-customize:hover { color: #fff; }
@media (min-width: 768px) { .cookie-inner { margin: 0 1.5rem 0 auto; } }

/* --- Scroll Animations --- */
[data-animate] { opacity: 0; transition: opacity 0.6s, transform 0.6s; }
[data-animate="fadeUp"] { transform: translateY(30px); }
[data-animate="fadeLeft"] { transform: translateX(-40px); }
[data-animate="fadeRight"] { transform: translateX(30px); }
[data-animate].animated { opacity: 1; transform: translate(0); }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-animate] { opacity: 1; transform: none; }
}
