:root {
  --navy: #1b2a41;
  --accent: #f38020;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #22252b;
  --muted: #5d6573;
}

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

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

.hero {
  background: linear-gradient(135deg, var(--navy), #2f4a6d);
  color: #fff;
  text-align: center;
  padding: 24px 16px 80px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 60px;
}
.nav a { color: #fff; text-decoration: none; opacity: .85; }
.logo { font-weight: 900; font-size: 1.4rem; }

.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; }
.hero p { margin: 12px 0 28px; font-size: 1.15rem; opacity: .9; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }

main { max-width: 1000px; margin: -40px auto 0; padding: 0 16px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  margin-bottom: 8px;
}
.card h2 { font-size: 1.25rem; }
.card p { color: var(--muted); }
code { background: #eef0f5; padding: 1px 6px; border-radius: 4px; direction: ltr; display: inline-block; }

.demo {
  text-align: center;
  background: var(--card);
  border-radius: 16px;
  padding: 32px 16px;
  margin: 32px 0;
}
.demo p { margin: 8px 0 16px; font-size: 1.1rem; }
#count { font-weight: 900; color: var(--accent); }

footer { text-align: center; padding: 24px; color: var(--muted); }
