/* softwarebank × futureSofts — تعريفي */
:root {
  --color-bg: #0a0e27;
  --color-bg-elevated: #0f1524;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f4f6fb;
  --color-muted: #a8b0c8;
  --color-lime: #8cc63f;
  --color-lime-dim: #6fa32e;
  --color-cyan: #38bdf8;
  --purple-1: #4c1d95;
  --purple-2: #6d28d9;
  --purple-3: #7c3aed;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Cairo", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-lime);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(140, 198, 63, 0.06) 0%, transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.02) 80px,
      rgba(255, 255, 255, 0.02) 81px
    ),
    var(--color-bg);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 39, 0.85);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  border-radius: 10px;
  object-fit: contain;
}

.brand-logo--wide {
  height: 40px;
  width: auto;
  max-height: 40px;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem 1.2rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-lime), var(--color-lime-dim));
  color: #0a0e27 !important;
  border: none;
}

.nav-cta:hover {
  opacity: 0.92;
  color: #0a0e27 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    inset-inline: 1rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: rgba(15, 21, 36, 0.98);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.5rem 0;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 calc(4rem + 2vw);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-bullets {
    text-align: right;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-lime);
  background: rgba(140, 198, 63, 0.12);
  border: 1px solid rgba(140, 198, 63, 0.25);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.75rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-lime), #6eb82a);
  color: #0a0e27;
  box-shadow: 0 12px 28px rgba(140, 198, 63, 0.25);
}

.btn-primary:hover {
  color: #0a0e27;
  opacity: 0.95;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: rgba(140, 198, 63, 0.5);
  color: var(--color-lime);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  max-width: 340px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(140, 198, 63, 0.4),
    rgba(124, 58, 237, 0.35),
    rgba(56, 189, 248, 0.25)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-infinity {
  margin-inline: auto;
  border-radius: 12px;
}

.hero-bullets {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.hero-bullets li {
  position: relative;
  padding-inline-start: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--purple {
  background: linear-gradient(
    160deg,
    rgba(76, 29, 149, 0.35) 0%,
    rgba(10, 14, 39, 0.85) 55%,
    var(--color-bg) 100%
  );
  border-block: 1px solid var(--color-border);
}

.section--muted {
  background: var(--color-bg-elevated);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

.section-head--left {
  text-align: start;
  margin-inline: 0 0;
  max-width: 520px;
}

/* Partnership */
.partnership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .partnership-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(140, 198, 63, 0.25);
  transform: translateY(-2px);
}

.card--partner h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.2rem;
}

.card--partner p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.card-icon-img {
  margin-inline: auto;
}

.card-icon-img--wide {
  margin-inline: auto;
  max-height: 48px;
  width: auto;
}

/* Solutions grid */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

.card--solution {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.card--solution h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card--solution p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.solution-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0e27;
}

.solution-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(10, 14, 39, 0.55) 100%
  );
  pointer-events: none;
}

.solution-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.card--solution:hover .solution-photo img {
  transform: scale(1.06);
}

.solution-body {
  padding: 1rem 1.15rem 1.35rem;
}

.solutions-photo-credit {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.solutions-photo-credit a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.solutions-photo-credit a:hover {
  color: var(--color-lime);
}

@media (prefers-reduced-motion: reduce) {
  .card--solution:hover .solution-photo img {
    transform: none;
  }
}

/* Development */
.dev-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .dev-grid {
    grid-template-columns: 1fr;
  }
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-lime);
  font-weight: 800;
}

.dev-panel {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(124, 58, 237, 0.35),
    rgba(10, 14, 39, 0.9)
  );
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.dev-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #0a0e27;
  background: linear-gradient(135deg, #c4f530, var(--color-lime));
}

.dev-note {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* WhatsApp */
.wa-wrap {
  max-width: 720px;
}

.wa-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.wa-list {
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
}

.wa-list li {
  padding-inline-start: 1.4rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.wa-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
}

.wa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-wa {
  background: #25d366;
  color: #0a0e27;
  font-weight: 800;
}

.btn-wa:hover {
  color: #0a0e27;
  opacity: 0.95;
}

.btn-wa--alt {
  background: rgba(37, 211, 102, 0.2);
  color: #bbf7d0;
  border: 1px solid rgba(37, 211, 102, 0.45);
}

.btn-wa--alt:hover {
  color: #fff;
}

/* Contact */
.section--contact {
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}

@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-block {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: center;
}

.contact-block h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 600;
}

.contact-block--email a {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  word-break: break-word;
}

.contact-block--email a:last-child {
  margin-bottom: 0;
}

.contact-block--email a:hover {
  color: var(--color-lime);
}

.contact-phone {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-phone:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-phone-num {
  margin: 0 0 0.65rem;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.contact-phone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-action--call:hover {
  border-color: rgba(56, 189, 248, 0.55);
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.contact-action--wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.45);
  color: #86efac;
}

.contact-action--wa:hover {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brands {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brands img {
  opacity: 0.9;
}

.footer-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
