/* ═══════════════════════════════════════════════
   FLEAT DESIGN SYSTEM — Marketing site
   Couleurs extraites de src/index.css + Index.tsx
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Brand colors — from tailwind.config.ts + Index.tsx */
  --cream:    #f8f5f0;   /* main bg */
  --white:    #ffffff;   /* card bg */
  --ink:      #0f0d0a;   /* primary text */
  --ink-2:    #6b6460;   /* secondary text */
  --ink-3:    #9e9890;   /* muted */
  --border:   #e4ddd4;
  --border-2: #d4cdc4;

  /* Brand accent */
  --olive:    #6b7c45;   /* primary action — landing page CTA */
  --olive-2:  #566336;   /* hover */
  --olive-10: rgba(107,124,69,0.10);
  --olive-20: rgba(107,124,69,0.20);
  --olive-30: rgba(107,124,69,0.30);

  /* Functional / Role colors — from tailwind.config.ts */
  --blue:     #3b82f6;   /* staff primary, serveur */
  --green:    #22c55e;   /* cuisto, success */
  --purple:   #7c3aed;   /* barman */
  --amber:    #e8a020;   /* manager */
  --yellow:   #f5c842;   /* warning */
  --red:      #ff4d4d;   /* error */

  /* App dark theme — navy for product mockups */
  --navy:       #0c1422;
  --navy-s1:    #111f35;
  --navy-s2:    #162034;
  --navy-s3:    #1e2f50;
  --navy-muted: #94a8c0;
  --navy-border: rgba(255,255,255,0.08);

  /* Radii — from tailwind.config.ts */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-olive: 0 8px 24px rgba(107,124,69,0.28);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── SCROLL PROGRESS ── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--olive);
  z-index: 9999;
  transition: width 60ms linear;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 5%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248,245,240,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms;
}
.nav.elevated { box-shadow: var(--shadow-sm); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 150ms;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1.5px;
  background: var(--olive);
  transition: width 200ms;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-weight: 700;
  border: none;
  border-radius: var(--r-xl);
  transition: background 150ms, transform 120ms, box-shadow 150ms;
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.btn:active { transform: scale(0.97); }

.btn-sm  { padding: 8px 18px; font-size: 0.84rem; border-radius: var(--r-md); }
.btn-md  { padding: 12px 24px; font-size: 0.9rem; }
.btn-lg  { padding: 15px 32px; font-size: 1rem; }

.btn-primary {
  background: var(--olive);
  color: #fff;
  box-shadow: var(--shadow-olive);
}
.btn-primary:hover { background: var(--olive-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(0,0,0,0.04); color: var(--ink); border-color: var(--border-2); }

.btn-link {
  background: none;
  color: var(--ink-2);
  padding: 6px 0;
  border-radius: 0;
  font-size: 0.875rem;
}
.btn-link:hover { color: var(--ink); }

/* ── LAYOUT ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 5%;
}
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 5%; }

section { padding: 88px 0; }
section.tight { padding: 64px 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-sub {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 520px;
}

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-olive { background: var(--olive-10); color: var(--olive); border: 1px solid var(--olive-20); }
.badge-blue  { background: rgba(59,130,246,0.1); color: var(--blue); }
.badge-green { background: rgba(34,197,94,0.1); color: var(--green); }
.badge-amber { background: rgba(232,160,32,0.12); color: var(--amber); }
.badge-purple{ background: rgba(124,58,237,0.1); color: var(--purple); }
.badge-gray  { background: rgba(0,0,0,0.06); color: var(--ink-2); }

/* ── ROLE ICON ── */
.role-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── SEPARATOR ── */
.sep { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── HAMBURGER (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 250ms, opacity 250ms;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(248,245,240,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 5%;
  flex-direction: column;
  gap: 0;
  z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 150ms;
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* ── PRODUCT MOCKUP (dark app preview) ── */
.browser {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  background: var(--navy);
}
.browser-bar {
  background: #080f1c;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }
.browser-url {
  flex: 1;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  padding: 3px 10px;
}
.browser-content { padding: 0; }

/* ── DARK DASHBOARD MOCK ── */
.dash {
  display: grid;
  grid-template-columns: 52px 1fr;
  background: var(--navy);
  height: 320px;
  overflow: hidden;
}
.dash-sidebar {
  background: #080f1c;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 14px;
}
.dash-nav-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 200ms;
}
.dash-nav-icon.active { background: rgba(59,130,246,0.2); }
.dash-main {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
  overflow: hidden;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-title { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.dash-subtitle { font-size: 0.65rem; color: var(--navy-muted); }
.live-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 600;
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.stat-chip {
  background: var(--navy-s1);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 9px;
  padding: 8px 10px;
}
.stat-chip .val { font-size: 1rem; font-weight: 800; color: rgba(255,255,255,0.9); line-height: 1; }
.stat-chip .lbl { font-size: 0.6rem; color: var(--navy-muted); margin-top: 2px; }

.orders-list { display: flex; flex-direction: column; gap: 5px; flex: 1; overflow: hidden; }
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-s1);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.7rem;
}
.order-name { color: rgba(255,255,255,0.8); font-weight: 600; }
.order-table { color: var(--navy-muted); }
.order-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.ob-new     { background: rgba(245,200,66,0.15); color: var(--yellow); }
.ob-cooking { background: rgba(59,130,246,0.15); color: var(--blue); }
.ob-ready   { background: rgba(34,197,94,0.15); color: var(--green); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}
@keyframes deviceRise {
  from { opacity:0; transform: translateY(48px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Révélation device au scroll */
.device-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.device-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.device-reveal.delay-1 { transition-delay: 0.1s; }
.device-reveal.delay-2 { transition-delay: 0.22s; }
.device-reveal.delay-3 { transition-delay: 0.34s; }

.anim-up {
  opacity: 0;
  transform: translateY(20px);
}
.anim-up.visible {
  animation: fadeUp 0.5s ease forwards;
}

/* stagger delays */
.anim-up:nth-child(1) { animation-delay: 0ms; }
.anim-up:nth-child(2) { animation-delay: 60ms; }
.anim-up:nth-child(3) { animation-delay: 120ms; }
.anim-up:nth-child(4) { animation-delay: 180ms; }
.anim-up:nth-child(5) { animation-delay: 240ms; }
.anim-up:nth-child(6) { animation-delay: 300ms; }

/* ── FOOTER ── */
footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 48px 5%;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-tagline { font-size: 0.8rem; color: var(--ink-3); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--ink-3); transition: color 150ms; }
.footer-links a:hover { color: var(--ink-2); }
.footer-copy { font-size: 0.75rem; color: var(--ink-3); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .dash { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash { height: auto; }
  .stats-row { grid-template-columns: repeat(3,1fr); }

  section { padding: 56px 0; }
  section.tight { padding: 40px 0; }

  footer .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ── UTILS ── */
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.color-olive { color: var(--olive); }
.color-muted { color: var(--ink-2); }

/* ══════════════════════════════════════════
   MARQUEE
   ══════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  background: var(--ink);
  padding: 12px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 20px;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.marquee-track span:nth-child(even) {
  color: rgba(255,255,255,0.18);
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   STATS SECTION
   ══════════════════════════════════════════ */
.stats-section {
  background: var(--cream);
  padding: 72px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--white);
  padding: 36px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-item.visible {
  opacity: 1;
  transform: none;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--olive);
}
.stat-prefix {
  color: var(--olive);
}
.stat-desc {
  font-size: 0.82rem;
  color: var(--ink-2);
  font-weight: 500;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 24px 20px; }
}

/* ══════════════════════════════════════════
   PRODUCT DEMO — sticky scroll
   ══════════════════════════════════════════ */
.demo-section {
  padding: 80px 0 0;
  background: var(--cream);
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

/* Phone sticky column */
.demo-phone-col {
  position: sticky;
  top: 90px;
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.demo-phone-wrap {
  position: relative;
}

.demo-phone {
  width: 260px;
  height: 520px;
  background: #f0ece4;
  border-radius: 36px;
  border: 8px solid #18181b;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px rgba(0,0,0,0.35),
    0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
}

.demo-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0e17;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.demo-phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Individual screens */
.dscreen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.dscreen.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dscreen.out {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

/* Steps column */
.demo-steps-col {
  padding: 0 0 120px 48px;
}

.demo-step {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.35;
  transform: none;
  transition: opacity 0.4s ease;
}
.demo-step:last-child { border-bottom: none; }
.demo-step.active { opacity: 1; }

.demo-step-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
  width: fit-content;
}

.demo-step-title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 14px;
}

.demo-step-body {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.demo-step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-step-list li {
  font-size: 0.875rem;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
}
.demo-step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  opacity: 0.5;
}

.demo-step-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--olive);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.demo-step-link:hover { gap: 8px; }

/* Progress dots */
.demo-dots {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  transition: all 0.3s;
  cursor: pointer;
}
.demo-dot.active {
  background: var(--olive);
  height: 20px;
  border-radius: 3px;
}

/* Mobile: stacked layout */
@media (max-width: 860px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }
  .demo-phone-col {
    position: relative;
    top: 0;
    margin-bottom: 40px;
    padding-bottom: 0;
  }
  .demo-steps-col {
    padding: 0;
  }
  .demo-step {
    min-height: auto;
    padding: 32px 0;
    opacity: 1;
  }
}

/* ══════════════════════════════════════════
   IPHONE DYNAMIC ISLAND FRAME
   ══════════════════════════════════════════ */
.iphone {
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 60%);
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 32px 64px rgba(0,0,0,0.35);
  transform: translateZ(0);
}
.iphone-inner {
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  position: relative;
}
/* iPhone notch */
.iphone-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 18px;
  background: #1c1c1e;
  border-radius: 0 0 12px 12px;
  z-index: 20;
  pointer-events: none;
}
.iphone img, .iphone video {
  width: 100%;
  display: block;
}
/* Sizes */
.iphone-sm .iphone-inner { width: 180px; }
.iphone-md .iphone-inner { width: 230px; }
.iphone-lg .iphone-inner { width: 280px; }
.iphone-xl .iphone-inner { width: 330px; }

/* ══════════════════════════════════════════
   MANAGER CAROUSEL
   ══════════════════════════════════════════ */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 40px 0 60px;
}
.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  min-height: 580px;
}
.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.72) translateX(160%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}
.carousel-item.prev {
  transform: translate(-50%, -50%) scale(0.82) translateX(-120%);
  opacity: 0.5;
  filter: brightness(0.7) saturate(0.8);
  z-index: 2;
  pointer-events: auto;
}
.carousel-item.active {
  transform: translate(-50%, -50%) scale(1) translateX(0);
  opacity: 1;
  filter: none;
  z-index: 5;
  pointer-events: auto;
}
.carousel-item.next {
  transform: translate(-50%, -50%) scale(0.82) translateX(120%);
  opacity: 0.5;
  filter: brightness(0.7) saturate(0.8);
  z-index: 2;
  pointer-events: auto;
}
.carousel-label {
  text-align: center;
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}
.carousel-item.active .carousel-label { color: rgba(255,255,255,0.9); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  backdrop-filter: blur(8px);
}
.carousel-btn:hover:not(:disabled) { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.carousel-btn:disabled { opacity: 0.25; cursor: default; }
.carousel-dots {
  display: flex; gap: 7px; align-items: center;
}
.cdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none; cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.cdot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════
   BROWSER / MACBOOK MOCK
   ══════════════════════════════════════════ */
.browser-mock {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 48px 96px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.08);
  background: #fff;
}
.browser-mock-bar {
  background: #ececec;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ddd;
}
.browser-mock-dots {
  display: flex; gap: 5px; flex-shrink: 0;
}
.browser-mock-dots span {
  width: 11px; height: 11px; border-radius: 50%;
}
.browser-mock-dots span:nth-child(1) { background: #ff5f57; }
.browser-mock-dots span:nth-child(2) { background: #ffbd2e; }
.browser-mock-dots span:nth-child(3) { background: #28ca41; }
.browser-mock-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.65rem;
  color: #888;
  font-family: 'DM Mono', monospace;
  text-align: center;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-mock-screen img {
  width: 100%; display: block;
}

/* ══════════════════════════════════════════
   HERO DEVICES (phone + desktop side by side)
   ══════════════════════════════════════════ */
.hero-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.hero-desktop { flex: 1; max-width: 600px; }
.hero-mobile  { flex-shrink: 0; transform: translateY(-24px); }

@media (max-width: 700px) {
  .hero-devices { flex-direction: column; align-items: center; gap: 24px; }
  .hero-desktop { max-width: 100%; }
  .hero-mobile  { transform: none; }
}

/* ══════════════════════════════════════════
   CAROUSEL v2 — flat scroll + drag
   ══════════════════════════════════════════ */
.carousel-v2 {
  overflow: hidden;
  position: relative;
  padding: 24px 0 56px;
  width: 100%;
}
.carousel-v2-track {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}
.carousel-v2-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: scale(0.72);
  opacity: 0.3;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1),
              opacity   0.55s cubic-bezier(0.16,1,0.3,1);
}
.carousel-v2-item.active {
  transform: scale(1);
  opacity: 1;
}

/* ══════════════════════════════════════════
   COVERFLOW CAROUSEL
   ══════════════════════════════════════════ */
.carousel-coverflow {
  position: relative;
  width: 100%;
  padding-bottom: 48px;
}
.carousel-coverflow-track {
  position: relative;
  height: 520px;
  perspective: 1100px;
  perspective-origin: 50% 50%;
}
.cflow-item {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  will-change: transform, opacity;
}
.carousel-v2-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.carousel-v2-item.active .carousel-v2-label { color: rgba(255,255,255,0.9); }
/* coverflow sur fond blanc */
.carousel-coverflow .carousel-v2-label { color: rgba(0,0,0,0.3); }
.carousel-v2-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 8px;
}
/* reuse .cdot from above */

/* ══════════════════════════════════════════
   MACBOOK FRAME
   ══════════════════════════════════════════ */
.macbook {
  display: inline-block;
  flex-shrink: 0;
  transform: translateZ(0);
}
.macbook-lid {
  background: #1d1d1f;
  border-radius: 8px 8px 0 0;
  padding: 8px 3px 0;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.macbook-lid::before {
  content: '';
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #3a3a3c;
}
.macbook-screen {
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
}
.macbook-screen img { width: 100%; display: block; }
.macbook-hinge {
  height: 3px;
  background: linear-gradient(90deg, #111 0%, #222 50%, #111 100%);
}
.macbook-base {
  height: 10px;
  background: linear-gradient(180deg, #3a3a3c 0%, #2a2a2c 100%);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.macbook-foot {
  height: 4px;
  background: linear-gradient(180deg, #1c1c1e, #111);
  border-radius: 0 0 6px 6px;
  width: calc(100% + 16px);
  margin-left: -8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.macbook-sm .macbook-screen { width: 320px; }
.macbook-md .macbook-screen { width: 500px; }
.macbook-lg .macbook-screen { width: 640px; }

/* ══════════════════════════════════════════
   IPAD FRAME (landscape)
   ══════════════════════════════════════════ */
.ipad {
  display: inline-block;
  background: linear-gradient(160deg, #3a3a3c 0%, #1d1d1f 60%);
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 24px 56px rgba(0,0,0,0.28);
  transform: translateZ(0);
}
.ipad-landscape {
  padding: 6px 10px;
}
.ipad-landscape::before {
  content: '';
  position: absolute;
  top: 50%; right: 4px;
  transform: translateY(-50%);
  width: 2px; height: 20%;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.ipad-landscape::after {
  content: '';
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #3a3a3c;
}
.ipad-screen {
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
}
.ipad-screen img { width: 100%; display: block; }
.ipad-sm .ipad-screen  { width: 200px; }
.ipad-md .ipad-screen  { width: 300px; }
.ipad-lg .ipad-screen  { width: 380px; }

/* ══════════════════════════════════════════
   APPLE DEVICES HERO LAYOUT
   ══════════════════════════════════════════ */
.apple-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  padding: 0 60px;
  box-sizing: border-box;
  margin: 48px auto 0;
}
@media (max-width: 960px) {
  .apple-devices .macbook { display: none; }
  .apple-devices { gap: 20px; padding: 0 40px; max-width: 600px; }
}
@media (max-width: 560px) {
  .apple-devices .ipad { display: none; }
  .apple-devices { padding: 0 32px; max-width: 320px; }
}
