/* ============================================================
   ANR TIMES — styles.css
   ============================================================ */

/* === Variables === */
:root {
  --primary:        #0066CC;
  --primary-dark:   #004499;
  --primary-darker: #002966;
  --primary-light:  #4D9FFF;
  --accent:         #00A3E0;

  --white:     #ffffff;
  --off-white: #F8FAFE;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-500:  #64748B;
  --gray-700:  #334155;
  --gray-900:  #0F172A;

  --success: #22C55E;
  --warning: #F59E0B;
  --danger:  #EF4444;

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow:      0 4px 14px rgba(0,0,0,0.09);
  --shadow-md:   0 10px 28px rgba(0,0,0,0.11);
  --shadow-blue: 0 6px 22px rgba(0,102,204,0.32);

  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 68px;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }

a, button, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* === Skip link === */
.skip-link {
  position: absolute; top: -60px; left: 1rem;
  padding: 0.5rem 1rem; background: var(--primary); color: var(--white);
  font-weight: 600; border-radius: var(--radius); z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* === Scroll progress bar === */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary));
  z-index: 1002; transition: width 0.08s linear;
  pointer-events: none;
}

/* === Layout === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section.bg-light { background: var(--off-white); }

/* === Section header === */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header.light .section-title   { color: var(--white); }
.section-header.light .section-subtitle { color: rgba(255,255,255,0.82); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 800;
  color: var(--gray-900); line-height: 1.2; margin-bottom: 0.875rem;
}
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); line-height: 1.75; }
.section-cta { text-align: center; margin-top: 3rem; }
.cta-note { margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); font-style: italic; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.625rem; font-size: 0.95rem; font-weight: 600;
  font-family: var(--font); border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: all 0.28s var(--ease); white-space: nowrap;
  min-height: 48px;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease);
}
.btn:hover::after { left: 150%; }

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; min-height: 54px; }

.btn-primary {
  background: var(--primary); color: var(--white);
  border-color: var(--primary); box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,102,204,0.4); color: var(--white);
}
.btn-primary:active { transform: translateY(0); }

.btn-white {
  background: var(--white); color: var(--primary);
  border-color: var(--white); box-shadow: var(--shadow);
}
.btn-white:hover {
  background: var(--gray-100); transform: translateY(-2px);
  box-shadow: var(--shadow-md); color: var(--primary-dark);
}
.btn-white:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.14); border-color: var(--white);
  transform: translateY(-2px); color: var(--white);
}
.btn-outline:active { transform: translateY(0); }

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200); z-index: 1000;
  transition: box-shadow 0.28s var(--ease);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.header.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,0.09); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}

.logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 1.15rem; font-weight: 800; color: var(--primary);
  flex-shrink: 0; letter-spacing: -0.01em;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.logo:hover { color: var(--primary-dark); transform: scale(1.02); }

