/* ===== Babel — formal corporate styles (plain CSS alongside Tailwind CDN) ===== */
:root {
  --gold: #BA9250;
  --gold-600: #9E7A3F;
  --gold-400: #CDA968;
  --gold-50: #FAF6EE;
  --gold-100: #F1E6D0;
  --ink: #353B3A;
  --ink-800: #2A2F2E;
  --ink-900: #1F2322;
  --ink-500: #5B6362;
  --ink-400: #7C8483;
  --ink-200: #CED2D1;
  --ink-100: #E3E5E5;
  --ink-50: #F4F5F5;
  --paper: #F7F5F1;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { overflow-x: hidden; }
::selection { background: var(--gold-100); color: var(--ink-800); }

.container-x { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container-x { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-x { padding-inline: 2rem; } }

/* Buttons — squared, formal */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  border-radius: 4px; padding: .65rem 1.25rem;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { padding: .9rem 1.6rem; font-size: .98rem; }
.btn-primary { background: var(--ink-800); color: #fff; }
.btn-primary:hover { background: var(--gold-600); }
.btn-outline { background: transparent; color: var(--ink-800); border-color: var(--ink-200); }
.btn-outline:hover { border-color: var(--ink-800); }

/* Top bar & nav */
.topbar-link { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-link:hover { color: var(--gold-400); }
.nav-link { position: relative; display: flex; height: 100%; align-items: center; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav-link:hover, .nav-link.is-active { color: var(--ink-800); }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
.mobile-link { display: block; padding: .8rem .25rem; font-weight: 500; border-bottom: 1px solid var(--ink-50); }
.mobile-link:hover { color: var(--gold-600); }
[data-header].is-scrolled { box-shadow: 0 8px 24px -18px rgba(31,35,34,.35); }

/* Kicker (section label) */
.kicker { display: inline-flex; align-items: center; gap: .75rem; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--gold-600); }
.kicker::before { content: ""; width: 2rem; height: 2px; background: var(--gold); }
.kicker-dark { color: var(--gold-400); }

/* Section heads */
.section { padding: 6rem 0; }
@media (max-width: 640px) { .section { padding: 4.25rem 0; } }
.head { max-width: 46rem; margin-inline: auto; text-align: center; }
.head .kicker { justify-content: center; }
.head-start { margin-inline: 0; text-align: right; }
.head-start .kicker { justify-content: flex-start; }
.head h2 { margin-top: 1rem; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.45; color: var(--ink-800); }
.head p { margin-top: .9rem; font-size: 1.02rem; line-height: 1.9; color: var(--ink-500); }

/* Hero */
.hero-pattern {
  background-image:
    linear-gradient(var(--ink-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-100) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to left, transparent 30%, #000 100%);
          mask-image: linear-gradient(to left, transparent 30%, #000 100%);
  opacity: .55;
}
.panel { background: #fff; border: 1px solid var(--ink-100); border-radius: 6px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(31,35,34,.35); }
.index-row { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.5rem; transition: background-color .2s; }
.index-row:hover { background: var(--paper); }
.index-row b { display: block; font-weight: 600; color: var(--ink-800); }
.index-row small { display: block; margin-top: .2rem; font-size: .82rem; color: var(--ink-400); }
.index-num { font-family: "Source Serif 4", serif; font-weight: 700; font-size: 1.15rem; color: var(--gold); min-width: 1.8rem; }

/* Insurance lines strip */
.lines { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .9rem; color: var(--ink-500); }
.lines li { display: inline-flex; align-items: center; gap: .5rem; }
.lines svg { width: 1.05rem; height: 1.05rem; color: var(--gold); stroke-width: 1.75; }

/* Why */
.why { padding: 2rem 1.5rem; border-bottom: 1px solid var(--ink-100); }
.why svg { width: 1.75rem; height: 1.75rem; color: var(--gold); stroke-width: 1.5; }
.why h3 { margin-top: 1.25rem; font-size: 1.08rem; font-weight: 700; color: var(--ink-800); }
.why p { margin-top: .55rem; font-size: .92rem; line-height: 1.85; color: var(--ink-500); }
@media (min-width: 640px) { .why { border-bottom: 0; } .why + .why { border-right: 1px solid var(--ink-100); } }
@media (min-width: 640px) and (max-width: 1023px) {
  .why:nth-child(3) { border-right: 0; }
  .why:nth-child(-n+2) { border-bottom: 1px solid var(--ink-100); }
}

/* Services */
.service { background: #fff; border: 1px solid var(--ink-100); border-top: 3px solid var(--gold); border-radius: 4px; padding: 2.25rem 2rem; transition: box-shadow .25s; }
.service:hover { box-shadow: 0 20px 40px -28px rgba(31,35,34,.4); }
.service header { display: flex; align-items: center; justify-content: space-between; }
.service header svg { width: 1.9rem; height: 1.9rem; color: var(--ink-800); stroke-width: 1.5; }
.service-num { font-family: "Source Serif 4", serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .1em; color: var(--gold); }
.service h3 { margin-top: 1.5rem; font-size: 1.3rem; font-weight: 700; color: var(--ink-800); }
.service > p { margin-top: .6rem; line-height: 1.9; color: var(--ink-500); }
.bullets { margin-top: 1.5rem; border-top: 1px solid var(--ink-100); }
.bullets li { position: relative; padding: .7rem 1.25rem .7rem 0; border-bottom: 1px solid var(--ink-50); font-size: .93rem; color: var(--ink); }
.bullets li:last-child { border-bottom: 0; }
.bullets li::before { content: ""; position: absolute; right: 0; top: 1.2rem; width: 6px; height: 6px; background: var(--gold); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--ink-100); border-radius: 4px; overflow: hidden; align-self: flex-start; }
@media (min-width: 1024px) { .tabs { align-self: auto; } }
.tab-btn { direction: ltr; padding: .7rem 1.25rem; font-size: .9rem; font-weight: 600; color: var(--ink-500); background: #fff; transition: background-color .2s, color .2s; }
.tab-btn + .tab-btn { border-right: 1px solid var(--ink-100); }
.tab-btn:hover { color: var(--ink-800); }
.tab-btn.is-active { background: var(--ink-800); color: #fff; }
.tab-panel { animation: fadeIn .4s ease both; }
.tab-panel.hidden { display: none; }

.product-tag { direction: ltr; text-align: right; font-family: "Source Serif 4", serif; font-weight: 700; letter-spacing: .2em; color: var(--ink-800); }
.product-tag span { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-weight: 500; color: var(--gold-600); border-left: 1px solid var(--gold); padding-left: .55rem; margin-left: .4rem; }
.product-title { margin-top: .9rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.45; color: var(--ink-800); }
.product-desc { margin-top: 1rem; line-height: 2; color: var(--ink-500); }

.checks { margin-top: 1.5rem; display: grid; gap: .75rem; }
.checks li { position: relative; padding-right: 1.75rem; font-size: .94rem; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; right: 0; top: .3rem; width: 1.05rem; height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BA9250' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Mockups */
.mock { background: #fff; border: 1px solid var(--ink-100); border-radius: 6px; overflow: hidden; box-shadow: 0 28px 56px -32px rgba(31,35,34,.4); }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; background: var(--ink-800); color: rgba(255,255,255,.85); font-size: .82rem; }
.mock-kpi { padding: 1.1rem .75rem; }
.mock-kpi p { font-size: .75rem; color: var(--ink-400); }
.mock-kpi b { display: block; margin-top: .2rem; font-size: 1.4rem; font-weight: 700; color: var(--ink-800); }
.mock-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.mock-table th { padding: .7rem 1.25rem; text-align: right; font-weight: 600; font-size: .75rem; color: var(--ink-400); background: var(--paper); border-bottom: 1px solid var(--ink-100); }
.mock-table td { padding: .7rem 1.25rem; border-bottom: 1px solid var(--ink-50); color: var(--ink); }
.mock-table td:nth-child(2) { font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-table td:last-child, .mock-table th:last-child { width: 38%; }
.meter { display: block; height: 6px; background: var(--ink-50); }
.meter i { display: block; height: 100%; background: var(--gold); }
.mock figcaption { padding: .7rem; text-align: center; font-size: .72rem; color: var(--ink-400); border-top: 1px solid var(--ink-50); }
.status-wait { border: 1px solid rgba(205,169,104,.5); color: var(--gold-400); padding: .15rem .6rem; font-size: .72rem; border-radius: 3px; }

.step { display: flex; gap: .9rem; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; right: .85rem; top: 2rem; bottom: -1.1rem; width: 1px; background: var(--ink-100); }
.step.done:not(:last-child)::after { background: var(--gold); }
.step > span { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-400); font-size: .75rem; font-weight: 700; z-index: 1; }
.step.done > span { background: var(--gold); border-color: var(--gold); color: #fff; }
.step.current > span { border: 2px solid var(--gold); color: var(--gold-600); }
.step b { font-size: .93rem; color: var(--ink-800); }
.step p { font-size: .82rem; color: var(--ink-400); }

.bubble-in, .bubble-out { width: fit-content; max-width: 85%; padding: .7rem 1rem; line-height: 1.8; border-radius: 6px; }
.bubble-in { margin-left: auto; background: var(--ink-50); color: var(--ink); }
.bubble-out { margin-right: auto; background: var(--paper); color: var(--ink-800); border-right: 3px solid var(--gold); }


/* Methodology */
.phase { background: #fff; padding: 2rem 1.75rem; }
.phase > span { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .78rem; font-weight: 600; color: var(--gold-600); }
.phase h3 { margin-top: .75rem; font-size: 1.1rem; font-weight: 700; color: var(--ink-800); }
.phase p { margin-top: .55rem; font-size: .92rem; line-height: 1.85; color: var(--ink-500); }

/* FAQ */
.faq { border-bottom: 1px solid var(--ink-100); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; font-weight: 600; color: var(--ink-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--ink-200); border-radius: 3px; color: var(--ink-500); font-size: 1rem; transition: transform .25s; }
.faq[open] summary::after { content: "−"; }
.faq[open] summary { color: var(--gold-600); }
.faq p { padding-bottom: 1.4rem; line-height: 1.95; color: var(--ink-500); }

/* Contact */
.contact-list { border-top: 1px solid var(--ink-100); }
.contact-list > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ink-100); }
.contact-list dt { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-400); }
.contact-list dt svg { width: 1.05rem; height: 1.05rem; color: var(--gold); }
.contact-list dd { font-weight: 600; color: var(--ink-800); }
.contact-list a:hover { color: var(--gold-600); }

.form { background: #fff; border: 1px solid var(--ink-100); border-radius: 6px; }
.field { display: grid; gap: .45rem; }
.field > span { font-size: .85rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 4px; border: 1px solid var(--ink-200); background: #fff;
  padding: .72rem .9rem; font: inherit; font-size: .95rem; color: var(--ink-800); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #A6ACAB; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-800); box-shadow: 0 0 0 3px rgba(186,146,80,.18); }
.field .is-invalid { border-color: #B91C1C; }

/* Footer */
.footer-h { margin-bottom: 1rem; font-weight: 600; color: #fff; }
.footer-list { display: grid; gap: .65rem; font-size: .9rem; }
.footer-list a:hover { color: var(--gold-400); }
.social { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; transition: background-color .2s, border-color .2s, color .2s; }
.social:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* Subtle reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Formal + lively layer — sharp edges, stronger gold accents, motion
   ===================================================================== */

/* No rounded corners anywhere */
*, *::before, *::after { border-radius: 0 !important; }

/* Buttons — sliding fill on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; letter-spacing: .01em; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.7,0,.3,1); }
.btn:hover::before { transform: scaleX(1); }
.btn-primary, .btn-primary:hover { background: var(--ink-900); color: #fff; }
.btn-primary::before { background: var(--gold-600); }
.btn-gold { background: var(--gold); color: var(--ink-900); }
.btn-gold::before { background: #fff; }
.btn-outline { border-color: var(--ink-800); }
.btn-outline::before { background: var(--ink-800); }
.btn-outline:hover { color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light::before { background: #fff; }
.btn-outline-light:hover { color: var(--ink-900); border-color: #fff; }
.btn-outline-dark { color: var(--ink-900); border-color: var(--ink-900); }
.btn-outline-dark::before { background: var(--ink-900); }
.btn-outline-dark:hover { color: #fff; }

/* Hero */
.hero { border-bottom: 4px solid var(--gold); }
.hero .hero-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to left, transparent 15%, #000 85%);
          mask-image: linear-gradient(to left, transparent 15%, #000 85%);
  opacity: 1;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px, 64px 64px; } }
.hero-glow { background: radial-gradient(600px 380px at 15% 40%, rgba(186,146,80,.22), transparent 70%); }
.hero-accent { position: relative; display: inline-block; color: var(--gold-400); }
.hero-accent::after { content: ""; position: absolute; right: 0; bottom: -.12em; height: 4px; width: 100%; background: var(--gold); transform-origin: right; animation: underline 1.1s .5s cubic-bezier(.7,0,.3,1) both; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; }
.hero-facts > div { padding-left: 2rem; margin-left: 2rem; border-left: 1px solid rgba(255,255,255,.12); }
.hero-facts > div:last-child { border-left: 0; margin-left: 0; padding-left: 0; }
.hero-facts dt { font-family: "Source Serif 4", serif; font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--gold-400); }
.hero-facts dd { margin-top: .5rem; font-size: .82rem; color: rgba(255,255,255,.6); }
@media (max-width: 480px) { .hero-facts > div { padding-left: 1rem; margin-left: 1rem; } .hero-facts dt { font-size: 1.6rem; } }

.panel { border: 0; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.index-row { position: relative; border-bottom: 1px solid var(--ink-100); transition: background-color .25s, padding .25s; }
.index-row::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); transform: scaleY(0); transition: transform .25s; }
.index-row:hover { background: var(--gold-50); padding-right: 1.9rem; }
.index-row:hover::before { transform: scaleY(1); }
.index-arrow { width: 1.1rem; height: 1.1rem; color: var(--ink-200); transition: color .25s, transform .25s; }
.index-row:hover .index-arrow { color: var(--gold-600); transform: translateX(-4px); }

/* Insurance lines ticker */
.ticker { display: flex; align-items: stretch; background: var(--gold); color: var(--ink-900); overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 1.5rem; background: var(--ink-900); color: var(--gold-400); font-size: .85rem; font-weight: 700; white-space: nowrap; position: relative; z-index: 1; }
.ticker-track { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent); }
.ticker-track ul { flex: none; display: flex; gap: 2.75rem; padding: 1.05rem 1.375rem; animation: ticker 32s linear infinite; }
.ticker-track li { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.ticker-track svg { width: 1.15rem; height: 1.15rem; stroke-width: 1.75; }
.ticker:hover .ticker-track ul { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(100%); } }
@media (max-width: 640px) { .ticker-label { display: none; } }

.kicker::before { width: 2.5rem; height: 3px; }

/* Why */
.why { transition: background-color .3s; }
.why h3, .why p { transition: color .3s; }
.why:hover { background: var(--ink-900); }
.why:hover h3 { color: #fff; }
.why:hover p { color: rgba(255,255,255,.65); }
.why svg { width: 3rem; height: 3rem; padding: .7rem; background: var(--gold-50); color: var(--gold-600); transition: background-color .3s, color .3s; }
.why:hover svg { background: var(--gold); color: var(--ink-900); }

/* Services */
.service { position: relative; border-top: 1px solid var(--ink-100); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.service::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--gold); transform-origin: right; transform: scaleX(.18); transition: transform .45s cubic-bezier(.7,0,.3,1); }
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(31,35,34,.45); }
.service:hover::before { transform: scaleX(1); }
.service header svg { width: 3.25rem; height: 3.25rem; padding: .8rem; background: var(--ink-900); color: var(--gold-400); transition: background-color .3s, color .3s; }
.service:hover header svg { background: var(--gold); color: var(--ink-900); }
.service-num { font-size: 2.6rem; letter-spacing: 0; color: var(--ink-100); transition: color .3s; }
.service:hover .service-num { color: var(--gold); }

/* Tabs */
.tab-btn.is-active { background: var(--gold); color: var(--ink-900); }


/* Methodology */
.phase { position: relative; overflow: hidden; transition: background-color .3s; }
.phase::after { content: ""; position: absolute; right: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s; }
.phase:hover { background: var(--gold-50); }
.phase:hover::after { transform: scaleX(1); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--gold); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 22px); }
.cta-band .btn-primary::before { background: #fff; }
.cta-band .btn-primary:hover { color: var(--ink-900); }

/* FAQ + form accents */
.faq summary::after { border-color: var(--ink-800); color: var(--ink-800); }
.faq[open] summary::after { background: var(--gold); border-color: var(--gold); color: var(--ink-900); }
.form { border-top: 4px solid var(--gold); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track ul, .hero .hero-pattern, .hero-accent::after { animation: none !important; }
}

/* =====================================================================
   Formal palette — deep charcoal + neutral greys, gold as a fine accent
   ===================================================================== */
:root {
  --ink-900: #181C1B;
  --ink-800: #242A29;
  --paper: #F4F4F2;
  --gold-600: #8A6A35;   /* gold for text on light backgrounds */
  --gold-400: #C9A86C;   /* gold for text on dark backgrounds */
  --line-dark: rgba(255,255,255,.09);
}

/* Hero: quieter glow, thin gold rule */
.hero { border-bottom: 1px solid var(--gold); }
.hero-glow { background: radial-gradient(640px 400px at 12% 45%, rgba(186,146,80,.10), transparent 70%); }
.hero .hero-pattern { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); }
.hero-accent::after { height: 2px; }
.panel-head { background: var(--ink-800); border-bottom: 2px solid var(--gold); }
.index-row:hover { background: var(--paper); }

/* Primary actions: charcoal; gold only on the hero CTA */
.btn-gold { background: var(--gold); color: var(--ink-900); }

/* Ticker: dark strip with gold icons */
.ticker { background: var(--ink-800); color: rgba(255,255,255,.82); border-bottom: 1px solid var(--line-dark); }
.ticker-label { background: var(--ink-900); color: var(--gold-400); border-left: 1px solid var(--line-dark); }
.ticker-track svg { color: var(--gold-400); }
.ticker-track { -webkit-mask-image: linear-gradient(to left, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(to left, transparent, #000 4%, #000 96%, transparent); }

/* Why: restrained hover */
.why:hover { background: var(--paper); }
.why:hover h3 { color: var(--ink-800); }
.why:hover p { color: var(--ink-500); }
.why svg { background: transparent; border: 1px solid var(--ink-100); color: var(--gold-600); }
.why:hover svg { background: var(--ink-800); border-color: var(--ink-800); color: var(--gold-400); }

/* Services */
.service::before { height: 3px; }
.service header svg { background: var(--ink-800); color: var(--gold-400); }
.service:hover header svg { background: var(--ink-900); color: var(--gold-400); }
.bullets li::before { background: var(--ink-800); width: 5px; height: 5px; }

/* Tabs */
.tab-btn.is-active { background: var(--ink-800); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }

/* Methodology */
.phase:hover { background: var(--paper); }

/* CTA band: dark, formal */
.cta-band { background: var(--ink-900); border-top: 1px solid var(--gold); }
.cta-band::before { background: radial-gradient(520px 260px at 90% 50%, rgba(186,146,80,.10), transparent 70%); }
.cta-band h2 { color: #fff !important; }
.cta-band p { color: rgba(255,255,255,.65) !important; }
.cta-band .btn-primary { background: var(--gold); color: var(--ink-900); }
.cta-band .btn-primary::before { background: #fff; }
.cta-band .btn-outline-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-outline-dark::before { background: #fff; }
.cta-band .btn-outline-dark:hover { color: var(--ink-900); }

/* FAQ / form */
.faq[open] summary { color: var(--ink-900); }
.faq[open] summary::after { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.form { border-top: 3px solid var(--ink-800); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-800); box-shadow: 0 0 0 3px rgba(36,42,41,.08); }

/* Preloader (shown on every load / reload) */
.preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink-900); transition: opacity .5s ease, visibility .5s ease; animation: preloaderFailsafe .5s 4s forwards; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; }
.preloader-mark { width: 84px; height: auto; animation: markIn .9s cubic-bezier(.2,.7,.2,1) both; }
.preloader-word { margin-top: 1.1rem; font-family: "Source Serif 4", serif; font-weight: 700; font-size: 1.15rem; letter-spacing: .45em; padding-left: .45em; color: #fff; animation: wordIn .9s .2s ease both; }
.preloader-bar { position: relative; display: block; width: 140px; height: 2px; margin-top: 1.25rem; background: rgba(255,255,255,.1); overflow: hidden; }
.preloader-bar i { position: absolute; inset: 0; width: 40%; background: var(--gold); animation: barSlide 1.1s ease-in-out infinite; }
@keyframes markIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; letter-spacing: .8em; } to { opacity: 1; } }
@keyframes barSlide { 0% { transform: translateX(260%); } 100% { transform: translateX(-160%); } }
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; } }
body.is-loading { overflow: hidden; }

/* Optional background-image slots (shown only if the image file exists) */
.bg-slot { background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.bg-slot.is-loaded { opacity: 1; }
.hero-bg.is-loaded { opacity: .18; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; }
.about-bg.is-loaded { opacity: .12; filter: grayscale(1) sepia(.35); -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 70%); mask-image: linear-gradient(to right, #000 0%, transparent 70%); }

/* About — framed Hammurabi stele */
.stele { display: flex; flex-direction: column; align-items: center; }
.stele-frame { position: relative; width: min(100%, 300px); aspect-ratio: 1 / 2; background: #000; border: 1px solid var(--line-dark); outline: 1px solid rgba(186,146,80,.35); outline-offset: 10px; overflow: hidden; }
.stele-frame img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); transition: transform 1.2s ease; }
.stele-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,28,27,.55), transparent 35%); }
.stele:hover .stele-frame img { transform: scale(1.04); }
.stele figcaption { margin-top: 1.75rem; text-align: center; }
.stele figcaption b { display: block; font-size: .95rem; color: #fff; }
.stele figcaption span { display: block; margin-top: .3rem; font-size: .82rem; color: rgba(255,255,255,.55); }
.stele figcaption small { display: block; margin-top: .6rem; font-size: .68rem; color: rgba(255,255,255,.35); }
.stele figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.stele figcaption a:hover { color: var(--gold-400); }
@media (max-width: 1023px) { .stele-frame { width: min(70%, 260px); } }

/* ===== Babel Travel (flagship) ===== */
.travel { background: var(--paper); border-bottom: 1px solid var(--ink-100); }
.travel-brand { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; font-family: "Source Serif 4", serif; font-size: 1.9rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; }
.travel-brand svg { width: 1.9rem; height: 1.9rem; padding: .4rem; background: var(--ink-800); color: #fff; }
.travel-brand b { color: var(--gold); }
.travel-brand small { align-self: flex-end; margin-bottom: .35rem; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .32em; color: var(--ink-500); }

/* App mockup */
.app { background: #fff; border: 1px solid var(--ink-100); box-shadow: 0 40px 80px -40px rgba(24,28,27,.45); overflow: hidden; }
.app-chrome { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--ink-50); border-bottom: 1px solid var(--ink-100); }
.app-chrome span { width: .6rem; height: .6rem; background: var(--ink-200); }
.app-chrome p { margin-inline: auto; padding: .2rem 1.2rem; background: #fff; border: 1px solid var(--ink-100); font-size: .72rem; color: var(--ink-400); }
.app-body { display: grid; grid-template-columns: 220px 1fr; min-height: 380px; }
.app-side { border-left: 1px solid var(--ink-100); padding: 1.25rem .9rem; background: #fff; }
.app-logo { display: flex; align-items: center; gap: .4rem; font-family: "Source Serif 4", serif; font-size: 1.2rem; font-weight: 700; color: var(--ink-900); }
.app-logo span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; background: var(--ink-800); color: #fff; }
.app-logo span svg { width: 1rem; height: 1rem; }
.app-logo b { color: var(--gold); }
.app-logo small { align-self: flex-end; margin-bottom: .2rem; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .55rem; letter-spacing: .3em; color: var(--ink-400); }
.app-group { margin: 1.4rem .5rem .5rem; font-size: .7rem; color: var(--ink-400); }
.app-side li { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; font-size: .82rem; color: var(--ink); }
.app-side li svg { width: 1rem; height: 1rem; color: var(--ink-400); }
.app-side li.is-active { background: var(--ink-50); box-shadow: inset -3px 0 0 var(--gold); font-weight: 600; color: var(--ink-900); }
.app-main { padding: 1.25rem 1.5rem 1.5rem; background: var(--paper); }
.app-top { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: var(--ink-900); }
.app-top span { padding: .3rem .8rem; background: #fff; border: 1px solid var(--ink-100); font-size: .75rem; color: var(--ink-500); }
.app-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 1rem; }
.app-kpis > div { background: #fff; border: 1px solid var(--ink-100); padding: .9rem 1rem; }
.app-kpis p { font-size: .72rem; color: var(--ink-400); }
.app-kpis b { display: block; margin-top: .35rem; font-size: 1.45rem; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.app-kpis small { display: block; margin-top: .2rem; font-size: .68rem; color: var(--ink-400); }
.app-kpis small.up { color: #047857; }
.app-chart { margin-top: .75rem; background: #fff; border: 1px solid var(--ink-100); padding: 1rem 1.1rem .6rem; }
.app-chart > p { font-size: .78rem; font-weight: 600; color: var(--ink-800); }
.bars { display: flex; align-items: flex-end; gap: 1rem; height: 140px; margin-top: 1rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--ink-100); }
.bars span { position: relative; flex: 1; height: var(--h); background: var(--ink-100); transform-origin: bottom; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.bars span.now { background: var(--gold); }
.bars em { position: absolute; bottom: -1.35rem; inset-inline: 0; text-align: center; font-style: normal; font-size: .62rem; color: var(--ink-400); white-space: nowrap; }
.app:not(.is-visible) .bars span { transform: scaleY(0); }
.app figcaption { padding: .6rem; text-align: center; font-size: .7rem; color: var(--ink-400); border-top: 1px solid var(--ink-100); }
@media (max-width: 900px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* Flow: insurer → agencies → traveller */
.flow { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink-100); background: #fff; }
.flow li { position: relative; padding: 1.75rem 1.75rem 1.75rem 2.5rem; }
.flow li + li { border-right: 1px solid var(--ink-100); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: -9px; top: 50%; z-index: 1; width: 16px; height: 16px; background: #fff; border-top: 1px solid var(--ink-200); border-left: 1px solid var(--ink-200); transform: translateY(-50%) rotate(-45deg); }
.flow span { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--ink-800); color: var(--gold-400); }
.flow span svg { width: 1.25rem; height: 1.25rem; }
.flow b { display: block; margin-top: 1rem; font-size: 1.05rem; color: var(--ink-900); }
.flow p { margin-top: .4rem; font-size: .9rem; line-height: 1.8; color: var(--ink-500); }
@media (max-width: 767px) {
  .flow { grid-template-columns: 1fr; }
  .flow li + li { border-right: 0; border-top: 1px solid var(--ink-100); }
  .flow li:not(:last-child)::after { left: 50%; top: auto; bottom: -9px; transform: translateX(-50%) rotate(-135deg); }
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink-100); border-right: 1px solid var(--ink-100); }
.feature { padding: 1.6rem 1.4rem; background: #fff; border-left: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); transition: background-color .3s; }
.feature:hover { background: var(--gold-50); }
.feature svg { width: 1.6rem; height: 1.6rem; color: var(--gold-600); stroke-width: 1.6; }
.feature h3 { margin-top: .9rem; font-weight: 700; color: var(--ink-900); }
.feature p { margin-top: .4rem; font-size: .86rem; line-height: 1.8; color: var(--ink-500); }
@media (max-width: 1023px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.travel-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 1.75rem; background: #fff; border: 1px solid var(--ink-100); border-right: 3px solid var(--gold); }
.travel-cta p { max-width: 46rem; line-height: 1.9; color: var(--ink-500); }
.travel-cta b { color: var(--ink-900); }

/* Hero announcement link */
.announce { display: flex; width: fit-content; align-items: center; gap: .65rem; padding: .35rem .9rem .35rem .4rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); font-size: .82rem; color: rgba(255,255,255,.8); transition: border-color .2s, background-color .2s; }
.announce span { padding: .15rem .55rem; background: var(--gold); color: var(--ink-900); font-size: .72rem; font-weight: 700; }
.announce:hover { border-color: var(--gold); background: rgba(186,146,80,.08); color: #fff; }
.announce svg { transition: transform .2s; }
.announce:hover svg { transform: translateX(-3px); }

/* Contact form states */
.form-status { margin-top: .9rem; padding: .85rem 1rem; font-size: .9rem; line-height: 1.7; border: 1px solid; }
.form-status.is-ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.form-status.is-err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }

/* Footer social */
.social:hover { background: var(--ink-800); border-color: var(--gold); color: var(--gold-400); }
.app-logo em { font-style: normal; }
