:root {
  color-scheme: dark;
  scroll-behavior: smooth;
  --bg: #050914;
  --surface: #101827;
  --surface-hover: #172033;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --secondary: #0f3f75;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(56, 189, 248, 0.22);
  --border-soft: rgba(56, 189, 248, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --glow: 0 0 34px rgba(56, 189, 248, 0.16);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 189, 248, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(14, 165, 233, 0.08), transparent 26rem),
    linear-gradient(180deg, #050914 0%, #07101d 42%, #050914 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 70%);
}

.site-header {
  background: rgba(5, 9, 20, 0.82);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
}

.mobile-menu {
  background: rgba(5, 9, 20, 0.97);
  backdrop-filter: blur(18px);
}

.brand-link img {
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.16);
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(16, 24, 39, 0.88);
  border-color: rgba(56, 189, 248, 0.55);
  color: var(--primary);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

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

.mobile-nav-link {
  display: block;
  padding: 0.85rem 1rem;
}

.hero-section {
  position: relative;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(to top, rgba(5, 9, 20, 0.98), transparent);
}

.hero-logo-wrap {
  width: min(100%, 23rem);
}

.hero-logo-frame {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 24px;
  background: #101827;
  overflow: hidden;
  padding: 24px;
}

.hero-logo {
  width: 100%;
  border-radius: 18px;
}

.hero-meta {
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 800;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-stats span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--primary);
}

.section-wrap {
  padding: 4.5rem 0;
  position: relative;
}

#about.section-wrap {
  padding: 4rem 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.section-title {
  color: var(--text);
  font-size: clamp(1.75rem, 2.45vw, 2.35rem);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
}

.panel,
.featured-project {
  border: 1px solid var(--border-soft);
  background: rgba(16, 24, 39, 0.92);
  box-shadow: var(--shadow);
}

.panel {
  border-radius: 1.5rem;
}

.panel {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.panel:hover {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(23, 32, 51, 0.86);
}

.about-layout {
  align-items: start;
}

.about-copy {
  max-width: 48rem;
}

.about-lead {
  color: #dbeafe;
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.85;
}

.about-secondary {
  margin-top: 1.35rem;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
  padding-top: 1.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.projects-subtitle {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.6;
}

.icon-box {
  display: grid;
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 1rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
}

.featured-projects {
  display: grid;
  gap: 0.85rem;
}

.featured-project {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  border-color: rgba(56, 189, 248, 0.14);
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.045), transparent 36%),
    rgba(16, 24, 39, 0.48);
  padding: 48px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.featured-project:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.34);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.07), transparent 38%),
    rgba(16, 24, 39, 0.58);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24), 0 0 28px rgba(56, 189, 248, 0.09);
}

.featured-project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 999px;
  background: rgba(5, 9, 20, 0.44);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.55rem 0.76rem;
}

.project-badges svg {
  color: var(--primary);
}

.featured-project-title {
  margin-top: 1.15rem;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(1.55rem, 2.7vw, 2.65rem);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-project-title[dir="rtl"] {
  text-align: right;
}

.featured-project-description {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.featured-project-media {
  position: relative;
  min-width: 0;
}

.featured-project-media::before {
  content: none;
}

.featured-project-image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 1.15rem;
  background: rgba(5, 9, 20, 0.42);
  object-fit: contain;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease;
}

.featured-project:hover .featured-project-image {
  transform: scale(1.012);
}

.store-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.store-overlay-label {
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.store-overlay-actions {
  display: flex;
  gap: 0.5rem;
}

.store-overlay-button {
  display: grid;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.store-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.store-overlay-button:hover {
  transform: scale(1.05);
  border-color: rgba(125, 211, 252, 0.86);
  background: rgba(14, 165, 233, 0.28);
}

.connect-title {
  color: var(--text);
  margin-top: 1.35rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.connect-subtitle {
  margin: 12px auto 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 650;
  line-height: 1.55;
}

.connect-store-block {
  margin-top: 40px;
}

.connect-social-block {
  margin-top: 40px;
}

.connect-row-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.connect-row-label svg {
  color: var(--primary);
}

.connect-store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 1.5rem;
}

.connect-store-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  padding: 0 1.5rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.connect-store-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.connect-store-primary {
  border-color: rgba(125, 211, 252, 0.52);
  background: var(--primary);
  color: #03111f;
}

.connect-store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.86);
  background: rgba(56, 189, 248, 0.08);
  color: #e0f2fe;
  box-shadow: var(--glow);
}

.connect-store-primary:hover {
  background: #7dd3fc;
  color: #020617;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-button {
  display: grid;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 1rem;
  background: rgba(16, 24, 39, 0.6);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.social-button:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.78);
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
  box-shadow: var(--glow);
}

