/* Captiva-style agency layout. Accent colors come from the Optgo mark
   (violet #8b5cf6 / deep #4c1d95), not the reference site's yellow. */

:root {
  color-scheme: dark;
  --bg: #151518;
  --bg-2: #101013;
  --card: #1b1b1f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #bdbdbd;
  --soft: #9a9aa3;
  --accent: #c4b5fd;
  --accent-strong: #8b5cf6;
  --accent-deep: #6d28d9;
  --header: #151518;
  --max: 1180px;
  --font: "Satoshi", Manrope, ui-sans-serif, system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Satoshi", Manrope, ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("../assets/hex.svg");
  background-size: 56px 98px;
  opacity: 0.9;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-deep);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-ar {
  display: none;
}

html[data-lang="ar"] .lang-en {
  display: none;
}

html[data-lang="ar"] .lang-ar {
  display: inline;
}

html[data-lang="ar"] body {
  font-family: var(--font-ar);
}

html[data-lang="ar"] .eyebrow,
html[data-lang="ar"] h1,
html[data-lang="ar"] h2,
html[data-lang="ar"] h3 {
  letter-spacing: 0;
  text-transform: none;
}

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

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: 8px;
  transform: translateY(-140%);
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 80;
}

.skip:focus {
  transform: none;
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.orb-a {
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, #c084fc 0%, rgba(109, 40, 217, 0.2) 55%, transparent 70%);
}

.orb-b {
  left: -140px;
  bottom: 10%;
  background: radial-gradient(circle, #5b21b6 0%, transparent 68%);
  opacity: 0.35;
}

.site {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  padding: 0 28px;
  background: #151518;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 26px;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: #d4d4d4;
  font-size: 16px;
  font-weight: 500;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: #d8b4fe;
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #d4d4d4;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
}

html[data-lang="en"] [data-set-lang="en"],
html[data-lang="ar"] [data-set-lang="ar"] {
  background: var(--accent-strong);
  color: #fff;
}

.menu-btn {
  position: relative;
  z-index: 41;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.backdrop,
.drawer {
  display: none;
  position: fixed;
  z-index: 110;
}

.backdrop {
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer {
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  height: 100dvh;
  background: #111114;
  padding: 28px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow: auto;
  z-index: 120;
  -webkit-overflow-scrolling: touch;
}

.backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer.is-open {
  transform: none;
}

body:has(.drawer.is-open) .to-top {
  visibility: hidden;
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer nav {
  display: grid;
  gap: 14px;
  margin: 36px 0;
}

.drawer nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 22px;
  font-weight: 700;
  touch-action: manipulation;
}

.drawer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.drawer li {
  margin: 8px 0;
  color: var(--muted);
  list-style: none;
}

.drawer ul {
  margin: 0;
  padding: 0;
}

.close-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero,
.page-hero,
.section {
  position: relative;
}

.hero,
.section {
  padding: 72px 0 40px;
}


.section-alt {
  background: rgba(0, 0, 0, 0.28);
}

.center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-strong);
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.accent {
  color: var(--accent);
}

.lede {
  max-width: 46ch;
  margin: 16px auto 0;
  color: var(--muted);
}

.lede.left {
  margin-left: 0;
  margin-right: 0;
}

.photo-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-top: 42px;
}

.shot {
  width: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(160deg, #4c1d95, #1a1028);
}

.photo-row .shot {
  height: 340px;
}

.about-split {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(240px, 360px);
  gap: 32px;
  align-items: center;
  margin-top: 36px;
  text-align: start;
}

.portrait {
  height: 460px;
  margin-top: -70px;
  border-radius: 30px;
}

.tab-list {
  display: grid;
  gap: 16px;
}

.tab,
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
}

.tab {
  height: 64px;
  padding: 0 22px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 18px;
}

.tab.is-active,
.btn-fill {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

.tab.is-active {
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  text-decoration: none;
}

.btn-dark {
  background: #2a2a30;
  color: #fff;
}

.btn-fill:hover,
.tab.is-active:hover {
  background: var(--accent-deep);
}

.copy p {
  margin: 0 0 16px;
  color: #dedee4;
}

.checks {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
  font-weight: 700;
}

.checks li::before {
  content: "✓";
  color: var(--accent-strong);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 54px;
}

.step {
  text-align: center;
}

.step-icon {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
}

.step-icon span {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  color: #151518;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
}

.step-icon svg {
  width: 36px;
  height: 36px;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.arrow {
  width: 42px;
  margin-top: 48px;
  color: #8d8d95;
}

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.feature-photos {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 18px;
  align-items: end;
}

.feature-photos .shot:first-child {
  height: 280px;
}

.feature-photos .shot:last-child {
  height: 420px;
}

.accordion details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.accordion summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 500;
}

.accordion details[open] summary::after {
  content: "–";
}

.accordion details p {
  margin: 0 0 18px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 42px;
}

.service-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.01);
  text-align: start;
}

.service-card img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 16px;
}