.nav-menu {
  display: flex; align-items: center; gap: 0.5rem;
  flex: 1; justify-content: flex-end;
}
.nav-list {
  display: flex; list-style: none; align-items: center;
  gap: 0.125rem; margin-right: 1rem;
}
.nav-link {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  color: var(--gray-700); border-radius: var(--radius);
  transition: all 0.18s var(--ease); white-space: nowrap;
  position: relative; min-height: 40px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px;
  left: 0.75rem; right: 0.75rem; height: 2px;
  background: var(--primary); border-radius: 1px;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.2s var(--ease);
}
.nav-link:hover { color: var(--primary); background: var(--gray-100); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-linkedin { color: #0077B5; }
.nav-linkedin:hover { color: #005f92; background: #EBF5FB; }
.nav-linkedin::after { background: #0077B5; }

.nav-cta { flex-shrink: 0; }

/* === Language Dropdown === */
.lang-dropdown { position: relative; flex-shrink: 0; }

.lang-globe-btn {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.375rem 0.625rem;
  background: var(--gray-100); border: none; border-radius: 8px;
  cursor: pointer; font-size: 0.78rem; font-weight: 700;
  color: var(--gray-700); font-family: var(--font);
  transition: all 0.18s var(--ease);
  min-height: 36px; letter-spacing: 0.03em;
}
.lang-globe-btn:hover,
.lang-dropdown.open .lang-globe-btn { background: var(--gray-200); color: var(--primary); }

.lang-current { min-width: 18px; }

.lang-chevron { transition: transform 0.2s var(--ease); flex-shrink: 0; }
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.05);
  padding: 0.375rem; min-width: 175px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 200;
}
.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.lang-btn {
  display: flex; align-items: center;
  width: 100%; padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray-700); border: none; background: transparent;
  border-radius: var(--radius); cursor: pointer; font-family: var(--font);
  transition: all 0.15s var(--ease); text-align: left; white-space: nowrap;
}
.lang-btn.active { color: var(--primary); font-weight: 700; background: var(--gray-100); }
.lang-btn:hover:not(.active) { background: var(--gray-100); color: var(--gray-900); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0.625rem; border-radius: var(--radius);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: all 0.3s var(--ease); transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: var(--header-h); overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 45%, #0055AA 100%);
  z-index: -2;
}

.hero-orb {
  position: absolute; border-radius: 50%; z-index: -1;
  pointer-events: none; will-change: transform;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(77,159,255,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: orb-float 10s ease-in-out infinite;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0,163,224,0.14) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: orb-float 8s ease-in-out infinite reverse;
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(77,159,255,0.12) 0%, transparent 70%);
  top: 40%; left: 30%;
  animation: orb-float 12s ease-in-out infinite;
  animation-delay: -7s;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-25px) scale(1.04); }
  66%       { transform: translateY(15px) scale(0.97); }
}

.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; padding: 4rem 0;
}

.hero-badge {
  display: inline-flex; align-items: center;
  padding: 0.35rem 1rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.9); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  animation: hero-fade-down 0.7s var(--ease) 0.2s both;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800;
  color: var(--white); line-height: 1.15; margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  animation: hero-fade-up 0.8s var(--ease) 0.4s both;
}
.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem); color: rgba(255,255,255,0.82);
  line-height: 1.75; margin-bottom: 2.5rem; max-width: 500px;
  animation: hero-fade-up 0.8s var(--ease) 0.6s both;
}
.hero-actions {
  display: flex; gap: 0.875rem; flex-wrap: wrap;
  animation: hero-fade-up 0.8s var(--ease) 0.8s both;
}
.hero-visual {
  display: flex; justify-content: center;
  animation: hero-fade-left 0.9s var(--ease) 0.5s both;
}

