/* TwoSearches landing page. Brand: docs/brand.md (Midnight Navy, Electric Blue, Digital Cyan). */
:root {
  --navy: #101827;
  --navy-2: #0b1120;
  --card: #0d1422;
  --line: #1e293b;
  --blue: #2563eb;
  --cyan: #38bdf8;
  --white: #f8fafc;
  --slate: #94a3b8;
  --text: #cbd5e1;
  --radius: 18px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--white); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin-bottom: 28px; }
h3 { font-size: 21px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; inset-inline-start: 16px; top: 16px; z-index: 10; background: var(--white); color: var(--navy); padding: 8px 12px; border-radius: 8px; }
.dot { color: var(--cyan); }
.accent { color: var(--blue); background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .work a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { border: 1px solid #334155; color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(16, 24, 39, .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(30, 41, 59, .7); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { font: 700 24px/1 var(--display); color: var(--white); text-decoration: none; letter-spacing: -0.03em; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--white); }
.nav .btn { padding: 10px 18px; font-size: 15px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 110%, rgba(37, 99, 235, .35), transparent 60%), var(--navy-2); border-bottom: 1px solid var(--line); }
.beams { position: absolute; right: 0; bottom: 0; width: min(900px, 80vw); height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); mask-image: linear-gradient(to right, transparent, #000 35%); }
.hero-inner { position: relative; padding: 120px 24px 110px; }
.eyebrow, .kicker { font: 500 13px/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--slate); margin-bottom: 20px; }
.hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 26px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text); max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.tags { font: 500 13px/1 var(--body); letter-spacing: .3em; color: var(--slate); text-transform: uppercase; margin: 0; }
.tags span { color: var(--cyan); margin: 0 6px; }

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--navy-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub { color: var(--slate); margin: -12px 0 36px; max-width: 620px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--text); margin: 0; }
.search-card { padding: 34px; }
.search-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.search-head h3 { margin: 0; font-size: 26px; }
.badge { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.badge-blue { background: rgba(37, 99, 235, .18); color: #93c5fd; }
.badge-cyan { background: rgba(56, 189, 248, .15); color: #7dd3fc; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

/* Prism */
.prism { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.prism h2 { display: flex; align-items: center; gap: 12px; }
.prism .ticks { margin-bottom: 30px; }
.shot { margin: 0; }
.shot img { display: block; border-radius: 16px; border: 1px solid #23324a; box-shadow: 0 30px 80px -30px rgba(37, 99, 235, .55); }
.shot figcaption { color: var(--slate); font-size: 13px; margin-top: 10px; text-align: center; }

/* Work */
.work { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.work a:hover { border-color: #3b5277; transform: translateY(-2px); }
.work img { width: 56px; height: 56px; flex: none; border-radius: 14px; object-fit: contain; background: #fff0; }
.work strong { display: block; font: 700 16px/1.25 var(--display); color: var(--white); }
.work small { display: block; color: var(--slate); font-size: 13px; line-height: 1.4; margin-top: 3px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps p { margin: 0; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(37, 99, 235, .2); color: #93c5fd; font: 700 17px/1 var(--display); margin-bottom: 16px; }

/* Contact */
.contact { padding-top: 40px; }
.contact-box { text-align: center; padding: 70px 24px; border-radius: 26px; border: 1px solid #23324a; background: radial-gradient(ellipse at 50% 120%, rgba(56, 189, 248, .22), transparent 60%), radial-gradient(ellipse at 0% 0%, rgba(37, 99, 235, .25), transparent 55%), var(--card); }
.contact-box .lead { margin: 0 auto; }
.contact-box .cta-row { justify-content: center; margin-bottom: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 40px; }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--slate); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--white); }
.small { color: var(--slate); font-size: 14px; margin: 8px 0 0; }

/* Responsive */
@media (max-width: 1000px) {
  .work { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .prism { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .hero-inner { padding: 80px 24px 76px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .steps, .work { grid-template-columns: 1fr; }
  .beams { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .work a { transition: none; }
}

/* Arabic (right-to-left). Arabic letters must never be letter-spaced: it breaks how they join. */
[lang="ar"] body, body[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--body); }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { font-family: "IBM Plex Sans Arabic", var(--display); letter-spacing: 0; font-weight: 700; }
[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.15; }
[lang="ar"] .eyebrow, [lang="ar"] .kicker, [lang="ar"] .tags { letter-spacing: 0; text-transform: none; font-size: 15px; }
[lang="ar"] .lead { line-height: 1.85; }
[lang="ar"] .brand, [lang="ar"] .work strong { font-family: var(--display); }
[dir="rtl"] .beams { right: auto; left: 0; transform: scaleX(-1); opacity: .45; }
[dir="rtl"] .accent { background: linear-gradient(270deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.lang { font-size: 15px; }
