/* ==========================================================================
   DIONYS – Landing Page
   Design tokens extracted from src/theme/dionysTheme.ts
   ========================================================================== */

:root {
  /* Brand */
  --dio-blue:        #1593F5;
  --dio-blue-dark:   #0067D8;
  --dio-blue-light:  #5DBBFF;
  --dio-blue-deep:   #021A4A;
  --dio-cyan:        #2ED3FF;
  --dio-ink:         #0A0F1F;
  --dio-ink-soft:    #101010;
  --dio-paper:       #FFF7E8;
  --dio-paper-2:     #FBF1DC;
  --dio-white:       #FFFFFF;

  /* Mode accents */
  --mode-home-1:   #021A4A;
  --mode-home-2:   #1664F5;
  --mode-home-3:   #5BB8FF;
  --mode-family-1: #1F6B14;
  --mode-family-2: #5BC246;
  --mode-family-3: #C8E89A;
  --mode-duo-1:    #C28A1F;
  --mode-duo-2:    #F5C95A;
  --mode-duo-3:    #FFE9A8;
  --mode-alcool-1: #4A0014;
  --mode-alcool-2: #D72638;
  --mode-alcool-3: #FFB000;
  --mode-hot-1:    #3A0A56;
  --mode-hot-2:    #9B27A5;
  --mode-hot-3:    #FF4F8B;

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-2xl: 44px;

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--dio-ink);
  background: var(--dio-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
}

/* ==========================================================================
   THEME VARIANTS
   Body classes drive the whole page look: .skin-safe / .skin-bold / .skin-creative
   ========================================================================== */

/* default = bold */
body { background: var(--dio-paper); }
body.skin-bold {
  --bg: var(--dio-blue-deep);
  --bg-2: #06122F;
  --fg: var(--dio-white);
  --fg-soft: rgba(255,255,255,0.72);
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --accent: var(--dio-blue);
  --accent-2: var(--dio-cyan);
  --hero-bg: radial-gradient(120% 80% at 70% 10%, rgba(21,147,245,0.55) 0%, rgba(2,26,74,0) 60%),
             radial-gradient(80% 60% at 10% 90%, rgba(46,211,255,0.35) 0%, rgba(2,26,74,0) 55%),
             linear-gradient(180deg, #021A4A 0%, #06122F 100%);
  background: var(--bg);
  color: var(--fg);
}
body.skin-safe {
  --bg: var(--dio-paper);
  --bg-2: #FFFFFF;
  --fg: var(--dio-ink);
  --fg-soft: rgba(10,15,31,0.62);
  --card: #FFFFFF;
  --card-border: rgba(10,15,31,0.08);
  --accent: var(--dio-blue);
  --accent-2: var(--dio-blue-dark);
  --hero-bg: linear-gradient(180deg, var(--dio-paper) 0%, #FFFFFF 100%);
  background: var(--bg);
  color: var(--fg);
}
body.skin-creative {
  --bg: #0A0F1F;
  --bg-2: #131A2E;
  --fg: #FFF7E8;
  --fg-soft: rgba(255,247,232,0.65);
  --card: rgba(255,247,232,0.04);
  --card-border: rgba(255,247,232,0.10);
  --accent: var(--dio-cyan);
  --accent-2: #FF4F8B;
  --hero-bg: radial-gradient(80% 60% at 80% 0%, rgba(255,79,139,0.30) 0%, transparent 55%),
             radial-gradient(80% 60% at 0% 30%, rgba(46,211,255,0.30) 0%, transparent 55%),
             radial-gradient(80% 60% at 50% 100%, rgba(155,39,165,0.35) 0%, transparent 55%),
             linear-gradient(180deg, #0A0F1F 0%, #131A2E 100%);
  background: var(--bg);
  color: var(--fg);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--dio-blue) 0%, var(--dio-cyan) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-family: var(--font-display);
  font-size: 20px;
  box-shadow: 0 8px 20px -8px rgba(21,147,245,0.6);
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 14px; font-weight: 500; opacity: 0.78;
  transition: opacity .2s;
}
.nav a:hover { opacity: 1; }
.header-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 760px) {
  .nav { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--dio-blue);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(21,147,245,0.6), inset 0 -2px 0 rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(21,147,245,0.75), inset 0 -2px 0 rgba(0,0,0,0.15); }
.btn-ghost {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: color-mix(in oklab, var(--card) 100%, var(--fg) 6%); }
.btn-ink {
  background: var(--dio-ink);
  color: var(--dio-white);
}
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* Store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: #0A0F1F; color: #fff;
  border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(255,255,255,0.10);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5); }
