.nesab-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding-top: 12px;
  -webkit-transition: padding-top 0.22s ease;
  transition: padding-top 0.22s ease;
}

.nesab-nav.is-scrolled {
  padding-top: 0;
}

.nesab-nav-inner {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    -webkit-linear-gradient(top, var(--nav-bg), var(--nav-bg)),
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 36%);
  background:
    linear-gradient(180deg, var(--nav-bg), var(--nav-bg)),
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 36%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.nesab-brand {
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}


.nesab-brand-logo {
  display: block !important;
  height: 46px !important;
  width: auto !important;
  max-width: 160px !important;
  max-height: 46px !important;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.nesab-brand--footer .nesab-brand-logo {
  height: 50px !important;
  max-height: 50px !important;
  max-width: 170px !important;
}

.nesab-nav-links {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.nesab-link {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-transition: color 0.22s ease, background-color 0.22s ease;
  transition: color 0.22s ease, background-color 0.22s ease;
}

.nesab-link:hover,
.nesab-link.is-active {
  color: var(--text);
  background: var(--nav-link-bg);
}

.nesab-theme-toggle {
  position: relative;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.nesab-theme-toggle:hover {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  background: var(--card-strong);
}

.nesab-theme-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  -webkit-transition: opacity 0.22s ease, -webkit-transform 0.22s ease;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

html[data-theme="light"] .nesab-theme-icon--sun,
html[data-theme="dark"] .nesab-theme-icon--moon {
  opacity: 1;
  -webkit-transform: scale(1) rotate(0deg);
  transform: scale(1) rotate(0deg);
}

html[data-theme="light"] .nesab-theme-icon--moon,
html[data-theme="dark"] .nesab-theme-icon--sun {
  opacity: 0;
  -webkit-transform: scale(0.7) rotate(-18deg);
  transform: scale(0.7) rotate(-18deg);
}

.nesab-nav-toggle {
  display: none;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}

.nesab-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  -webkit-transition: transform 0.22s ease, opacity 0.22s ease;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nesab-nav-toggle.is-active span:nth-child(1) {
  -webkit-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}

.nesab-nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nesab-nav-toggle.is-active span:nth-child(3) {
  -webkit-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}

.nesab-hero {
  padding: calc(var(--section-gap) - 12px) 0 var(--section-gap);
}

.nesab-hero::before,
.nesab-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  -webkit-filter: blur(24px);
  filter: blur(24px);
  pointer-events: none;
}

.nesab-hero::before {
  top: 7%;
  right: -3%;
  width: 280px;
  height: 280px;
  background: var(--glow-sky);
}

.nesab-hero::after {
  left: -3%;
  bottom: 8%;
  width: 260px;
  height: 260px;
  background: var(--glow-violet);
}

.nesab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  -webkit-align-items: center;
  align-items: center;
  gap: 48px;
}

@supports (width: clamp(1px, 2vw, 3px)) {
  .nesab-hero-grid {
    gap: clamp(28px, 5vw, 60px);
  }
}

.nesab-hero-copy {
  position: relative;
  z-index: 1;
}

.nesab-eyebrow {
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hero-chip-border);
  background: var(--hero-chip);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.nesab-hero-title {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 700;
}

@supports (font-size: clamp(1px, 2vw, 3px)) {
  .nesab-hero-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
  }
}

.nesab-hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}

.nesab-hero-actions {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.nesab-store-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 10px;
  margin-top: 18px;
}

.nesab-store-link {
  display: inline-block;
}

.nesab-store-link:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
}

.nesab-store-art {
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: 60%;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
  box-shadow: var(--shadow-md);
}

.nesab-store-badge {
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  border-radius: 16px;
  background: -webkit-linear-gradient(315deg, rgba(183, 36, 44, 0.96), rgba(19, 118, 54, 0.96));
  background: linear-gradient(135deg, rgba(183, 36, 44, 0.96), rgba(19, 118, 54, 0.96));
  color: #fffdf8;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.nesab-store-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nesab-store-label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.nesab-store-name {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.nesab-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.nesab-metric {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.nesab-metric strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

@supports (font-size: clamp(1px, 2vw, 3px)) {
  .nesab-metric strong {
    font-size: clamp(1.875rem, 3vw, 2.25rem);
  }
}

.nesab-metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.nesab-hero-visual {
  position: relative;
  min-height: 620px;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
}

.nesab-hero-banner-card {
  width: 100%;
  max-width: 520px;
  margin-right: 0;
  margin-left: auto;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.nesab-hero-banner-card img {
  width: 100%;
  height: auto;
}

/* aspect-ratio with fallback */
@supports (aspect-ratio: 1 / 1) {
  .nesab-hero-banner-card img {
    height: 100%;
    aspect-ratio: 1.92 / 1;
    -o-object-fit: cover;
    object-fit: cover;
  }
}

.nesab-phone-stack {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: flex-end;
  -ms-flex-align: end;
  align-items: flex-end;
  gap: 18px;
  height: 100%;
}

.nesab-phone-card {
  overflow: hidden;
  border-radius: 44px;
  border: none;
  background: transparent;
  box-shadow: var(--shadow-lg);
}

.nesab-phone-card img {
  width: 100%;
  height: auto;
  display: block;
}

.nesab-phone-card--primary {
  height: 100%;
  width: auto;
  -webkit-animation: float-soft 6.5s ease-in-out infinite;
  animation: float-soft 6.5s ease-in-out infinite;
}

@supports (aspect-ratio: 1 / 1) {
  .nesab-phone-card--primary {
    aspect-ratio: 0.51 / 1;
  }
}

.nesab-phone-card--secondary {
  width: 176px;
  -webkit-transform: translate3d(var(--hero-shift-x), calc(var(--hero-shift-y) * -1), 0) rotate(-8deg);
  transform: translate3d(var(--hero-shift-x), calc(var(--hero-shift-y) * -1), 0) rotate(-8deg);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
}

@supports (width: clamp(1px, 2vw, 3px)) {
  .nesab-phone-card--secondary {
    width: clamp(136px, 16vw, 190px);
  }
}

@supports (aspect-ratio: 1 / 1) {
  .nesab-phone-card--secondary {
    aspect-ratio: 0.51 / 1;
  }
}

.nesab-floating-badge {
  position: absolute;
  right: 5%;
  bottom: 4%;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
  width: 310px;
  max-width: 74%;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-lg);
  -webkit-transform: translate3d(calc(var(--hero-shift-x) * -1), var(--hero-shift-y), 0);
  transform: translate3d(calc(var(--hero-shift-x) * -1), var(--hero-shift-y), 0);
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
}

.nesab-floating-badge img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-animation: pulse-soft 3.4s ease-in-out infinite;
  animation: pulse-soft 3.4s ease-in-out infinite;
}

.nesab-floating-badge .nesab-floating-logo {
  width: 108px;
  height: auto;
  border-radius: 0;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-animation: none;
  animation: none;
}

.nesab-floating-badge strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.nesab-floating-badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
