/* ghilany.com — landing hub */
:root {
  --ink: #1c2228;
  --muted: #6b737b;
  --bg: #f4f3f1;
  --card: #ffffff;
  --apc-blue: #1B3FA0;
  --apc-cyan: #29B8CE;
  --mwq-gold: #B08D57;
  --mwq-charcoal: #2E3338;
}

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

html, body { height: 100%; }

body {
  font-family: 'Tajawal', 'Montserrat', sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(41, 184, 206, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(176, 141, 87, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

html[lang="en"] body { font-family: 'Montserrat', 'Tajawal', sans-serif; }

.lang-toggle {
  position: fixed;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  border: 1px solid rgba(28, 34, 40, 0.25);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
}
.lang-toggle:hover { background: #fff; border-color: var(--ink); }

.hub { max-width: 960px; width: 100%; text-align: center; }

.intro .eyebrow {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.intro .name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.rule {
  width: 72px;
  height: 4px;
  margin: 1.1rem auto;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--apc-blue), var(--apc-cyan) 50%, var(--mwq-gold));
}

.intro .lede {
  max-width: 46rem;
  margin: 0 auto;
  color: #454c53;
  font-size: 1.05rem;
  line-height: 1.9;
}

.intro .hint {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.6rem auto 0;
  max-width: 820px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  background: var(--card);
  border-radius: 18px;
  padding: 2.2rem 1.6rem 1.8rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(28, 34, 40, 0.08);
  border-top: 5px solid transparent;
  box-shadow: 0 6px 24px rgba(28, 34, 40, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(28, 34, 40, 0.13);
}
.card-apc { border-top-color: var(--apc-blue); }
.card-mwq { border-top-color: var(--mwq-gold); }

.logo-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.logo-wrap img {
  max-height: 120px;
  max-width: 230px;
  object-fit: contain;
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}
.card-apc h2 { color: var(--apc-blue); }
.card-mwq h2 { color: var(--mwq-gold); }

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 30rem;
}

.card .enter {
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.card-apc .enter { color: var(--apc-cyan); }
.card-mwq .enter { color: var(--mwq-gold); }

.foot {
  margin-top: 2.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}
.foot .domain {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.foot .credit { margin-top: 0.4rem; font-size: 0.8rem; }
.foot .credit a {
  color: var(--mwq-gold);
  text-decoration: none;
  font-weight: 600;
}
.foot .credit a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  body { padding: 4.5rem 1rem 2rem; }
  .cards { gap: 1.1rem; }
}
