/* Brand tokens — provisional, derived from the event poster.
   Replace with the official DIVA HEALTH palette/typography once confirmed by Brand/Marketing. */
:root {
  --navy-900: #040d24;
  --navy-800: #061433;
  --navy-700: #0b2150;
  --blue-600: #1c4fd8;
  --blue-500: #2f6bff;
  --cyan-400: #22c3f0;
  --ink: #0d1b36;
  --ink-soft: #4a5872;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(6, 20, 51, 0.25);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--cyan-400); color: var(--navy-900); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font: 600 15px/1 var(--font-sans); letter-spacing: 0.01em;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  box-shadow: 0 10px 30px -10px rgba(34, 195, 240, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(34, 195, 240, 0.75); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(6, 20, 51, 0.08);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(6, 20, 51, 0.35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; }

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand-logo { display: block; height: 42px; width: auto; }

.nav { display: none; margin-inline-start: auto; gap: 30px; }
.nav a { position: relative; color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  transform: scaleX(0); transition: transform .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: none; }

/* Language switcher */
.lang { position: relative; margin-inline-start: auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: 600 13px/1 var(--font-sans); letter-spacing: .04em; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang-btn:hover, .lang.open .lang-btn { border-color: #c5cfe0; background: var(--bg-alt); }
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .chev { width: 14px; height: 14px; opacity: .7; transition: transform .2s ease; }
.lang.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60;
  min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 50px -18px rgba(6,20,51,.3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink-soft); font: 500 15px/1.2 var(--font-sans); text-align: start; cursor: pointer;
}
.lang-menu button[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.lang-menu button:hover { background: var(--bg-alt); color: var(--ink); }
.lang-menu button.active { color: var(--blue-600); background: rgba(47,107,255,.08); font-weight: 600; }
.lang-menu button.active::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }

.menu-toggle {
  flex: none; width: 42px; height: 42px; margin-inline-end: -6px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; display: grid; place-content: center; gap: 6px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s ease; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px rgba(6,20,51,.25);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .35s ease, visibility 0s linear .35s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .35s ease; }
.mobile-menu .container { display: grid; padding: 8px 0 24px; }
.mobile-menu a:not(.btn) {
  padding: 16px 0; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 20px; }
.site-header.menu-open { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 32px) 0 56px;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(47,107,255,.28), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(34,195,240,.14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.hero-glow {
  position: absolute; z-index: -1; right: -10%; bottom: -30%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(34,195,240,.18), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(transparent, rgba(4,13,36,.6));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(34,195,240,.35); background: rgba(34,195,240,.08);
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #bfefff;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 0 rgba(34,195,240,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,195,240,0); } 100% { box-shadow: 0 0 0 0 rgba(34,195,240,0); } }

.hero h1 {
  margin: 22px 0 18px;
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.5rem, 8.5vw, 5rem); letter-spacing: -0.01em; line-height: 1.04;
}
.accent {
  background: linear-gradient(90deg, var(--cyan-400), #7fd8ff 60%, var(--blue-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: rgba(255,255,255,.78); max-width: 34ch; }

.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero-content { min-width: 0; }

.meta-list {
  list-style: none; margin: 28px 0 28px; padding: 6px 18px;
  display: grid;
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.meta-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.meta-list li + li { border-top: 1px solid rgba(255,255,255,.08); }
.meta-list svg {
  flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 11px;
  background: rgba(34,195,240,.1);
  fill: none; stroke: var(--cyan-400); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.meta-list strong { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.meta-list small { color: rgba(255,255,255,.6); font-size: 13px; }

.hero-cta { display: grid; gap: 12px; }

.countdown {
  margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 460px;
}

/* Hero visual (tablet landscape & desktop) */
.hero-visual { display: none; position: relative; }
.visual-frame {
  position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), 0 0 0 8px rgba(255,255,255,.03);
}
.visual-frame picture { display: contents; }
.visual-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.visual-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,13,36,.1) 40%, rgba(4,13,36,.75)),
    linear-gradient(135deg, rgba(47,107,255,.2), transparent 50%);
}
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 30%; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(34,195,240,.14), transparent);
  animation: scan 7s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { transform: translateY(-40%); } 50% { transform: translateY(300%); } }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding-block: 12px; padding-inline: 12px 18px; border-radius: 14px;
  background: rgba(8, 22, 56, 0.72);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.float-card small { font-size: 12px; color: rgba(255,255,255,.6); }
.fc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); }
.fc-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fc-top { top: 10%; inset-inline-start: -40px; }
.fc-bottom { bottom: 12%; inset-inline-end: -28px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.countdown div {
  text-align: center; padding: 14px 6px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
}
.countdown span { display: block; font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  color: #fff;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(47,107,255,.25), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.section h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head { max-width: 640px; margin-bottom: 44px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600);
}
.kicker::before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400)); }
.kicker-light { color: var(--cyan-400); }
.muted { color: var(--ink-soft); }