.store-badge .store-icon { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .store-meta { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.store-badge .store-meta small { font-size: 10px; opacity: 0.7; letter-spacing: 0.08em; text-transform: uppercase; }
.store-badge .store-meta b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* ==========================================================================
   SECTIONS / CONTAINERS
   ========================================================================== */
.section {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.container {
  max-width: var(--maxw); margin: 0 auto;
}
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head .eyebrow { color: var(--accent); margin-bottom: 14px; display: block; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.section-head p {
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55;
  color: var(--fg-soft); margin: 0; max-width: 56ch;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--hero-bg);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 120px);
  overflow: hidden;
}
.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-copy .eyebrow { color: var(--accent-2); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-2) 30%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.hero-copy h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94; letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--dio-blue) 0%, var(--dio-cyan) 50%, #FF4F8B 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy .sub {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55; color: var(--fg-soft);
  margin: 0 0 32px; max-width: 52ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta {
  margin-top: 32px;
  display: flex; align-items: center; gap: 18px;
  color: var(--fg-soft); font-size: 13px;
}
.hero-meta .avatars { display: flex; }
.hero-meta .avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: linear-gradient(135deg, #FF4F8B, #9B27A5);
}
.hero-meta .avatars span:nth-child(2) { background: linear-gradient(135deg, var(--dio-blue), var(--dio-cyan)); }
.hero-meta .avatars span:nth-child(3) { background: linear-gradient(135deg, var(--mode-duo-2), var(--mode-alcool-3)); }
.hero-meta .avatars span:nth-child(4) { background: linear-gradient(135deg, var(--mode-family-2), var(--mode-family-3)); }
.hero-meta b { color: var(--fg); }

/* Hero visual: small iPhone + floating game icons */
.hero-visual {
  position: relative;
  display: grid; place-items: center;
  min-height: 540px;
}
.hero-visual .glow {
  position: absolute; inset: -10% -20%;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in oklab, var(--accent) 35%, transparent) 0%, transparent 70%);
  filter: blur(40px); z-index: 0;
}

/* ==========================================================================
   iPHONE MOCKUP
   ========================================================================== */
.iphone {
  position: relative; z-index: 2;
  width: 280px; height: 580px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1a1a1f 0%, #0a0a0f 100%);
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.55),
    0 20px 30px -15px rgba(21,147,245,0.4),
    inset 0 0 0 2px #2a2a30,
    inset 0 0 0 3px #0a0a0f;
  transform: rotate(-3deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-visual:hover .iphone { transform: rotate(-1deg) translateY(-6px); }
.iphone-screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: linear-gradient(180deg, #021A4A 0%, #1664F5 100%);
  overflow: hidden;
  position: relative;
}
.iphone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 14px;
  background: #0a0a0f;
  z-index: 3;
}
.iphone-status {
  position: absolute; top: 14px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 26px;
  color: #fff; font-size: 13px; font-weight: 600; z-index: 4;
  font-family: var(--font-display);
}

