:root {
  --ink: #061018;
  --ink-2: #0c1a24;
  --ink-3: #132836;
  --fog: #d7e6ef;
  --mute: #8aa3b5;
  --teal: #00d4c4;
  --teal-deep: #00a89c;
  --navy: #0a2a44;
  --line: rgba(215, 230, 239, 0.12);
  --glow: rgba(0, 212, 196, 0.35);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --container: min(1180px, calc(100% - 2.5rem));
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fog);
  background: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Atmosphere */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 85% 10%, rgba(0, 212, 196, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(10, 42, 68, 0.7), transparent 60%),
    linear-gradient(180deg, #061018 0%, #091722 40%, #061018 100%);
}

.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* Header */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(6, 16, 24, 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header__inner {
  width: var(--container);
  margin-inline: auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 1.75rem;
  min-width: 0;
}

.nav > a {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav > a:hover,
.nav > a.is-active {
  color: #fff;
}

.nav > a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 18%;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn--nav {
  padding: 0.72rem 1.2rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 230, 239, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-switch:hover {
  border-color: rgba(0, 212, 196, 0.45);
  background: rgba(0, 212, 196, 0.08);
}

.lang-switch svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #042029;
  box-shadow: 0 10px 30px var(--glow);
}

.btn--ghost {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: rgba(0, 212, 196, 0.45);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fog);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding: 8.5rem 0 5.5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 50% 35%, rgba(0, 212, 196, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 40% at 88% 78%, rgba(180, 60, 90, 0.1), transparent 60%),
    linear-gradient(160deg, #070b14 0%, #0d1524 42%, #0a121c 100%);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: -12% auto auto 50%;
  width: min(70%, 720px);
  height: 65%;
  transform: translateX(-50%);
  background:
    linear-gradient(118deg, transparent 42%, rgba(0, 212, 196, 0.45) 42.5%, rgba(0, 212, 196, 0.45) 43%, transparent 43.5%),
    linear-gradient(128deg, transparent 48%, rgba(214, 90, 110, 0.35) 48.5%, rgba(214, 90, 110, 0.35) 49%, transparent 49.5%);
  opacity: 0.7;
  pointer-events: none;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(0, 212, 196, 0.08), transparent 42%);
}

.hero__grid {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  text-align: center;
}

.hero__grid > * {
  max-width: min(48rem, 100%);
}

.hero__kicker,
.hero__brand,
.hero__meta {
  display: none;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.15s;
}

.hero h1 .hero__accent {
  color: var(--teal);
}

.hero h1 .hero__keep {
  white-space: nowrap;
  display: inline-block;
}

.hero__lead {
  margin: 0 auto;
  max-width: 34rem;
  color: rgba(215, 230, 239, 0.8);
  font-size: 1.12rem;
  line-height: 1.95;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.3s;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
  max-width: 44rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.45s;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 196, 0.45);
  background: rgba(7, 16, 26, 0.72);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}

.hero__pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.95rem;
  margin-top: 0.55rem;
  opacity: 0;
  animation: rise 0.9s ease forwards 0.6s;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fog);
  border: 1px solid rgba(215, 230, 239, 0.28);
}

.btn--ghost:hover {
  border-color: rgba(0, 212, 196, 0.5);
}

.btn__arrow {
  margin-inline-start: 0.35rem;
  font-size: 0.95em;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(0, 212, 196, 0.15);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.25;
  font-weight: 800;
}

.section__head p {
  margin: 0;
  color: var(--mute);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Partners */
.partners {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 2.2rem 0;
}

.partners__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.partners__label {
  color: var(--mute);
  font-weight: 600;
}

.partners__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: var(--fog);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 0.9rem;
}

.chip__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.chip--accent {
  border-color: rgba(0, 212, 196, 0.4);
  color: var(--teal);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about__visual {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(0, 212, 196, 0.2), transparent 45%),
    url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.about__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 16, 24, 0.85));
}

.about__badge {
  position: absolute;
  inset-inline-start: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  background: rgba(6, 16, 24, 0.75);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem 1.15rem;
}

.about__badge strong {
  display: block;
  font-size: 1.5rem;
  color: var(--teal);
}

.about__points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.point__num {
  color: var(--teal);
  font-weight: 800;
  font-size: 1.1rem;
}

.point h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.point p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

/* Services */
.services {
  background: linear-gradient(180deg, rgba(19, 40, 54, 0.35), transparent);
}

.services__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 88px 1.1fr 1.4fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.6rem 0.2rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding 0.25s ease;
}

.service:hover {
  background: rgba(0, 212, 196, 0.04);
  padding-inline: 0.8rem;
}

.service__num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal);
}

.service h3 {
  margin: 0;
  font-size: 1.35rem;
}

.service p {
  margin: 0;
  color: var(--mute);
}

.service__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--teal);
  transition: background 0.2s ease, transform 0.2s ease;
}

.service:hover .service__arrow {
  background: rgba(0, 212, 196, 0.12);
  transform: translateX(-4px);
}

/* Method */
.method__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  min-height: 220px;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset-inline-end: -20px;
  top: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 196, 0.2), transparent 70%);
}

.step__n {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

/* Work */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.work-item {
  position: relative;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-item:hover img {
  transform: scale(1.06);
}

.work-item__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(6, 16, 24, 0.92));
}

.work-item__body span {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
}

.work-item__body h3 {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
}

/* CTA */
.cta {
  padding-bottom: 6rem;
}

.cta__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 212, 196, 0.14), transparent 40%),
    linear-gradient(145deg, rgba(19, 40, 54, 0.8), rgba(6, 16, 24, 0.95));
  padding: clamp(1.5rem, 4vw, 2.8rem);
  overflow: hidden;
}

.cta__panel h2 {
  margin: 0 0 0.8rem;
}

.cta__panel > div > p {
  color: var(--mute);
  margin: 0 0 1.4rem;
}

.cta__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  color: var(--fog);
}

.cta__list li::before {
  content: "◆";
  color: var(--teal);
  margin-inline-end: 0.55rem;
  font-size: 0.7rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fog);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(0, 212, 196, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 212, 196, 0.12);
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form__note {
  margin: 0;
  color: var(--mute);
  font-size: 0.85rem;
}

.form__success {
  display: none;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0, 212, 196, 0.12);
  border: 1px solid rgba(0, 212, 196, 0.35);
  color: var(--teal);
  font-weight: 700;
}

.form.is-sent .form__success {
  display: block;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand img {
  height: 64px;
  width: auto;
  margin-bottom: 0.9rem;
}

.footer__brand p {
  margin: 0;
  color: var(--mute);
  max-width: 18rem;
}

.footer h4 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer a {
  color: var(--mute);
  transition: color 0.2s ease;
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mobile-nav__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(320px, 86vw);
  background: var(--ink-2);
  border-inline-end: 1px solid var(--line);
  padding: 1.4rem;
  display: grid;
  align-content: start;
  gap: 1rem;
  transform: translateX(12px);
  animation: slideIn 0.28s ease forwards;
}

.mobile-nav__panel a {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes slideIn {
  to {
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav,
  .header__actions {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-inline-start: auto;
  }

  .about__grid,
  .cta__panel,
  .method__grid,
  .work__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 64px 1fr;
    gap: 0.7rem 1rem;
  }

  .service p,
  .service__arrow {
    grid-column: 2;
  }

  .service__arrow {
    justify-self: start;
  }

  .method__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .method__grid,
  .work__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6.5rem;
  }

  .about__visual {
    min-height: 300px;
  }
}