.service-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.more {
  color: var(--accent);
  font-weight: 700;
}

.message {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.info-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  margin: 10px 0;
  color: var(--muted);
}

.info-list a:hover {
  color: var(--accent);
}

.stack-form,
.field {
  display: grid;
  gap: 8px;
}

.stack-form {
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.2);
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #121216;
  padding: 14px 16px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  min-height: 1.2em;
  margin: 0;
  color: #fecaca;
  font-size: 14px;
}

.form-status {
  min-height: 1.3em;
  margin: 0;
  color: var(--accent);
}

.hint {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.page-hero {
  padding: 64px 0 10px;
}

.footer {
  margin-top: 20px;
  padding: 48px 0 28px;
  background: #101013;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer h2 {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.footer .eyebrow {
  margin-bottom: 12px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--accent);
}

.footer-base {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 14px;
}

.to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--accent-strong);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35);
}

@media (max-width: 980px) {
  .menu-btn {
    display: inline-flex;
  }

  .backdrop,
  .drawer {
    display: block;
  }

  .header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .drawer {
    width: min(400px, calc(100% - 64px));
    padding-top: 24px;
  }

  .photo-row,
  .about-split,
  .feature,
  .service-grid,
  .message,
  .footer-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps .arrow {
    display: none;
  }

  .portrait,
  .photo-row .shot,
  .feature-photos .shot:first-child,
  .feature-photos .shot:last-child {
    height: 260px;
    margin-top: 0;
  }

  .feature-photos {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    grid-template-columns: 120px 1fr;
  }

  .service-card img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 640px) {
  .feature-photos,
  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card img {
    width: 100%;
    height: 200px;
  }

  h1 {
    font-size: 2.3rem;
  }
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #0c0c10;
  color: #fff;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.splash-stage {
  position: relative;
  width: 320px;
  height: 320px;
  display: grid;
  place-items: center;
}

.splash-ring,
.splash-ring-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.splash-ring {
  inset: 0;
  border: 1px solid rgba(196, 181, 253, 0.28);
  animation: splash-spin 2.6s linear infinite;
}

.splash-ring::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #e9d5ff;
  box-shadow: 0 0 18px #8b5cf6;
}

.splash-ring-2 {
  inset: 22px;
  border: 2px solid transparent;
  border-top-color: #8b5cf6;
  border-right-color: #c4b5fd;
  animation: splash-spin 1.4s linear infinite reverse;
}

.splash-mark {
  width: 148px;
  height: 148px;
  animation: splash-pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.7));
}

.splash-name {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.28em;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: splash-word 0.4s 0.15s ease both;
}

html.reduce .splash {
  display: none;
}

html.js [data-animate] {
  opacity: 0;
  transform: translateY(32px);
}

html.js [data-animate].is-in {
  animation: rise 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes splash-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splash-word {
  from {
    opacity: 0;
    letter-spacing: 0.72em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.28em;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-animate],
  html.js [data-animate].is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .splash {
    display: none;
  }
}

/* Custom pointer. Circle color is Optgo violet; the rest of the site is unchanged. */
html.has-custom-cursor,
html.has-custom-cursor body,
html.has-custom-cursor body * {
  cursor: none;
}

html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor select {
  cursor: text;
}

.mouse-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translateZ(0);
  visibility: hidden;
}

.cursor-inner {
  width: 6px;
  height: 6px;
  z-index: 10001;
  background-color: #8b5cf6;
  transition:
    width 0.3s ease-in-out,
    height 0.3s ease-in-out,
    margin 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

.cursor-inner.cursor-hover {
  margin-left: -35px;
  margin-top: -35px;
  width: 70px;
  height: 70px;
  background-color: #8b5cf6;
  opacity: 0.3;
}

.cursor-outer {
  margin-left: -12px;
  margin-top: -12px;
  width: 30px;
  height: 30px;
  border: 1px solid #8b5cf6;
  box-sizing: border-box;
  z-index: 10000;
  opacity: 0.5;
  transition: all 0.08s ease-out;
}

.cursor-outer.cursor-hover {
  opacity: 0;
}

@media (pointer: coarse), (hover: none), (prefers-reduced-motion: reduce) {
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor body * {
    cursor: auto;
  }

  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select {
    cursor: text;
  }

  .mouse-cursor {
    display: none;
  }
}

/* Thin page scrollbar in Optgo violet.
   Chromium ignores ::-webkit-scrollbar sizing while scrollbar-width or
   scrollbar-color is set, and its "thin" bar stays near the system width.
   The standard properties stay for Firefox; WebKit uses the 6px rule below. */
html {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #151518;
}

@supports selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6d28d9;
}
