:root {
  --bg: #0b0618;
  --surface: #120a28;
  --accent: #e79852;
  --accent-soft: #f0b35a;
  --lavender: #b39ddb;
  --cyan: #22d3ee;
  --text: #f8fafc;
  --muted: #c4bdd8;
  --border: rgb(255 255 255 / 12%);
  --header-h: 4rem;
  --font-sans: "Cairo", system-ui, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-script: "Great Vibes", cursive;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(91, 74, 222, 0.16), transparent 42%),
    radial-gradient(ellipse at 90% 20%, rgba(231, 152, 82, 0.08), transparent 35%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.font-display {
  font-family: var(--font-display);
}

.font-script {
  font-family: var(--font-script);
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgb(11 6 24 / 75%);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text span {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgb(255 255 255 / 70%);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  padding: 0.35rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 70%);
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover {
  color: #fff;
  background: rgb(255 255 255 / 5%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

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

.btn-primary {
  background: var(--accent);
  color: #1a0b2e;
}

.btn-primary:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 25%);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 10%);
}

.btn-lg {
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  font-size: 1rem;
}

.btn-cta-desktop {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgb(255 255 255 / 10%);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

.nav-mobile.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  opacity: 0;
  transition: opacity 0.25s;
}

.nav-mobile.is-open .nav-backdrop {
  opacity: 1;
}

.nav-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(20rem, 88vw);
  padding: 1.5rem;
  background: var(--surface);
  border-inline-start: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease);
}

html[dir="rtl"] .nav-panel {
  transform: translateX(100%);
}

.nav-mobile.is-open .nav-panel {
  transform: translateX(0);
}

.nav-panel h2 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
}

.nav-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-panel a {
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  color: rgb(255 255 255 / 80%);
}

.nav-panel a:hover {
  background: rgb(255 255 255 / 5%);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media,
.section-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  object-position: 72% center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgb(11 6 24 / 25%), rgb(11 6 24 / 78%) 45%, #0b0618),
    radial-gradient(ellipse at 20% 20%, rgba(124, 107, 232, 0.28), transparent 50%);
}

.hero-glow {
  position: absolute;
  bottom: -6rem;
  left: -4rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 179, 90, 0.22), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 7rem 0 4rem;
}

.hero-copy {
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--lavender);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

.hero-brand {
  display: block;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  letter-spacing: -0.03em;
}

.hero-sub {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: rgb(255 255 255 / 75%);
}

.hero-line {
  display: block;
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
}

.hero-line em {
  font-style: normal;
  color: var(--accent);
}

.hero-body {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  color: rgb(255 255 255 / 75%);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.scroll-hint {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 50%);
  transition: color 0.2s;
}

.scroll-hint:hover {
  color: rgb(255 255 255 / 80%);
}

/* Sections */
.section {
  position: relative;
  padding: 5.5rem 0;
  overflow: hidden;
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.about-media::after {
  background:
    linear-gradient(rgb(11 6 24 / 88%), rgb(11 6 24 / 88%)),
    radial-gradient(circle at 80% 40%, rgba(91, 74, 222, 0.25), transparent 45%);
}

.about-media img {
  opacity: 0.4;
  object-position: center;
}

.services-media::after {
  background: rgb(11 6 24 / 90%);
}

.services-media img {
  opacity: 0.3;
  object-position: 70% center;
}

.contact-media::after {
  background: linear-gradient(to left, rgb(11 6 24 / 55%), rgb(11 6 24 / 92%), #0b0618);
}

.contact-media img {
  opacity: 0.35;
  object-position: right center;
}

.section-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lavender);
}

.section-title {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
}

.section-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: rgb(255 255 255 / 65%);
}

.script-label {
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1.2;
}

.prose {
  margin-top: 2rem;
  display: grid;
  gap: 1.15rem;
  color: rgb(255 255 255 / 75%);
  font-size: 1.05rem;
  line-height: 1.9;
}

.prose p {
  margin: 0;
}

.about-grid {
  display: grid;
  gap: 3rem;
}

.about-figure {
  display: none;
  position: relative;
  min-height: 22rem;
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(124, 107, 232, 0.25);
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(11 6 24 / 80%), transparent);
}

/* Cards */
.grid-2 {
  display: grid;
  gap: 1.15rem;
  margin-top: 2.5rem;
}

.card {
  padding: 1.5rem;
  border-radius: 1.35rem;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 3%);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgb(34 211 238 / 30%);
  background: rgb(255 255 255 / 5%);
  transform: translateY(-2px);
}

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

.card p {
  margin: 0.75rem 0 0;
  color: rgb(255 255 255 / 65%);
  font-size: 0.95rem;
  line-height: 1.75;
}

.card-n {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.service-card {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.icon-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 20%);
  color: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover .icon-wrap {
  border-color: rgb(34 211 238 / 50%);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
}

.icon-wrap svg {
  width: 1.4rem;
  height: 1.4rem;
}

.vision-grid .card h3 {
  color: var(--lavender);
}

.why-title {
  color: var(--accent-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-heading {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.contact-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 85%);
}

.contact-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list a,
.contact-list li {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-list a {
  color: var(--accent);
  transition: color 0.2s;
}

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

.contact-list .muted {
  color: rgb(255 255 255 / 75%);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 15%);
  color: #fff;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1rem;
  height: 1rem;
}

.contact-form {
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 4%);
  backdrop-filter: blur(10px);
}

.contact-form h3 {
  margin: 0;
  font-size: 1.2rem;
}

.contact-form > p {
  margin: 0.5rem 0 0;
  color: rgb(255 255 255 / 60%);
  font-size: 0.9rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.field label {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 80%);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgb(255 255 255 / 15%);
  background: rgb(255 255 255 / 5%);
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgb(255 255 255 / 35%);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(231 152 82 / 20%);
}

.contact-form .btn {
  width: 100%;
  margin-top: 1.15rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgb(8 4 18 / 80%);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.footer-nav a {
  color: rgb(255 255 255 / 65%);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-meta {
  color: rgb(255 255 255 / 55%);
  font-size: 0.875rem;
  line-height: 1.8;
}

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

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: rgb(255 255 255 / 45%);
  font-size: 0.8rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* Responsive */
@media (min-width: 640px) {
  .btn-cta-desktop {
    display: inline-flex;
  }

  .scroll-hint {
    display: inline-flex;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    align-items: center;
  }

  .hero-content {
    padding: 6rem 0;
  }

  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .about-figure {
    display: block;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 1.2fr 1fr;
    align-items: start;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-panel,
  .nav-backdrop,
  .card {
    transition: none;
  }
}
