/* apps.alakeel.net home page (index.html and ar/index.html).
   Same structure as the EasyRing pages (nav, hero, cards, footer; always black, no glow), in the Easy brand colours. */
:root {
  --ink: #050814; --panel: #0C1124; --card: #111833; --line: rgba(255,255,255,0.12);
  --text: #fff; --muted: rgba(255,255,255,0.68);
  --mint: #2DD4BF; --blue: #3B82F6; --indigo: #6366F1;
  --grad: linear-gradient(120deg, var(--mint), var(--blue) 50%, var(--indigo));
  --on-grad: #061024;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #000; color: var(--text);
  font: 17px/1.55 "Inter", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@keyframes drift { to { transform: translate(60px, 80px) scale(1.1); } }

nav { display: flex; align-items: center; gap: 28px; padding: 18px 0; }
nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: #fff; letter-spacing: -0.5px; }
nav .brand img { width: 36px; height: 36px; }
/* The Alakeel logo, as on the portfolio: the name inside two offset outlined boxes. */
nav .brand.alakeel { position: relative; padding: 6px 16px; margin-inline-end: 6px; margin-block-end: 4px; }
nav .brand.alakeel span { position: relative; z-index: 1; }
nav .brand.alakeel::before, nav .brand.alakeel::after { content: ""; position: absolute; inset: 0; border: 2px solid #fff; border-radius: 2px; }
nav .brand.alakeel::after { transform: translate(4px, 4px); }
nav .spacer { flex: 1; }
nav a.link { color: var(--muted); font-weight: 600; font-size: 15px; }
nav a.link:hover, nav .brand:hover { color: #fff; text-decoration: none; }
/* The language switch sits apart from the page links, after a thin divider. */
nav a.link[lang] { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.kicker { display: inline-block; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--mint); letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 16px;
  font-weight: 800; color: var(--on-grad); background: var(--grad); box-shadow: 0 10px 30px rgba(59,130,246,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(59,130,246,.45); }
.btn.ghost { background: var(--card); color: #fff; box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: rgba(255,255,255,.3); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The hero: the whole collection, alone on the first screen. */
.hero { display: grid; justify-items: center; text-align: center; padding: 48px 0 72px; }
.hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); align-content: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -2.5px; margin: 0 0 20px; font-weight: 900; max-width: 900px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 auto 30px; max-width: 640px; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero p.note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
/* The app icons, floating in a row under the headline. */
.icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 36px; padding: 0; list-style: none; }
.icons a { display: block; border-radius: 18px; transition: transform .2s ease; }
.icons a:hover { transform: translateY(-4px) scale(1.05); }
.icons img { display: block; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.45); animation: float 6s ease-in-out infinite; }
.icons li:nth-child(2) img { animation-delay: -1s; } .icons li:nth-child(3) img { animation-delay: -2s; }
.icons li:nth-child(4) img { animation-delay: -3s; } .icons li:nth-child(5) img { animation-delay: -4s; }
.icons li:nth-child(6) img { animation-delay: -5s; } .icons li:nth-child(7) img { animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

section { padding: 64px 0; scroll-margin-top: 12px; }
section h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1.5px; margin: 0 0 10px; font-weight: 900; }
section p.sub { color: var(--muted); margin: 0 0 36px; font-size: 18px; }
.center { text-align: center; }
.center p.sub { margin-inline: auto; max-width: 640px; }

/* App cards: one per app page. */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.app {
  display: flex; flex-direction: column; gap: 12px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.app:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(255,255,255,.3); }
.app .top { display: flex; align-items: flex-start; gap: 14px; }
.app img { width: 60px; height: 60px; border-radius: 14px; flex: none; background: var(--line); }
.app h3 { margin: 0 0 4px; font-size: 21px; letter-spacing: -0.5px; font-weight: 900; }
.app .os { display: flex; flex-wrap: wrap; gap: 4px; }
.app .os span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--muted); }
.app p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.app .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app .status { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--muted); border: 1px solid var(--line); }
.app .status.live { background: rgba(62,220,129,.16); color: #3EDC81; border-color: rgba(62,220,129,.45); }
.app .status.live { display: inline-flex; align-items: center; gap: 5px; letter-spacing: .02em; text-transform: none; font-size: 12px; }
.app .status.live svg { width: 13px; height: 13px; fill: currentColor; margin-top: -2px; }
.app .go { font-weight: 800; font-size: 15px; color: var(--mint); }

/* Why they're made: offline, for work and every day, private. */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; transition: border-color .2s ease; }
.card:hover { border-color: rgba(255,255,255,.28); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--on-grad); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
/* Cards rise in as they scroll into view (only when the script runs). */
.js .rise { opacity: 0; transform: translateY(24px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease, border-color .2s ease; }
.js .app.rise.in:hover { transform: translateY(-3px); }


footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer .spacer { flex: 1; }
footer a { color: var(--muted); font-weight: 600; }
footer a:hover { color: #fff; text-decoration: none; }

.hero > *, .grid > *, .apps > * { min-width: 0; }

@media (max-width: 1100px) { .apps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  /* Phones and small screens: everything centred. */
  .hero { padding-top: 24px; }
  .apps, .grid { grid-template-columns: 1fr 1fr; }
  section h2, section p.sub { text-align: center; }
  section p.sub { margin-inline: auto; }
  .card { text-align: center; }
  .card .ic { margin-inline: auto; }
  footer .wrap { justify-content: center; text-align: center; row-gap: 6px; }
  footer .spacer { flex-basis: 100%; height: 0; }
}
@media (max-width: 600px) {
  .apps, .grid { grid-template-columns: 1fr; }
  nav a.link.hide { display: none; }
  /* On phones the menu goes on its own line under the name, centred. */
  nav { flex-wrap: wrap; gap: 12px 18px; justify-content: center; }
  nav .spacer { flex-basis: 100%; height: 0; }
  nav a.link[lang] { padding-inline-start: 18px; }
  /* The menu wraps under the name, so the nav is about 120px tall. */
  .hero { min-height: calc(100vh - 120px); min-height: calc(100svh - 120px); padding-bottom: 48px; }
  .hero h1 { font-size: 42px; letter-spacing: -1.5px; }
  .hero p.lead { font-size: 18px; }
  .hero .ctas { display: grid; grid-template-columns: 1fr; width: 100%; max-width: 420px; }
  .icons { gap: 8px; margin-bottom: 28px; flex-wrap: nowrap; }
  .icons img { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 10px 22px rgba(0,0,0,.45); }
  section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* Arabic (ar/): right to left, the system Arabic font, no negative tracking. */
[dir="rtl"] body { font-family: -apple-system, "SF Arabic", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .hero h1, [dir="rtl"] section h2, [dir="rtl"] .app h3, [dir="rtl"] nav .brand { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .app .status { letter-spacing: 0; font-size: 12px; }
