:root {
  --ink: #f5fffb;
  --muted: #93aea6;
  --line: rgba(125, 255, 219, 0.16);
  --paper: #070b0d;
  --panel: rgba(13, 20, 22, 0.86);
  --green: #2df2b4;
  --gold: #ffc857;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7, 11, 13, 0.88), rgba(7, 11, 13, 0.62) 46%, rgba(7, 11, 13, 0.9)),
    linear-gradient(180deg, rgba(7, 11, 13, 0.42), rgba(7, 11, 13, 0.9)),
    url("assets/islamic-future-portal.png") center / cover no-repeat fixed,
    #070b0d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 18%, rgba(45, 242, 180, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(72, 167, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(45, 242, 180, 0.03) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(255, 200, 87, 0.76);
  outline-offset: 5px;
}

.home {
  width: min(980px, calc(100% - 40px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 54px;
  margin-inline: auto;
  padding-block: 56px;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.brand img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(45, 242, 180, 0.22);
}

h1 {
  margin: 0;
  color: #f8fffc;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  min-height: 238px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 20px;
  background:
    linear-gradient(180deg, rgba(18, 28, 31, 0.88), rgba(9, 15, 18, 0.86)),
    linear-gradient(135deg, rgba(45, 242, 180, 0.06), transparent 55%, rgba(255, 200, 87, 0.04));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(45, 242, 180, 0.48);
  background:
    linear-gradient(180deg, rgba(20, 32, 35, 0.94), rgba(10, 17, 20, 0.92)),
    linear-gradient(135deg, rgba(45, 242, 180, 0.1), transparent 52%, rgba(255, 200, 87, 0.07));
}

.logo-frame {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 255, 219, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.logo-frame img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.app-card:first-child .logo-frame img {
  border-radius: 50%;
}

.app-copy {
  display: grid;
  gap: 7px;
}

.app-copy strong {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.2;
}

.app-copy small {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.about {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.about-toggle {
  border: 1px solid rgba(125, 255, 219, 0.22);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(8, 14, 16, 0.68);
  color: rgba(245, 255, 251, 0.82);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.about-toggle:hover,
.about-toggle:focus-visible,
.about-toggle[aria-expanded="true"] {
  border-color: rgba(45, 242, 180, 0.52);
  background: rgba(13, 23, 25, 0.86);
  color: #ffffff;
}

.about-panel {
  width: min(720px, 100%);
  border: 1px solid rgba(125, 255, 219, 0.16);
  border-radius: 8px;
  padding: 24px;
  background: rgba(8, 14, 16, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: rgba(245, 255, 251, 0.86);
}

.about-panel[hidden] {
  display: none;
}

.about-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.about-panel p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.65;
}

.about-panel p + p {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .home {
    width: min(100% - 28px, 520px);
    gap: 36px;
    padding-block: 34px;
  }

  .brand img {
    width: 74px;
    height: 74px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-card {
    min-height: 148px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 18px;
    padding: 20px;
    text-align: left;
  }

  .app-copy small {
    max-width: none;
  }

  .logo-frame {
    width: 74px;
    height: 74px;
  }

  .logo-frame img {
    width: 56px;
    height: 56px;
  }

  .about-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .app-card:hover,
  .app-card:focus-visible {
    transform: none;
  }

}