/* About */
.about-grid { display: grid; gap: 28px; }
.about-grid p { color: var(--ink-soft); font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt {
  font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats dd { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }

/* Topics */
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.topic {
  position: relative; padding: 18px; border-radius: var(--radius);
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(47,107,255,.3); }
.topic svg {
  grid-row: span 2; align-self: start;
  width: 46px; height: 46px; padding: 11px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(47,107,255,.1), rgba(34,195,240,.14));
  fill: none; stroke: var(--blue-600); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.topic h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.topic p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* Details */
.details-grid { display: grid; gap: 56px; }
.detail-list { margin: 28px 0 24px; }
.detail-list div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }
.detail-list dd { margin: 0; font-weight: 500; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.text-link:hover { text-decoration: underline; }

.steps { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; inset-inline-start: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--blue-500), var(--cyan-400)); opacity: .25; }
.steps li { position: relative; display: flex; gap: 20px; padding: 14px 0; }
.step-num {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 0 0 6px #fff;
}
.steps h3 { font-size: 17px; font-weight: 600; margin: 8px 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Register */
.register-grid { display: grid; gap: 40px; align-items: start; }
.register-intro p { color: rgba(255,255,255,.72); font-size: 17px; margin-top: 14px; }
.assurance { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.assurance li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); font-size: 15px; }
.assurance svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--cyan-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form-card {
  color: var(--ink); background: #fff; border-radius: 20px; padding: 26px 20px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.form-row { display: grid; gap: 0 16px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; padding: 0; }
.field label span, .consent > span > span { color: var(--blue-600); }
.field small { font-weight: 400; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 16px/1.4 var(--font-sans); color: var(--ink);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5872' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-inline-end: 40px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus {
  outline: none; background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,107,255,.14);
}
.field.invalid input, .field.invalid select { border-color: #d64545; background: #fff7f7; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 14px; font-size: 13.5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-soft);
  transition: all .2s;
}
.chips input:checked + span { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); }
.chips input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.consent {
  display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 18px; padding: 14px;
  font-size: 14px; line-height: 1.5; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); cursor: pointer;
}
.consent.invalid { border-color: #d64545; background: #fff7f7; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-600); cursor: pointer; }

.form-error { min-height: 0; margin: 0 0 12px; color: #c03434; font-size: 14px; font-weight: 500; }
.form-error:empty { display: none; }
.form-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-soft); text-align: center; }

