:root {
  --ink: #14213d;
  --blue: #3a86ff;
  --blue-dark: #2563c9;
  --yellow: #ffc93c;
  --yellow-dark: #d9a514;
  --bg: #f7faff;
  --line: #dce6f5;
  --muted: #5b6b8c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Cairo, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
}

h1,
h2,
h3,
.logo {
  font-weight: 900;
}

mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}

/* الهيدر */
.site-header {
  border-bottom: 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 66px;
}

.logo {
  font-size: 1.4rem;
}

.logo span {
  background: var(--yellow);
  padding: 0 8px;
  border-radius: 8px;
}

.btn {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  border: 0;
  border-radius: 14px;
  padding: 14px 34px;
  cursor: pointer;
  transition: transform 0.15s;
}

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

.btn:active {
  transform: translateY(3px);
  box-shadow: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 0 var(--blue-dark);
}

.btn-accent {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--yellow-dark);
}

.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.35;
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: #3b4a6b;
  max-width: 32rem;
  margin-bottom: 26px;
}

.browser {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 12px 12px 0 var(--yellow);
  transform: rotate(-2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--ink);
  border-radius: 17px 17px 0 0;
}

.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
}

.browser-bar i:first-child {
  background: var(--yellow);
}

.browser-bar em {
  flex: 1;
  margin-inline-start: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: #1d2e55;
  color: #b9c4dd;
  font-style: normal;
  font-size: 0.85rem;
  direction: ltr;
  text-align: left;
}

.browser-screen {
  padding: 56px 20px;
  text-align: center;
}

.browser-screen strong {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 900;
}


.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 2rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}

.card h3 {
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
}

.promo {
  background: var(--yellow);
  border-radius: 28px;
  max-width: 1010px;
  margin: 10px auto 56px;
  padding: 48px 28px;
}

.promo h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.promo p {
  max-width: 42rem;
  margin-bottom: 22px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-bottom: 28px;
}

.tags li {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 99px;
  padding: 2px 18px;
  font-weight: 600;
}

.promo .btn {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 0 var(--blue-dark);
}

.site-footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.swal2-toast {
  font-family: Cairo, sans-serif !important;
  border: 2px solid var(--ink) !important;
  border-radius: 16px !important;
  box-shadow: 6px 6px 0 var(--yellow) !important;
  color: var(--ink) !important;
}

.swal2-toast .swal2-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
}

.swal2-toast .swal2-icon {
  margin: 0 10px 0 0 !important;
}

.swal2-timer-progress-bar {
  height: 5px !important;
  background: var(--blue) !important;
  border-radius: 0 0 14px 14px !important;
}

.swal2-popup {
  font-family: Cairo, sans-serif !important;
  border: 2px solid var(--ink) !important;
  border-radius: 24px !important;
  box-shadow: 8px 8px 0 var(--yellow) !important;
  padding: 28px 22px !important;
}

.swal2-title {
  font-weight: 900 !important;
  color: var(--ink) !important;
}

.swal2-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.sw-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  padding: 10px 24px;
  cursor: pointer;
}

.sw-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 0 var(--blue-dark);
}

.sw-accent {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--yellow-dark);
}

.sw-outline {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .browser {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}