/* AqlGenix — site styles */
:root {
  --ink: #06111F;
  --ink-2: #0A1A2C;
  --surface: #0C1F33;
  --line: #1B3248;
  --line-2: #21405A;
  --line-3: #2D4D68;
  --text: #EEF1FA;
  --text-2: #C9D0E6;
  --muted: #B4BCD6;
  --dim: #8E98B8;
  --teal: #3FE0CF;
  --gold: #E9C46A;
  --gold-ink: #1A1206;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand: 'Space Grotesk', var(--sans);
  --radius: 18px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: #9BF0E6; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.gold { color: var(--gold); }
.teal { color: var(--teal); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 8px; z-index: 100; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 12px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #F2D58C; color: var(--gold-ink); }
.btn-ghost { border-color: var(--line-3); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 17, 31, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid #14283C;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 24px/1.1 var(--brand); letter-spacing: .5px; color: var(--text); }
.brand-sub { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--dim); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a:not(.btn) { color: var(--text-2); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-3); color: var(--text); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 24px 20px; background: var(--ink); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid #14283C; }
  .site-nav .btn { margin-top: 12px; }
}

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); font-weight: 600;
}
.rule { width: 32px; height: 2px; background: var(--gold); flex: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 96px 88px; }
.hero-copy { flex: 999 1 540px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 6.2vw, 82px); line-height: 1.02; letter-spacing: -1.5px; margin-bottom: 24px; }
.lead { max-width: 600px; font-size: 19px; color: #C2C9DF; margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  flex: 1 1 320px; position: relative; aspect-ratio: 1 / 1; max-width: 400px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
}
.orbit { position: absolute; inset: 0; border: 1px solid var(--line-2); border-radius: 50%; }
.orbit-2 { inset: 12%; border-style: dashed; border-color: #1B3A50; }
@media (prefers-reduced-motion: no-preference) {
  .orbit-2 { animation: spin 60s linear infinite; }
  .hero-mark { animation: float 6s ease-in-out infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-mark { width: 62%; height: auto; filter: drop-shadow(0 0 40px rgba(63, 224, 207, .18)); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.chip-top { top: 8%; right: -4%; }
.chip-bottom { bottom: 10%; left: -6%; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Strip */
.strip { background: var(--ink-2); border-block: 1px solid #14283C; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 24px; font-size: 15px; color: var(--muted); }
.strip b { font-family: var(--brand); color: var(--teal); margin-inline-end: 8px; }

/* Sections */
.section { padding-block: 96px; }
.section-alt { background: var(--ink-2); border-block: 1px solid #14283C; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 48px; }
.section-head > div { flex: 1 1 520px; }
.section-head > p { flex: 0 1 380px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); }

.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card h3, .solution h3 { font-size: 22px; margin: 18px 0 10px; }
.card p, .solution p, .step p { color: var(--muted); }
.icon { width: 36px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.solutions { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.solution { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; }
.solution h3 { margin-top: 10px; }
.tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.step { border-top: 2px solid var(--teal); padding-top: 22px; }
.step h3 { font-size: 21px; margin: 8px 0; }
.num { font: 700 40px/1 var(--brand); color: var(--teal); }
.step-gold { border-color: var(--gold); }
.step-gold .num { color: var(--gold); }

/* Contact */
.contact-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px;
  padding: clamp(24px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 48px;
}
.contact-info { flex: 1 1 340px; min-width: 0; }
.contact-info h2 { margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; color: var(--text-2); }
.contact-list li > * { align-self: flex-start; }
.contact-list b { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.contact-form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.optional { font-weight: 400; color: var(--dim); }
.contact-form input, .contact-form textarea {
  background: var(--ink); border: 1px solid var(--line-3); border-radius: 10px;
  padding: 14px; color: var(--text); font: 400 16px/1.5 var(--sans);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(63, 224, 207, .18); }
.contact-form [aria-invalid="true"] { border-color: #FF8A80; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #FF9F94; }

/* Footer */
.site-footer { border-top: 1px solid #14283C; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; }
.footer-brand .brand-name { font-size: 22px; }
.footer-brand p { font-size: 14px; margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.footer-nav a { color: var(--text-2); text-decoration: none; }
.footer-nav a:hover { color: var(--teal); }

@media (max-width: 520px) {
  .hero { padding-block: 64px 56px; }
  .section { padding-block: 72px; }
  .chip-top { right: 0; }
  .chip-bottom { left: 0; }
}

/* Form note + legal pages */
.form-note { font-size: 13px; color: var(--dim); margin: -4px 0 0; }
.form-note a { color: var(--text-2); }
.legal { max-width: 780px; padding-block: 72px 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-inline-start: 22px; margin: 12px 0 0; display: grid; gap: 6px; }
.legal .updated { color: var(--dim); font-size: 14px; margin-bottom: 32px; }
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-block: 96px; }
.notfound .code { font: 700 96px/1 var(--brand); color: var(--teal); }

/* Language switch */
.site-nav a.lang-switch { border: 1px solid var(--line-3); border-radius: 999px; padding: 6px 14px; color: var(--text); }
.site-nav a.lang-switch:hover { border-color: var(--teal); }
@media (max-width: 760px) { .site-nav a.lang-switch { border: 0; border-bottom: 1px solid #14283C; border-radius: 0; padding: 12px 0; } }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 18px;
  background: var(--teal); color: #04121A; border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.wa-float:hover { background: #7BEDE1; color: #04121A; }
.wa-float svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }

/* Arabic (RTL) */
html[lang="ar"] {
  --serif: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
  --sans: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; letter-spacing: 0; }
html[lang="ar"] .hero h1 { line-height: 1.3; letter-spacing: 0; }
html[lang="ar"] .section h2 { line-height: 1.35; }
html[lang="ar"] .eyebrow, html[lang="ar"] .brand-sub, html[lang="ar"] .tag,
html[lang="ar"] .contact-list b { letter-spacing: 0; text-transform: none; }
html[lang="ar"] .eyebrow { font-size: 15px; }
html[lang="ar"] .brand-sub { font-size: 12px; }
html[dir="rtl"] .chip-top { right: auto; left: -4%; }
html[dir="rtl"] .chip-bottom { left: auto; right: -6%; }
html[dir="rtl"] .brand-name, html[dir="rtl"] .num { font-family: var(--brand); }
@media (max-width: 520px) {
  html[dir="rtl"] .chip-top { left: 0; }
  html[dir="rtl"] .chip-bottom { right: 0; }
}