.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
button.loading .spinner { display: inline-block; }
button.loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: start; padding: 8px 4px; outline: none; }
.form-success h3 { font-family: var(--font-serif); font-size: 1.7rem; margin-bottom: 16px; }
.form-success p { color: var(--ink-soft); }
.form-success .sign { margin-top: 20px; color: var(--ink); }
.success-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
.success-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Privacy */
.privacy { display: grid; gap: 28px; }
.privacy-body details { border-bottom: 1px solid var(--line); }
.privacy-body summary {
  list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 0 36px; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.privacy-body summary::-webkit-details-marker { display: none; }
.privacy-body summary::after {
  content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600);
  transform: rotate(45deg); transition: transform .25s;
}
.privacy-body details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.privacy-body details p { color: var(--ink-soft); padding-bottom: 8px; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); color: var(--ink-soft); padding: 44px 0 110px; font-size: 14px; }
.footer-inner { display: grid; gap: 16px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--blue-600); }
.brand-footer { display: grid; justify-items: start; gap: 8px; }
.brand-footer .brand-logo { height: 56px; }
.brand-footer small { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.footer-info { display: grid; gap: 8px; }
.footer-contact a { font-weight: 600; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.copy { font-size: 13px; opacity: .85; }

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translateY(140%); transition: transform .35s ease;
}
.mobile-cta.visible { transform: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Language / RTL ---------- */
.i18n-pending body { opacity: 0; }

html[lang="ar"] {
  --font-sans: "IBM Plex Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif;
  --font-serif: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
html[lang="ar"] body * { letter-spacing: 0 !important; }
html[lang="ar"] .brand-footer small { font-size: 12.5px; }
html[lang="ar"] .hero h1 { line-height: 1.3; font-weight: 700; }
html[lang="ar"] .section h2 { line-height: 1.4; }
html[lang="ar"] .eyebrow, html[lang="ar"] .kicker { font-size: 13.5px; }
html[lang="ar"] .countdown small { font-size: 12px; }

[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] select { background-position: left 12px center; }

/* ---------- Breakpoints (mobile-first) ---------- */
@media (max-width: 359px) {
  .container { width: calc(100% - 28px); }
  .brand-logo { height: 36px; }
  .lang-btn { padding: 0 10px; }
  .lang-btn .chev { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; padding: 6px 12px; }
  .countdown { gap: 6px; }
  .countdown small { font-size: 9.5px; letter-spacing: .06em; }
  .form-card { padding: 22px 16px; }
  .stats { gap: 10px; }
}

@media (min-width: 480px) {
  .brand-logo { height: 46px; }
}

@media (min-width: 600px) {
  .container { width: min(1160px, 100% - 64px); }
  .header-cta { display: inline-flex; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .topic { display: block; padding: 24px; }
  .topic svg { margin-bottom: 16px; }
  .topic h3 { font-size: 17px; margin-bottom: 6px; }
  .form-card { padding: 36px 32px; }
  .meta-list {
    grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px;
    padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .meta-list li { padding: 0; }
  .meta-list li + li { border-top: 0; }
  .meta-list svg { width: 44px; height: 44px; padding: 11px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
  .hero-cta { display: flex; flex-wrap: wrap; }
  .countdown { gap: 10px; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .nav { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
  .lang { margin-inline-start: 4px; }
  .header-inner { gap: 20px; }
  .hero { min-height: min(100svh, 980px); padding-bottom: 72px; }
  .section { padding: 112px 0; }
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .topics { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .details-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .register-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; }
  .register-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .privacy { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 48px; }
  .footer-inner .copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
  .site-footer { padding-bottom: 48px; }
  .mobile-cta { display: none; }
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.2fr .8fr; gap: 48px; }
  .hero h1 { font-size: clamp(3rem, 4.9vw, 5.4rem); }
  .hero-visual { display: block; }
  .meta-list { gap: 20px; }
  .meta-list li { gap: 10px; }
  .meta-list svg { width: 38px; height: 38px; padding: 9px; }
  .meta-list strong, .meta-list small { white-space: nowrap; }
}

@media (min-width: 1280px) {
  .hero-inner { grid-template-columns: 1.08fr .92fr; gap: 72px; }
  .meta-list { gap: 28px; }
  .meta-list li { gap: 14px; }
  .meta-list svg { width: 44px; height: 44px; padding: 11px; }
}

@media (min-width: 1440px) {
  .container { width: min(1240px, 100% - 96px); }
  .hero-inner { gap: 96px; }
}

/* Landscape phones: avoid a cramped, over-tall hero */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 24px); }
  .hero h1 { font-size: 2.4rem; }
  .countdown { display: none; }
  .mobile-menu { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
}

@media (hover: none) {
  .topic:hover, .btn-primary:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
