/* ==========================================================================
   home.css
   تنسيقات خاصة بالصفحة الرئيسية: قسم البداية (Hero) ومحاكاة اللابتوب
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 600px;
  z-index: -1;
  background: linear-gradient(180deg, #f5f5f5, #ffffff);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    padding-block: 6rem;
  }
}

.hero__content {
  order: 2;
}

.hero__visual {
  order: 1;
}

@media (min-width: 1024px) {
  .hero__content { order: 1; }
  .hero__visual { order: 2; }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  margin-top: 1.25rem;
}

.hero__description {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__badges {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.hero__badges .check-item {
  font-size: 0.9rem;
}

/* ---------- محاكاة اللابتوب ---------- */
.laptop {
  position: relative;
  max-width: 32rem;
  margin-inline: auto;
}

.laptop__frame {
  border: 6px solid var(--color-navy);
  background: var(--color-navy);
  border-radius: 18px 18px 0 0;
  padding: 6px;
  box-shadow: var(--shadow-brand-lg);
}

.laptop__screen {
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-white);
}

.laptop__browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-gray);
  padding: 0.5rem 0.75rem;
}

.laptop__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.laptop__dot--red { background: #ff5f57; }
.laptop__dot--yellow { background: #febc2e; }
.laptop__dot--green { background: #28c840; }

.laptop__url {
  margin-inline: auto;
  max-width: 220px;
  width: 100%;
  background: var(--color-white);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  text-align: center;
  font-size: 0.65rem;
  color: var(--color-muted);
}

.laptop__content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.laptop__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.laptop__nav-logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.laptop__nav-logo img {
  height: 16px;
  width: auto;
}

.laptop__nav-logo span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-navy);
}

.laptop__nav-logo span em {
  font-style: normal;
  color: var(--color-yellow-dark);
}

.laptop__nav-links {
  display: none;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .laptop__nav-links {
    display: flex;
  }
}

.laptop__nav-links span {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-gray);
}

.laptop__nav-btn {
  background: var(--color-yellow);
  color: var(--color-navy);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.laptop__hero {
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(90deg, var(--color-navy), var(--color-navy-light));
}

.laptop__hero-eyebrow {
  height: 8px;
  width: 6rem;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.8);
  margin-bottom: 0.5rem;
}

.laptop__hero-line1 {
  height: 12px;
  width: 10rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.4rem;
}

.laptop__hero-line2 {
  height: 12px;
  width: 8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.laptop__hero-btn {
  margin-top: 0.75rem;
  height: 24px;
  width: 5rem;
  border-radius: 6px;
  background: var(--color-yellow);
}

.laptop__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.laptop__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-gray);
  border-radius: 8px;
  padding: 0.6rem;
}

.laptop__feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-blue);
}

.laptop__feature span {
  width: 2.5rem;
  height: 6px;
  border-radius: 999px;
  background: var(--color-white);
}

.laptop__base {
  margin-inline: auto;
  height: 12px;
  width: 85%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, var(--color-navy-light), var(--color-navy));
}

.laptop__base-shadow {
  margin-inline: auto;
  height: 6px;
  width: 95%;
  border-radius: 0 0 6px 6px;
  background: rgba(4, 37, 64, 0.8);
}

/* ---------- شارات عائمة فوق اللابتوب ---------- */
.laptop__float {
  position: absolute;
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow-brand);
}

@media (min-width: 640px) {
  .laptop__float {
    display: flex;
  }
}

.laptop__float--top {
  top: 2rem;
  inset-inline-end: -1rem;
  transform: rotate(3deg);
}

.laptop__float--bottom {
  bottom: 2rem;
  inset-inline-start: -1rem;
  transform: rotate(-3deg);
}

.laptop__float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex-shrink: 0;
}

.laptop__float-icon svg {
  width: 16px;
  height: 16px;
}

.laptop__float-icon--yellow {
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-yellow-dark);
}

.laptop__float-icon--blue {
  background: rgba(30, 90, 168, 0.1);
  color: var(--color-blue);
}

.laptop__float-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-navy);
}

.laptop__float-sub {
  font-size: 0.6rem;
  color: var(--color-muted);
}