/* Inside iphone: home screen with mode cards */
.iphone-content {
  padding: 56px 16px 20px;
  height: 100%; display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.iphone-greet {
  color: #fff; font-family: var(--font-display);
}
.iphone-greet small { display: block; font-size: 11px; opacity: 0.7; font-weight: 400; letter-spacing: 0.04em; }
.iphone-greet b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.iphone-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.iphone-mode {
  border-radius: 18px; padding: 14px 12px; height: 86px;
  color: #fff; font-family: var(--font-display); font-weight: 700;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 13px; letter-spacing: -0.01em;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,0.3);
}
.iphone-mode small { font-size: 9px; opacity: 0.85; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.iphone-mode b { font-size: 16px; }
.iphone-mode.full { grid-column: 1 / -1; height: 76px; flex-direction: row; align-items: center; justify-content: space-between; }
.mode-home   { background: linear-gradient(135deg, var(--mode-home-2), var(--mode-home-3)); }
.mode-family { background: linear-gradient(135deg, var(--mode-family-1), var(--mode-family-2)); }
.mode-duo    { background: linear-gradient(135deg, var(--mode-duo-1), var(--mode-duo-2)); color: #2a1a00; }
.mode-alcool { background: linear-gradient(135deg, var(--mode-alcool-1), var(--mode-alcool-2)); }
.mode-hot    { background: linear-gradient(135deg, var(--mode-hot-1), var(--mode-hot-2)); }

/* Floating game icons around the iphone */
.float-icon {
  position: absolute; z-index: 1;
  width: 84px; height: 84px;
  border-radius: 22px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  color: #fff;
  text-align: center;
  font-size: 11px; line-height: 1.1; padding: 8px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  box-shadow: 0 18px 30px -14px rgba(0,0,0,0.45), inset 0 -3px 0 rgba(0,0,0,0.18);
  animation: float 6s ease-in-out infinite;
}
.float-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px;
  border: 1.5px solid rgba(255,255,255,0.25);
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -0.8)); }
}
.fi-1 { top: 2%;  left: -8%;  --r: -8deg;  animation-delay: 0s;  background: linear-gradient(135deg, var(--mode-alcool-2), var(--mode-alcool-3)); }
.fi-2 { top: 12%; right: -6%; --r: 7deg;   animation-delay: -1.4s; background: linear-gradient(135deg, var(--mode-hot-2), var(--mode-hot-3)); }
.fi-3 { bottom: 18%; left: -10%; --r: 6deg; animation-delay: -2.6s; background: linear-gradient(135deg, var(--mode-family-1), var(--mode-family-2)); }
.fi-4 { bottom: 4%; right: -4%; --r: -5deg; animation-delay: -3.7s; background: linear-gradient(135deg, var(--mode-duo-1), var(--mode-duo-2)); color: #2a1a00; }
.fi-5 { top: 44%; right: -14%; --r: 10deg; animation-delay: -4.8s; background: linear-gradient(135deg, #6E4DDB, #B785FF); }

/* ==========================================================================
   MODES SECTION
   ========================================================================== */
.modes-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .modes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .modes-grid { grid-template-columns: 1fr; } }

.mode-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 32px 26px 26px;
  min-height: 360px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  cursor: pointer;
}
.mode-card.span-2 { grid-column: span 2; }
.mode-card.span-3 { grid-column: span 3; }
.mode-card.span-4 { grid-column: span 4; }
@media (max-width: 980px) { .mode-card.span-2, .mode-card.span-3, .mode-card.span-4 { grid-column: span 1; } }

.mode-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -20px rgba(0,0,0,0.4); }
.mode-card .num {
  font-family: var(--font-mono); font-size: 12px; opacity: 0.7;
}
.mode-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 0.96; letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.mode-card .ambience {
  font-size: 14px; line-height: 1.4; opacity: 0.9; max-width: 32ch;
}
.mode-card .badge {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.25);
  text-transform: uppercase;
}
.mode-card .quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.1;
  margin-top: 14px;
}
.mode-card .deco {
  position: absolute; inset: auto -10% -30% auto;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.bg-home   { background: linear-gradient(150deg, var(--mode-home-1) 0%, var(--mode-home-2) 50%, var(--mode-home-3) 100%); }
.bg-family { background: linear-gradient(150deg, var(--mode-family-1) 0%, var(--mode-family-2) 60%, var(--mode-family-3) 110%); color: #0F2A0A; }
.bg-duo    { background: linear-gradient(150deg, var(--mode-duo-1) 0%, var(--mode-duo-2) 60%, var(--mode-duo-3) 110%); color: #2A1A00; }
.bg-alcool { background: linear-gradient(150deg, var(--mode-alcool-1) 0%, var(--mode-alcool-2) 55%, var(--mode-alcool-3) 110%); }
.bg-hot    { background: linear-gradient(150deg, var(--mode-hot-1) 0%, var(--mode-hot-2) 55%, var(--mode-hot-3) 110%); }

/* ==========================================================================
   GAMES GALLERY
   ========================================================================== */
.games-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .games-grid { grid-template-columns: 1fr; } }

.game-card {
  position: relative; padding: 22px 20px 20px;
  border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--card-border);
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s, border-color .25s;
  cursor: pointer;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.game-card.featured { min-height: 240px; }
.game-card .game-num { font-family: var(--font-mono); font-size: 11px; opacity: 0.55; }
.game-card h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.02; letter-spacing: -0.02em;
  margin: 10px 0 6px;
}
.game-card p { font-size: 13px; line-height: 1.4; color: var(--fg-soft); margin: 0; }
.game-card .tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.game-card .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--card-border);
  background: color-mix(in oklab, var(--card) 100%, var(--fg) 4%);
}
.game-card .tag.tag-hot    { background: rgba(255,79,139,0.14); border-color: rgba(255,79,139,0.3); color: #FF8FB4; }
.game-card .tag.tag-alcool { background: rgba(255,176,0,0.14); border-color: rgba(255,176,0,0.3); color: #FFC766; }
.game-card .tag.tag-family { background: rgba(91,194,70,0.14); border-color: rgba(91,194,70,0.3); color: #8FE072; }
.game-card .tag.tag-duo    { background: rgba(245,201,90,0.14); border-color: rgba(245,201,90,0.3); color: #FFD98A; }
.game-card .tag.tag-home   { background: rgba(21,147,245,0.14); border-color: rgba(21,147,245,0.3); color: #66BFFF; }

/* Skin-safe overrides for game tags */
body.skin-safe .game-card .tag        { color: var(--fg); }
body.skin-safe .game-card .tag.tag-hot    { background: #FFEEF5; color: #B0245F; border-color: #FFC9DD; }
body.skin-safe .game-card .tag.tag-alcool { background: #FFF4E0; color: #8B5A00; border-color: #FFE0A6; }
body.skin-safe .game-card .tag.tag-family { background: #E8F7E2; color: #266A1A; border-color: #B9E5A6; }
body.skin-safe .game-card .tag.tag-duo    { background: #FFF6E0; color: #8B6A00; border-color: #F2E0A0; }
body.skin-safe .game-card .tag.tag-home   { background: #E2F1FF; color: #0356B2; border-color: #AED5FB; }

/* ==========================================================================
   DEMO – ACTION OU VÉRITÉ
   ========================================================================== */
.demo-shell {
  position: relative;
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(150deg, var(--dio-blue-deep) 0%, var(--dio-blue-dark) 60%, var(--dio-blue) 110%);
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.demo-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-shell .eyebrow { color: var(--dio-cyan); }
.demo-shell h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 14px 0 14px;
}
.demo-shell p.intro { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.78); max-width: 44ch; margin: 0 0 28px; }

/* the card itself */
.demo-card {
  background: linear-gradient(180deg, #0F4DCB 0%, #021A4A 100%);
  border-radius: 32px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
  min-height: 420px;
  display: flex; flex-direction: column;
}
.demo-player-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.demo-player-row .who { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; letter-spacing: 0.1em; text-transform: uppercase; }
.demo-player-row .name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.demo-player-row .turn-tag {
  background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}

.demo-question {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 22px;
  padding: 24px; display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.15; letter-spacing: -0.015em;
  min-height: 200px;
  transition: opacity .3s, transform .3s;
}
.demo-question.fade { opacity: 0; transform: translateY(8px); }

.demo-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.demo-choice {
  padding: 18px 14px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform .15s, background .2s;
  color: #fff;
}
.demo-choice small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; opacity: 0.7; text-transform: uppercase; font-weight: 500; }
.demo-choice.action  { background: linear-gradient(135deg, var(--mode-alcool-2), var(--mode-alcool-3)); color: #2A0008; }
.demo-choice.action small { color: #5C1A24; }
.demo-choice.verite  { background: linear-gradient(135deg, var(--mode-home-2), var(--mode-home-3)); }
.demo-choice:hover { transform: translateY(-2px); }
.demo-choice:active { transform: translateY(0); }

.demo-meta {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.6); font-family: var(--font-mono);
}
.demo-cta-row {
  margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap;
}

/* mode chooser */
.demo-mode-pick {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.demo-mode-chip {
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
  transition: all .2s;
}
.demo-mode-chip.active {
  background: #fff; color: var(--dio-blue-deep);
  border-color: #fff;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 980px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  padding: 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--card-border);
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial .stars { color: #FFC766; letter-spacing: 2px; font-size: 14px; }
.testimonial blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: 19px; line-height: 1.35; letter-spacing: -0.015em;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dio-blue), var(--dio-cyan));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 15px;
}
.testimonial .who b { display: block; font-size: 14px; }
.testimonial .who small { display: block; font-size: 12px; color: var(--fg-soft); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--card-border);
}
.faq-item:last-child { border-bottom: 1px solid var(--card-border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 600;
  font-size: 19px; letter-spacing: -0.01em;
  cursor: pointer; width: 100%; text-align: left; gap: 16px;
}
.faq-q .plus {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 14px; transition: transform .25s, background .25s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a {
  font-size: 15px; line-height: 1.55; color: var(--fg-soft);
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, margin-top .35s ease;
}
.faq-item.open .faq-a { max-height: 320px; margin-top: 14px; }

/* ==========================================================================
   FOOTER / CTA STRIP
   ========================================================================== */
.cta-strip {
  position: relative; overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 64px);
  background: radial-gradient(80% 100% at 30% 0%, var(--dio-cyan) 0%, var(--dio-blue) 40%, var(--dio-blue-dark) 100%);
  color: #fff; text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 80px); line-height: 0.96; letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.cta-strip p { font-size: 17px; line-height: 1.5; opacity: 0.85; max-width: 50ch; margin: 0 auto 28px; }
.cta-strip .stores { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

footer.site-footer {
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--card-border);
  font-size: 13px; color: var(--fg-soft);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  align-items: center;
}
.footer-inner .links { display: flex; gap: 24px; }
.footer-inner .links a:hover { color: var(--accent); }

/* ==========================================================================
   SCROLL-IN ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Shuffle cards effect — used on game grid */
.shuffle-card {
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s ease;
  opacity: 0;
}
.shuffle-card.in {
  opacity: 1;
  transform: rotate(var(--final-rot, 0deg)) translate(0, 0) !important;
}

/* ==========================================================================
   CREATIVE-skin specific touches
   ========================================================================== */
body.skin-creative .hero-copy h1 em {
  background: linear-gradient(120deg, var(--dio-cyan) 0%, #FF4F8B 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.skin-creative .section { border-top: 1px solid rgba(255,247,232,0.06); }
body.skin-creative .mode-card { border-radius: var(--r-2xl); }
body.skin-creative .game-card {
  background: rgba(255,247,232,0.03);
  border-style: dashed;
}
body.skin-creative .iphone { transform: rotate(-5deg); }
body.skin-creative .float-icon { box-shadow: 0 20px 40px -16px rgba(255,79,139,0.4), inset 0 -3px 0 rgba(0,0,0,0.18); }

body.skin-safe .iphone {
  box-shadow:
    0 30px 60px -20px rgba(2,26,74,0.25),
    0 20px 30px -15px rgba(21,147,245,0.25),
    inset 0 0 0 2px #2a2a30,
    inset 0 0 0 3px #0a0a0f;
}
body.skin-safe .hero-copy h1 em {
  background: linear-gradient(120deg, var(--dio-blue) 0%, var(--dio-blue-dark) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.skin-safe .demo-shell {
  background: #FFFFFF; color: var(--dio-ink);
  border: 1px solid var(--card-border);
}
body.skin-safe .demo-shell p.intro { color: rgba(10,15,31,0.6); }
body.skin-safe .demo-card {
  background: linear-gradient(180deg, #1664F5 0%, #021A4A 100%);
  color: #fff;
}
body.skin-safe .cta-strip { color: #fff; }
body.skin-safe .testimonial { background: #fff; }

/* selection */
::selection { background: var(--dio-blue); color: #fff; }