@keyframes hero-fade-down {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-left {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: hero-fade-up 0.8s var(--ease) 1.2s both;
  cursor: pointer;
}
.hero-scroll span {
  font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.scroll-arrow {
  width: 28px; height: 28px; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  animation: bounce-arrow 2s ease-in-out infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(6px); opacity: 1; }
}

.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-xl); padding: 1.75rem;
  width: 100%; max-width: 370px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.hero-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.hero-card-title {
  font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-card-dot {
  width: 8px; height: 8px; background: var(--success); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.card-row {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.card-row:last-of-type { border-bottom: none; }
.alert-row {
  background: rgba(239,68,68,0.08); border-radius: 6px;
  padding: 0.55rem 0.5rem; margin: 0.1rem -0.25rem;
}

.indicator { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.indicator.green  { background: var(--success); }
.indicator.blue   { background: #60A5FA; }
.indicator.red    { background: var(--danger); animation: pulse-red 1.8s ease-in-out infinite; }
.indicator.orange { background: var(--warning); }
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50%       { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

.bar { flex: 1; height: 7px; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
.bar > div {
  height: 100%; background: rgba(255,255,255,0.55); border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.alert-bar > div { background: rgba(239,68,68,0.75); }

.time-label {
  font-size: 0.7rem; color: rgba(255,255,255,0.65);
  white-space: nowrap; min-width: 76px; text-align: right;
}
.alert-label { color: #FCA5A5; font-weight: 600; }

.hero-card-footer { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1.25rem; }
.badge-pill {
  padding: 0.28rem 0.7rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; font-size: 0.68rem; font-weight: 600;
  color: rgba(255,255,255,0.85); white-space: nowrap;
}

/* === Chips highlight row === */
.highlights {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 0 0;
}
.highlight-chip {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px; font-size: 0.78rem; font-weight: 500;
  color: rgba(255,255,255,0.8);
  animation: hero-fade-up 0.7s var(--ease) both;
}
.highlight-chip:nth-child(1) { animation-delay: 1s; }
.highlight-chip:nth-child(2) { animation-delay: 1.1s; }
.highlight-chip:nth-child(3) { animation-delay: 1.2s; }
.highlight-chip:nth-child(4) { animation-delay: 1.3s; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.chip-dot.g { background: var(--success); }
.chip-dot.o { background: var(--warning); }
.chip-dot.r { background: var(--danger); }
.chip-dot.b { background: #60A5FA; }

/* === Features === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }

.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); transition: all 0.32s var(--ease);
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: rgba(0,102,204,0.22);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); transform: scale(1.1) rotate(-5deg);
}

.feature-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, rgba(0,102,204,0.08), rgba(77,159,255,0.13));
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.25rem; color: var(--primary);
  transition: all 0.3s var(--ease);
}

.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.625rem; }
.feature-card p  { font-size: 0.9rem; color: var(--gray-500); line-height: 1.72; }

.feature-card--new {
  border-color: rgba(0,102,204,0.2);
  background: linear-gradient(145deg, var(--white) 60%, rgba(0,102,204,0.03) 100%);
}
.feature-badge {
  display: inline-flex; align-items: center;
  padding: 0.22rem 0.65rem; margin-bottom: 0.625rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); border-radius: 999px;
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === Demo section === */
.demo-section {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 55%, #0055AA 100%);
  position: relative; overflow: hidden;
}
.demo-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 15%, rgba(77,159,255,0.16) 0%, transparent 55%);
  pointer-events: none;
}

.demo-steps {
  display: flex; align-items: stretch; gap: 0;
  max-width: 880px; margin: 0 auto 2.5rem;
}
.demo-step {
  flex: 1; text-align: center; padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg); transition: all 0.32s var(--ease);
  will-change: transform;
}
.demo-step:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.demo-connector {
  width: 36px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.demo-connector::after {
  content: ''; display: block; width: 100%; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.4), rgba(255,255,255,0.2));
}
.demo-step-number {
  width: 54px; height: 54px; background: var(--white); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 800; margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease);
}
.demo-step:hover .demo-step-number { transform: scale(1.1); }

.demo-step h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.demo-step p  { font-size: 0.875rem; color: rgba(255,255,255,0.78); line-height: 1.65; }
.demo-step a  { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 3px; }
.demo-step a:hover { color: var(--white); }

.demo-info {
  max-width: 700px; margin: 0 auto 2.5rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg); padding: 1.5rem 2rem;
}
.demo-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.demo-info-item { display: flex; gap: 0.875rem; align-items: flex-start; }
.demo-info-icon { color: rgba(255,255,255,0.6); flex-shrink: 0; margin-top: 1px; }
.demo-info-item strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.demo-info-item p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.55; }

/* === Steps (How it works) === */
.steps { max-width: 740px; margin: 0 auto 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.step {
  display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.75rem;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: all 0.32s var(--ease); will-change: transform;
}
.step:hover {
  box-shadow: var(--shadow-md); border-color: rgba(0,102,204,0.2);
  transform: translateX(5px);
}
.step-icon {
  flex-shrink: 0; width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: var(--white); box-shadow: var(--shadow-blue);
  transition: transform 0.3s var(--ease);
}
.step:hover .step-icon { transform: scale(1.08) rotate(-3deg); }
.step-content h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.step-content p  { font-size: 0.9rem; color: var(--gray-500); line-height: 1.72; }

/* === FAQ === */
.faq-container { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.625rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.28s var(--ease);
}
.faq-item:hover { border-color: rgba(0,102,204,0.22); box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: rgba(0,102,204,0.3); box-shadow: var(--shadow); }

.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem; font-size: 0.95rem; font-weight: 600;
  color: var(--gray-900); cursor: pointer; list-style: none;
  transition: all 0.18s var(--ease); user-select: none;
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; display: block; width: 20px; height: 20px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230066CC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--gray-100); color: var(--primary); }
.faq-item[open] summary { background: rgba(0,102,204,0.04); color: var(--primary); }

.faq-item p {
  padding: 1rem 1.5rem 1.375rem; font-size: 0.9rem; color: var(--gray-500);
  line-height: 1.75; border-top: 1px solid var(--gray-200); margin: 0;
}
.faq-item p a { color: var(--primary); }
.faq-item p a:hover { text-decoration: underline; }

/* === Mentions === */
.mentions-content { max-width: 720px; margin: 0 auto; }
.mentions-block {
  border-left: 3px solid var(--primary-light);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--off-white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.mentions-block h3 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.6rem;
}
.mentions-block p { font-size: 0.93rem; color: var(--gray-700); line-height: 1.8; margin: 0; }
.mentions-block a { color: var(--primary); text-decoration: underline; }
.mentions-version {
  display: block; padding: 1rem 1.5rem; margin-top: 0.5rem;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); font-size: 0.88rem; color: var(--gray-700); line-height: 1.65;
}

/* === Footer === */
.footer {
  background: var(--primary-darker); color: var(--white); padding: 3rem 0 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}
.footer-content {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.footer-logo { color: var(--white); margin-bottom: 0.75rem; font-size: 1.1rem; }
.footer-logo:hover { color: var(--primary-light); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.55); max-width: 230px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: center; }
.footer-links a {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  transition: color 0.18s var(--ease); min-height: 36px;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* === FAB === */
.fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; width: 56px; height: 56px;
  background: var(--primary); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-blue), 0 8px 24px rgba(0,0,0,0.18);
  z-index: 900; transition: all 0.28s var(--ease);
  animation: fab-pulse 3s ease-in-out infinite;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  right: calc(1.5rem + env(safe-area-inset-right));
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: var(--shadow-blue), 0 8px 24px rgba(0,0,0,0.18); }
  50%       { box-shadow: 0 0 0 8px rgba(0,102,204,0.18), var(--shadow-blue); }
}
.fab:hover {
  background: var(--primary-dark); color: var(--white);
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 12px 32px rgba(0,102,204,0.45); animation: none;
}
.fab:active { transform: scale(0.96); }

