/* ---- YouOnline Redesign — Design tokens & base ---- */
:root {
  /* Colors from logo: orange + bleu */
  --yo-orange: #EB9222;
  --yo-orange-dark: #D27814;
  --yo-orange-soft: #F7B867;
  --yo-blue: #2C5F8D;
  --yo-blue-dark: #1B3F60;
  --yo-blue-light: #5B94C7;

  /* Surfaces */
  --bg: #FAF7F2;      /* warm cream */
  --bg-2: #F2EDE4;
  --ink: #0E1116;
  --ink-2: #3A3E46;
  --ink-3: #6B7280;
  --line: rgba(14,17,22,0.08);
  --line-strong: rgba(14,17,22,0.16);
  --card: #FFFFFF;

  /* Scales */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Sizes (user-scalable for a11y) */
  --fs-root: 16px;
  --space: 1rem;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Letter spacing */
  --ls: 0em;
  --lh: 1.55;
}

/* A11y modes */
html[data-a11y-contrast="high"] {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --ink: #FFFF00;
  --ink-2: #FFFFFF;
  --ink-3: #FFFFFF;
  --yo-orange: #FFA500;
  --yo-orange-dark: #FFC300;
  --yo-blue: #00FFFF;
  --yo-blue-dark: #00FFFF;
  --line: rgba(255,255,0,0.5);
  --line-strong: #FFFF00;
  --card: #0a0a0a;
}
html[data-a11y-contrast="dark"] {
  --bg: #0B0D10;
  --bg-2: #13161B;
  --ink: #F4F1EC;
  --ink-2: #C9C4BC;
  --ink-3: #8A8780;
  --line: rgba(244,241,236,0.08);
  --line-strong: rgba(244,241,236,0.2);
  --card: #13161B;
}
html[data-a11y-dyslexia="true"] body {
  font-family: 'OpenDyslexic', 'Comic Sans MS', 'Inter', sans-serif !important;
  --lh: 1.9;
  letter-spacing: 0.04em;
  word-spacing: 0.1em;
}
html[data-a11y-links="true"] a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}
html[data-a11y-motion="reduce"] *,
html[data-a11y-motion="reduce"] *::before,
html[data-a11y-motion="reduce"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
html[data-a11y-cursor="big"] * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path d='M3 2l0 16 5-5 3 8 3-1-3-8 7 0z' fill='black' stroke='white' stroke-width='1.5'/></svg>") 0 0, auto !important; }

html[data-a11y-colorblind="protanopia"] body { filter: url(#cb-protanopia); }
html[data-a11y-colorblind="deuteranopia"] body { filter: url(#cb-deuteranopia); }
html[data-a11y-colorblind="tritanopia"] body { filter: url(#cb-tritanopia); }
html[data-a11y-colorblind="monochrome"] body { filter: grayscale(1); }

html { font-size: var(--fs-root); scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: var(--lh);
  letter-spacing: var(--ls);
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  transition: background .4s, color .4s;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
p  { margin: 0; color: var(--ink-2); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 18px; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(235,146,34,0.08);
  color: var(--yo-orange-dark);
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yo-orange); box-shadow: 0 0 0 4px rgba(235,146,34,0.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(235,146,34,0.35); } 50% { box-shadow: 0 0 0 6px rgba(235,146,34,0); } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: all .3s var(--ease-out-expo);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { transition: transform .4s var(--ease-out-expo); }
.btn:hover svg { transform: translateX(4px); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--yo-orange); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(235,146,34,0.5); }
.btn.accent { background: var(--yo-orange); color: #fff; }
.btn.accent:hover { background: var(--yo-orange-dark); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(235,146,34,0.6); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--yo-orange-dark); font-weight: 500;
}
.section-label::before { content: ""; width: 24px; height: 1px; background: var(--yo-orange); }

.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::selection { background: var(--yo-orange); color: #fff; }

/* Cursor custom */
.cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--yo-orange); pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%); mix-blend-mode: difference;
  transition: transform .15s var(--ease-out-expo);
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--yo-orange); pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .4s var(--ease-out-expo), width .3s, height .3s, border-color .3s;
}
.cursor-ring.hover { width: 64px; height: 64px; border-color: var(--ink); background: rgba(235,146,34,0.1); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* --- Header --- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .3s, backdrop-filter .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 12px 0;
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.brand img { display: block; }
.brand .logo-mark { width: 36px; height: 36px; display: grid; place-items: center; }
.brand .logo-mark svg { width: 100%; height: 100%; }
.brand em { font-style: normal; color: var(--yo-orange); }

.nav-links { display: flex; gap: 4px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.nav-links a { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .25s; position: relative; }
.nav-links a:hover, .nav-links a.active { background: var(--ink); color: var(--bg); }

.nav-right { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: var(--card); border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-right .btn.ghost { display: none; }
}
@media (max-width: 640px) {
  .nav-right .btn.accent { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  transform: translateY(-100%); transition: transform .6s var(--ease-out-expo);
  padding: 100px 24px 40px; display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; padding: 18px 0; font-family: var(--font-display); font-size: 36px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:hover { color: var(--yo-orange); }

/* Sections padding */
section { padding: clamp(60px, 9vw, 140px) 0; position: relative; }

/* Focus visible */
:focus-visible { outline: 3px solid var(--yo-orange); outline-offset: 3px; border-radius: 4px; }

/* Marquee */
.marquee { display: flex; overflow: hidden; gap: 80px; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 80px; animation: marquee 30s linear infinite; flex-shrink: 0; align-items: center; }
@keyframes marquee { to { transform: translateX(calc(-100% - 80px)); } }

/* Animations for ChatBot & dropdown */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
