:root {
  --bg: #060a1a;
  --surface: #0f172a;
  --surface-soft: #111c35;
  --line: #243457;
  --brand: #4c6ef5;
  --brand-2: #3b5bdb;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --ok: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Tajawal", "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at top, #1d2b52 0%, var(--bg) 45%, #040612 100%);
  color: var(--text);
  min-height: 100vh;
}

.container {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
}

.topbar {
  padding: 1.2rem 0;
}

.topbar .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  font-size: 1.4rem;
}

.topbar a.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.topbar a.link:hover {
  color: #cbd5e1;
}

.hero {
  text-align: center;
  padding: 2rem 0 2.2rem;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 3rem;
}

.plan {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-soft) 100%);
  border-radius: 18px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: rgba(76, 110, 245, 0.7);
  box-shadow: 0 20px 50px rgba(76, 110, 245, 0.22);
}

.badge {
  position: absolute;
  top: -12px;
  inset-inline-start: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.plan h2 {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.4rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: #cbd5e1;
  flex: 1;
}

.features li::before {
  content: "✓";
  color: var(--ok);
  margin-inline-end: 0.45rem;
}

.plan-btn {
  margin-top: 1.2rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 700;
}

.plan-btn.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.plan-btn:hover {
  opacity: 0.95;
}

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