/* === Scroll-triggered animations === */
[data-animate] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* === Scrollbar === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* === Focus === */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* === Responsive — Tablet === */
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* === Responsive — Mobile === */
@media (max-width: 768px) {
  :root { --header-h: 62px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column;
    justify-content: flex-start; align-items: stretch;
    padding: 1.25rem 1.5rem; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    gap: 0.375rem;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; border-top: 1px solid var(--gray-200);
  }
  .nav-menu.active { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; margin-right: 0; gap: 0.25rem; }
  .nav-link { padding: 0.875rem 1rem; font-size: 1rem; min-height: 52px; }
  .nav-link::after { display: none; }
  .nav-cta { width: 100%; margin-top: 0.75rem; padding: 0.875rem; font-size: 1rem; }

  .lang-dropdown {
    order: 2;
    margin-left: auto;
    margin-right: 0.25rem;
  }
  .nav-toggle { order: 3; }

  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { justify-content: center; }
  .hero-card { max-width: 340px; }
  .hero-scroll { display: none; }
  .highlights { gap: 0.5rem; }
  .highlight-chip { font-size: 0.74rem; padding: 0.4rem 0.8rem; }

  .features-grid { grid-template-columns: 1fr; }

  .demo-steps { flex-direction: column; align-items: stretch; gap: 1rem; }
  .demo-connector { width: auto; height: 20px; }
  .demo-connector::after { width: 2px; height: 100%; margin: 0 auto; }
  .demo-info-grid { grid-template-columns: 1fr; }

  .step { flex-direction: column; gap: 1rem; }
  .step:hover { transform: translateY(-3px); }

  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .footer-tagline { max-width: 100%; }
  .footer-links { justify-content: center; gap: 0.5rem 1.25rem; }
}