.team-card {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.team-image-wrap {
  display: grid;
  place-items: center;
}

.team-image {
  aspect-ratio: 1;
  width: min(100%, 260px);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  object-fit: cover;
  padding: 0.35rem;
}

.team-content {
  max-width: 44rem;
}

.team-role {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-name {
  margin-top: 0.55rem;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1.05;
}

.team-description {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.team-tags span {
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.5rem 0.72rem;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.contact-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  max-width: 34rem;
}

.contact-intro {
  margin-top: 1.25rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}

.contact-intro span {
  display: block;
}

.contact-info-list {
  display: grid;
  margin-top: 2.25rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 0;
}

.contact-info-item + .contact-info-item {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.contact-info-icon {
  display: grid;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.06);
  color: var(--primary);
}

.contact-info-item h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.2;
}

.contact-info-item p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact-form {
  background: transparent;
  padding: 0;
}

.contact-form .label-text {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 900;
  padding-bottom: 0.45rem;
}

.contact-input,
.contact-textarea {
  width: 100%;
  min-height: 4.35rem;
  border-color: rgba(56, 189, 248, 0.34);
  border-radius: 1rem;
  background: rgba(5, 9, 20, 0.24);
  color: var(--text);
  font-size: 1rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(148, 163, 184, 0.78);
}

.contact-textarea {
  min-height: 12rem;
  padding-top: 1.15rem;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: rgba(56, 189, 248, 0.76);
  background: rgba(5, 9, 20, 0.68);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
  outline: none;
}

.contact-submit {
  min-height: 4rem;
  width: 100%;
  justify-content: center;
  gap: 0.85rem;
}

.btn {
  min-height: 2.9rem;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  border: 1px solid rgba(125, 211, 252, 0.38);
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #03111f;
  box-shadow: 0 16px 38px rgba(14, 165, 233, 0.23);
}

.btn-primary:hover {
  border-color: rgba(186, 230, 253, 0.75);
  background: linear-gradient(180deg, #7dd3fc, var(--primary-dark));
  color: #020617;
  box-shadow: 0 18px 44px rgba(56, 189, 248, 0.28);
}

.btn-secondary,
.btn-outline {
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(5, 9, 20, 0.22);
  color: var(--text);
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: rgba(125, 211, 252, 0.82);
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
  box-shadow: var(--glow);
}

footer {
  background: rgba(5, 9, 20, 0.9);
}

@media (max-width: 1024px) {
  .featured-project {
    padding: 36px;
  }
}

@media (min-width: 768px) {
  .featured-project {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.48fr);
    justify-content: space-between;
  }

  .featured-project-reverse .featured-project-content {
    order: 2;
  }

  .featured-project-reverse .featured-project-media {
    order: 1;
  }

  .team-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(4rem, 7vw, 7rem);
  }
}

@media (max-width: 640px) {
  .section-wrap {
    padding: 3.5rem 0;
  }

  #about.section-wrap {
    padding: 3rem 0;
  }

  .section-title {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
  }

  .hero-logo-wrap {
    width: min(100%, 18rem);
  }

  .hero-logo-frame {
    border-radius: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
  }

  .featured-project {
    gap: 1.5rem;
    padding: 28px;
  }

  .featured-project-title {
    font-size: clamp(1.25rem, 6vw, 1.65rem);
  }

  .featured-project-title[dir="rtl"] {
    text-align: left;
    white-space: normal;
  }

  .featured-project-image {
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
  }

  .store-overlay {
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: calc(100% - 2rem);
    gap: 0.5rem;
  }

  .store-overlay-button {
    width: 40px;
    height: 40px;
  }

  .connect-title {
    margin-top: 1rem;
  }

  .connect-store-button {
    width: 100%;
  }

  .connect-store-actions {
    gap: 0.75rem;
    margin-top: 1.1rem;
  }

  .connect-store-block,
  .connect-social-block {
    margin-top: 32px;
  }

  .social-button {
    width: 3.25rem;
    height: 3.25rem;
  }

  .team-card {
    gap: 1.5rem;
  }

  .contact-info-item {
    align-items: flex-start;
  }

  .contact-info-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .contact-input,
  .contact-textarea {
    min-height: 4rem;
  }

  .team-content {
    text-align: center;
  }

  .team-image {
    width: min(100%, 180px);
  }

  .team-tags {
    justify-content: center;
  }

  .team-actions {
    justify-content: center;
  }
}
