/* Generated from src/styles/*.css by src/build.mjs */
/* Global base styles — carried over unchanged from the original single-page site. */
html { background: #08090c; color: #e7e9ee; }
/* Keep anchors, focused fields and scrolled-to elements clear of the fixed header (WCAG 2.4.11). */
html { scroll-padding-top: 6rem; }
body { font-family: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(255,122,0,.35); color: #fff; }

/* Arabic: Arabic typeface, no letter-spacing / uppercase (it breaks joined letters), taller lines. */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 600; }
html[lang="ar"] .uppercase { text-transform: none; letter-spacing: 0; }
html[lang="ar"] .font-mono:not([dir="ltr"]) { font-family: "IBM Plex Sans Arabic", "JetBrains Mono", sans-serif; }
html[lang="ar"] h1 { line-height: 1.3; }
html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.45; }
html[lang="ar"] p, html[lang="ar"] li { line-height: 1.85; }

.eyebrow { font-family: "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }

.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.glow-orb { background: radial-gradient(closest-side, rgba(255,122,0,.22), rgba(255,122,0,0)); filter: blur(10px); }
.text-gradient { background: linear-gradient(90deg, #ff7a00, #ffb35c); -webkit-background-clip: text; background-clip: text; color: transparent; }

[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

:focus-visible { outline: 2px solid #ff7a00; outline-offset: 3px; border-radius: 6px; }

/* Scroll reveal (only when JS is running; content is always visible without JS). */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  /* Must beat Tailwind's .scroll-smooth class on <html>. */
  html, html.scroll-smooth { scroll-behavior: auto !important; }
}

/* Header, navigation and language switcher. */
.lang-btn { color: #cbd5e1; }
.lang-btn:hover { color: #fff; }
.lang-btn[aria-current="true"] { background: #ff7a00; color: #08090c; }
.lang-btn[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; padding-top: .2rem; padding-bottom: .2rem; }

.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: #ff7a00; transform: scaleX(0); transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(.5); }
.nav-link.active { color: #fff; }
.nav-link.active::after { transform: scaleX(1); }

/* Solid header once the page is scrolled or the mobile menu is open. */
[data-header].is-solid { background: rgba(8,9,12,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.05); }

/* Cards, flow visual, calculator and form styles. */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -24px rgba(0,0,0,.8);
}
.glass-hover { transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.glass-hover:hover {
  border-color: rgba(255,122,0,.45); transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 48px -24px rgba(255,122,0,.25);
}

/* Animated line between steps in the hero flow (disabled for reduced motion). */
.flow-line { position: relative; overflow: hidden; }
.flow-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: linear-gradient(180deg, transparent, #ff7a00, transparent);
  animation: flow 2.4s linear infinite;
}
.flow-line.d1::after { animation-delay: .5s; } .flow-line.d2::after { animation-delay: 1s; }
.flow-line.d3::after { animation-delay: 1.5s; }
@keyframes flow { to { top: 100%; } }

/* Range slider: bigger touch target on mobile. */
input[type="range"][data-volume] { height: .5rem; }
input[type="range"][data-volume]::-webkit-slider-thumb { width: 22px; height: 22px; }

/* Contact form */
/* Honeypot: invisible to people. Clip-based hiding (not a large negative offset,
   which creates horizontal scroll in RTL). */
.honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
[data-field].has-error input:not([type="checkbox"]):not([type="radio"]),
[data-field].has-error select,
[data-field].has-error textarea { border-color: rgba(248,113,113,.7); }
[data-field].has-error > label input[type="checkbox"] { outline: 2px solid rgba(248,113,113,.7); outline-offset: 2px; }
select { background-image: none; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