/* === Responsive — Small phones === */
@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 300px; }
  .hero-card { max-width: 100%; }
  .demo-step { padding: 1.5rem 1rem; }
  .demo-info { padding: 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
  .hero-badge, .hero-title, .hero-lead, .hero-actions,
  .hero-visual, .highlight-chip { animation: none; opacity: 1; transform: none; }
}

/* === Print === */
@media print {
  .header, .fab, .scroll-progress, .hero-scroll, .hero-visual,
  .nav-toggle, .hero-orb { display: none !important; }
  .hero { min-height: auto; padding: 1rem 0; }
  .hero-bg { display: none; }
  .hero-title, .hero-lead, .hero-badge { color: var(--gray-900) !important; animation: none !important; }
}

/* ============================================================
   Screenshot showcase
   ============================================================ */
.screenshot-showcase {
  margin: 3rem 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px var(--gray-200);
  background: var(--gray-100);
}

.screenshot-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--gray-200);
}

.screenshot-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.screenshot-dot:nth-child(1) { background: #FF5F57; }
.screenshot-dot:nth-child(2) { background: #FEBC2E; }
.screenshot-dot:nth-child(3) { background: #28C840; }

.screenshot-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 0.5rem;
  letter-spacing: 0.02em;
}

.screenshot-img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
  object-position: top left;
}

/* Placeholder quand l'image n'est pas encore déposée */
.screenshot-img[src="assets/screenshots/timeline.png"]:not([complete]) {
  min-height: 280px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

figcaption.screenshot-caption {
  padding: 0.875rem 1.5rem;
  font-size: 0.82rem;
  color: var(--gray-500);
  text-align: center;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  font-style: italic;
}

/* === PDF download link (feature card) === */
.feature-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(0,102,204,0.25);
  border-radius: var(--radius);
  padding: 0.4rem 0.875rem;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.feature-pdf-link:hover {
  background: rgba(0,102,204,0.06);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ============================================================
   Video embed (YouTube 16:9)
   ============================================================ */
.video-wrapper {
  margin: 3rem auto 2rem;
  max-width: 820px;
  width: 100%;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 0 0 1px var(--gray-200);
  background: var(--gray-900);
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

@media (max-width: 768px) {
  figcaption.screenshot-caption { padding: 0.75rem 1rem; }
  .video-wrapper { margin: 2rem 0; }
}

/* ============================================================
   RTL — Support arabe
   ============================================================ */
@keyframes hero-fade-right {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

[dir="rtl"] .hero-visual {
  animation-name: hero-fade-right;
}

[dir="rtl"] .nav-list {
  margin-right: 0;
  margin-left: 1rem;
}

[dir="rtl"] .step:hover {
  transform: translateX(-5px);
}

[dir="rtl"] .time-label {
  text-align: left;
}

/* Mobile nav : glisse depuis la gauche en RTL */
@media (max-width: 768px) {
  [dir="rtl"] .nav-menu {
    transform: translateX(-100%);
  }
  [dir="rtl"] .nav-menu.active {
    transform: translateX(0);
  }
  [dir="rtl"] .step:hover {
    transform: translateY(-3px);
  }
}
